agentleFS
aws-solutions-library-samplesaws-solutions-library-samples/accelerated-intelligent-document-processing-on-aws/.claude/skills/agent-capability-review/SKILL.md

agent-capability-review

Skill329 starsChanged 7 days agoMIT-0View on GitHub

Use for 'audit the agents', at each release, and when a new agent, tool set, MCP integration or model-output renderer lands: re-verify what every model in the solution can read, receive and send against scripts/tests/agent_capabilities.yaml.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill when the user asks to audit the agents, "check what the models can reach", "re-verify the capability manifest", or at each …

    line 8
  2. Distinctive:

    Read-only: No edits to the tree, no commits, no pushes, no comments on issues or PRs, no AWS calls.

    line 29
  3. Very specific:

    Run the gate first. A manifest that fails test_agent_capabilities.py has an unregistered or stale surface, and auditing it audits something …

    line 47
  4. Distinctive:

    Consolidate yourself: Read the per-entry files, then look across them for paths that cross entries (the orchestrator writing a question for …

    line 86
  5. Very specific:

    Use subagents only when the user or release-validation.md has authorized the Agent tool for the run.

    line 92

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

Agent Capability Review — re-verify what every model can read, receive and send

Use this skill when the user asks to audit the agents, "check what the models can reach", "re-verify the capability manifest", or at each release from release-validation.md (tier A). Also run it whenever a new agent, a new tool set, a new MCP integration (client or server) or a new place that renders model output lands, without waiting for the release.

It is the audit behind scripts/tests/agent_capabilities.yaml. That manifest declares, per surface, what the code around a model can read, what text reaches the model as input and where that text comes from, and where the model's output can go. scripts/tests/test_agent_capabilities.py keeps the manifest complete (every derived surface has an entry, every named control and test exists), but its docstring is explicit that it checks declarations, not truth: an entry that understates what a model can read passes it. This skill is what checks the truth, one surface at a time, against the code.

The method is the one that found the properties the per-file scanners could not (repo-quality-review.md, Class 3): start from the outcome, walk every component on the path, and write down which component, if any, decides.

Hard constraints

  • Read-only. No edits to the tree, no commits, no pushes, no comments on issues or PRs, no AWS calls. Subagents get the same constraint verbatim.
  • Output goes under scratch/ only. scratch/ is gitignored. The audit's findings describe how a model could be steered, and that text is not published: not in a commit, a PR body, an issue, a CHANGELOG line or a release record. What leaves scratch/ is the manifest edit that records the behaviour (a reads term, a control, a finding saying nothing limits a channel), written as behaviour.
  • Every claim is checked against the code. A docstring, a README, a row under security/threat-modeling/ or the manifest itself is a claim to check, not evidence.

Inputs

InputWhere it comes from
The surface listpython3 -c "import sys; sys.path.insert(0,'scripts/tests'); import test_agent_capabilities as c; [print(n) for n in sorted(c.manifest()['entries'])]"
Each entry's declarationscripts/tests/agent_capabilities.yaml, and its vocabulary for what each term means
The previous auditthe newest scratch/agent-capability-review/<date>/summary.md, if one exists

Run the gate first. A manifest that fails test_agent_capabilities.py has an unregistered or stale surface, and auditing it audits something other than the tree:

python3 -m pytest -q scripts/tests/test_agent_capabilities.py \
  scripts/tests/test_analytics_role_grants.py

How to run it: one subagent per surface

  1. Create scratch/agent-capability-review/<YYYY-MM-DD>/.
  2. Fan out one subagent per manifest entry, in parallel, read-only. Give each:
    • the entry's YAML block and the vocabulary;
    • the read-only and scratch/-only constraints above, verbatim;
    • the three questions below, and the instruction to answer each with file and line, from the code;
    • the instruction to label every claim verified (read in the code on the path that runs, or measured), inferred (follows from code read, but the path that runs was not traced end to end) or unverified (believed, not checked);
    • the instruction to write its result to scratch/agent-capability-review/<date>/<entry>.md and return only a summary.
  3. The three questions, per surface:
    • Reads. Which tools does the model hold, which AWS or HTTP calls do they make, with which role's credentials (the entry's roles), and what can those credentials reach beyond what the tool uses? Which of that is private?
    • Inputs. What text reaches the model: the user's message, conversation history, document text or images, extracted values, reporting rows, logs, configuration a discovery run wrote, remote tool results? Trace each back to where it was first written.
    • Outputs. Where can the output go: rendered in a page (and what that page may load), into the Code Interpreter, to an MCP client or server, into a saved configuration a later model reads, into a PR or MR comment? For each external channel, which code limits it, and does the cited test actually assert that limit (revert the control in a scratch copy and see the test go red, if the test is cheap to run)?
  4. Each subagent also checks the entry's control and test lines: that the control is on the path that runs (not only defined), and that the test exercises it. A control that exists but is never consulted is a repo-quality-review.md Class 1 finding.
  5. Consolidate yourself. Read the per-entry files, then look across them for paths that cross entries (the orchestrator writing a question for an agent with an external channel; a discovery run writing configuration a later agent reads; an MCP tool returning what another model renders). Those are the findings no single subagent sees.

Use subagents only when the user or release-validation.md has authorized the Agent tool for the run; otherwise do the entries one at a time yourself and say so.

The diff against the manifest

The deliverable is a diff, not a narrative. For each entry, write one of:

ResultMeaningWhat to do
matchevery term, control and test in the entry was verifiednothing
understatedthe code reads, receives or sends something the entry does not declarepropose the manifest edit (add the term; add a finding if nothing limits a new external channel)
overstatedthe entry declares something the code no longer doespropose removing it
control-not-on-patha named control exists but the path that runs does not call itpropose a finding, and report it as Class 1
test-does-not-assertthe cited test passes with the control revertedpropose a test that goes red, or drop the citation
unverifiedthe subagent could not establish itlist what would establish it

Also diff the role declarations: for each grant under the manifest's roles, is the uses code path real, and is an unused grant really unused? Record which of those answers was measured and which inferred, as the manifest itself does.

Output contract

Write scratch/agent-capability-review/<date>/summary.md:

# Agent capability review — <commit> — <date>

## Gate
test_agent_capabilities.py / test_analytics_role_grants.py: <passed/failed counts>
Derived surfaces: <n>   Entries: <n>   Open findings in the manifest: <n>

## Diff against the manifest
| Entry | Result | Proposed manifest edit | Evidence label |

## Findings that cross entries
<each with the path through the components, and which component decides>

## Since the previous review
<findings closed, findings new, findings unchanged across two reviews>

## Not assessed
| Entry | Why |

Then report to the user: how it was run (how many subagents, or single-agent), the counts per result, the proposed manifest edits, and any finding that crosses entries, each labelled verified, inferred or unverified. Proposed manifest edits are made in a normal change afterwards, with PENDING_CONTROL_FINDINGS in test_agent_capabilities.py updated to match; this skill does not make them.

Limits

  • It reads the code; it does not drive a model. Whether a model actually follows an instruction carried in a document is a live question for a stack test, and a match here does not answer it.
  • Third-party code (the SEED generator, the DeepWiki server, a customer's External MCP server) is read only as far as this repository describes it. Say so in the entry's result rather than marking it verified.
  • The derivation's reach is stated in test_agent_capabilities.py's docstring. A model call with no tools whose output is rendered is a declared surface, and a new one of those is found only by reading, so ask each subagent to name any it passes on the way.

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.