Maintain a persistent markdown wiki that compiles knowledge over time. Treat raw sources as immutable, treat the wiki as the maintained artifact, and keep structure and conventions consistent so future sessions can continue the work.
Operate with three layers:
raw sources/ or equivalent input area, read-only source materialwiki/ or equivalent markdown knowledge base, editable compiled knowledgeschema document that defines folder layout, naming, citation style, and workflowsPrefer updating the wiki over answering from scratch. When useful work is produced during analysis or Q&A, file the result back into the wiki as a reusable page.
If the user does not already have a schema, propose a simple markdown-first layout like:
wiki/
index.md
log.md
schema.md
sources/
pages/
topics/
concepts/
entities/
analyses/
Adapt to the user's existing layout instead of forcing this one.
Use when a new source is added.
Workflow:
index.mdlog.mdDuring ingest, prefer touching a small number of clearly relevant pages over creating a large number of weak pages.
Create a new page only when at least one of these is true:
Otherwise, expand an existing page.
Use when the user asks a question against the wiki.
Workflow:
index.md first when availableindex.md if a new page is createdlog.md if the wiki treats queries as first-class eventsPrefer answers that preserve distinctions between:
Use when checking wiki health.
Look for:
When linting, prefer producing an actionable list of fixes grouped by severity:
Favor concise pages with clear structure. A useful default shape is:
# Page Title
## Summary
Short synthesis of what this page is about.
## Key points
- Bullet points of durable knowledge
## Details
Longer notes, evidence, chronology, or structured sections
## Related
- [[Other Page]]
## Sources
- [[Source Page A]]
- [[Source Page B]]
If the wiki uses frontmatter, keep it minimal and consistent. Good optional fields include:
- `type`
- `aliases`
- `status`
- `updated`
- `source_count`
- `tags`
Do not invent elaborate metadata unless the user actually benefits from it.
## Naming and linking rules
Use stable, human-readable file names.
Prefer:
- one canonical page per concept/entity/topic
- redirects or aliases only when the wiki supports them
- explicit wiki-links between related pages
- consistent singular vs plural naming
When unsure whether two pages should merge, keep both only if they have clearly different scope. Otherwise merge and leave one canonical page.
## Index and log rules
### `index.md`
Treat `index.md` as the navigational catalog.
Include:
- page link
- one-line summary
- optional grouping by category
- optional source counts or update dates if the wiki uses them
Keep it skimmable. It should help future sessions decide what to read next.
### `log.md`
Treat `log.md` as append-only chronology.
Use a parseable heading style such as:
Keep entries concise:
- what was ingested, queried, or linted
- which pages were created or updated
- any unresolved issues
## Quality bar
A good wiki update should:
- preserve source fidelity
- surface contradictions instead of hiding them
- strengthen cross-links
- reduce future work
- make later questions cheaper to answer
Do not overwrite uncertainty with confident prose. When the evidence is mixed, say so clearly.
## Working with existing wikis
If a wiki already exists:
1. Inspect its schema, folder layout, and naming style
2. Follow the existing conventions unless they are clearly harmful
3. Repair inconsistencies gradually instead of rewriting the whole wiki at once
4. Propose larger schema changes before making them
## Obsidian-friendly guidance
For Obsidian-style vaults:
- prefer markdown files and wiki-links like `[[Page Name]]`
- keep filenames readable
- avoid fragile generated syntax unless the user already uses it
- if frontmatter exists, preserve formatting and field order when practical
- make pages pleasant to browse by humans, not only optimized for machine parsing
## Deliverables by task
### For ingest requests
Deliver:
- source summary or source page update
- updated related pages
- `index.md` update
- `log.md` entry
- short note on contradictions or open questions
### For query requests
Deliver:
- answer with citations
- optional durable analysis page if worth keeping
- any relevant index or log updates
### For lint requests
Deliver:
- prioritized issue list
- concrete proposed edits
- optional patch plan for high-value fixes
## References
- Read `references/getting-started.md` when the user needs a minimal starter schema for a new wiki.
- Read `references/wiki-patterns.md` for core page templates and structural heuristics.
- Read `references/ingest-patterns.md` when ingesting a new source into the wiki.
- Read `references/query-patterns.md` when answering questions from the wiki or deciding whether to save a durable analysis page.
- Read `references/lint-checklist.md` when checking the wiki for contradictions, stale claims, weak links, duplicates, or structural drift.
共 1 个版本