Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

dark-launch-controller暗发射控制器

Agent Skill

dark-launch-controller 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

979

周安装

40

GitHub Stars

公开资料未说明

下载量

314
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:dark-launch-controller(暗发射控制器)
来源仓库:https://github.com/charlie-morrison/dark-launch-controller
安装命令:
openclaw skills install dark-launch-controller
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install dark-launch-controller

简介

dark-launch-controller 用于规划和执行暗发布,结合功能标志与性能监控。

  • 适用于 OpenClaw 中灰度发布和逐步曝光部署管理。
  • 通过 openclaw skills install dark-launch-controller 安装并使用部署策略模板。
  • 需配合实际监控系统和用户分组策略使用,避免全量风险。
  • 适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。

SKILL.md

name
dark-launch-controller
description
Plan and execute dark launches with feature flags, performance monitoring, and gradual exposure rollouts

Dark Launch Controller

Plan and manage dark launches -- deploying new features into production fully hidden from users. Unlike shadow traffic (which mirrors requests), dark launches deploy the actual code path but gate visibility behind feature flags, percentage rollouts, or user-segment targeting. This skill covers launch planning, silent performance monitoring, and controlled promotion to user-facing traffic.

Use when: "dark launch", "feature flag deploy", "hidden feature", "dark deploy", "gradual rollout", "feature gate", "launch plan", "promote feature"

Commands

1. plan --- Design a dark launch strategy

Analyze the feature to be launched and produce a dark launch plan with flag configuration, monitoring criteria, and promotion gates.

Step 1 -- Inventory the feature scope

# Identify what changed in the feature branch vs main
FEATURE_BRANCH="${1:-feature/new-feature}"
BASE_BRANCH="${2:-main}"

echo "=== Files changed ==="
git diff --stat "$BASE_BRANCH"..."$FEATURE_BRANCH"

echo ""
echo "=== Diff summary ==="
git diff --shortstat "$BASE_BRANCH"..."$FEATURE_BRANCH"

echo ""
echo "=== Changed services/packages ==="
git diff --name-only "$BASE_BRANCH"..."$FEATURE_BRANCH" | \
  awk -F/ '{print $1"/"$2}' | sort -u

Step 2 -- Detect feature flag integration points

# Scan for existing feature flag patterns in the codebase
echo "=== Existing feature flag patterns ==="
rg -n 'feature[_-]?flag|isEnabled|isFeatureOn|toggle|LaunchDarkly|Unleash|flipper|split\.io' \
  --type-add 'code:*.{py,go,js,ts,java,rb}' --type code -l 2>/dev/null | head -20

echo ""
echo "=== Feature flag config files ==="
find . -name '*feature*flag*' -o -name '*toggle*' -o -name '*feature*config*' 2>/dev/null | \
  grep -v node_modules | grep -v .git | head -20

echo ""
echo "=== Environment-based feature switches ==="
rg 'FEATURE_|ENABLE_|FF_|DARK_LAUNCH' --type-add 'config:*.{env,yaml,yml,json,toml}' --type config -l 2>/dev/null | head -20

Step 3 -- Design the flag configuration

# Generate feature flag specification
FEATURE_NAME="${3:-new-checkout-flow}"

python3 << PYEOF
import json

flag_spec = {
    "flag_key": "${FEATURE_NAME}".replace(" ", "-").lower(),
    "description": "Dark launch gate for ${FEATURE_NAME}",
    "type": "boolean",
    "default_value": False,
    "environments": {
        "development": {
            "enabled": True,
            "rules": [{"variation": True, "rollout_percentage": 100}]
        },
        "staging": {
            "enabled": True,
            "rules": [{"variation": True, "rollout_percentage": 100}]
        },
        "production": {
            "enabled": True,
            "rules": [
                {
                    "description": "Internal team only (dark launch phase)",
                    "variation": True,
                    "clauses": [
                        {"attribute": "email", "op": "endsWith", "values": ["@yourcompany.com"]}
                    ]
                },
                {
                    "description": "Default: feature hidden",
                    "variation": False,
                    "rollout_percentage": 0
                }
            ]
        }
    },
    "promotion_gates": {
        "phase_1_internal": {
            "audience": "internal employees only",
            "duration": "3 days minimum",
            "success_criteria": {
                "error_rate_delta": "< 0.1%",
                "p99_latency_delta": "< 15%",
                "no_new_error_types": True
            }
        },
        "phase_2_beta": {
            "audience": "5% of production traffic",
            "duration": "3 days minimum",
            "success_criteria": {
                "error_rate_delta": "< 0.5%",
                "p99_latency_delta": "< 10%",
                "user_feedback_score": "> 4.0"
            }
        },
        "phase_3_rollout": {
            "audience": "25% -> 50% -> 100%",
            "duration": "1 week per step",
            "success_criteria": {
                "error_rate_delta": "< 0.1%",
                "p99_latency_delta": "< 5%",
                "business_metric_impact": "neutral or positive"
            }
        }
    }
}

print(json.dumps(flag_spec, indent=2))
PYEOF

Step 4 -- Generate Kubernetes deployment strategy

cat << 'DEPLOYEOF'
# Dark launch deployment: code ships but feature is gated
# No separate deployment needed -- the flag controls visibility

# Option A: ConfigMap-based flag (simple, no external dependency)
apiVersion: v1
kind: ConfigMap
metadata:
  name: feature-flags
data:
  flags.json: |
    {
      "{FEATURE_KEY}": {
        "enabled": false,
        "internal_only": true,
        "rollout_percentage": 0
      }
    }

---
# Option B: Environment variable flag
# Add to deployment spec:
# env:
# - name: FF_{FEATURE_KEY_UPPER}
#   value: "false"
# - name: FF_{FEATURE_KEY_UPPER}_INTERNAL
#   value: "true"
DEPLOYEOF

Report template:

## Dark Launch Plan: {FEATURE_NAME}

### Feature Scope
- Files changed: {N}
- Services affected: {list}
- Flag key: {flag_key}
- Flag type: {boolean/percentage/segment}

### Launch Phases
| Phase | Audience | Duration | Success Criteria |
|-------|---------|----------|-----------------|
| 1. Internal | Employees | 3 days | Error rate < 0.1%, p99 < +15% |
| 2. Beta | 5% users | 3 days | Error rate < 0.5%, p99 < +10% |
| 3. Ramp | 25/50/100% | 1wk/step | Metrics stable, business KPIs neutral+ |

### Rollback
- Instant: set flag to `false` (no deploy needed)
- Estimated rollback time: < 30 seconds

### Monitoring Setup Required
{list of dashboards and alerts to configure}

2. monitor --- Track dark feature performance in production

Monitor the hidden feature's impact on system performance even while it is gated.

Step 1 -- Check feature flag state

# Verify current flag configuration
NAMESPACE="${1:-default}"
FEATURE_KEY="${2:-new-checkout-flow}"

echo "=== ConfigMap-based flags ==="
kubectl get configmap feature-flags -n "$NAMESPACE" -o jsonpath='{.data.flags\.json}' 2>/dev/null | python3 -m json.tool || echo "No feature-flags ConfigMap found"

echo ""
echo "=== Environment variable flags ==="
kubectl get deployments -n "$NAMESPACE" -o json | python3 -c "
import json, sys
data = json.load(sys.stdin)
for deploy in data['items']:
    name = deploy['metadata']['name']
    for c in deploy['spec']['template']['spec']['containers']:
        for env in c.get('env', []):
            if 'FF_' in env.get('name', '') or 'FEATURE_' in env.get('name', ''):
                val = env.get('value', env.get('valueFrom', 'ref'))
                print(f\"  {name}/{c['name']}: {env['name']}={val}\")
"

Step 2 -- Measure code-path performance

# Query application metrics for the feature code path
# Prometheus queries (adapt to your metrics naming)
PROM_URL="${PROMETHEUS_URL:-http://prometheus.monitoring.svc:9090}"

echo "=== Feature code path latency ==="
curl -s "$PROM_URL/api/v1/query" \
  --data-urlencode "query=histogram_quantile(0.99, rate(http_request_duration_seconds_bucket{feature=\"${FEATURE_KEY}\"}[5m]))" \
  2>/dev/null | python3 -c "
import json, sys
try:
    data = json.load(sys.stdin)
    for result in data.get('data', {}).get('result', []):
        labels = result['metric']
        value = result['value'][1]
        print(f\"  p99 latency: {float(value)*1000:.1f}ms  labels: {labels}\")
except Exception as e:
    print(f'  Could not query Prometheus: {e}')
"

echo ""
echo "=== Feature error rate ==="
curl -s "$PROM_URL/api/v1/query" \
  --data-urlencode "query=rate(http_requests_total{feature=\"${FEATURE_KEY}\",status=~\"5..\"}[5m]) / rate(http_requests_total{feature=\"${FEATURE_KEY}\"}[5m])" \
  2>/dev/null | python3 -c "
import json, sys
try:
    data = json.load(sys.stdin)
    for result in data.get('data', {}).get('result', []):
        rate = float(result['value'][1]) * 100
        print(f\"  Error rate: {rate:.3f}%\")
except Exception as e:
    print(f'  Could not query Prometheus: {e}')
"

Step 3 -- Compare with baseline

python3 << 'PYEOF'
# Compare feature-on vs feature-off performance
# This requires metrics instrumented with a feature label

import json

# Simulated analysis logic -- replace with real Prometheus query results
def assess_gate(metric_name, current, threshold, unit="%"):
    passed = current <= threshold
    status = "PASS" if passed else "FAIL"
    print(f"  {status}: {metric_name} = {current:.3f}{unit} (threshold: {threshold}{unit})")
    return passed

print("=== Promotion Gate Assessment ===")
print()
all_pass = True
all_pass &= assess_gate("Error rate delta", 0.05, 0.1)
all_pass &= assess_gate("p99 latency delta", 8.2, 15.0, "% increase")
all_pass &= assess_gate("Memory usage delta", 2.1, 20.0, "% increase")
all_pass &= assess_gate("CPU usage delta", 1.5, 15.0, "% increase")

print()
if all_pass:
    print("VERDICT: All gates passed -- ready for next promotion phase")
else:
    print("VERDICT: One or more gates failed -- investigate before promoting")
PYEOF

Step 4 -- Check resource consumption impact

# Compare resource usage of pods with feature enabled vs baseline
NAMESPACE="${1:-default}"

echo "=== Current resource usage ==="
kubectl top pods -n "$NAMESPACE" --no-headers 2>/dev/null | sort -k3 -rn | head -20

echo ""
echo "=== Pod restart counts (detect instability) ==="
kubectl get pods -n "$NAMESPACE" -o jsonpath='{range .items[*]}{.metadata.name}{"\	"}{range .status.containerStatuses[*]}{.restartCount}{" "}{end}{"\
"}{end}' 2>/dev/null | awk '$2 > 0'

Report template:

## Dark Launch Monitoring Report: {FEATURE_KEY}

### Current State
- Flag status: {enabled/disabled}
- Audience: {internal/beta/N% rollout}
- Duration at current phase: {N days}

### Performance Metrics
| Metric | Baseline | With Feature | Delta | Gate |
|--------|---------|-------------|-------|------|
| Error rate | | | | {PASS/FAIL} |
| p99 latency | | | | {PASS/FAIL} |
| CPU usage | | | | {PASS/FAIL} |
| Memory usage | | | | {PASS/FAIL} |

### Stability
- Pod restarts: {N}
- OOM kills: {N}
- New error types: {list or "none"}

### Gate Verdict: {PASS / FAIL}

3. promote --- Plan exposure rollout

Generate the step-by-step promotion plan to move from dark to fully visible.

Step 1 -- Validate promotion readiness

# Check all promotion gates for the current phase
python3 << 'PYEOF'
phases = [
    {"name": "Internal", "pct": 0, "flag": "internal_only=true"},
    {"name": "Beta 5%", "pct": 5, "flag": "rollout_percentage=5"},
    {"name": "Ramp 25%", "pct": 25, "flag": "rollout_percentage=25"},
    {"name": "Ramp 50%", "pct": 50, "flag": "rollout_percentage=50"},
    {"name": "GA 100%", "pct": 100, "flag": "rollout_percentage=100"},
    {"name": "Cleanup", "pct": 100, "flag": "remove flag, hardcode feature"},
]

print("=== Promotion Phases ===")
print()
for i, p in enumerate(phases):
    status = "CURRENT >>>" if i == 1 else "          "  # adjust based on actual state
    print(f"  {status} Phase {i}: {p['name']} ({p['flag']})")
PYEOF

Step 2 -- Generate promotion commands

FEATURE_KEY="${1:-new-checkout-flow}"
NAMESPACE="${2:-default}"
TARGET_PHASE="${3:-beta}"  # internal|beta|ramp25|ramp50|ga|cleanup

echo "=== Promotion Commands for phase: $TARGET_PHASE ==="
echo ""

case "$TARGET_PHASE" in
  beta)
    echo "# Update ConfigMap to enable 5% rollout"
    echo "kubectl get configmap feature-flags -n $NAMESPACE -o json | \\"
    echo "  jq '.data[\"flags.json\"] |= (fromjson | .[\"$FEATURE_KEY\"].rollout_percentage = 5 | .[\"$FEATURE_KEY\"].internal_only = false | tojson)' | \\"
    echo "  kubectl apply -f -"
    echo ""
    echo "# Restart pods to pick up config change (if not using hot-reload)"
    echo "kubectl rollout restart deployment -n $NAMESPACE -l feature-flags=enabled"
    ;;
  ramp25)
    echo "kubectl get configmap feature-flags -n $NAMESPACE -o json | \\"
    echo "  jq '.data[\"flags.json\"] |= (fromjson | .[\"$FEATURE_KEY\"].rollout_percentage = 25 | tojson)' | \\"
    echo "  kubectl apply -f -"
    ;;
  ramp50)
    echo "kubectl get configmap feature-flags -n $NAMESPACE -o json | \\"
    echo "  jq '.data[\"flags.json\"] |= (fromjson | .[\"$FEATURE_KEY\"].rollout_percentage = 50 | tojson)' | \\"
    echo "  kubectl apply -f -"
    ;;
  ga)
    echo "kubectl get configmap feature-flags -n $NAMESPACE -o json | \\"
    echo "  jq '.data[\"flags.json\"] |= (fromjson | .[\"$FEATURE_KEY\"].rollout_percentage = 100 | tojson)' | \\"
    echo "  kubectl apply -f -"
    ;;
  cleanup)
    echo "# Feature is GA -- remove the flag from code and config"
    echo "# 1. Remove flag checks from application code:"
    echo "rg -l '$FEATURE_KEY' --type-add 'code:*.{py,go,js,ts,java,rb}' --type code"
    echo ""
    echo "# 2. Remove from ConfigMap"
    echo "kubectl get configmap feature-flags -n $NAMESPACE -o json | \\"
    echo "  jq '.data[\"flags.json\"] |= (fromjson | del(.[\"$FEATURE_KEY\"]) | tojson)' | \\"
    echo "  kubectl apply -f -"
    echo ""
    echo "# 3. Remove feature flag environment variables from deployments"
    echo "# Edit deployment manifests to remove FF_${FEATURE_KEY^^} env vars"
    ;;
esac

Step 3 -- Generate rollback commands

echo "=== Emergency Rollback ==="
echo ""
echo "# Instant kill switch (< 30 seconds if using hot-reload)"
echo "kubectl get configmap feature-flags -n $NAMESPACE -o json | \\"
echo "  jq '.data[\"flags.json\"] |= (fromjson | .[\"$FEATURE_KEY\"].enabled = false | .[\"$FEATURE_KEY\"].rollout_percentage = 0 | tojson)' | \\"
echo "  kubectl apply -f -"
echo ""
echo "# Force pod restart if config not hot-reloaded"
echo "kubectl rollout restart deployment -n $NAMESPACE -l feature-flags=enabled"
echo ""
echo "# Verify rollback"
echo "kubectl get configmap feature-flags -n $NAMESPACE -o jsonpath='{.data.flags\\.json}' | python3 -m json.tool"

Report template:

## Promotion Plan: {FEATURE_KEY}

### Current Phase: {phase_name}
### Target Phase: {next_phase_name}

### Pre-promotion Checklist
- [ ] All monitoring gates passed for current phase
- [ ] No unresolved incidents related to the feature
- [ ] Stakeholder approval obtained
- [ ] Rollback procedure tested

### Promotion Steps
1. {command to update flag}
2. Verify flag update applied
3. Monitor for 15 minutes
4. Check error rates and latency
5. If stable, confirm promotion complete

### Rollback (if needed)
- Command: {single command to disable flag}
- Expected rollback time: < 30 seconds
- Rollback does NOT require a deployment

### Schedule
| Phase | Target Date | Duration | Owner |
|-------|-----------|----------|-------|

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

93.83%
按下载量换算295

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills