/chalk:goal-treefrom chalk
Structures goals as trees where children accomplish the parent, with sufficiency testing at each node. Covers leaf types, constraint/assumption annotations, and gap-closing moves.
Ships in chalk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Interpret MUST, MUST NOT, SHOULD, SHOULD NOT, MAY, etc. per RFC 2119.
A goal tree is a mindmap whose relation is serves, not supports.
Load chalk:voice first — subject lines, bolding, shallow nesting, tags and typed IDs all apply here unchanged.
The root is the goal. Each node's children are what it takes to achieve it, recursively, down to leaves that are directly actionable.
Every node's children MUST be work that accomplishes it, not evidence that argues for it.
If they argue rather than accomplish, it's an argument tree; see chalk:voice.
A constraint bounds which children may accomplish a node; it accomplishes nothing itself. So it is an annotation on the node, not a child of it, and so is an assumption the node leans on.
Two kinds, each with a typed ID (chalk:voice), written as the node's first sub-bullets, ahead of its children — the ID is what tells an annotation from a child.
C<n> — constraint, marked essential where the problem imposes it, accidental where only the current system does and the work may remove it.
An invariant is an essential constraint: something any solution must preserve.
A<n> — assumption: what the node leans on that it doesn't control.
Distinct from the assumption: tag, which marks a node itself as unverified.
An annotation scopes to the node's subtree. One that bounds the whole card annotates the root; one written higher than it binds reads as card-wide and constrains work it doesn't touch.
Where Current state carries the coupling, the annotation names it in a clause rather than restating it — the palette puts each thing in one place.
A constraint a test can pin SHOULD be a test, not an annotation. Prose asks someone not to revert a constraint; a test refuses to let them, and only a test has a decay alarm. Annotations carry the ones no test can hold.
A constraint this work creates is not an annotation — it is inherited, and lives in the PR's Consequences.
Assume every child is done, then ask whether the parent is thereby achieved within its annotations. A set of children that reaches the parent by breaking one of its constraints is not sufficient.
Not "do these look related to the parent?" but "do these, plus what we already know about this system, get us there?"
The domain knowledge is part of the test. Say that out loud rather than leaning on it silently.
Each node MUST be tested for sufficiency explicitly rather than assumed, and any node whose children are not clearly sufficient MUST be marked check: rather than left to read as settled.
To find a missing child, ask what would stop the parent rather than what would achieve it.
A leaf MUST declare which kind it is wherever that isn't obvious.
Something we do.
Something expected of someone or something else The user, CI, another team, an upstream library, existing behaviour.
A plain fact about the world we're relying on.
An expectation of someone else MUST NOT be written as though it were our own task. It reads as covered, it sits in the tree looking like work, and nothing happens until someone notices it was never assigned.
assumption: covers whether a leaf has been verified; this is the separate question of who's on the hook.
A leaf can be both — a verified fact about an upstream library is still someone else's to keep true.
A gap MUST be surfaced rather than papered over.
Closing a gap MUST be a deliberate choice from these named moves, rather than reflexively adding a task:
Achieve the parent a different way.
Reassign it to someone or something that won't fail like that.
Add a step that prevents it.
Make it less likely without eliminating it.
Let it happen and recover afterwards.
Let it happen and limit the damage.
Weaken the goal so the gap no longer matters.
Accept the risk and move on.
"Weaken the goal" and "accept the risk" are real answers, and both MUST be recorded in Out of scope or Alternative approaches — they are the two moves that leave no trace in the tree itself. Scope that was deliberately cut is a decision someone will want the reasoning for later; scope that silently evaporated reads as an oversight, and a reader can't tell the two apart.
An issue's goal tree sits higher than a plan's.
The issue answers what has to be true for this to be done; the session's plan answers what has to land to get there, and chalk:chalk says what it carries.
A child may be a link to another issue that owns that part.
- [ ] Secondaries serve stale reads without blocking the primary — #412
If a child is doing real work, it probably wants to be a sub-issue.
Then the tree is a readable map of the sub-issue graph rather than a second copy of it that drifts. Wire the relationship, don't just write the link — see chalk:issue.
Palette placement Potential approach for the target end state and the direction to it — and anywhere else a section has a goal structure to express.
A goal tree proposing a solution MUST NOT be written into an issue the session didn't earn.
Include it when the session genuinely worked the direction; leave it out when the session was about noticing the problem. A speculative tree reads as a decision the next person can't distinguish from a settled one — the rule is chalk:issue's.
Done-ness is not the tree's job.
A node is tested for sufficiency — whether its children accomplish it — and that question is unchanged by whether anyone has started. Tracking state belongs to GitHub's own: issue state, blocked-by, and the linked PRs. See "An issue either lands in one piece, or it has children" in chalk:issue.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
11 skills in this plugin
/chalkchalk's root skill, and the entry point for a building session: plan in plan mode until the user approves the goal and the route, then keep the session's journal in the plan file. The skills that read or write the plan — commit, pr, put-down, sitrep — load this one for the plan file's shape and the journal's record kinds; an implementation harness records through the same kinds. Use when the user says "/chalk", "/chalk <issue>", "pick this up", "pick up #N", "start on #N", "let's plan this", or a session is starting work, with or without a card.
/code-commentsWhat earns a code comment, and what to delete — the default of silence, the moves that dissolve a comment before you write it, the exceptions that earn one, the pinned readers and the test, and where rejected material goes instead. Load early in any session that touches code, before writing or editing any comment, docstring or kdoc, and again when reviewing a diff, where weeding the comments is part of the review./commitCreate a commit with a contextual body explaining the why, in the chalk voice. Use when the user says "commit this", "commit", "make a commit", "/chalk:commit"; OR is about to compose, draft, write or amend any git commit message body (e.g. "write a commit message", "draft the commit body", "amend the commit message"). Load this skill BEFORE drafting any such prose — it carries the voice guidance the commit body needs./explicateExplicate an area of the codebase for an engineer catching up on it — how it works now, the decisions that shaped it and their consequences elsewhere, grounded in the code and its recorded history — then answer follow-ups as a depth-first walk, keeping track of where the user has been. Use when the user says "/chalk:explicate" or "explicate <area>".
/issueCreate a GitHub issue, or update an existing issue's description, with a body that captures the problem and why it matters, in the chalk voice. Use when the user says "open an issue", "file a bug", "raise an issue", "create an issue", "file a ticket", "write up a feature request", "/chalk:issue"; OR is about to compose, draft, write or update any GitHub issue title, issue body or issue description (e.g. "write up an issue for this", "update the issue description", "put the analysis on the ticket"). Load this skill BEFORE drafting any such prose — it carries the voice guidance the body needs./prCreate a pull request with a description that captures the intent and reasoning behind the change, in the chalk voice. Use when the user says "create a PR", "open a PR", "submit a PR", "raise a PR", "make a PR", "PR this", "/chalk:pr"; OR is about to compose, draft, write or update any pull request title or body (e.g. "write a PR description", "draft the PR body", "update the PR description", "let's put that in the PR"). Load this skill BEFORE drafting any such prose — it carries the voice guidance the PR body needs.npx claudepluginhub juxt/claude-plugins --plugin chalkOther plugins' skills for the same job