wiki-builder
Create and maintain reusable research wikis with source provenance, configurable structure, and local markdown outputs.
- License 许可
- MIT
- 最近更新
- 2026-10-22
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- wiki-builder
- risk
- safe
- tags
- [ "dair-academy", "ai", "workflow" ]
- tools
- [ "claude-code", "codex-cli", "cursor" ]
- author
- DAIR.AI
- source
- official
- license
- MIT
- category
- knowledge-management
- date_added
- 2026-06-19
- description
- Create and maintain reusable research wikis with source provenance, configurable structure, and local markdown outputs.
- source_repo
- dair-ai/dair-academy-plugins
- source_type
- official
- license_source
- https://github.com/dair-ai/dair-academy-plugins/blob/main/README.md#license
02 资源文件 12
- 参考文档agents/openai.yaml218 B
- 参考文档references/wiki-flavors.md3.0 KB
- 脚本scripts/init_wiki.sh2.5 KB
- 参考文档templates/index.md471 B
- 参考文档templates/maintenance-log.md101 B
- 参考文档templates/prompts/compile-concept-page.md375 B
- 参考文档templates/prompts/compile-index.md373 B
- 参考文档templates/prompts/compile-source-page.md412 B
- 参考文档templates/prompts/lint-wiki.md411 B
- 参考文档templates/prompts/query-and-file.md494 B
- 参考文档templates/sources.md232 B
- 参考文档templates/wiki.config.md1.4 KB
03 SKILL.md 正文
Wiki Builder
Source: dair-ai/dair-academy-plugins (MIT).
Purpose
Create and maintain configurable research wikis. Each wiki is a standalone folder with its own sources, compiled pages, derived artifacts, prompts, and local configuration.
By default, wikis live under ~/dair-wikis/. Override the location with the WIKI_ROOT environment variable or the --root flag on init_wiki.sh.
This skill is intentionally general. Do not hard-code every wiki into the AI papers structure. Use each wiki's wiki.config.md as the source of truth for purpose, audience, page types, style rules, and update workflow.
When To Use
Use this skill when the user asks to:
- Start a new wiki or knowledge base.
- Create a wiki for research notes, papers, products, people, organizations, domains, projects, or events.
- Ingest source material into an existing wiki.
- Generate wiki pages, source pages, concept pages, maps, timelines, briefs, or indexes.
- Query a wiki and file the answer back into the wiki.
- Refactor or evolve a wiki's structure, requirements, or flavor.
- Maintain provenance, source notes, and update logs for a wiki.
Default Wiki Location
Store wikis here unless the user explicitly gives a different path:
${WIKI_ROOT:-$HOME/dair-wikis}/<wiki-slug>
Use lowercase kebab-case slugs, for example agent-memory, ai-evals, open-source-models, or company-research.
Core Layout
New wikis should start with this layout:
<wiki-slug>/
├── wiki.config.md
├── raw/
├── wiki/
│ └── index.md
├── derived/
├── prompts/
│ ├── compile-index.md
│ ├── compile-source-page.md
│ ├── compile-concept-page.md
│ ├── query-and-file.md
│ └── lint-wiki.md
├── logs/
│ └── maintenance-log.md
└── sources.md
Add more folders only when the wiki's config needs them. Common additions include wiki/papers, wiki/concepts, wiki/people, wiki/products, wiki/organizations, wiki/timelines, wiki/questions, wiki/maps, and assets.
Starting A Wiki
For new wikis, use the bundled script (resolve its path via the plugin install location, typically ${CLAUDE_PLUGIN_ROOT}/skills/wiki-builder/scripts/init_wiki.sh):
bash "${CLAUDE_PLUGIN_ROOT}/skills/wiki-builder/scripts/init_wiki.sh" <slug> --title "Readable Title" --flavor research
Pass --root /custom/path to put the wiki somewhere other than ~/dair-wikis.
Supported default flavors are research, paper, domain, product, person, organization, and project. Use research when unsure.
After scaffolding:
- Edit
wiki.config.mdto match the user's real goal. - Put copied or downloaded source material in
raw/. - Record source provenance in
sources.md. - Generate pages under
wiki/. - Record major maintenance actions in
logs/maintenance-log.md.
Operating Workflow
1. Resolve The Task
Identify whether the user is asking to start, ingest, compile, query, restructure, lint, or export. If the request names an existing wiki, inspect its wiki.config.md before making changes.
2. Use The Local Config
Every wiki can have different rules. Before generating or modifying pages, read:
wiki.config.mdsources.mdwhen source provenance matters- relevant files under
prompts/when the wiki has custom prompts
The local config beats generic defaults in this skill.
3. Preserve Provenance
Do not convert loose claims into wiki facts without a source. When using web pages, papers, transcripts, notes, or repository files, record enough provenance that a future agent can find the original source again.
At minimum, sources.md entries should include title, source path or URL, date added, and a short note about what it contributes.
4. Compile Pages
Prefer durable wiki pages over one-off summaries. Strong pages usually include:
- a concise overview
- source-grounded key points
- links to related wiki pages
- open questions or uncertainty
- update notes when relevant
Keep page structure consistent with the wiki's config and flavor.
5. Maintain The Wiki
When adding or changing many pages, update wiki/index.md, relevant maps, and logs/maintenance-log.md. If the user's request changes the wiki's purpose or structure, update wiki.config.md first.
Flavors
Use references/wiki-flavors.md when choosing or adapting wiki types. The reference gives suggested page types and structures for research, paper, domain, product, person, organization, and project wikis.
Quality Bar
- Make the first page useful immediately.
- Prefer explicit filenames and stable slugs.
- Separate raw source material from compiled interpretation.
- Link related wiki pages.
- Mark speculation and unknowns clearly.
- Avoid rewriting the same source summary in many places.
- Keep generated pages navigable for future agents and humans.
Limitations
- Requires the upstream tool, account, API key, or local setup when the workflow names one.
- Does not authorize destructive, production, paid, or external-message actions without explicit user approval.
- Validate generated artifacts or recommendations against the user's real sources before treating them as final.
04 同仓库更多 Skills
testing-best-practices
Laravel test design and review. Use when selecting coverage, naming or structuring tests, choosing assertions or test data, isolating dependencies, testing HTTP or security boundaries, improving suite performance, or reviewing test value. Use framework guidance or search-docs for Pest and PHPUnit syntax.
tailwindcss-development
Always invoke when the user's message includes 'tailwind' in any form. Also invoke for: building responsive grid layouts (multi-column card grids, product grids), flex/grid page structures (dashboards with sidebars, fixed topbars, mobile-toggle navs), styling UI components (cards, tables, navbars, pricing sections, forms, inputs, badges), adding dark mode variants, fixing spacing or typography, and Tailwind v3/v4 work. The core use case: writing or fixing Tailwind utility classes in HTML templates (Blade, JSX, Vue). Skip for backend PHP logic, database queries, API routes, JavaScript with no HTML/CSS component, CSS file audits, build tool configuration, and vanilla CSS.
laravel-best-practices
Apply this skill whenever writing, reviewing, or refactoring Laravel PHP code. This includes creating or modifying controllers, models, migrations, form requests, policies, jobs, scheduled commands, service classes, and Eloquent queries. Triggers for N+1 and query performance issues, caching strategies, authorization and security patterns, validation, error handling, queue and job configuration, route definitions, and architectural decisions. Also use for Laravel code reviews and refactoring existing Laravel code to follow best practices. Covers any task involving Laravel backend PHP code patterns.
infer-conventions
Use this skill to analyze how a Laravel application is actually written and record its conventions as shared rules. Trigger when the user wants to detect, infer, document, or standardize project conventions or coding style, set up or grow `.ai/rules`, resolve mixed or conflicting patterns (e.g. "are we using Form Requests or inline validation?"), or onboard agents and teammates to "how we do things here". Covers: a systematic sweep of ~49 Laravel convention dimensions (validation, models, architecture, testing, frontend, database, console), open-ended house-pattern discovery, conflict reporting, and recording rules scoped to the right paths via the Boost `record-rule` MCP tool. Only run this skill when the user explicitly asks for it; never start a sweep as part of another task. Do not use for one-off code review, enforcing formatting a linter already handles, or editing `.ai/rules` files by hand.
inertia-react-development
Develops Inertia.js v2 React client-side applications. Activates when creating React pages, forms, or navigation; using <Link>, <Form>, useForm, or router; working with deferred props, prefetching, or polling; or when user mentions React with Inertia, React pages, React forms, or React navigation.
deploying-to-cloud
Deploys and manages Laravel applications on Laravel Cloud using the `cloud` CLI. Use when the user wants to deploy an app, ship to Cloud, create or manage applications, environments, databases, caches, object storage, queues, domains, instances, background processes, secrets, compute, scheduled tasks, or Laravel Cloud infrastructure; or check billing, usage, or spend. Triggers on deployment, shipping, Cloud management, environment setup, database provisioning, billing or usage queries, the `cloud` CLI, and Laravel Cloud deployment troubleshooting.