feat: add consume skill (write-side pair to /wiki) #8
Reference in New Issue
Block a user
Delete Branch "feat/consume-skill"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds
/consume, the write-side counterpart to the already-merged read-only/wiki, completing the pair.Where
/wikireads the user's Obsidian vault,/consumemines a target for generalized, transferable knowledge and files atomic concept notes into01 sources/claude/— the one area of the vault the agent may write, treated as the agent's own wiki.It never documents a project: a fact earns a note only if it holds on a different target.
Design
disable-model-invocation: true), run as/consume [target](defaults to cwd).SKILL.mdholds the branch-detection ladder plus the common writing logic; each source type is its own disclosed.md./wikifor vault-wide context, plus a direct scan of01 sources/claude/for notes to enrich.v1 branch:
project.mdFires on a directory containing
.claude/spec/and/or.claude/tasks/.Source code is the truth for the project's current state;
.claude/specand.claude/tasksare the record of why — mined for their reasoning, then deleted.The ladder is extensible for future source types (YouTube, article, GitHub PR).
Verification
Built via
nix build .#consume(auto-discovered, no name collision).A dry-run subagent drove the skill to the approval gate: branch detection, the generalizes test, and the contribution map all worked; findings on cleanup-scope wording, spec framing, granularity, and no-note files were folded back in.
The live write + delete half is first exercised on a real run, which pauses at the same approval gate before any mutation.