Index of every page on this site: llms.txt
All skills
fiveonecode avatar

/mechanism-audit

@8f30014
Run it yourself

Audit whether a spec, task, harness, agent workflow, safety boundary, or operational contract is actually enforced by concrete mechanisms. Use when reviewing or changing AGENTS.md, CLAUDE.md, .agents/manifests, .agents/verify, .agents/evals, spec/agents, build/test specs, task plans, risk/execution contracts, source-of-truth boundaries, session closeout rules, verifier classifications, or any explicit request to check whether a promised guarantee is real.

Use this Skill: https://skilld.dev/gh/fiveonecode/agent-skills/mechanism-audit

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈119 tokens for metadata: the name and description. ≈917 when used: this file. ≈64 more on demand in 1 file.

Description uses 6.0% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈477 characters, or 6.0%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Mechanism Audit

Purpose

Use this skill to test whether a stated promise is enforced by code, config, verification, or operational process. Keep the audit short and evidence-led. Do not run a broad multi-expert swarm. This skill is safe to use from high or xhigh reasoning contexts because it is a bounded checklist, not a creativity prompt.

Inputs

Gather only the evidence needed to test the promise:

  • the promise or contract being audited
  • the files that define the rule
  • the code, config, or process that enforces it
  • the verification profile, test, artifact, or manual proof that checks it
  • the task/session context when the harness requires a durable audit artifact

If the promise is unclear, rewrite it as one testable sentence before auditing.

Audit Workflow

  1. Name the promise. State what the doc, task, or harness appears to guarantee. Use one sentence.
  2. Map the enforcement chain. List the concrete files, commands, checks, code paths, review gates, or artifacts that make the promise true.
  3. Find bypass paths. Look for ways the promise can be skipped, narrowed, stale, manually overridden, or satisfied by prose instead of proof.
  4. Check verification. Decide whether the current tests, verifier profiles, required evidence, or closeout gates would catch the bypass paths.
  5. Give a verdict. Use exactly one of:
    • holds
    • partially holds
    • does not hold
    • not enough evidence
  6. List fixes. Use:
    • P0 for fixes required before the guarantee should stand
    • P1 for robustness improvements that strengthen an already plausible guarantee

Output Shape

Use this format:

Promise:
- <one testable sentence>

Enforcement chain:
- <file/code/config/process evidence>

Bypass paths:
- <specific bypass or "none found">

Verification coverage:
- <what is checked and what is not checked>

Verdict:
- <holds | partially holds | does not hold | not enough evidence>

Fixes:
- P0: <required fix, or "none">
- P1: <strengthening fix, or "none">

Harness Artifact

When a repo harness requires mechanism-audit evidence for the current session, write the same output to:

<session-dir>/mechanism-audit.md

Do not create a durable artifact for small ad hoc answers unless the user or harness asks for it.

Harness Integration

When a harness supports path-scoped audit routing, declare the requirement in the manifest that owns the contract-bearing paths. Keep selection based on paths or task metadata, not prompt keywords:

mechanism_audits:
  - id: repo-contract-enforcement
    description: Audit whether this repository contract is mechanically enforced.
    applies_to:
      - AGENTS.md
      - .agents/manifests/**
      - .agents/verify/**
    artifact: mechanism-audit.md

The harness owns artifact enforcement, repair routing, and any additional structured result contract. This skill owns the human-readable audit workflow and fixed verdict vocabulary; do not duplicate a controller-specific result schema here.

Quality Bar

  • Prefer exact file references and command names over general claims.
  • Separate policy from enforcement. A sentence in AGENTS.md is policy; it is not enforcement unless another gate checks it.
  • Treat stale state, narrowed path sets, manual override paths, and missing artifact checks as potential bypasses.
  • Do not call a promise enforced just because a human is expected to notice it.
  • Do not use text keyword matching as evidence that an audit is required. Audit requirements should come from manifests, task metadata, changed contract fields, or explicit user direction.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts3mo3 checks · Risk SAFE
  • Gen Agent Trust Hub3mo

    The skill is a security auditing utility designed to verify that stated promises and safety boundaries are enforced by concrete mechanisms. No malicious behaviors, obfuscated code, or unauthorized data exfiltration patterns were detected. It possesses a minor inherent risk of indirect prompt injection due to its core function of processing external specifications and task plans.

  • Socket3mo

    No alerts

  • Snyk3mo

    Risk: LOW · No issues

Signed by skilld at 8f30014. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 4 months ago

README badge

README badge for fiveonecode/agent-skills/mechanism-audit