ai-toolkit-rules
Mandatory engineering, security, testing, git, performance, quality, and response rules. Claude MUST load this skill for every…
KB conventions: YAML frontmatter, 10-category taxonomy (reference/howto/procedures/troubleshooting/best-practices/decisions/runbooks/planning/business/templates). Triggers: kb/, SOP, runbook, howto, frontmatter, knowledge base.
Claude Code
$ npx -y skills add softspark/ai-toolkit --skill documentation-standards --agent claude-code
Codex
$ npx skills add softspark/ai-toolkit --skill documentation-standards -a codex -y
Cursor
$ npx skills add softspark/ai-toolkit --skill documentation-standards -a cursor -y
Gemini CLI
$ npx skills add softspark/ai-toolkit --skill documentation-standards -a gemini-cli -y
GitHub Copilot
$ npx skills add softspark/ai-toolkit --skill documentation-standards -a github-copilot -y
OpenCode
$ npx skills add softspark/ai-toolkit --skill documentation-standards -a opencode -y
Windsurf
$ npx skills add softspark/ai-toolkit --skill documentation-standards -a windsurf -y
name: documentation-standards description: "KB conventions: YAML frontmatter, 10-category taxonomy (reference/howto/procedures/troubleshooting/best-practices/decisions/runbooks/planning/business/templates). Triggers: kb/, SOP, runbook, howto, frontmatter, knowledge base." effort: medium user-invocable: false allowed-tools: Read
Auto-loaded knowledge skill enforcing KB document conventions across all agents and skills.
Every document in `kb/` MUST start with YAML frontmatter:
--- title: "Document Title" # REQUIRED — English, descriptive category: reference # REQUIRED — one of the 10 valid categories service: ai-toolkit # REQUIRED — service identifier tags: [tag1, tag2, tag3] # REQUIRED — minimum 1, recommended 3+ last_updated: "YYYY-MM-DD" # REQUIRED — ISO format created: "YYYY-MM-DD" # REQUIRED — creation date description: "One-line summary." # REQUIRED — for search indexing version: "1.0.0" # optional — semver ---
**All 7 fields above are REQUIRED.** Documents without valid frontmatter **fail `scripts/validate.py` and block CI**.
Older documents and the `kb-migration` SOP write `section:` where this specification writes `category:`. Both names are read in the wild, so a document may carry both — and when it does **they must hold the same value**. A document filed as `category: reference` and `section: howto` is indexed twice, found once, and the reader gets whichever the index ranked higher.
New documents should write `category:`. `section:` is accepted, never required, and never authoritative on its own.
| Category | Directory | Purpose | Examples | |----------|-----------|---------|----------| | `reference` | `kb/reference/` | Technical specifications, catalogs, architecture notes, API docs | `agents-catalog.md`, `architecture-overview.md` | | `howto` | `kb/howto/` | Step-by-step task guides | `use-corrective-rag.md`, `configure-mcp-server.md` | | `procedures` | `kb/procedures/` | SOPs a person follows: release, migration, review | `sop-maintenance.md`, `sop-release.md` | | `troubleshooting` | `kb/troubleshooting/` | Problem resolution, debugging guides | `database-connection-issues.md` | | `best-practices` | `kb/best-practices/` | Guidelines, recommendations, standards | `security-checklist.md` | | `decisions` | `kb/decisions/` | Architecture decision records and design rationale | `adr-004-kb-migration.md` | | `runbooks` | `kb/runbooks/` | Procedures run against a live system, usually under pressure | `deployment.md`, `incident-response.md` | | `planning` | `kb/planning/` | Roadmaps, PRDs, work not yet done | `q3-roadmap.md` | | `business` | `kb/business/` | Domain model, requirements, use cases, user stories | `domain-model.md`, `user-stories.md` | | `templates` | `kb/templates/` | Reusable document templates | `adr-template.md`, `sop-template.md` |
**Rule:** A document filed under one of the directories above MUST declare that category. The rule is scoped to those directories deliberately: `kb/history/` and `kb/summaries/` are lifecycle and runtime locations rather than types, and a finished plan filed under `history/completed/` is still a `planning` document.
**Templates carry placeholders on purpose.** A file under `templates/` exists to be copied, so a literal `YYYY-MM-DD` date and `[placeholder]` body text are correct there rather than defects. Every other convention still applies.
This taxonomy lives in three places: ai-toolkit's `scripts/validate.py`, rag-mcp's `scripts/validate_kb_frontmatter.py`, and this document. They are one list, and a change belongs in all three.
**All KB content MUST be in English.** No exceptions for:
--- title: "AI Toolkit - [Topic]" category: reference service: ai-toolkit tags: [topic, subtopic] version: "1.0.0" created: "YYYY-MM-DD" last_updated: "YYYY-MM-DD" description: "Brief summary." --- # [Topic] ## Overview [What this document covers] ## Details [Technical content] ## Related - [Other relevant KB docs]
--- title: "How to [Task]" category: howto service: ai-toolkit tags: [howto, task-name] created: "YYYY-MM-DD" last_updated: "YYYY-MM-DD" description: "Step-by-step guide for [task]." --- # How to [Task] ## Prerequisites - [Requirement] ## Steps ### 1. [Action] [Instructions + commands] ### 2. [Action] [Instructions + commands] ## Verification [How to confirm success] ## Troubleshooting | Problem | Solution | |---------|----------| | [Error] | [Fix] |
--- title: "SOP: [Process Name]" category: procedures service: ai-toolkit tags: [sop, process-name] created: "YYYY-MM-DD" last_updated: "YYYY-MM-DD" descripti
AI coding toolkit with machine-enforced safety, 116 skills, 44 agents, lifecycle hooks, persona presets, opt-in plugin packs, and benchmark tooling.
Mandatory engineering, security, testing, git, performance, quality, and response rules. Claude MUST load this skill for every…
Searches past coding sessions for observations, decisions, context. Triggers: mem-search, recall session, past work, prior…
Accessibility validator: WCAG 2.1 AA, EN 301 549, EAA. Triggers: a11y, accessibility, WCAG, EAA, ARIA, contrast, keyboard, screen…
Creates new specialized agents with frontmatter, tools, delegation. Triggers: new agent, create agent, agent scaffold,…
Analyzes code quality, complexity, patterns across codebase. Triggers: quality report, hotspot scan, code analysis, architecture…
API design: naming, versioning, pagination, idempotency, OpenAPI, error contracts and safe retries. Triggers: API design, REST,…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.