xiaohongshu
xiaohongshu
skill-creator-from-docs
Create comprehensive PAI skills from tool/CLI/API documentation. Analyzes docs (markdown or URLs via crawl4ai), deduces workflows, generates helper scripts/templates/guardrails, and builds complete skill packages. USE WHEN user says 'create skill from docs', 'build skill for [tool]', 'turn docume...
Full skill instructions
Transform documentation for tools, CLIs, APIs, or libraries into comprehensive, production-ready PAI skills with helper scripts, templates, and guardrails.
Input Methods:
Markdown Documentation (Direct)
User provides markdown content directly
Documentation URLs (Extract) Use crawl4ai-cli skill to extract documentation:
# For single page
crwl https://docs.example.com/tool -o markdown > docs.md
# For multiple pages
crwl https://docs.example.com/guide/page1 -o markdown > part1.md
crwl https://docs.example.com/guide/page2 -o markdown > part2.md
Mixed Approach Combine crawled content with user-provided context
Deliverable: Complete documentation in markdown format
Analyze the documentation to extract:
Tool Overview
Command/API Patterns
Workflows
Pitfalls & Gotchas
Best Practices
Deliverable: Structured analysis document
Design the skill components:
Identify Helper Scripts Needed
Design Config Templates
Create Guardrails
Define Checklists
Build Reference Structure
Deliverable: Skill design document with component list
Create all skill components using templates:
Directory Structure
~/.claude/skills/[tool-name]/
├── SKILL.md # Main skill file
├── references/ # Detailed references
│ ├── cli-reference.md # Complete CLI docs
│ ├── config-reference.md # Configuration options
│ ├── patterns.md # Proven workflows
│ └── troubleshooting.md # Common issues
├── scripts/ # Helper scripts
│ ├── setup.sh # First-time setup
│ ├── validate_*.py # Validation scripts
│ ├── generate_*.py # Generator scripts
│ └── README.md # Scripts documentation
└── templates/ # Config templates
├── basic_config.yml
├── advanced_config.yml
└── [other templates]
Generate Helper Scripts
templates/helper-script.py.templatetemplates/helper-script.sh.templateCreate Config Templates
templates/config-template.yml.templateWrite Reference Docs
Deliverable: Complete skill directory with all artifacts
Write the main SKILL.md file:
YAML Frontmatter
---
name: tool-name
description: Clear description. USE WHEN triggers. Keywords.
---
Structure (use template: templates/tool-skill-SKILL.md.template)
Key Elements
Deliverable: Complete SKILL.md file
Add to Global Context
Update ~/.claude/global/KAI.md:
<skill>
<name>tool-name</name>
<description>Your skill description</description>
<location>user</location>
</skill>
Test Activation
Test Workflows
Iterate
Deliverable: Production-ready skill integrated into PAI
Located in ~/.claude/skills/skill-creator-from-docs/templates/:
tool-skill-SKILL.md.template - Main skill structurehelper-script.py.template - Python helper scripthelper-script.sh.template - Bash helper scriptconfig-template.yml.template - Configuration fileREADME-scripts.md.template - Scripts directory READMEFor a CLI tool, typically create:
Helper Scripts:
setup.sh - First-time installation and verificationvalidate_config.py - Validate configuration filesgenerate_config.py - Interactive config generatorTemplates:
basic_config.yml - Simple use case presetadvanced_config.yml - Full-featured preset[specific]_config.yml - Task-specific presetsReferences:
cli-reference.md - Complete flag documentationconfig-reference.md - All configuration optionspatterns.md - Proven multi-step workflowstroubleshooting.md - Common issues and solutionsSKILL.md Sections:
For comprehensive methodology and detailed examples:
read ~/.claude/skills/skill-creator-from-docs/CLAUDE.md
For template usage:
ls ~/.claude/skills/skill-creator-from-docs/templates/
1. User provides documentation URLs
2. Use crawl4ai-cli to extract docs to markdown
3. Analyze extracted documentation
4. Brainstorm components (scripts, templates, guardrails)
5. Create directory structure
6. Generate artifacts from templates
7. Write SKILL.md
8. Test and iterate
1. User provides markdown documentation
2. Analyze documentation directly
3. Brainstorm components
4. Create directory structure
5. Generate artifacts from templates
6. Write SKILL.md
7. Test and iterate
1. Analyze current skill structure
2. Identify missing components (scripts, templates, refs)
3. Generate missing pieces from templates
4. Update SKILL.md with new components
5. Test enhancements
Documentation Analysis:
Script Creation:
Template Design:
Guardrails:
Testing:
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience