export_skill
Package learned coding patterns into a distributable SKILL.md file for sharing with other AI agents using the Anthropic Agent Skill format.
Instructions
Package rule-level patterns as a SKILL.md file (Anthropic Agent Skill format).
Use this to turn learned instincts into a distributable Skill that
other agents can install — compatible with the anthropics/skills
standard. The output includes YAML frontmatter plus a body of rules
grouped by category.
For raw CLAUDE.md output instead of the Skill format, use
export_claude_md(). For other editors (.cursorrules etc.), use
export_platform().
Args:
name: Skill name for the YAML frontmatter. Becomes the Skill's
identifier. Default "instinct-rules".
description: One-sentence description in frontmatter. Empty
string auto-generates "Learned patterns from N observations".
category: Filter rules by type ("sequence", "preference",
"fix_pattern", "combo"). Empty string includes all categories.
Returns:
Dict with keys: "skill_md" (str — full SKILL.md content ready
to write to disk; empty string if no rules yet), "rule_count"
(int), and on empty a "hint" explaining the >=10 threshold.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | instinct-rules | |
| description | No | ||
| category | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||