spec-author
Use to author an agent, skill, rule or hook
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 27
- Forks
- 6
01 前言 Front Matter
- name
- spec-author
- description
- Use to author an agent, skill, rule or hook
03 SKILL.md 正文
spec-author
Create or update the smallest spec that expresses the requested behavior. Infer the kind from the request and existing specs; ask only when the choice changes the outcome. Reuse a matching spec instead of creating a duplicate.
Steps
- Read
agnostic-ai.yamlfor configured source paths and inspect sibling specs. The default root is.agnostic-ai/. - Read the matching page under
docs/site/content/docs/spec-format/for fields and native limits. For a new spec, usego run ./cmd/agnostic-ai new <kind> <name> --dry-runto inspect the scaffold, then create it. Never overwrite an existing spec with a scaffold. - Use
agents/<name>.md,rules/<name>.md, orhooks/<name>.yamlunder the configured root. Skills can use<name>.mdor<name>/SKILL.md; use the folder layout when bundling references or scripts. - Write a short description that tells an agent when to use the spec. Keep the body focused on decisions and actions, with conditional details in existing references. Hooks need the documented event and exact
command; test the emitted behavior in an isolated project. - Run
go run ./cmd/agnostic-ai validateandgo run ./cmd/agnostic-ai lint, then preview withgo run ./cmd/agnostic-ai sync --dry-run. Check the intended targets and output paths. - Generate with
go run ./cmd/agnostic-ai sync, then verifygo run ./cmd/agnostic-ai sync --check. Review tracked output changes and keep ignored output ignored. Followdocs/internal/contributing.md#choose-checks-for-your-changefor other checks the change requires.
Use lowercase, hyphenated names. An explicit name matches the Markdown file stem, or the containing folder for SKILL.md. Paths in shared instructions are repository-root relative; state that convention when generated copies live at different depths.
04 同仓库更多 Skills
side-conversation
Start a side conversation in a new terminal tab, linked to this one. Use when asked to spin a task off, or to follow something up in its own conversation.
release
Cut a release and verify it. Use only when asked to release.
sample-skill
A sample skill for golden snapshot tests.
sample-command
A sample command for golden snapshot tests.
sample-skill
A sample skill for golden snapshot tests.
sample-command
A sample command for golden snapshot tests.