export_skill
Package rule-level patterns into a SKILL.md file compatible with skills-aware agent runtimes. Builds YAML frontmatter and Markdown body from observed patterns.
Instructions
Package rule-level patterns as a SKILL.md file (anthropics/skills format).
Builds a complete Skill document: YAML frontmatter (name,
description) followed by a Markdown body grouping each rule-level
pattern by category, with confidence and explain text. The returned
string is ready to write to disk as SKILL.md and install into a
skills-aware agent runtime (e.g. agentskills.io). Read-only.
For human-readable CLAUDE.md output use export_claude_md(). For
editor-specific formats (.cursorrules, AGENTS.md) use
export_platform(target). For raw JSON use export_rules().
Args:
name: Skill identifier written into the YAML frontmatter.
Becomes the Skill's name on disk. Default "instinct-rules".
description: One-sentence description in the frontmatter.
Empty string auto-generates "Learned patterns from N
observations" using the current rule count.
category: Filter rules by type. One of "sequence",
"preference", "fix_pattern", "combo". Empty string (default)
includes every category.
Returns:
On success: {"skill_md": str, "rule_count": int, "hint": str}.
"skill_md" is the full file content ready to write. "rule_count"
is parsed from the rendered body (number of rule bullets).
On empty store: {"skill_md": "", "rule_count": 0, "hint": str}.
"hint" explains the promoted >= 2 prerequisite and directs the
caller to run consolidate() first so mature patterns can cross
the threshold.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "export_skill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | instinct-rules | |
| description | No | ||
| category | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||