agentleFS
murray17murray17/rovai-ai/skills/analyze-agent-codebase/SKILL.md

analyze-agent-codebase

Skill255 starsChanged 15 days agoMITView on GitHub

Use to analyze an agent system's architecture or mechanisms from repository evidence, including follow-up questions and analysis documents. Exclude ordinary code review, implementation, fixes, and conceptual questions that need no repository evidence.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    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:

    Follow repository instructions, documentation routes, and read-only constraints.

    line 12
  2. Distinctive:

    Default to read-only. Write analysis documents only when requested.

    line 13
  3. Distinctive:

    Use source, dependency wiring, configuration, schemas, migrations, and tests as evidence.

    line 14
  4. Distinctive:

    Use the smallest sufficient scope: a vertical slice for a mechanism question, an architecture report for several mechanisms, or a dossier …

    line 20
  5. Distinctive:

    Check existing analyses for scope, evidence, and revision.

    line 22
  6. Distinctive:

    Trace the runtime: Follow entry point -> configuration and dependency wiring -> agent/workflow construction -> execution loop -> model, …

    line 27
  7. Distinctive:

    Trace each question vertically: Use a real trigger: input -> authorization and validation -> state change -> effects -> result -> error and …

    line 28
  8. Distinctive:

    Record evidence as you read: Use the table below. A claim about subagents, for example, needs the creator, context transfer, isolation, and …

    line 29
  9. Distinctive:

    Before delivery, trace each major claim back to evidence, separate confirmed facts from inference and unknowns, cover all requested topics, …

    line 43

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

Analyze Agent Codebases

Reconstruct behavior from real entry points, call chains, state transitions, and persistence. Documentation explains intent; code and tests establish implementation. Respond in the user's language unless asked otherwise.

Boundaries

  • Follow repository instructions, documentation routes, and read-only constraints.
  • Default to read-only. Write analysis documents only when requested; do not modify implementation.
  • Use source, dependency wiring, configuration, schemas, migrations, and tests as evidence.
  • Label important claims confirmed, inferred, or unknown, localizing these labels in the report. Explain inferences and gaps.
  • Cite paths, symbols, and relevant entry-to-effect call chains. Names such as agent, memory, plan, or tool do not prove capabilities.

Choose the scope

Use the smallest sufficient scope: a vertical slice for a mechanism question, an architecture report for several mechanisms, or a dossier when multiple documents are requested. For a dossier, read analysis axes and structure.

Check existing analyses for scope, evidence, and revision; update the appropriate document instead of creating duplicate overviews.

Investigate

  1. Freeze scope. Record repository root, revision, requested questions, exclusions, output format, languages, build entry points, generated directories, and initial worktree state. Distinguish production code from tests, fixtures, examples, generated code, vendors, and historical documents.
  2. Trace the runtime. Follow entry point -> configuration and dependency wiring -> agent/workflow construction -> execution loop -> model, tool, collaboration, and persistence effects -> events, recovery, and presentation. Follow registries through loaders, macros, decorators, or configuration until the actual implementation is connected.
  3. Trace each question vertically. Use a real trigger: input -> authorization and validation -> state change -> effects -> result -> error and recovery. Select only mechanisms present in the code.
  4. Record evidence as you read. Use the table below. A claim about subagents, for example, needs the creator, context transfer, isolation, and result path.
  5. Explain ownership. Identify control and state authority, sync/async connections, context/session/Memory/history lifecycles, tool/Skill/prompt/permission boundaries, and failure, retry, cancellation, idempotency, and recovery limits. Record documentation drift.
  6. Cross-check. Reverse-reference key symbols to verify production wiring. Inspect tests, schemas, flags, platforms, adapters, and alternate entries. Tests prove only covered behavior; mark unexecuted checks not_run. Compare authoritative documentation unless the user prohibits reading it.
ClaimStatusSource and call chainTest or runtime evidenceLimits or counterevidence
Falsifiable statementconfirmed / inferred / unknownpath:line + symboltest / fixture / tracegap or conflicting path

Deliver

Lead with conclusions and the runtime picture. Include scope and revision, key flows, each requested mechanism and its evidence status, tradeoffs, constraints, documentation drift, valuable unknowns and verification steps, and source locations or dossier reading order. Quote only the minimum useful code.

For independent evidence domains, bounded collaboration may help when authorized and available. Specify the question, permitted scope, exclusions, evidence format, and stopping condition. The lead retains runtime topology, cross-domain flows, evidence spot checks, conflict resolution, and final conclusions. Avoid overlapping overviews; proceed alone without a suitable collaborator.

Before delivery, trace each major claim back to evidence, separate confirmed facts from inference and unknowns, cover all requested topics, and preserve one dossier entry point. Verify that changes are limited to authorized analysis artifacts.

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.