AGENT SKILL

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.

  1. Install the package: npm install --save-dev @hawkeyexl/manni.
  2. Find the docs. Look for Markdown and MDX folders, such as docs/. Ask the user to confirm the paths.
  3. Write manni.config.yaml at the repository root with a top-level collections: 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.

  1. 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.

  1. Run node "${CLAUDE_PLUGIN_ROOT}/hooks/manni.mjs" status and 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.
  2. Run node "${CLAUDE_PLUGIN_ROOT}/hooks/manni.mjs" check. Report the result and use the fix skill 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