agentleFS
yusixianyusixian/agent-skills/skills/audit-agent-workflows/SKILL.md

audit-agent-workflows

Skill2 starsChanged 3 months agoMITView on GitHub

Audit agent Skills, instruction files, and development workflows for routing mistakes, skipped requirements, weak evidence, duplication, over-constraint, tool coupling, and avoidable work. Use when the user asks to improve their Skills, AGENTS or CLAUDE instructions, review workflow, or agent operating system.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Combined audit: use runtime failures to select a small static surface, then inspect why that surface allowed or caused them.

    line 14
  2. Distinctive:

    Do not require a proprietary trace format or install a new evaluator merely to begin.

    line 16
  3. Distinctive:

    Do not expand into every installed Skill when the user names a workflow or failure.

    line 36
  4. Distinctive:

    Do not blame the agent when a system-level change would prevent recurrence.

    line 94

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Audit Agent Workflows

Improve the system that guides agents, using observed work rather than prompt aesthetics. Prefer a smaller, testable workflow over adding more rules.

Choose The Evidence Mode

  • Static audit: inspect Skill files, instruction files, scripts, templates, catalogs, links, and documentation. Report design risks and discovery problems, but do not claim how agents behave in practice.
  • Runtime retrospective: inspect available transcripts, tool calls, command results, diffs, artifacts, review comments, failures, or user corrections. Compare actual behavior with the written contract.
  • Combined audit: use runtime failures to select a small static surface, then inspect why that surface allowed or caused them.

Do not require a proprietary trace format or install a new evaluator merely to begin. If no runtime evidence is available, label behavioral conclusions as hypotheses and propose a minimal scenario that would test them.

Evidence Rules

Rank evidence in this order:

  1. resulting files, diffs, external state, and successful or failed tool results;
  2. timestamped trace events and command output;
  3. assistant or workflow claims;
  4. inference from static wording alone.

A claim such as “tests passed” is not execution evidence without the corresponding result. Preserve source locations or trace spans so another person can reproduce the conclusion. Use UNKNOWN when the evidence cannot decide the requirement.

Build The Workflow Map

  1. Identify the in-scope entrypoints: Skill descriptions, slash commands, instruction files, scripts, hooks, templates, and dependent Skills or tools.
  2. Resolve precedence and discovery: which instruction wins, which agents can find it, and when the description should or should not route to it.
  3. Extract observable requirements: required steps, prohibited actions, artifacts, validations, stop conditions, and user-confirmation gates.
  4. Separate mandatory contracts from advice, examples, and optional branches.

Do not expand into every installed Skill when the user names a workflow or failure. Sample adjacent Skills only to prove overlap, conflict, or a routing gap.

Audit Lenses

Routing and discovery

  • Trigger is too broad, too narrow, ambiguous, or overlaps another Skill.
  • Important context is hidden deep in the body instead of the description.
  • Directory layout, symlink, metadata, or naming prevents an intended agent from discovering the Skill.
  • A router loads multiple large Skills for work that needs one narrow contract.

Instruction quality

  • Duplicated rules drift across files instead of having one owner.
  • Generic advice, repeated examples, and historical sediment consume context without changing decisions.
  • Hardcoded repositories, branch names, frameworks, models, paths, or commands make a general Skill brittle.
  • Rules conflict, cannot be observed, or over-constrain safe agent judgment.
  • A new rule was added without removing or replacing the failed guidance.

Execution coverage

  • A required step, confirmation, inspection, validation, or artifact was skipped.
  • The workflow declared completion before its stated post-condition was proven.
  • A forbidden mutation occurred, or a read-only workflow silently expanded scope.
  • Recovery behavior loops, repeats discovery, or loses the original task boundary.

Verification integrity

  • Claims contradict tool output, the diff, artifacts, or external state.
  • Checks validate a different SHA, environment, browser, device, or deployment than the reported result.
  • Static analysis is presented as runtime proof, or local proof as remote or production proof.
  • Success criteria are vague enough that any outcome can be called complete.

Efficiency and portability

  • Repeated searches, unnecessary file loading, avoidable retries, or serial work dominate the task.
  • A direct repository command, index, script, or prerequisite is undocumented or not used.
  • The Skill assumes tools unavailable to another target agent without a fallback.
  • Setup and environment failures are misdiagnosed as Skill or product-code failures.

Maintenance and lifecycle

  • Two Skills own the same decision, or a specialist is copied into a generalist.
  • Obsolete Skills, commands, examples, dependencies, or compatibility paths remain discoverable.
  • Upstream provenance, local customization, ownership, or update policy is unclear.
  • The workflow has no small regression scenario to catch future drift.

Diagnose The Cause

Classify each failure before recommending a change:

  • Routing: the right workflow was not selected or too much was selected.
  • Instruction: the contract was missing, ambiguous, conflicting, or poorly placed.
  • Command or tool: the prescribed operation was incorrect or unverifiable.
  • Environment: permissions, credentials, dependencies, network, or local state blocked correct execution.
  • Product code: the workflow was adequate; the implementation itself failed.
  • Model or tool limitation: the requirement exceeds a dependable capability and needs a deterministic guard or human gate.

Do not blame the agent when a system-level change would prevent recurrence. Do not rewrite the Skill when the evidence points only to an environment or product-code problem.

Record Requirement Coverage

For material requirements, use:

Requirement and sourceRuntime or static evidenceVerdictCauseSmallest improvement

Verdicts:

  • PASS: direct evidence satisfies the requirement.
  • PARTIAL: some required behavior or evidence is missing.
  • FAIL: direct evidence contradicts or omits the requirement.
  • UNKNOWN: available evidence cannot decide.

Recommend And Test Improvements

Rank proposals by recurrence risk, impact, evidence confidence, and implementation cost. For each proposal include:

  • the observed failure or waste;
  • the exact owning Skill, instruction, script, or link;
  • whether to delete, merge, clarify, move, automate, or add a guard;
  • the tradeoff and the behavior that must remain;
  • one minimal task or trace that would prove the improvement.

Prefer, in order: delete stale guidance; merge duplicate ownership; move a rule to the right scope; replace prose with a deterministic check; add narrowly scoped wording last. A single anecdote is enough for a safety or correctness guard, but recurring preference issues should have multiple examples before becoming global policy.

Change Boundary

Survey and report by default. Modify Skills, instructions, scripts, or links only when the user asks for an upgrade or fix. Preserve unrelated changes, follow the target repository's authoring rules, and validate syntax, discovery paths, links, and the smallest representative workflow after editing. Do not commit or publish unless separately requested.

Report

Lead with the highest-confidence workflow failures or waste. Distinguish observed facts, static hypotheses, and recommendations. Include the audited scope, evidence sources, requirement coverage, proposed edits, regression scenarios, and remaining unknowns. If the workflow is already proportionate, recommend no change instead of inventing more policy.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.