Module skill_md

Module skill_md 

Source
Expand description

SKILL.md parser for extracting rich skill documentation.

This module parses SKILL.md files following Anthropic’s skills format:

  • YAML frontmatter with name, description, allowed-tools
  • Markdown content with tool documentation, usage examples
  • Parameter tables and code blocks

§Example SKILL.md format

---
name: kubernetes-skill
description: Kubernetes cluster management with kubectl
allowed-tools: Read, Bash, skill-run
---

# Kubernetes Skill

## Tools Provided

### get
Get Kubernetes resources (pods, services, deployments)

**Parameters**:
- `resource` (required): Resource type
- `namespace` (optional): Kubernetes namespace

**Example**:
```bash
skill run kubernetes get resource=pods namespace=default

Structs§

CodeExample
Code example extracted from markdown
ParameterDoc
Parameter documentation from markdown
SkillMdContent
Parsed SKILL.md content
SkillMdFrontmatter
YAML frontmatter from SKILL.md
ToolDocumentation
Documentation for a specific tool

Enums§

ParameterType
Parameter type enumeration

Functions§

find_skill_md
Find SKILL.md file in a skill directory
parse_parameters
Parse parameter documentation from a tool section
parse_skill_md
Parse a SKILL.md file
parse_skill_md_content
Parse SKILL.md content from a string