agentleFS
JQ-WCodingJQ-WCoding/devkit/skills/suggest-skills/SKILL.md

suggest-skills

Skill1 starsChanged 11 days agoMITView on GitHub

Propose repo-specific rule rows, skills and agents from code pinpoints, fix commits, repeated tasks and repeated corrections; build only the chosen ones. Use for "suggest skills", "find rules to add", "make this a skill". Not for fixing an existing skill (devkit:improve-skill).

4 other projects use 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. 0 are common, 5 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    If docs/rules/ is missing, suggest running devkit:setup first.

    line 24
  2. Distinctive:

    If the fingerprint's "Top extensions" lists non-source extensions (report layouts, schemas, templates), name that side feature separately …

    line 39
  3. Distinctive:

    If a rule row needs a layer doc that does not exist yet, ask separately with a single choice: "new doc / section of an existing doc".

    line 58
  4. Distinctive:

    If you found places where existing rules and code disagree, report only the difference, taking code as the reference.

    line 59
  5. Very specific:

    Rule rows: add to the matching docs/rules/<layer>.md in the existing style.

    line 63
  6. Very specific:

    Agents: write the blueprint skeleton to .claude/agents/<name>.md.

    line 65
  7. Distinctive:

    If you built a skill or agent, add one line each (what it is and when to use it) to the "Project skills and agents" section of CLAUDE.md.

    line 67
  8. Distinctive:

    Only append to existing files with Edit and preserve line endings.

    line 68
  9. Very specific:

    Run check_skill.py only when you built a skill.

    line 77

“Common” is measured: kept by at least 6 in 10 of the 3 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

Suggest rules, skills and agents

No suggestion without evidence. Evidence is the target repo's file:line, commits and fingerprint numbers, tasks repeated in this conversation, and corrections the user gave. Do not carry over rules seen in other projects.

ReferenceWhen
catalog.mdWhat to suggest under which conditions
pinpoint-checklist.mdFinding rule row candidates — also pass its path to subagents
skill-authoring.mdWhen building a chosen skill or agent
Blueprints: project-flow · db-analyst · knowledge-reader · spec-analyst · visual-docs · tool-skillRead only the ones you decide to build

Argument: rules for rule rows only, skills for skills and agents only, none for both.

Baseline (--since): argument → last commit date of docs/rules/ (git log -1 --format=%ad --date=short -- docs/rules) → full history (also when docs/rules/ was just created and has no commit). If fewer than 20 commits follow the baseline, widen to the previous rules commit date, and if still too few, to full history. The baseline only narrows new fix candidates; "does the same mistake recur" is always counted on full history.

0. Check the target

  • If docs/rules/ is missing, suggest running devkit:setup first. If the user says go ahead anyway, only make suggestions and leave rule rows in the report.
  • Read existing project skills and agents (.claude/skills/ and .claude/agents/ listings with each description), CLAUDE.md (its "Project skills and agents" section, or the whole file if absent), and user-level and other plugins' skill lists to avoid overlapping suggestions. Skills with disable-model-invocation do not show in the list, so look at the folders directly.

1. Gather evidence

Fingerprint (script to run):

python3 -I "${CLAUDE_PLUGIN_ROOT}/skills/setup/scripts/scan_repo.py" <repo root> [--since <baseline>] --out <scratchpad>/fingerprint.json > <scratchpad>/fingerprint.md

Rule row candidates (rules or both):

  • Launch one devkit:code-reader per layer (subproject, DB, infra) concurrently in one message (effort: "low"). Inside a subproject, also launch separate ones for a sub-app where fix hotspots cluster or a path the rules docs call "separate". In a small repo (fewer than 200 source files and at most 2 layers) the main agent does it directly.
  • Put in the brief: the assigned path; the fingerprint lines for that path (internal modules, calls, path shapes, warning comments, fix commits — only those for the path); the path of the matching docs/rules/<layer>.md with "read it yourself and drop rows that already exist"; the absolute path of pinpoint-checklist.md (${CLAUDE_PLUGIN_ROOT}/skills/suggest-skills/references/pinpoint-checklist.md) with "follow its adoption criteria, per-area questions and candidate format; under ## Questions by area read only its opening line, the **Git and process** block and the block for your layer — **Screens …**, **Server …**, **DB** or **Infra and environment** (both when the layer spans two, e.g. Server and DB)"; "return only the candidate table — confirmed rows first, up to 15 rows"; "read only the fix commits for your path".
  • If the fingerprint's "Top extensions" lists non-source extensions (report layouts, schemas, templates), name that side feature separately in the brief. Missing it drops that whole section.
  • Even S1 and S3 rows a subagent marked confirmed are checked by the main agent against the evidence file or git show before writing them into docs (subagents sometimes misread a commit's nature).
  • Fix commits spanning several layers are read by the main agent with git show to judge "could the same mistake happen again in another file". Fixes in archive or old template folders (archive, old, deprecated etc.) are not used as evidence.

Skill and agent candidates (skills or both): match the conditions in catalog.md against the fingerprint and history. Reading a blueprint to judge fit is fine. Find repeated tasks in groups of same-type commits (same scope, same verb, same folder pattern), traces of repeating the same steps in this conversation, and repeated tasks the user mentioned.

Corrections: if the user made the same correction twice or more in this conversation, raise it as a rule row or skill content candidate with a Level (pinpoint-checklist). If a rule row for it already exists without an enforced by note, the candidate goes one level above doc; a reworded row is not a fix. Corrections aimed at an existing skill inside this project go to devkit:improve-skill instead.

Save the raw tables returned by subagents to <scratchpad>/candidates.md, and the main agent's merged verdicts to <scratchpad>/suggestions.md (adopted candidates, needs confirmation, discarded with reasons).

🛑 Proposal table

Show one table and let the user choose (AskUserQuestion multiSelect, up to 4 per question).

KindName / targetWhy (one-phrase evidence)What gets builtRecommended
  • At most 3 recommended; the rest go on one line each as "next candidates".
  • For rule rows, show the count per target doc and 2–3 representative rows (the full set is in suggestions.md). For a row above doc, "What gets built" is the row plus an analyze handoff for its enforcer.
  • If a rule row needs a layer doc that does not exist yet, ask separately with a single choice: "new doc / section of an existing doc".
  • If you found places where existing rules and code disagree, report only the difference, taking code as the reference. Do not silently change rules.

2. Build (chosen items only)

  • Rule rows: add to the matching docs/rules/<layer>.md in the existing style. If the layer doc is missing, create it from the setup layer doc skeleton and add one line each to the docs/rules/README.md index and the CLAUDE.md table.
  • Enforcers (structure, type, check, test rows): write no code, lint rules or tests here. Add the handoff to suggestions.md (rule, level, past-mistake commit, requirement "fails on <commit>^, passes on HEAD") and tell the user to run devkit:analyze with it. Once an enforcer exists, end the row's rule cell with (enforced by <path>); a row without it is unenforced.
  • Agents: write the blueprint skeleton to .claude/agents/<name>.md. Fill {{…}} from evidence and delete lines without evidence. Use the DB MCP tool names actually visible in this session.
  • Skills: build under .claude/skills/<name>/ following skill-authoring.md — at least 3 eval scenarios, rules as links to docs/rules/, scripts run with python3 -I.
  • If you built a skill or agent, add one line each (what it is and when to use it) to the "Project skills and agents" section of CLAUDE.md.
  • Only append to existing files with Edit and preserve line endings. Do not commit.

3. Check

python3 -I "${CLAUDE_PLUGIN_ROOT}/skills/setup/scripts/check_docs.py" <repo root>
python3 -I "${CLAUDE_PLUGIN_ROOT}/skills/suggest-skills/scripts/check_skill.py" <repo root>/.claude/skills/<built skill>

Run check_skill.py only when you built a skill. Fix ERRORs and run again. Do not judge eval scenarios in this session; tell the user to confirm with a representative request in a new session.

4. Report

Report what was built and its files, candidates not chosen (to revisit), check results, what could not be verified, and the next baseline (today's date and last commit hash).

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.