agentleFS
bkraad47bkraad47/fat_llama/.claude/skills/review-current-state/SKILL.md

review-current-state

Skill39 starsChanged 3 months agoBSD-3-ClauseView on GitHub

Walks the project's files, builds a file tree, reads through each source file, and produces a reusable "factblock" reference — per function/method/class: signature, description, parameters, returns, and a usage example. Use when asked to review, document, snapshot, or get an overview of the current state of the codebase.

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 1

    1. bkraad47/fat_llama_fftw★ 1499% same

    Wrote their own version · 0

    None found.

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository5 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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:

    Before doing anything else, read .claude/skills/rules/review-current-state.md (scope of review, exclusions, output path) and …

    line 11
  2. Very specific:

    Before Step 1, open this run's log file per .claude/rules/logging.md (name: review-current-state-<time>-<user>.log).

    line 15
  3. Distinctive:

    Enumerate files: Use Glob/Bash (git ls-files is the cleanest source of truth if in a git repo — it naturally skips ignored build/venv …

    line 23
  4. Very specific:

    Keep non-code files (README, setup.py, requirements.txt, etc.) in the tree for completeness, but only factblock actual source files (see …

    line 36

≈ “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

Produce a single up-to-date reference document for the project: a file tree plus a "factblock" for every function, method, and class, in a fixed, reusable template. This is a snapshot skill — it reads the current code, it does not modify it.

Before doing anything else, read .claude/skills/rules/review-current-state.md (scope of review, exclusions, output path) and .claude/rules/scope-and-safety.md (filesystem write scope and safety boundaries every skill/agent follows) — both may be updated over time without this file changing.

Logging

Before Step 1, open this run's log file per .claude/rules/logging.md (name: review-current-state-<time>-<user>.log). Append one entry per step below as it happens.

Scope

See .claude/skills/rules/review-current-state.md for the exact scope/exclusion rules and output path policy.

Steps

  1. Enumerate files. Use Glob/Bash (git ls-files is the cleanest source of truth if in a git repo — it naturally skips ignored build/venv directories) to list every tracked file in scope.
  2. Build the file tree. Render it as a fenced text block showing the directory hierarchy, e.g.:

    fat_llama/
    ├── __init__.py
    ├── audio_fattener/
    │   └── feed.py
    └── tests/
        └── test_feed.py

    Keep non-code files (README, setup.py, requirements.txt, etc.) in the tree for completeness, but only factblock actual source files (see next step).

  3. Read every source file (.py, or the project's primary language) in scope with the Read tool — do not skip files to save time; the point of this skill is completeness. For each file, identify every module-level function, class, and method (including __init__ when it does non-trivial setup).
  4. Write one factblock per function/method/class, using this exact template so the output stays reusable and parseable by later tooling or skills:

    ### `qualified.name(args) -> ReturnType`
    **File:** path/to/file.py:LINE
    **Kind:** function | method | class
    **Description:** One or two sentences on what it does and why it exists (pull from the docstring if present; otherwise infer from the body — say so if inferred).
    **Parameters:**
    - `arg` (`type`): meaning
    **Returns:** type and meaning (omit for classes/void functions).
    **Usage:**
    \`\`\`python
    # minimal, runnable-looking example
    \`\`\`

    For the usage example: prefer lifting real call sites from the codebase's own tests or example.py-style scripts when one exists for that function; only synthesize a minimal example when no real call site is found, and mark it # illustrative in that case.

  5. Assemble the document in this order: title, scope note, file tree, then factblocks grouped under a ## path/to/file.py heading per file, in file-tree order.
  6. Write the output to docs/CURRENT_STATE.md at the repo root (create the docs/ directory if it doesn't exist), overwriting any previous version — this file is meant to be regenerated on demand, not hand-edited. If the user specifies a different output path in args, use that instead.
  7. Report back with a short summary: number of files reviewed, number of factblocks written, and the output path — not the full document contents.

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.