Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
nameNoinstinct-rules
descriptionNo
categoryNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden and does well by explaining key behaviors: it describes the output format (YAML frontmatter plus grouped rules), mentions compatibility with the anthropics/skills standard, and notes the return structure including error handling ('empty string if no rules yet' and 'hint explaining the >=10 threshold'). It doesn't cover all possible behavioral aspects like performance or side effects, but provides substantial context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is efficiently structured with purpose first, usage guidelines second, parameter explanations third, and return details last. Every sentence adds value with zero waste, and it's appropriately sized for a tool with three parameters and specific output format requirements.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (format conversion with filtering), no annotations, and an output schema that exists, the description provides excellent completeness. It explains the transformation purpose, distinguishes from alternatives, documents all parameters thoroughly, and describes the return structure including error cases. The output schema handles return values, so the description appropriately focuses on other aspects.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description fully compensates by explaining all three parameters in detail: 'name' becomes the Skill's identifier with default, 'description' is for frontmatter with auto-generation behavior, and 'category' filters rules by type with empty string meaning all categories. This adds crucial meaning beyond the bare schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Package rule-level patterns as a SKILL.md file') and resource ('Anthropic Agent Skill format'), distinguishing it from sibling tools like export_claude_md and export_platform by specifying the exact output format. It provides a concrete purpose beyond just the tool name.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly states when to use this tool versus alternatives: 'For raw CLAUDE.md output instead of the Skill format, use export_claude_md(). For other editors (.cursorrules etc.), use export_platform().' This provides clear guidance on tool selection among siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yakuphanycl/instinct'

If you have feedback or need assistance with the MCP directory API, please join our Discord server