mark393295827/wiki-ingest
Use when a PDF, URL, transcript, clipping, or raw note must become source-grounded, linked, governed knowledge in an Obsidian vault.
npx skills add https://github.com/Mark393295827/third-brain-v7-skills --skill wiki-ingest
<skill_contract>
<input>Accessible PDF, URL, transcript, clipping, or note plus vault root, topic, provenance, permissions, and lifecycle context.</input>
<output>Immutable source evidence, linked concept and entity updates, navigation and lifecycle changes, and a verified ingest receipt.</output>
<done>Touched files pass source, link, block-ref, frontmatter, lifecycle, understanding, and read-after-write checks.</done>
<non_goals>Fabricated provenance, source mutation, raw-summary dumping, unsupported rule promotion, or unverified completion.</non_goals>
Use STOW: Source -> Transform -> Organize -> Write-back. The source is evidence, the concept page is current understanding, and the log is the receipt. Load references/stow-contract.md for schemas and lifecycle details.
Provide: source path/URL/note, vault root, intended topic, permissions, and whether the item came from a clipping queue. Optional: path config, prior canonical source, and desired behavior/skill candidate.
<intake>
</intake>
<unknowns_gate>
If the source cannot be read, the vault is ambiguous, or provenance cannot be distinguished from mediation, return NEEDS_INPUT or INSUFFICIENT_EVIDENCE. Never fabricate author, date, URL, hash, source id, transcript text, or primary-source confidence.
</unknowns_gate>
<execute>
For material promotion or source ambiguity, require independent review and human approval. Prepare a rollback as a file-level diff; rollback may remove derived writes but must not erase original source evidence or logs.
</execute>
<evaluate>
Read touched files after write. Confirm the source exists, locators resolve, concepts pass the understanding gate, links are meaningful, clipping status is accurate, and logs match actual writes. Downgrade the result to partial when any required check is unavailable.
</evaluate>
<retry_policy>
max_attempts: 2. Retry only the failed stage after diagnosing path, parser, schema, or link cause. Change strategy before retry; stop on the same signature or NO_PROGRESS. Never duplicate source notes as a retry mechanism.
</retry_policy>
<state_contract>
Persist {run_id, status, attempt, budget, evidence, unknowns, last_error, next_action} plus source identity/risk, vault fingerprint, resolved paths, touched-file ledger, created block refs, contradictions, candidates, approval, clipping transition, and verification receipts. Source and log history are append-only.
</state_contract>
NEEDS_INPUT: source or vault identity is ambiguous; ask one minimal probe.INSUFFICIENT_EVIDENCE: the material cannot support the requested claim or concept.BLOCKED_PERMISSION: return proposed writes and paths without claiming mutation.VERIFY_FAILED: a post-ingest check fails; preserve evidence and repair only the failed stage.NO_PROGRESS: repeated failure signature after changed strategy; stop and queue review.BUDGET_STOP: persist coverage and remaining items. max_attempts: 2.Return status, result (created/updated/queued files and understanding delta), evidence (source and lint receipts), unknowns, and next_action including approval or rollback when relevant.
</skill_contract>
Take mark393295827/wiki-ingest from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.