setup
Set up manni in a repository. Use when there is no manni.config.yaml, when the user asks to add manni, or when manni check reports that nothing is set up.
- License 许可
- MIT
- 所属仓库
- hawkeyexl/manni
- 最近更新
- 2026-11-14
- Stars
- ★ 3
- Forks
- 1
01 前言 Front Matter
- name
- setup
- description
- Set up manni in a repository. Use when there is no manni.config.yaml, when the user asks to add manni, or when manni check reports that nothing is set up.
- allowed-tools
- Bash(npm *), Bash(npx manni *), Bash(node "${CLAUDE_PLUGIN_ROOT}/hooks/manni.mjs" *)
03 SKILL.md 正文
Set up manni
Do these steps in order. Ask before you choose anything that changes how the docs are judged.
- Install the package:
npm install --save-dev @hawkeyexl/manni. - Find the docs. Look for Markdown and MDX folders, such as
docs/. Ask the user to confirm the paths. - Write
manni.config.yamlat the repository root with a top-levelcollections:entry for those docs.
collections:
- name: site
paths:
- "docs/**/*.{md,mdx}"
exclude:
- "docs/drafts/**"
name is required and unique. The name docs is refused, so pick another. exclude is optional.
- Ask which domains to set up. A domain is in play only when its section exists. Offer these:
| Domain | What it checks | How to set it up |
|---|---|---|
| meta | Frontmatter against JSON Schema | Add a meta: section with schemas:. Run manni meta schemas to list the built-in ones. |
| lint | Page structure against templates | Add a lint: section. See manni lint templates. |
| docevals | Evals declared in page frontmatter | Add a docevals: section. |
| graph | The knowledge graph and its SHACL shapes | Run manni graph init. It appends a graph: section. |
Run manni docevals init only when no config file exists. It refuses an existing one. With a config in place, write the docevals: section by hand.
Citations, terms and strategy records need no section. They are in play when the pages carry them.
- Run
node "${CLAUDE_PLUGIN_ROOT}/hooks/manni.mjs" statusand show the user the table. Each domain that is not set up names what would set it up. Offer those, and add only what the user accepts. - Run
node "${CLAUDE_PLUGIN_ROOT}/hooks/manni.mjs" check. Report the result and use thefixskill for any error.
Do not add a section for a domain the user declined. A section that exists turns that domain's checks on.
04 同仓库更多 Skills
demo
Edits the web page.
release
Cuts a release of the notes app.
publish
Publishes a docs page.
demo
A demo skill.
fix-bug
Fix a reported bug, reproducing it with a failing test first.
write-docs
Write or update a documentation page.