Source profileQuality 86/100Review permissions

boshu2/agentops/skills/dcg/SKILL.md

dcg

Handle blocked destructive commands and configure agent safety guardrails. Triggers: "dcg", "handle a DCG block", "configure agent safety guardrails".

Source repository stars
416
Declared platforms
0
Static risk flags
1
Last source update
2026-08-05
Source checked
2026-08-05

Decision brief

What it does—and where it fits

Core Insight: Blocks are checkpoints, not errors. A safe alternative almost always exists. Find it before mentioning override.

Best for

    Not for

    • Tasks that require unconfirmed production actions or broad system permissions.
    • Environments where the pinned source and install steps cannot be inspected.

    Compatibility matrix

    Platform support, with evidence labels

    PlatformStatusEvidenceWhat to check
    CodexNot declaredNo explicit evidencePortability before use
    Claude CodeNot declaredNo explicit evidencePortability before use
    CursorNot declaredNo explicit evidencePortability before use
    Gemini CLINot declaredNo explicit evidencePortability before use
    Open the compatibility checker

    Installation

    Inspect first. Install second.

    The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

    Source-detected install commandSource
    npx skills add https://github.com/boshu2/agentops --skill "skills/dcg"
    Safe inspection promptEditorial

    Inspect the Agent Skill "dcg" from https://github.com/boshu2/agentops/blob/c0f78fddd95ab30f8adadc5e513e27064980a529/skills/dcg/SKILL.md at commit c0f78fddd95ab30f8adadc5e513e27064980a529. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

    Workflow

    What the source asks the agent to do

    1. 01

      THE EXACT WORKFLOW

      When blocked, follow this sequence every time:

      When blocked, follow this sequence every time:Never: Ask for override first. Never retry silently. Never circumvent.When no safe alternative exists and the human must decide, the number of distinct human approvals scales with what the command can destroy:
    2. 02

      Constraints

      Never request, generate, or run an allow-once bypass because only the human may authorize and execute the exact blocked command.

      Never request, generate, or run an allow-once bypass because only the human may authorize and execute the exact blocked command.Preserve the user's intended outcome with the narrowest reversible alternative because the guard protects state, not merely command spelling.Explain the matched rule and surviving risk before asking for judgment; never retry, obfuscate, or route around a DCG block.
    3. 03

      Quick Navigation

      Review the “Quick Navigation” section in the pinned source before continuing.

      Review and apply the “Quick Navigation” source section.
    4. 04

      Risk-tiered approval counts

      When no safe alternative exists and the human must decide, the number of distinct human approvals scales with what the command can destroy:

      When no safe alternative exists and the human must decide, the number of distinct human approvals scales with what the command can destroy:Stop conditions: never present a tier-2 or tier-3 command as tier-1; never convert several pending blocks into one blanket approval. A single "yes" that gets spent across multiple destructive commands is the approval la…Good response: "I wanted to discard changes but git reset --hard was blocked. Let me use git stash instead—recoverable if needed." [proceeds with stash]
    5. 05

      Safe Alternatives

      Review the “Safe Alternatives” section in the pinned source before continuing.

      Review and apply the “Safe Alternatives” source section.

    Permission review

    Static risk signals and limitations

    Runs scripts

    medium · line 9

    The documentation asks the agent to run terminal commands or scripts.

    Never request, generate, or run an allow-once bypass because only the human may authorize and execute the exact blocked command.

    Evidence record

    Why each signal appears

    EvidenceSourceComputedTestedEditorial
    SignalValueEvidence typeMeaning
    Quality score86/100ComputedDocumentation, specificity, maintenance, and trust rules
    Repository stars416SourceRepository attention, not individual Skill quality
    Compatibility0 platformsSourceDeclared in the catalog source record
    Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

    Pinned source

    Provenance and original SKILL.md

    Repository
    boshu2/agentops
    Skill path
    skills/dcg/SKILL.md
    Commit
    c0f78fddd95ab30f8adadc5e513e27064980a529
    License
    Apache-2.0
    Collected
    2026-08-05
    Default branch
    main
    View the original SKILL.md

    DCG: When You Get Blocked

    Core Insight: Blocks are checkpoints, not errors. A safe alternative almost always exists. Find it before mentioning override.

    Constraints

    • Never request, generate, or run an allow-once bypass because only the human may authorize and execute the exact blocked command.
    • Preserve the user's intended outcome with the narrowest reversible alternative because the guard protects state, not merely command spelling.
    • Explain the matched rule and surviving risk before asking for judgment; never retry, obfuscate, or route around a DCG block.

    Quick Navigation

    I need to...Go to
    Handle a block right nowTHE EXACT WORKFLOW
    Find a safe alternativeSafe Alternatives
    See all CLI commandsCOMMANDS.md
    Enable more rule packsPACKS.md
    Configure per-projectCONFIG.md
    Debug hook issuesTROUBLESHOOTING.md

    THE EXACT WORKFLOW

    When blocked, follow this sequence every time:

    1. Run `dcg explain "cmd"` → Understand why (see trace)
    2. Check Safe Alternatives table → Use if exists (DON'T mention override)
    3. No alternative? → Explain risk clearly, let human decide
    4. Human approves? → THEY run: dcg allow-once CODE
    

    Never: Ask for override first. Never retry silently. Never circumvent.

    Risk-tiered approval counts

    When no safe alternative exists and the human must decide, the number of distinct human approvals scales with what the command can destroy:

    TierBlast radiusApprovals required
    Recoverableundoable via reflog/stash/trash/backup1 allow-once for this exact command
    Destructive-localpermanently deletes local, uncommitted, or unbacked state1 allow-once, granted only after you name the exact state lost and confirm no backup exists
    Destructive-sharedshared history, remote branches, databases, namespaces others use1 approval per individual command occurrence — never batched, never pattern-widened

    Stop conditions: never present a tier-2 or tier-3 command as tier-1; never convert several pending blocks into one blanket approval. A single "yes" that gets spent across multiple destructive commands is the approval laundering failure mode — each allow-once code is bound to one command in one directory, and the workflow must keep it that way.

    Example block output:

    BLOCKED: git reset --hard HEAD
    Rule: core.git:reset-hard
    Reason: Discards uncommitted changes permanently
    Allow-once code: ab12
    Safer alternative: git stash
    

    Good response:

    "I wanted to discard changes but git reset --hard was blocked. Let me use git stash instead—recoverable if needed." [proceeds with stash]

    Safe Alternatives

    BlockedUse InsteadWhy
    git reset --hardgit stashRecoverable
    git checkout -- filegit stash push filePreserves changes
    git push --forcegit push --force-with-leaseChecks remote unchanged
    git clean -fdgit clean -fdn (preview)Shows what would delete
    git stash dropgit stash list firstVerify which stash
    rm -rf /pathrm -ri /path or verify pathInteractive/confirm
    kubectl delete namespacekubectl delete -l app=XSelective deletion
    DROP DATABASEBackup firstHuman approves
    docker system prune -adocker system df firstSee what's used

    Quick Reference

    dcg doctor              # Health check — hook registered?
    dcg explain "cmd"       # WHY is it blocked? (with trace)
    dcg test "cmd"          # Would this be blocked? (dry-run)
    dcg allow-once CODE     # Human approves (THEY run this)
    dcg packs               # List available rule packs
    dcg scan --staged       # Pre-commit: scan for issues
    

    What Gets Blocked

    CategoryPatternsSafe Variants
    Git destructivereset --hard, checkout --stash, restore --staged
    Git historypush --force, branch -D--force-with-lease, -d
    Git stashstash drop, stash clearstash list first
    Filesystemrm -rf (dangerous paths)/tmp/* allowed
    DatabaseDROP, TRUNCATE, DELETE w/o WHEREAdd WHERE clause
    K8sdelete namespace, delete --all-l label selector

    Context-aware (measured on dcg 0.5.6): the temp carve-out allows rm -rf under /tmp, /private/tmp, /var/tmp, and the literal $TMPDIR form. Everything else — rm -rf ./build and other relative paths (core.filesystem:rm-rf-general), absolute paths like /home/... and / (core.filesystem:rm-rf-root-home), and even /private/var/tmp — is blocked. Unresolved variables other than $TMPDIR are not treated as temp.

    dcg explain example (7-step pipeline):

    $ dcg explain "git reset --hard HEAD"
    BLOCKED by core.git:reset-hard
    
    Evaluation trace:
      1. Config allow overrides: no match
      2. Config block overrides: no match
      3. Heredoc detection: not applicable
      4. Quick reject: triggered (contains "reset")
      5. Context sanitization: no changes
      6. Normalization: git reset --hard HEAD
      7. Pack evaluation:
         - Safe patterns: no match
         - Destructive: MATCH "reset --hard"
    
    Suggestion: Use `git stash` to preserve changes
    

    Anti-Patterns

    ❌ "Command blocked. Run dcg allow-once ab12"  → Find alternative first!
    ❌ *Retrying silently or circumventing*         → Always acknowledge blocks
    ❌ Treating blocks as errors                    → They're checkpoints
    ❌ Asking user to allow-once without explaining → They need context
    

    Configuration

    # .dcg.toml — enable rule packs per-project
    [packs]
    enabled = ["database.postgresql", "kubernetes.kubectl", "cloud.aws"]
    
    [overrides]
    allow_patterns = ["rm -rf ./node_modules"]  # Project-specific safe
    

    Environment variables:

    • DCG_PACKS="containers.docker,kubernetes" — Enable packs
    • DCG_DISABLE="kubernetes.helm" — Disable specific packs
    • DCG_BYPASS=1 — Escape hatch (human-only)

    Key Facts

    • 49+ rule packs available (database, containers, k8s, cloud, etc.)
    • Sub-millisecond latency — won't slow your workflow
    • Fail-open on timeout — if DCG hangs, command runs (with warning)
    • Heredoc scanning — inline scripts (bash -c, python -c) are analyzed
    • Inline-fragment false positives — because scanning matches a destructive token anywhere in the command string, a pattern that appears only as data (a commit message body, a here-doc payload, a probe argument) can trip a block even though nothing destructive would run. Safe pattern: keep the payload off the command line — pass it via a file or stdin (e.g. git commit -F <file>), or run the intended tool directly instead of inlining the text. Never reconstruct a blocked command by splitting or escaping its tokens to slip past the guard — that defeats the safety layer.
    • Allow-once codes — 4 hex chars, 24h expiry, bound to exact command+directory

    The Incident That Started It All

    On December 17, 2025, an AI agent ran git checkout -- on files containing hours of uncommitted work. The files were recovered via git fsck --lost-found, but it proved: instructions don't prevent execution—mechanical enforcement does.


    Validation

    # Quick health check
    dcg doctor | head -20
    
    # Test if a command would be blocked
    dcg test "git reset --hard HEAD"
    
    # Should show: WOULD BE BLOCKED
    

    Output Specification

    • Path: the response and command output on stdout/stderr; write .dcg.toml or .dcg/allowlist.toml only when configuration was explicitly requested.
    • Filename: preserve DCG's project filenames exactly; ordinary block handling creates no persistent file.
    • Format: state the blocked command, matched rule, risk, reversible alternative, and the alternative's validation result; quote commands exactly.
    • Exit code: run bash skills/dcg/scripts/validate-dcg.sh and require zero for installation/configuration work; a blocked dcg test result is expected evidence, not permission to bypass.
    • Downstream handoff: proceed with the validated safe alternative, or hand the exact risk and allow-once choice to the human when no equivalent exists.

    Quality Checklist

    • The response identifies the exact block and rule without exposing or suggesting an unauthorized bypass path.
    • The chosen alternative is narrower, reversible where possible, and demonstrably preserves the user's requested outcome.
    • Validation distinguishes an expected destructive-command block from a broken DCG installation or configuration.

    Scripts

    ScriptUsage
    ./scripts/validate-dcg.shFull installation validation

    References

    Alternatives

    Compare before choosing

    Computed 10023,835

    alirezarezvani/claude-skills

    app-store-optimization

    App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist

    Computed 1004,944

    dotnet/skills

    migrate-vstest-to-mtp

    Migrates .NET test projects from VSTest to Microsoft.Testing.Platform (MTP). Use when user asks to "migrate to MTP", "switch from VSTest", "enable Microsoft.Testing.Platform", "use MTP runner", set OutputType=Exe only for test projects in Directory.Build.props, or mentions EnableMSTestRunner, EnableNUnitRunner, or UseMicrosoftTestingPlatformRunner. USE FOR: MTP behavioral differences vs VSTest (exit code 8, zero tests discovered, --ignore-exit-code, TESTINGPLATFORM_EXITCODE_IGNORE); centralizing

    Computed 9929,680

    HKUDS/Vibe-Trading

    strategy-generate

    Create, modify, and optimize quantitative trading strategies, then backtest and evaluate them.

    Computed 9832,671

    K-Dense-AI/scientific-agent-skills

    dask

    Distributed computing for larger-than-RAM pandas/NumPy workflows. Use when you need to scale existing pandas/NumPy code beyond memory or across clusters. Best for parallel file processing, distributed ML, integration with existing pandas code. For out-of-core analytics on single machine use vaex; for in-memory speed use polars.