godmode:crs-propose-rules
Skill1 starsChanged 57 days agoMITView on GitHub
Draft course-correct rule stubs (pattern, message, exceptions) from the candidates crs-discover produced. LLM-assisted step of the coursers-rules pipeline — writes .ctx/coursers/crs-proposed-rules.json for crs-validate.
In this repository76 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- godmode:agent-governanceSkill
- godmode:agent-improvement-loopSkill
- agents-skill-saveSkill
- baml-add-typesSkill
- godmode:brainstormSkill
- godmode:capSkill
- godmode:changelogSkill
- godmode:ci-fixSkill
- godmode:code-reviewSkill
- godmode:context-mapSkill
- godmode:cross-issueSkill
- godmode:crs-discoverSkill
- godmode:crs-hook-testingSkill
- godmode:crs-installSkill
- godmode:crs-validateSkill
- godmode:dead-codeSkill
- godmode:decomposeSkill
- godmode:dep-auditSkill
- godmode:dep-bumpSkill
- godmode:designSkill
- devloop-session-primerSkill
- godmode:dialecticSkill
- godmode:doc-maintainerSkill
- godmode:doc-reviewSkill
- godmode:doc-syncSkill
- godmode:doc-writerSkill
- doob-db-inspectorSkill
- doob-release-managerSkill
- godmode:doublecheckSkill
- dual-forge-pr-mergeSkill
- gh-bulk-issuesSkill
- godmode:health-scoreSkill
- godmode:ingestSkill
- godmode:introspectionSkill
- godmode:issue-triageSkill
- godmode:memory-bankingSkill
- godmode:mergeSkill
- godmode:mini-context-graphSkill
- godmode:mistake-trackerSkill
- godmode:moaSkill
- notfiles-release-workflowSkill
- godmode:observability-as-infrastructureSkill
- godmode:parallel-agentsSkill
- godmode:pattern-learnerSkill
- planning-with-cruxSkill
- godmode:pr-authorSkill
- godmode:receiving-reviewSkill
- godmode:refactoringSkill
- godmode:release-notesSkill
- release-readiness-checkSkill
- remote-upstream-triageSkill
- repo-gap-backlogSkill
- godmode:rust-conventionsSkill
- rustqualSkill
- rustqual-workspaceSkill
- rust-release-workflow-authorSkill
- godmode:self-reflectSkill
- session-wrap-commit-pushSkill
- godmode:systematic-debuggingSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 0 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
After crs-discover has written .ctx/coursers/crs-candidates.json
- Very specific: line 24
Read .ctx/coursers/crs-candidates.json.
- Very specific: line 48
Add exceptions for pipeline use (\\|\\s*<cmd>) and for nu -c wrapped commands (nu\\s+-c\\b) when the command is fine in those contexts — …
- Very specific: line 51
Test each pattern before writing it out: echo "<sample>" | crs probe against a temp rules file, or at minimum verify the regex compiles.
- Very specific: line 53
Write {"rules": [...]} to .ctx/coursers/crs-proposed-rules.json.
- Very specific: line 64
Never edit ~/.config/coursers/course-correct-rules.json in this step — installation is crs-install's job, after validation.
≈ “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.
Files
crs-propose-rules
Turn discovered unhandled commands into concrete course-correct rule proposals. This is the judgment step: not every frequent command deserves a blocking rule.
When to Use
- After
crs-discoverhas written.ctx/coursers/crs-candidates.json - Asked to "propose rules for these commands" or "draft blocking rules"
Steps
- Read
.ctx/coursers/crs-candidates.json. If empty, write an emptyrulesarray to the output path and stop. - For each candidate, decide whether a rule is warranted. Propose a rule only when a dedicated tool or cheaper alternative exists (the same logic behind no-grep/no-cat: Grep tool over grep, Read tool over cat/sed -n). Skip candidates that are legitimate commands with no better alternative.
For each accepted candidate, draft a rule object matching the live config's schema (
~/.config/coursers/course-correct-rules.json):{ "id": "no-<cmd>-use-<alternative>", "enabled": true, "pattern": "\\b<cmd>\\b", "pattern_flags": "", "target_commands": ["<cmd>"], "exceptions": [], "exception_policy": "allow_if_any_match", "message": "Use <alternative> instead. Example: <concrete example>." }- Author patterns defensively:
- Anchor with
\bword boundaries; never bare substrings. - Add exceptions for pipeline use (
\\|\\s*<cmd>) and fornu -cwrapped commands (nu\\s+-c\\b) when the command is fine in those contexts — mirror the exception style of the existing no-grep rule. - Test each pattern before writing it out:
echo "<sample>" | crs probeagainst a temp rules file, or at minimum verify the regex compiles.
- Anchor with
- Write
{"rules": [...]}to.ctx/coursers/crs-proposed-rules.json. - Report each proposed rule id with a one-line rationale, and list the candidates you deliberately skipped with why.
Contract
- Input:
.ctx/coursers/crs-candidates.json - Output:
.ctx/coursers/crs-proposed-rules.json— object with arulesarray in the live config schema. crs-validate merges this file; a malformed rule here fails the pipeline there, which is the intended safety net. - Never edit
~/.config/coursers/course-correct-rules.jsonin this step — installation is crs-install's job, after validation.
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
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.

