agentleFS
AdityaRonAdityaRon/claude-code-skills/skills/skill-forge/SKILL.md

skill-forge

Skill0 starsChanged 15 days agoMITView on GitHub

Use when starting in a new job's environment, or when asked to find the operational questions that keep coming up, inventory the systems that answer them, turn one into a skill, or lint a skill. Drafts one skill per recurring question from an archetype with the read-only, provenance and fault-injection guards built in. Not for a library of per-system skills (one per database or tool), and not for answering the question itself; the drafted skill does that.

64 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use crypto-intelligence, heart and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Arcanea-LabsSkill

    crypto-intelligence

    Vertical-tier skill for Crypto Intelligence Domain Sub-Stack. Auto-activates inside verticals/crypto-intelligence/ or on /crypto-* commands. Enforces R5 non-advisory clause, voice (architect), refusal patterns, composition with Wealth IS umbrella per Board 2026-05-17. Loads verticals/crypto-intelligence/SKILL.md wrapper for full doctrine.

    Also in 3 projects that use this

  • Arcanea-LabsSkill

    heart

    Ops health monitor for the machine substrate. Checks Memory Bus, brain_watchdog, Voice Operator, dashboard, audit-log freshness, and scheduled tasks. Cross-cutting skill that any repo can invoke when daemons feel off or before starting a heavy work session.

    Also in 3 projects that use this

  • +10 more from Arcanea-Labs

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 55 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Maintain: When a session hits a new trap with a drafted skill, the fix goes into its engine as a guard with a test and a mutation, plus one …

    line 61
  2. Very specific:

    Every output opens with # lines: target, window (UTC, with bounds), command, rows, partial.

    line 110

“Common” is measured: kept by at least 6 in 10 of the 55 edited versions of this file we could read. “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

skill-forge: one skill per recurring question

A skill earns its keep when it answers ONE recurring question end to end ("why is this job slow", "which tenant drove the volume", "is this flag on for X"), crossing whatever systems that takes. Never draft one skill per system.

In the commands below, PY is the interpreter that bash ~/.claude/skills/skill-forge/bin/python.sh prints and F is ~/.claude/skills/skill-forge/bin. Write both out in full in every command (/usr/bin/python3.12 ~/.claude/skills/skill-forge/bin/discover.py): shell variables do not survive between calls. The config is ~/.config/skill-forge/config.toml (start from ~/.claude/skills/skill-forge/config.example.toml); state, inventory.md included, is in ~/.local/state/skill-forge/.

The protocol, one skill per run

  1. Discover, read-only. PY F/discover.py writes inventory.md: access (contexts, profiles, SSO and secret CLIs, each with its re-login command and what an expired session looks like), services (MCP and API names), observability, data stores, control planes, the skills already here with an archetype guess, and repos by origin, each line with the command that found it. Names only. A bastion's databases and apps are listed only when its session is already live. --probe-local reads local containers. --probe-context CTX lists one cluster's cronjobs and services; ask the user before --yes-prod, and never port-forward or connect to production without that yes.
  2. Find demand. PY F/demand.py --top 10 ranks repeated command sequences, repeated questions and repeated failures from transcripts and shell history. Evidence is counts and sessions by date, never content. Re-login loops rank apart as access friction (fix the session, not a skill), and covered by <skill> means an installed skill already runs there.
  3. Choose. Show the ranked list; the user picks one. One skill per run.
  4. Draft. PY F/forge.py list, then PY F/forge.py draft ARCHETYPE NAME --question "..." renders into ~/.local/state/skill-forge/drafts/NAME. Edit for this job: the trigger phrasings people actually type, what it does not cover and the sibling that does, and the engine's queries. Gotchas starts empty.
  5. Verify on the real target, with the user present. PY F/forge.py verify DIR runs the skill's tests, each listed mutation (every one must go red) and skill_lint, all offline. Then run the engine for a real instance of the question, and inject each required guard's fault on the real system: a misspelled metric for ABSENT, a tiny cap for PARTIAL, an expired login for AUTH, a wrong context for the target check. A skill that only passed against fakes is not done. When a skill already answers the question, PY F/forge.py compare DIR EXISTING --run 'ARGS' lints both side by side, lists the guards and subcommands each has, and runs both engines on the same question: the same numbers are the real pass. A required guard the existing skill lacks is that skill's finding; one only it has is the template's. compare --archetype ARCH EXISTING back-tests a template against an existing skill without keeping the draft.
  6. Install. PY F/forge.py install DIR prints the copy; --apply copies to ~/.claude/skills/NAME (or --dest, a work repo the user names) and records the question in inventory.md. It refuses the public harness clone and any skill the lint fails.
  7. Maintain. When a session hits a new trap with a drafted skill, the fix goes into its engine as a guard with a test and a mutation, plus one Gotchas line. A memory alone is not a fix.

Archetypes

archetypeanswers throughrequired guards
sql-readonlyone read-only statement, layered checks, --self-testabsent, partial, expired auth, wrong target
metrics-querya Prometheus-compatible API; ab and volume-step analysesabsent, partial, expired auth, window, wrong target
logs-fetcha log store, with the stream selector computed, not guessedabsent, partial, expired auth, window, wrong target
cluster-probea throwaway pod with a workload identity, always deletedincomplete capture, leftover probe, expired auth, wrong target
job-runa Job from a CronJob's own template, per-cluster resultsabsent, partial, expired auth, wrong target, incomplete capture
api-readonlyany REST API, GET only, paginated with a capabsent, partial, expired auth, wrong target
runbookan alert payload to deep links and the next skillabsent, wrong target, window
local-reproDocker on production's exact image tag, synthetic seed datawrong target, absent, incomplete capture

metrics-query, logs-fetch and api-readonly reach their API through access.py: <ENV>_ACCESS is direct (the URL variable), port-forward SVC[:PORT] in NS, or pod SVC[:PORT] in NS (it creates a pod, so it needs --apply; with --apply, a refused port-forward falls back to the pod), with <ENV>_CONTEXT named. metrics-query and logs-fetch probe the path prefix; api-readonly does when <ENV>_API_PROBE names a path. The header names the route.

The conventions skill_lint checks

PY F/skill_lint.py SKILL_DIR lints any skill, drafted or hand-written, with its scripts in bin/ or at the skill root (*.py, *.sh) and its tests in tests/ or at the root. Fix a finding, or waive it in the skill's lint-waivers.toml with a reason. A waiver without a reason fails, and so does one for a check that now passes. WARN means every engine check was N/A: the lint saw nothing to judge, and its note says what SKILL.md runs that it did not read. That is not a pass.

#conventionthe check
C1read-only by default; a write needs --apply, and without it prints what would changea write verb needs --apply and a dry-run test
C2SQL read-only in layers: role, READ ONLY, allowlist, nested-write scan--self-test exists and passes
C3no stored credentials; borrowed identity; secrets by env or stdinno secret-named flag, argv secret or secret shape
C4a write and its audit row in one transactiona test says so
C5guards against confident wrong answerseach required guard has a test_guard_<id>
C6a provenance header opens every outputthe engine calls header() (shell: prints # target:); a golden test
C7every print goes through the maskerno print in an engine (shell: pipes through mask.py --filter); a planted-pattern test
C8thin SKILL.md, thick engine, literal trigger phrasingsUse when in the description; line budget; --help
C9a test file per script; mutations listed; no real clients in teststhe files, the lists, a quoting test where shell or SQL is built
C10a self-contained folderanything outside goes through a declared env var; every script of its own SKILL.md runs is one the lint read

Reading the output

Every output opens with # lines: target, window (UTC, with bounds), command, rows, partial. Exit 0 is an answer (or EMPTY, which is a real zero), 2 ABSENT (the instrument does not exist, so not zero), 3 PARTIAL or VOID, 4 AUTH (an expired login, never "no data"), 5 REFUSED or BLOCKED.

Gotchas

  • macOS python3 is 3.9 and has no TOML reader; use the interpreter python.sh prints.
  • forge.py verify proves the draft against fakes only. Step 5's live fault injection is what proves the guards on this job's systems.

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.