loop-init
Onboards loopcraft into a project — scans the repo to detect gate commands, confirms the backlog and rubrics through an interview, then scaffolds the .loop/…
When there's a failure, bug, unexpected behavior, or important finding, distills it into a verified general rule saved under .loop/memory/. Invoke right after resolving a gate (test/typecheck) failure, right after fixing a verifier-graded fail, or right after pinning down a
$ npx -y skills add hiphapis/loopcraft --skill distill --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/distillContext preview
The summary Claude sees to decide when to auto-load this skill.
When there's a failure, bug, unexpected behavior, or important finding, distills it into a verified general rule saved under .loop/memory/. Invoke right after resolving a gate (test/typecheck) failure, right after fixing a verifier-graded fail, or right after pinning down a
name: distill description: When there's a failure, bug, unexpected behavior, or important finding, distills it into a verified general rule saved under .loop/memory/. Invoke right after resolving a gate (test/typecheck) failure, right after fixing a verifier-graded fail, or right after pinning down a cause through debugging. Exclude failures with no lesson, e.g. a plain typo fix. argument-hint: "[one-line summary of the failure/finding]"
Do the 5 stages in order. Don't skip any.
Add a row to the `.loop/memory/LEDGER.md` table: `| YYYY-MM-DD | <symptom one-liner> | fail | |`
Find the cause, not the symptom. Check the relevant code/logs/commits and form a hypothesis.
Verify the hypothesis by reproduction or refutation (reproduce the failure → apply the fix → confirm it passes is best). On success, set the LEDGER stage to `verify`. If you can't verify, record the note with `verified: false` and state in the body that it's a "hypothesis".
(INDEX category + grep), and if there is one, update it.
--- title: "<the general rule as a sentence>" tags: [<domain tags>] category: debugging # debugging | pattern | environment | decision confidence: high # high | medium | low verified: true # whether it passed stage 3 created: YYYY-MM-DD updated: YYYY-MM-DD sources: ["commit:<sha>", "session:<date-id>"] --- <Describe the environment-specific fact and the general rule separately. Not "in this project it was X" but "under condition C, Y happens. This project's case: X"> Related: [[other-note-slug]]
(a marker for knowledge to be written later).
update date).
Confirm the note you wrote is reachable from INDEX (present in the category table of contents). The next session learns this note exists via SessionStart injection.
Loop engineering plugin for Claude Code — instead of steering the model with ever-longer prompts, design loops where it self-corrects from environment feedback and accumulates memory across sessions.
Onboards loopcraft into a project — scans the repo to detect gate commands, confirms the backlog and rubrics through an interview, then scaffolds the .loop/…
Traverses the backlog unattended, applying the loop-task cycle (rubric · verifier · gate · Loop-Verified commit) to each item. Invoke only when the user…