Extract a format from example files
extract_formatDerives a reusable formatting skill from .xlsx, .pptx, and screenshot examples by extracting style tokens, then previews or saves the skill for consistent document and deck creation.
Instructions
Derive a formatting skill from examples: .xlsx and .pptx files are parsed into style tokens, screenshots come back as images for you to read. Call it once with no save to see what was recovered and what has to be asked, pass your reading of any screenshots back as observations, then call again with save: true to write ~/.claude/skills//SKILL.md and, for deck tokens, the builder sidecar. fromSkill derives deck tokens for a prose-only skill instead of from files.
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": "extract_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Which half to derive; files of the other kind are ignored | both |
| name | No | Style name. The skill directory is its slug. Required to save | |
| save | No | false: preview only. true: write the SKILL.md and the deck tokens sidecar | |
| paths | No | Absolute paths to examples: .xlsx, .pptx, .png, .jpg. Pass paths as the user gave them; never base64 | |
| fromSkill | No | Name of an existing skill (e.g. harbor-deck) to derive tokens for. Returns its prose; send observations back to write its sidecar | |
| overwrite | No | Replace an existing skill directory of the same name | |
| description | No | One line for the skill's front matter: when to use this style. Written for you if omitted | |
| observations | No | Your reading of the screenshots in the extractor's schema (docs/skill-format-block.md). A field a file read at 0.8 or better wins; the rest is yours. |