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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"scope": "<scope>",
"content": "<content>"
},
"name": "save_chain"
}
}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 |