grace-plan
Skill250 starsChanged 3 months agoMITView on GitHub
Read an approved GRACE 4 GraceChangeSpec and optional design context, then create a GraceChangePlan with assertions, scopes, tasks, and verification gates.
In this repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- grace-askSkill
- grace-cliSkill
- grace-executeSkill
- grace-explainerSkill
- grace-fixSkill
- grace-initSkill
- grace-migrateSkill
- grace-refactorSkill
- grace-refreshSkill
- grace-reviewerSkill
- grace-setup-subagentsSkill
- grace-specSkill
- grace-statusSkill
- grace-verificationSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 1 is distinctive, and 6 are 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.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Treat optional design-context.xml as explanatory.
- Very specific: line 19
Run grace lint --path PROJECT --assertions current before planning and surface stale or invalid active baselines.
- Very specific: line 23
If plan.xml already exists with status approved, stop before writing.
- Very specific: line 24
Do not refresh BaselineAssertions, TargetAssertions, DurableScope, ObservedWriteScope, or tasks in place.
- Very specific: line 25
Create a new C-* bundle and mark the old bundle superseded with an explicit replacement reference.
- Very specific: line 36
Never put --assertions current in TargetAssertions or in task verification that runs after writes.
- Distinctive: line 48
Do not implement code, silently approve a plan, overwrite an approved plan, or mutate current graph/verification artifacts while planning.
≈ “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
<skill>
<purpose>Convert one approved active `GraceChangeSpec` into the executable `GraceChangePlan`; do not implement source code.</purpose><inputs>
- Required: `.grace/changes/active/C-CHANGE-ID/spec.xml`
- Optional: sibling `design-context.xml`
- Current state: `.grace/context`, graph and verification indexes, and their routed documents
</inputs><preflight>
- Require `.grace/changes/active/C-CHANGE-ID/spec.xml` with `GraceChangeSpec`, status `approved`, and exactly one matching direct `C-*` wrapper.
- Refuse draft, rejected, cancelled, applied, or superseded specs.
- Treat optional `design-context.xml` as explanatory; `spec.xml` wins on conflict.
- Run `grace lint --path PROJECT --assertions current` before planning and surface stale or invalid active baselines.
</preflight><approved_plan_immutability>
- If
plan.xmlalready exists with statusapproved, stop before writing. - Do not refresh
BaselineAssertions,TargetAssertions,DurableScope,ObservedWriteScope, or tasks in place. - Create a new
C-*bundle and mark the old bundle superseded with an explicit replacement reference. </approved_plan_immutability>
<must_do>
Produce plan.xml from references/change-plan-template.xml as draft unless the user explicitly approves the completed plan. Require a matching C-* wrapper, meaningful intent, non-empty machine-checkable baseline and target assertions, explicit durable and observed scopes, and unique acyclic T-NNN tasks. A scope with no writes must use an explicit <None /> marker; prose such as "none" is invalid. Every task has one Title, one DependsOn element listing zero or more predecessors as canonical comma-separated T-NNN values (for example <DependsOn>T-001, T-002</DependsOn>), non-empty acceptance criteria, and non-empty verification commands. Dependencies form a directed acyclic graph: list only true predecessors and never linearize independent tasks into a chain to express ordering. Surface stale-state and coexistence warnings, and reject unsupported scope glob syntax instead of guessing.
</must_do>
<command_phase_rules>
currentis an active-baseline preflight and is valid only before observed writes begin.baselineis the selected pre-edit gate,targetis selected post-edit evidence, andfinalis the outer apply/archive gate owned bygrace-execute.MustPassCommandcontains leaf project evidence such as tests, typecheck, build, format, or package checks. Never placegrace lint,grace status, or another GRACE lifecycle command inside it.- Never put
--assertions currentinTargetAssertionsor in task verification that runs after writes. Use selected target/final lint externally instead. - A
MustPassCommandmust complete within its declaredbudgetSeconds(absent, the global--command-timeoutapplies) on the reference host; declare the budget you have measured rather than inheriting a default that will kill the command mid-gate. - A whole-suite command whose runtime is dominated by substrate startup — containers, databases, browsers, emulators — belongs in an acceptance tier, not in the gate; never declare both a whole-suite command and the file-level commands it already re-runs. </command_phase_rules>
<validation>
- Active-baseline preflight: `grace lint --path PROJECT --assertions current`
- Parallel safety: `grace lint --path PROJECT --parallel-preflight`
- Recommend `grace status --path PROJECT --json` after approval.
</validation><hard_rules>
Do not implement code, silently approve a plan, overwrite an approved plan, or mutate current graph/verification artifacts while planning. Semantic anchors are canonical XML tags, never attributes.
</hard_rules>
</skill>
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.

