agentleFS
ForgeyClapForgeyClap/Forge-Core/.claude/skills/forge-doctor/SKILL.md

forge-doctor

Skill2 starsChanged 7 days agoMITView on GitHub

User-invoked only: /forge-doctor. Runs Forge's multi-minute self-test (every suite) plus the secret-leak scan; kept manual because one run costs minutes of CPU.

  • Reads credentials

2 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 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.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before a sync/handoff, or after a batch of tooling changes.

    line 13

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

forge-doctor — self-test + leak scan

One command that proves the Forge install in this project actually works and leaks nothing.

When to use

  • The owner asks to "test everything", "check it all executes", or "find leaks".
  • Before a sync/handoff, or after a batch of tooling changes.
  • As the Security Boss's evidence step (the leak scan is a real security check).

How to run

node .claude/forge-bin/forge-doctor.cjs                 # print a green/red summary, exit 0/1
node .claude/forge-bin/forge-doctor.cjs --run <run_id>  # also write <run>/doctor.json + log doctor_run
node .claude/forge-bin/forge-doctor.cjs --json          # full machine-readable report

What it checks (all real — no fabrication)

  1. node --check on every .cjs/.js under forge-bin/ + forge-dashboard/.
  2. tests — runs every forge-bin/*.test.cjs and tallies passed/failed.
  3. honesty gate — feeds log-event.cjs a known type (expect accept) and an unknown type (expect hard-reject / exit 2), then deletes the throwaway run. Proves strict events still reject junk.
  4. dashboard SPA — the render files are all present.
  5. leak scan — scans git-tracked files with the hardened SECRET_PATTERNS; reports only {file, pattern}, never the matched secret. .env.example + binaries are skipped.

Writes <run>/doctor.json (read by the dashboard Doctor panel + the Project Registry's test_status). Exit code 0 = all green, 1 = a check failed — safe to gate a hook/CI on it.

Honesty

Real command output only. A failing check is reported as failing; the leak scan never prints a secret, only the file + which pattern matched. test_status in the registry mirrors this doctor.json.

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.