Capture a phase-linked todo, a seed idea for a future milestone, or a note, without losing your place - .planning/CAPTURE.md, or --cadence for friction with Cadence itself
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Cad Capture?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/crenshawdev-cad-capture)
---
name: cad-capture
description: "Capture a phase-linked todo, a seed idea for a future milestone, or a note, without losing your place - .planning/CAPTURE.md, or --cadence for friction with Cadence itself"
argument-hint: "[todo | seed | note] <text> [--phase N] [--cadence]"
allowed-tools:
- Read
- Write
- AskUserQuestion
- PushNotification
---
<objective>
Three kinds, landing in `.planning/CAPTURE.md`, or on an agile project
(`.planning/agile/` exists and `.planning/PROJECT.md` doesn't) in
`.planning/agile/backlog.md`, which the next refinement reads - or, with
`--cadence`, in Cadence's own queue (step 4):
- **todo** - an actionable item, tagged to a phase, so it resurfaces where it
matters.
- **seed** - an idea for a future phase or milestone, parked in the backlog.
- **note** - a free note; lands in the file like the rest. With
`memory.backend: builtin` (the default) the note becomes recallable: `builtin`
only reads `.planning/` back, never relocates the write.
</objective>
<process>
1. **Parse** `$ARGUMENTS`: leading `todo | seed | note` (default `todo` if
omitted), the text, an optional `--phase N`, and an optional `--cadence` -
this note is about CADENCE, not about the project you are in, so it goes to
step 4 instead of steps 2-3. If a todo has no `--phase`, default to the
current phase from the STATE cursor (`cursor get`); if the cursor is absent
or unparseable, capture it unphased - pass no `--phase` at all - rather than
guessing a phase or stopping. Under `--cadence`, and on an agile project, skip
the cursor; an agile project takes no `--phase`, and the seam refuses one.
2. **Capture through the seam** - one call, and the only way this command
reaches `.planning/CAPTURE.md`:
```
node "${CLAUDE_PLUGIN_ROOT}/cadence-core/bin/planning.mjs" capture --kind <kind> --text-file <path> --phase <N>
```
Write the sentence to a scratch file and pass the PATH, never interpolate it
(caller-derived text - `cadence-core/references/conventions.md`).
Pass `--phase` only with `--kind todo`, and leave it off entirely when step 1
found no phase. The seam owns every byte: it creates the file with its
headings when absent, puts the bullet under the one heading that kind owns,
stamps a note's date itself, and holds a lock so a concurrent writer cannot
erase the line. Do not compose the bullet yourself and do not reach that file
with any other tool.
An `ok:false` return STOPS the capture: report its `reason` back with the
user's own sentence, and skip step 3. A bullet that did not land is never
reported as captured.
`capture-locked` means another writer holds the queue at this instant, and
running the call again is the whole fix.
3. **Persist** - the project-directed arm only, never under `--cadence`. Stage
ONLY `.planning/CAPTURE.md`, or `.planning/agile/backlog.md` on an agile
project, and commit `docs: capture <kind>` (protected-branch guard applies; on
an agile project by path,
`git commit -m "docs: capture <kind>" -- .planning/agile/backlog.md`) - this
never touches the user's in-flight changes. Report the one line captured and
where.
4. **`--cadence`: the note is about Cadence itself.** REPLACES steps 2-3.
- **The queue** sits beside the global config layer: `CAPTURE.md` in the
directory part of `CADENCE_GLOBAL_CONFIG` when that variable is set, in
`~/.claude/cadence/` otherwise. Never `${CLAUDE_PLUGIN_ROOT}`. Resolve the
queue's path yourself and hand it to the same seam, which creates the file
and its directory when absent:
```
node "${CLAUDE_PLUGIN_ROOT}/cadence-core/bin/planning.mjs" capture --kind <kind> --text-file <path> --file <resolved dir>/CAPTURE.md
```
- **The entry** is the user's own sentence plus two fields, carried inside
the `--text-file` sentence and never a phase: `<text> (host: <host>, command: /cad-<name>)`.
HOST: this repo's `origin` URL (`git remote get-url origin`), else the
basename of the root from `git rev-parse --show-toplevel`, else the
absolute working directory when this is not a repo. COMMAND: the `/cad-*`
whose behaviour caused the friction, from the invocation when the user names
one, asked for once when not.
- **Quote nothing else from this tree** - no diff, no file contents, no path
out of the user's own work. The seam strips URL credentials from the entry
on this arm, and nothing else; this rule covers everything else.
- **Three rails.** (a) NO commit - not in this repo, not in the global
directory, which is not a working tree at all - so step 3 does not run. (b)
Nothing is transmitted; a note meant for a maintainer who is not the user
stays a manual export the user makes. (c) If that directory cannot be
resolved (`homedir()` throws under an arbitrary UID) or the seam refuses
the path, say so and STOP - NEVER fall back to `.planning/CAPTURE.md`,
since a note landing in the host repo is the failure this arm exists to
close.
Report the one line captured and the file it landed in.
Before any question to the user, send one `PushNotification` naming the
command, the phase or position line and what is needed, in one line under 200
characters, and skip it when the host has no such tool
(`references/seam-ask-user.md` has the full rule).
</process>
<guardrails>
- Do not act on the item now - capture is parking, not doing. A todo is queued,
not executed.
</guardrails>