manage-feature-flags

>-

thisrohangupta/harness-skills8 installsApache-2.0Synced Aug 22

Works with

Claude CodeCursorCodex CLIGitHub CopilotGemini CLI
---
name: manage-feature-flags
description: >-
license: Apache-2.0
---

# Manage Feature Flags

Create, list, toggle, and delete Harness Feature Flags via MCP.

## Instructions

### Step 1: List Existing Flags

```
Call MCP tool: harness_list
Parameters:
  resource_type: "feature_flag"
  org_id: "<organization>"
  project_id: "<project>"
```

Filter by name or environment:

```
Call MCP tool: harness_list
Parameters:
  resource_type: "feature_flag"
  org_id: "<organization>"
  project_id: "<project>"
  name: "dark_mode"
  environment: "production"
```

### Step 2: Get Flag Details

```
Call MCP tool: harness_get
Parameters:
  resource_type: "feature_flag"
  resource_id: "<flag_identifier>"
  org_id: "<organization>"
  project_id: "<project>"
  environment: "<environment>"
```

### Step 3: Create a Flag

```
Call MCP tool: harness_create
Parameters:
  resource_type: "feature_flag"
  org_id: "<organization>"
  project_id: "<project>"
  body:
    identifier: "dark_mode"
    name: "Dark Mode"
    kind: "boolean"
    permanent: false
    description: "Enable dark mode UI theme"
```

Flag kinds:
- `boolean` -- simple on/off toggle
- `multivariate` -- multiple variations (e.g., string, number, JSON)

### Step 4: Toggle a Flag

```
Call MCP tool: harness_execute
Parameters:
  resource_type: "feature_flag"
  action: "toggle"
  resource_id: "<flag_identifier>"
  org_id: "<organization>"
  project_id: "<project>"
  enable: true
  environment: "production"
```

Set `enable: true` to turn on, `enable: false` to turn off. The `environment` parameter is required.

### Step 5: Delete a Flag

```
Call MCP tool: harness_delete
Parameters:
  resource_type: "feature_flag"
  resource_id: "<flag_identifier>"
  org_id: "<organization>"
  project_id: "<project>"
```

## FME Resources

For Split.io-backed Feature Management & Experimentation (FME), use these additional resource types:

| Resource Type | Operations | Description |
|--------------|-----------|-------------|
| `fme_workspace` | list | List FME workspaces |
| `fme_environment` | list | List FME environments |
| `fme_feature_flag` | list, get | List/get flags by workspace (no environment required) |

## Examples

- "Create a feature flag for dark mode" -- Create boolean flag with identifier `dark_mode`
- "Turn on the new-checkout flag in staging" -- Toggle with `enable: true`, `environment: "staging"`
- "Kill the experimental-search feature in production" -- Toggle with `enable: false`, `environment: "production"`
- "List all feature flags in the payments project" -- List with project scope
- "Is the beta-dashboard flag enabled?" -- Get flag details with environment

## Performance Notes

- Verify the flag identifier and environment before toggling. Toggling the wrong flag can cause production issues.
- List existing flags before creating to avoid duplicates.
- Confirm the flag type (boolean vs. multivariate) matches the intended use case.

## Troubleshooting

### Flag Not Toggling
- The `environment` parameter is required for toggle -- specify which environment to target
- Verify the flag identifier is correct (case-sensitive)
- Check that the flag exists in the target project

### Flag Not Found
- Identifiers are project-scoped -- confirm the correct org_id and project_id
- Use `harness_list` without filters to see all flags, then narrow down

### Boolean vs Multivariate
- Use `boolean` for simple on/off flags
- Use `multivariate` when you need multiple string/number/JSON variations

More Deployment & CI/CD skills

azure-enterprise-infra-planner

microsoft/azure-skills

Architect and provision enterprise Azure infrastructure from workload descriptions. For cloud architects and platform engineers planning networking, identity, security, compliance, and multi-resource topologies with WAF alignment. Generates Bicep or Terraform directly (no azd). WHEN: 'plan Azure infrastructure', 'architect Azure landing zone', 'design hub-spoke network', 'plan multi-region DR topology', 'set up VNets firewalls and private endpoints', 'subscription-scope Bicep deployment', 'Azure Backup for VM workloads'. PREFER azure-prepare FOR app-centric workflows.

387.5k

azure-kubernetes-app-deploy

microsoft/azure-skills

Use when deploying an existing web application or API to an already-running Azure Kubernetes Service cluster. Detects the framework, generates a Dockerfile and Kubernetes manifests, validates against AKS Deployment Safeguards, and deploys with verification. WHEN: deploy app to AKS, deploy to existing AKS cluster, containerize app for Kubernetes, generate K8s manifests for Azure, set up CI/CD for AKS, my AKS deployment is failing safeguard checks, I have a Django/Express/Spring Boot app to run on AKS. DO NOT USE FOR: creating or provisioning an AKS cluster (use azure-kubernetes), assessing migration to AKS Automatic (use azure-kubernetes-automatic-readiness), or deploying to non-AKS targets like Web Apps, Container Apps, or Functions.

380.4k

finetuning

microsoft/azure-skills

Fine-tune models on Microsoft Foundry using SFT (supervised), DPO (preference), or RFT (reinforcement with graders). Covers dataset preparation, training job submission, deployment, and evaluation. USE FOR: fine-tune, SFT, DPO, RFT, training data, grader, distillation, fine-tuned model, training job, large file upload, calibrate grader, deploy fine-tuned model, evaluate fine-tuned model. DO NOT USE FOR: general model deployment without fine-tuning (use deploy-model), agent creation (use agents), prompt optimization without training (use prompt-optimizer).

323.2k

← All Deployment & CI/CD skills

Check your AI visibility

One URL in, a 0–100 score and the exact fixes out.

RUN THE CHECK

Browse all the tools

15 tools across six categories
13 of them never send your data anywhere

Free · No signup · No trial clock

SEE THE DIRECTORY