agentleFS
GeoloeG-IsTGeoloeG-IsT/agents-reverse-engineer/.claude/skills/are-discover/SKILL.md

are-discover

Skill21 starsChanged 10 months agoMITView on GitHub

Discover files in codebase

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 3 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

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

    Run ONLY this exact command: npx agents-reverse-engineer@$VERSION discover $ARGUMENTS

    line 12
  2. Distinctive:

    DO NOT add ANY flags the user did not explicitly type

    line 13
  3. Very specific:

    If user typed nothing after /are-discover, run with ZERO flags

    line 14
  4. Very specific:

    Read version: Read .claude/ARE-VERSION → store as $VERSION.

    line 18
  5. Very specific:

    Wait ~10 seconds (use sleep 10 in Bash), then use Glob to find the latest .agents-reverse-engineer/progress-*.log file, and Read it (use …

    line 26
  6. Very specific:

    Check whether the background task has completed using TaskOutput with block: false

    line 28
  7. Distinctive:

    Important: Keep polling even if no progress log exists yet (the command takes a few seconds to start writing)

    line 30
  8. Very specific:

    Read .agents-reverse-engineer/GENERATION-PLAN.md and .agents-reverse-engineer/config.yaml

    line 35
  9. Very specific:

    Ask the user which categories to exclude using AskUserQuestion with multiSelect: true

    line 48
  10. Distinctive:

    After editing, briefly confirm what was added </execution>

    line 50

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

List files that would be analyzed for documentation.

<execution> ## STRICT RULES - VIOLATION IS FORBIDDEN
  1. Run ONLY this exact command: npx agents-reverse-engineer@$VERSION discover $ARGUMENTS
  2. DO NOT add ANY flags the user did not explicitly type
  3. If user typed nothing after /are-discover, run with ZERO flags

Steps

  1. Read version: Read .claude/ARE-VERSION → store as $VERSION. Show the user: agents-reverse-engineer v$VERSION
  2. Run the discover command in the background using run_in_background: true:
    npx agents-reverse-engineer@$VERSION discover $ARGUMENTS
  3. Monitor progress by polling the latest progress log:
    • Wait ~10 seconds (use sleep 10 in Bash), then use Glob to find the latest .agents-reverse-engineer/progress-*.log file, and Read it (use the offset parameter to read only the last ~20 lines for long files)
    • Show the user a brief progress update
    • Check whether the background task has completed using TaskOutput with block: false
    • Repeat until the background task finishes
    • Important: Keep polling even if no progress log exists yet (the command takes a few seconds to start writing)
  4. On completion, read the full background task output and report number of files found.
  5. Review plan and suggest exclusions:
    • Read .agents-reverse-engineer/GENERATION-PLAN.md and .agents-reverse-engineer/config.yaml
    • Scan the Phase 1 file list and classify files into these categories:
      • Test/spec files: matches like *.test.*, *.spec.*, __tests__/**, __mocks__/**, *.stories.*, *.story.*
      • CI/CD configs: .github/workflows/*.yml, .gitlab-ci.yml, Jenkinsfile, .circleci/**, .travis.yml
      • Tool configs: .eslintrc*, .prettierrc*, jest.config.*, .editorconfig, babel.config.*, webpack.config.*, vite.config.*, rollup.config.*, tsconfig*.json, .lintstagedrc*, .huskyrc*, .stylelintrc*, commitlint.config.*
      • Migration files: paths containing migrations/ or matching *.migration.*
      • Fixture/snapshot files: __snapshots__/**, *.fixture.*, fixtures/**, test-data/**, testdata/**
      • Type declarations: *.d.ts (not source code, auto-generated or ambient)
      • Docker/infra: Dockerfile*, docker-compose*, *.Dockerfile, k8s/**, terraform/**, helm/**
    • For each category, count how many files from the plan match and list up to 3 example filenames
    • Skip categories with zero matches — only present categories that have files in the plan
    • Also skip patterns that are already in the current config.yaml exclude list
    • Present the findings in a summary table showing category, file count, example files, and proposed glob patterns
    • Ask the user which categories to exclude using AskUserQuestion with multiSelect: true
    • For accepted categories, use the Edit tool to append the corresponding glob patterns to the exclude.patterns array in .agents-reverse-engineer/config.yaml
    • After editing, briefly confirm what was added</execution>

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.