一键导入
pith-wiki
Wiki mode — persistent knowledge base maintenance. Active during /pith wiki mode. Defines page formats, ingest workflow, query workflow, and lint checks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Wiki mode — persistent knowledge base maintenance. Active during /pith wiki mode. Defines page formats, ingest workflow, query workflow, and lint checks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Pith onboarding conversation. Runs on first session in a new project. Introduces Pith, offers wiki setup, guides through initialization. Injected by session-start.js when no prior setup detected.
Run the Pith wiki graph generator for the current project. Scans wiki/ for .md files, extracts [[wikilinks]], and opens an interactive force-directed graph in the browser as wiki-graph.html.
Install Pith into Claude Code. Copies hooks, patches settings.json, registers slash commands (/pith, /budget, /focus), and records the plugin root so hooks can resolve paths.
Interactive guided tour of Pith. Walks the user through each feature experientially — one step at a time, hands-on, using their actual project. Resumable. Skippable. State tracked via tour.py.
Uninstall Pith from Claude Code. Removes hooks, slash commands, and cleans pith entries from settings.json. Preserves ~/.pith/state.json (token history) unless user explicitly asks to wipe all data.
One-shot architecture decision format. Use for technology choices, design decisions, system design questions. Format: Decision / Options table / Choice / Risks / Next. Does not persist.
| name | pith-wiki |
| description | Wiki mode — persistent knowledge base maintenance. Active during /pith wiki mode. Defines page formats, ingest workflow, query workflow, and lint checks. |
When wiki mode is active:
# [Entity Name]
**Type:** person | org | tool | service | component
**Summary:** [2 sentences max]
## Key Facts
- [fact]
- [fact]
## Connections
- [[related-entity]] — [how they relate]
## Sources
- [source title](../raw/sources/file.md) — [date]
## Contradictions
- [claim in source A] vs [claim in source B] — unresolved
# [Concept Name]
**Definition:** [one sentence]
**Why it matters:** [one sentence]
## How it works
[2-4 sentences max]
## Related
- [[concept]] — [relation]
## Examples
- [concrete example]
## Open questions
- [what's still unclear]
## Sources
- [source](../raw/sources/file.md)
# Decision: [what was decided]
**Date:** YYYY-MM-DD
**Status:** decided | revisiting | superseded
## Context
[1-2 sentences: why this decision was needed]
## Options considered
| Option | Pro | Con |
|--------|-----|-----|
| A | ... | ... |
## Decision
[what was chosen and single-sentence why]
## Consequences
- [what this enables]
- [what this constrains]
# [Title]
**Thesis:** [one-sentence claim]
**Confidence:** high | medium | low
## Evidence
- [point] — [source](../raw/sources/file.md)
## Counter-evidence
- [point that argues against the thesis]
## Open questions
- [what would change this conclusion]
One entry per wiki page. Updated on every ingest or new page.
# Wiki Index
## Entities
- [[EntityName]] — [one-line description] — [source count] sources
## Concepts
- [[ConceptName]] — [one-line description]
## Decisions
- [[Decision-title]] — [date] — [status]
## Syntheses
- [[Synthesis-title]] — [one-line thesis]
## Sources processed
- [Source Title](raw/sources/file.md) — [date ingested] — [pages updated]
Append-only. One entry per operation.
## [YYYY-MM-DD] ingest | [Source Title]
Pages updated: [[page1]], [[page2]], [[page3]]
New pages: [[new-page]]
Contradictions found: [yes/no — detail if yes]
## [YYYY-MM-DD] query | [question summary]
Pages consulted: [[page1]], [[page2]]
Answer filed: [[synthesis-page]] (yes/no)
## [YYYY-MM-DD] lint
Issues found: [N orphan pages, M stale claims, K missing cross-refs]
When /pith ingest <file> is called:
python3 tools/ingest.py <file>When /pith ingest --url <url> is called:
python3 tools/ingest.py --url <url>
raw/sources/YYYY-MM-DD-slug.mdWhen /pith compile is called:
python3 tools/compile.py
raw/sources/wiki/concepts/ pages with multi-source evidenceWhen /pith compile --topic <topic> is called:
python3 tools/compile.py --topic "<topic>"When /pith compile --dry-run is called:
python3 tools/compile.py --dry-run
When /pith lint is called:
python3 tools/lint.py
When /pith lint --fix is called:
python3 tools/lint.py --fix
When /pith lint --quick is called:
python3 tools/lint.py --quick
When /pith wiki "<question>":
Never modify files in raw/sources/ — those are immutable source documents.
Always write compressed, cross-linked pages. No verbose prose.
Every new entity or concept gets its own page — no inline-only mentions.