agentleFS
89jobrien89jobrien/godmode/skills/crs-validate/SKILL.md

godmode:crs-validate

Skill1 starsChanged 56 days agoMITView on GitHub

Validate proposed course-correct rules merged with the live ruleset via crs validate. Gate step of the coursers-rules pipeline — a failure here stops the pipeline before crs-install can touch the live config.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 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.

  • 2

    Very specific

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

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

    After crs-propose-rules has written .ctx/coursers/crs-proposed-rules.json

    line 19
  2. Very specific:

    Read the live config ~/.config/coursers/course-correct-rules.json and the proposals .ctx/coursers/crs-proposed-rules.json.

    line 24

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

crs-validate

Prove the proposed rules are healthy — patterns compile, examples fire, exceptions work — against the merged (existing + proposed) ruleset before anything is installed.

When to Use

  • After crs-propose-rules has written .ctx/coursers/crs-proposed-rules.json
  • Asked to "validate these rules" before installing them

Steps

  1. Read the live config ~/.config/coursers/course-correct-rules.json and the proposals .ctx/coursers/crs-proposed-rules.json. If the proposals file is missing or has an empty rules array, report "nothing to validate" and pass.
  2. Reject any proposed rule whose id already exists in the live config — duplicates must be resolved in the proposal step, not silently merged.
  3. Merge: live rules + proposed rules into a single config object, written to .ctx/coursers/crs-merged-rules.json (same top-level shape as the live file).
  4. Validate the merged set:

    crs validate --rules .ctx/coursers/crs-merged-rules.json
  5. Exit disposition:
    • crs validate exits 0 → step passes; leave the merged file in place for crs-install.
    • Non-zero exit or any reported error → fail the step. Report which rule(s) failed and why. Do NOT advance to crs-install; the pipeline must stop here (godmode pipeline stop if running interactively).

Contract

  • Input: .ctx/coursers/crs-proposed-rules.json + live config
  • Output: pass/fail; on pass, .ctx/coursers/crs-merged-rules.json
  • This step never writes to ~/.config/coursers/ — it is read-only with respect to live configuration.

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.