Repository navigation
rascal step 6: router (/rascal:go) and the routing note - #6
Merged
Merged
Conversation
scripts/routing-note.mjs builds the <=30-line note from workflows.json, each workflow's description and rules/routing.md, writes plugins/rascal/routing-note.md and the router's copy, and can install or remove it in an instruction file between markers (with a backup). /rascal:go is a plugin command that loads rascal-go. Pre-commit checks drift. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
For each agent whose config directory exists (Claude Code, Codex, OpenCode, Pi, honouring their dir overrides) the note goes between markers in its global instruction file, with a .rascal-bak backup. --no-note skips it, --remove-note takes it out. Warns when an AGENTS.override.md would shadow it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Strict install-rascal.sh arguments (typos exit 2, nothing written); OpenCode skipped while its ~/.claude/CLAUDE.md fallback carries the user's own rules; CRLF-preserving install/remove; generator enforces the 30-line cap; tagged marker errors; override warning Codex-only; the plugin hint prints before the note step. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Build step 6 of the rascal pack (docs/rj-skills-pack-design.md Q35): the router and the always-on routing note.
scripts/routing-note.mjsbuilds the 23-line note (cap 30, enforced) fromplugins/rascal/workflows.json, each workflow's "Use when" sentence andrules/routing.md. It holds the just-do-it rule word for word, the canonical table, the Superpowers 1%-rule override and the~/.rascal/preferences.mdline. Output:plugins/rascal/routing-note.md, plus the same routes insiderascal-go. Pre-commit runs--check.rascal-goskill and acommands/go.mdthat makes/rascal:go <task>work in Claude Code. It picks just-do-it, a workflow, a canonical skill or a chain, says which in one line, runs it, and nudges when the retro is overdue.install-rascal.shwrites the note between markers into the instruction file of Claude Code, Codex, OpenCode and Pi, backing each file up to.rascal-bakfirst. Also adds--no-noteand--remove-note, and rejects unknown arguments. OpenCode is skipped while its CLAUDE.md fallback carries the user's own rules.docs/superpowers/verification/2026-10-07-routing-probe.md.docs/rascal-v1-design.md, plugin 0.3.0.Tests: 347 passing. A fresh-context review found no Critical issues. All its Important and Minor findings are fixed.
🤖 Generated with Claude Code