marinvch/cortex/suggest-skills
Claude Code and agent skill by marinvch/cortex
- community
Checking that the SKILL.md file is still in the repository.
Propose and write skills that fit this codebase's detected stack — a webhook skill for Stripe, a migration skill for Prisma. Triggers — "add skills for this project", "what skills should this repo have".
Install
npx vskill@latest install marinvch/cortex/suggest-skillsSKILL.md
The same SKILL.md was published earlier as marinvch/cortex/suggest-skills.
/suggest-skills — skills shaped by this repo, not by a default list
Every repo used to get the same two skills. A Next.js app with Prisma and no tests got exactly what a Rust CLI got, because nothing downstream of the index could tell them apart. The context layer was tailored and the skills were not.
The index knows the stack now. This turns that into skills the repo would actually use.
Read-only until the user picks. Steps 1 and 2 write nothing.
1. Propose, from evidence
If it reports no index, or one older than the working tree, re-index first:
If `.cortex/` does not exist, ask before running that — it is the first write, and this skill is separately invocable on a repo where no other ritual has run. That is the write ADR 0005 gates: generated and gitignored is not the same as invisible. The .gitignore entry is written for you at creation time; the asking is not.
Show the detected stack and the proposals with the reason each was surfaced — the tool prints them. Never present a bare list: a user cannot consent to a proposal they cannot evaluate, and the reason is what lets them say "that one's wrong, we do use a test runner."
Then wait. The user picks. Some will be declined, and that is a correct outcome — a skill nobody wanted is context load every session pays for.
If the tool proposes nothing, say so and stop. A repo with no manifest has no detectable stack, and inventing skills for it is the exact failure this replaced.
2. Read before you write
For each accepted skill, open the code it describes. The proposal carries a brief saying what belongs in the body; it does not carry the body, because a useful body quotes this repo's real commands and real paths.
- The test command comes from
package.jsonscripts, the Makefile, or wherever this repo keeps it —
read it. A wrong command is the most costly error here: every future agent trusts it.
- Paths come from the index. A generated Prisma client is often not at the library default, and
a skill that says otherwise sends every agent to a file that does not exist.
- If you cannot find the real command or path, say so in the skill body rather than guessing. "Run
the tests — command not found in the manifest, confirm before relying on this" is honest and fixable. An invented command is neither.
3. Write one skill per accepted proposal
.claude/skills/<id>/SKILL.md, with frontmatter and a short body:
`paths:` comes from the proposal, never from you. The tool prints the line under each proposal that earned one — paths: prisma/**, **/*.prisma for a Prisma schema — built from what the index detected, and quoted when a glob would otherwise break the YAML. Claude Code then loads the skill only when those files are in play. Copy it exactly. When the proposal has no paths: line, write none: an empty value is a skill that never loads, and a guessed glob is one that never loads on the file that matters. Agents that ignore paths read the skill as they always did.
Keep it short. A skill body is loaded whole when it fires; a 200-line skill is a brief in disguise. If it grows past about 60 lines, the depth belongs in a scoped AGENTS.md leaf via /write-area-brief, and the skill should point at it.
Do not restate what the root AGENTS.md already says. Duplication is how these rot: two copies drift and neither is trusted.
Other agents. Claude Code, Copilot in VS Code and Cursor all read .claude/skills/. Codex and Gemini CLI read only .agents/skills/. Before writing, ask once whether anyone on the team uses Codex or Gemini CLI, unless .agents/skills/ already exists, which answers it. On a yes, write a byte-identical copy of each skill to .agents/skills/<id>/SKILL.md. The .claude/skills/ file is the source and the copy is never edited on its own. A copy that differs shows up as mirror drift. Do not symlink it: a Windows checkout without core.symlinks turns the link into a one-line text file. ADR 0031.
4. Verify what you wrote
Do not report success without checking:
If you wrote copies to .agents/skills/, check each one is byte-identical to its source (cmp both files). cortex-skills.mjs reports a copy that is not as mirror drift.
Then re-run node "${CLAUDE_PLUGIN_ROOT}/index/cortex-skills.mjs" . — everything you wrote should now appear under Already present. If a skill you just wrote is still proposed, it landed in the wrong place.
And check every command you quoted actually exists. Run it, or grep the manifest for it.
Then format what you wrote. Write LF line endings. Run the repo's declared formatter (state.formatters in cortex-loop.mjs . --json) on exactly the files you wrote, never on .. Then run the repo's own lint/format check. A Prettier repo checks .claude/skills/**/*.md like any other Markdown. If the check still fails on a file you wrote, report it with the output.
5. Report
List the skills written as paths, and say they are committed with the repo so the whole team gets them. Then offer the natural next step: /write-area-brief for any area whose skill turned out to need more depth than a skill body should hold.
The two dev-cycle skills
/plan-feature and /investigate-bug fit any stack, so no row in the index proposes them. Offer them once, after the stack-fit proposals, to a repo that has neither. On a yes, write them verbatim from DEV-CYCLE.md, which also holds docs/decisions.md. /design-spec names /plan-feature as its lightweight path, so a repo without it has only the heavy one. /install-project wrote these until 2.42.0; bash tools/cortex-init.sh still does, with no Node.
Refreshing a skill that drifted
Step 1's output ends with the skills already here that the repo now contradicts, one line per finding — line 8: says the repo has no tests, and the index counts 9 test files. --offers carries the same list as drift. Each finding is provable from disk; prose the check cannot prove (a lint baseline that has since gone) is yours to spot while the file is open.
- Check whether it was edited since it was written. Each
driftentry carrieseditedand,
when it is true, editedNote ("edited since it was written, 2 commits"): more than the commit that added it, or an uncommitted change, means a person worked on it, and their edit may be the only correct part. git log --format='%h %an %s' -- .claude/skills/<id>/SKILL.md shows who. The user must have seen that note before you touch the skill. When /setup-repo sent you here, its playback row carried it, so the one confirmation covers it and you do not ask again. Run on its own, ask about that skill by name first. edited: null means git could not say (no checkout): ask.
- Fix the flagged lines, in the body, from the code. Open what the line described and write
what is there now — the moved path (a hint names a same-named file; open it before trusting it), the real test count and command, a script the manifest declares. Frontmatter stays exactly as it is; so does every line nobody flagged and you did not verify wrong. The one exception is a finding marked frontmatter: true, a path in the description that is gone: show the line and the path, and change it only on a yes, because the description decides when the skill fires. A mirror finding is fixed after the rest: copy the refreshed .claude/skills/ file over the .agents/skills/ copy. Never edit the copy by hand.
- Retire a skill whose premise is gone. A setup skill for a harness that now exists has
nothing left to say. A drift entry with retire set is that proposal, and its successor, when there is one, is the skill to offer in its place. Propose deleting it and delete only on a yes. The tool raises this only for a setup skill it proposes itself; one the team named differently is yours to spot from its tests findings.
- Re-run `cortex-skills.mjs .` — a refreshed skill no longer appears under the drift heading.
If it still does, the line is still wrong.
Gotchas
- A generic skill is worse than no skill. "Follow best practices when adding a route" costs
context every session and teaches nothing. If the body would not name a real path, a real command or a real invariant of this repo, do not write it — decline the proposal out loud.
- The proposals are ranked, and the ranking is the interview order. It comes from
index/lib/skills.mjs, where each candidate declares its own trigger. Add a stack-specific skill there rather than improvising one here, so the next repo with that stack gets it too.
- Skills are per-repo; rituals are per-machine.
/write-area-brief,/challenge-planand the rest come
from the installed plugin and work in any repo. What this writes is different: skills that only make sense here, committed with the code. Do not copy plugin rituals into a project.
- Re-run after a stack change. Adding Stripe to a repo means the webhook skill is now worth
proposing, and nothing notices on its own. The same run is what notices a written skill going stale — see Refreshing a skill that drifted.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/suggest-skills/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/marinvch/cortex/suggest-skills)