agentleFS
89jobrien89jobrien/godmode/skills/crs-hook-testing/SKILL.md

godmode:crs-hook-testing

Skill1 starsChanged 57 days agoMITView on GitHub

Coursers rule lifecycle pipeline. Walk a course-correct rule (or candidate rule) through the full lifecycle: author → validate → probe → fire (pre/post) → observe → refine/retire. Use when adding a new crs/coursers rule, auditing an existing one, or diagnosing a rule that is misfiring or dead.

  • Installs packages

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    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:

    Read the file named in a row before doing the task in its right column.

    line 24
  2. Very specific:

    After editing crates/core or crates/coursers, the live crs/coursers binaries are NOT updated automatically.

    line 59

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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 Hook Testing — Coursers Rule Lifecycle

A structured pipeline for managing the lifecycle of a course-correct rule in ~/.config/coursers/course-correct-rules.json.

Each stage maps to one or more crs / coursers subcommands. Walk through stages in order for a new rule. Jump to the relevant stage when debugging or refining an existing rule.

Reference files

Read the file named in a row before doing the task in its right column. These files are not loaded automatically.

FileRead before
references/stages-0-1-discover-author.mddiscovering candidate commands for a new rule
references/stage-1-author.mdadding or editing a rule in course-correct-rules.json
references/stages-2-3-validate-probe.mdrunning crs validate, or testing a rule against a command with crs probe or crs pre
references/stages-4-5-fire-observe.mdfiring a rule through the real pre or post hook
references/stage-5-observe.mdchecking a rule's activity with stats, heat, history, log, or export once it has been live
references/stage-6-refine-retire.mdchanging a rule based on observations, removing an obsolete rule, or checking rule health with insights and replay

Quick Reference

StageCommand(s)
Discovercrs discover, crs suggest
AuthorEdit ~/.config/coursers/course-correct-rules.json
Validatecrs validate
Probeecho '<cmd>' | crs probe
Fire (pre)echo '<json>' | coursers pre
Fire (post)echo '<json>' | coursers post
Observecrs stats, crs heat, crs history, crs log
Exportcrs export
RefineEdit rules → validate → probe → observe
Replaycrs replay, crs insights

Common Pitfalls

  • probe vs pre divergence: probe matches the whole command string; pre splits on shell operators first. Always test with crs pre before trusting crs probe alone.
  • After editing crates/core or crates/coursers, the live crs/coursers binaries are NOT updated automatically. Run cargo install --path crates/coursers to deploy.
  • The no-find-use-glob rule matches find .ctx in commit messages. Exceptions for git (commit|log|tag|stash) (including git -C form) suppress this.
  • State files: global at ~/.config/coursers/course-correct-state.json; project-local at .ctx/course-correct-state.json (wins over global).

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.