save_chain
Create reusable thinking chains as validated Markdown files with YAML frontmatter. Choose global or project scope; overwrite only when allowed. Invalid chains are not written.
Instructions
Create or update a custom thinking chain as a Markdown file with YAML frontmatter (fields: name, description, mode: checklist|staged, optional domain/language/schema_version). The content is fully validated before writing; nothing is written on validation failure. name must equal the frontmatter name. Existing chains are only replaced when overwrite: true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Chain name (lowercase slug); must equal the frontmatter name | |
| scope | Yes | global = ~/.claude/kata, project = <root>/.claude/kata | |
| content | Yes | Complete Markdown source including YAML frontmatter | |
| overwrite | No |