skill-doc-generator
Auto-generates standardized README documentation from SKILL.md files, validates consistency (frontmatter, descriptions, terminology), and creates usage examples. Use when documenting individual skills, generating docs for multiple skills in a directory, or validating skill quality standards.
What this skill does
# Skill Documentation Generator Auto-generate high-quality README documentation for skills with built-in consistency validation and example generation. ## Overview This skill automates the creation of standardized README files for skills by analyzing SKILL.md files, extracting structure and examples, validating quality standards, and generating comprehensive documentation. It ensures consistency across skill documentation while providing actionable validation feedback. ## Workflow ### Single Skill Documentation Generate documentation for one skill: 1. **Analyze the skill**: ```bash python scripts/analyze_skill.py <skill_directory> ``` Extracts metadata, sections, code blocks, and resources. 2. **Validate consistency**: ```bash python scripts/validate_consistency.py <skill_directory> --verbose ``` Checks frontmatter, description quality, and terminology. 3. **Generate README**: ```bash python scripts/generate_readme.py <skill_directory> [output_path] ``` Creates README.md with validation results. ### Batch Documentation Document multiple skills at once: ```bash python scripts/document_directory.py <directory> [options] ``` **Options:** - `--output <dir>`: Specify output directory - `--no-recursive`: Don't search subdirectories - `--no-index`: Skip index file generation - `--no-validate`: Skip validation checks **Example:** ```bash # Document all user skills with validation python scripts/document_directory.py /mnt/skills/user --output ./docs # Quick pass without validation python scripts/document_directory.py ./my-skills --no-validate ``` ## Script Reference ### analyze_skill.py Parses SKILL.md and extracts structured information. **Usage**: `python scripts/analyze_skill.py <skill_directory>` **Returns**: - Metadata (name, description) - Sections and structure - Code blocks with language tags - Referenced resources (scripts, references, assets) - Statistics (line count, section count) ### validate_consistency.py Validates skill quality against standards defined in references/consistency-rules.md. **Usage**: `python scripts/validate_consistency.py <skill_directory> [--verbose]` **Checks**: - Frontmatter completeness and format - Description quality (length, clarity, triggers) - Structure appropriateness - Terminology consistency - Resource references - Code example quality **Severity Levels**: - **ERROR**: Breaks functionality (missing required fields) - **WARNING**: Quality issues (naming, unreferenced resources) - **INFO**: Suggestions (style, optional improvements) ### generate_readme.py Creates README.md from skill analysis. **Usage**: `python scripts/generate_readme.py <skill_directory> [output_path]` **Generates**: - Title and description - Overview from SKILL.md - Trigger scenarios - Structure statistics - Bundled resource lists with links - Key sections overview - Usage examples (up to 3) - Validation results (optional) **Template**: See references/readme-template.md for structure. ### document_directory.py Batch processes multiple skills in a directory. **Usage**: `python scripts/document_directory.py <directory> [options]` **Features**: - Recursive skill discovery - Parallel validation and documentation - Index generation with categorization - Summary statistics - Error handling per skill ## Quality Standards Validation enforces these standards: ### Frontmatter - **name**: Lowercase with hyphens (e.g., `skill-name`) - **description**: 50-500 chars, clear triggers - Must start with capital letter - Include "when" or "use" phrases ### Structure - Body: 100+ chars minimum, <500 lines recommended - Sections: Overview/workflow recommended - Resources: All files referenced in SKILL.md ### Terminology - Use imperative form: "Use" not "You should use" - Capitalize "Claude" consistently - Avoid vague terms: "various", "multiple" - Active voice preferred See references/consistency-rules.md and references/terminology-standards.md for complete standards. ## Reference Files ### readme-template.md Standard README structure and best practices. Defines: - Required sections - Optional sections - Formatting guidelines - Link conventions ### consistency-rules.md Detailed validation criteria. Covers: - Frontmatter requirements - Description quality metrics - Structure guidelines - Resource validation - Error severity definitions ### terminology-standards.md Standard vocabulary and style guide. Includes: - Writing style (imperative form) - Common terms and their usage - Phrases to avoid - Formatting conventions - Consistency checklist ## Examples ### Example 1: Document a Single Skill ```bash # Analyze python scripts/analyze_skill.py ./my-skill # Validate python scripts/validate_consistency.py ./my-skill --verbose # Generate README python scripts/generate_readme.py ./my-skill ``` ### Example 2: Batch Process with Index ```bash # Document all skills in a directory python scripts/document_directory.py /mnt/skills/user \ --output ./documentation \ --recursive ``` ### Example 3: Quick Validation Pass ```bash # Just validate without generating docs python scripts/validate_consistency.py ./my-skill ``` ## Common Use Cases **New skill creation**: Generate documentation as part of skill development **Quality audits**: Validate existing skills against standards **Documentation updates**: Regenerate READMEs after SKILL.md changes **Batch operations**: Document entire skill libraries **CI/CD integration**: Automated validation in deployment pipelines ## Tips - Run validation before generating documentation to catch issues early - Use `--verbose` flag to see INFO-level suggestions - Reference files provide the "why" behind validation rules - Generated READMEs include validation results for transparency - Index files help navigate large skill collections
Related in Writing & Docs
jax-development
IncludedUse this skill when the user is writing, debugging, profiling, refactoring, reviewing, benchmarking, parallelising, exporting, or explaining JAX code, or when they mention JAX, jax.numpy, jit, grad, value_and_grad, vmap, scan, lax, random keys, pytrees, jax.Array, sharding, Mesh, PartitionSpec, NamedSharding, pmap, shard_map, Pallas, XLA, StableHLO, checkify, profiler, or the JAX repo. It helps turn NumPy or PyTorch-style code into pure functional JAX, fix tracer/control-flow/shape/PRNG bugs, remove recompiles and host-device syncs, choose transforms and sharding strategies, inspect jaxpr/lowering/IR, and benchmark compiled code correctly.
nature-article-writer
IncludedDrafts, rewrites, diagnostically critiques, and style-calibrates primary research manuscripts for Nature and Nature Portfolio journals. Use when the user wants a Nature-style title, summary paragraph or abstract, introduction, results, discussion, methods, figure legends, presubmission enquiry, cover letter, reviewer response, or when a scientific draft sounds generic, jargon-heavy, structurally weak, or AI-ish and needs precise, broad-reader-friendly prose without inventing data, analyses, or references. Best for primary research articles and letters rather than reviews or press releases unless explicitly adapting one.
deckrd
IncludedDocument-driven framework that derives requirements, specifications, implementation plans, and executable tasks from goals through structured AI dialogue. Use when user says "write requirements", "create spec", "plan implementation", "derive tasks", "structure this feature", "break down into tasks", or "document this module". Also use for reverse engineering existing code into docs (/deckrd rev). Do NOT use for direct code writing — use /deckrd-coder after tasks are generated. Do NOT use when the user only wants to run or fix existing code without planning.
clinical-decision-support
IncludedGenerate professional clinical decision support (CDS) documents for pharmaceutical and clinical research settings, including patient cohort analyses (biomarker-stratified with outcomes) and treatment recommendation reports (evidence-based guidelines with decision algorithms). Supports GRADE evidence grading, statistical analysis (hazard ratios, survival curves, waterfall plots), biomarker integration, and regulatory compliance. Outputs publication-ready LaTeX/PDF format optimized for drug development, clinical research, and evidence synthesis.
handling-sf-data
IncludedSalesforce data operations with 130-point scoring. Use this skill to create, update, delete, bulk import/export, generate test data, and clean up org records using sf CLI and anonymous Apex. TRIGGER when: user creates test data, performs bulk import/export, uses sf data CLI commands, needs data factory patterns for Apex tests, or needs to seed/clean records in a Salesforce org. DO NOT TRIGGER when: SOQL query writing only (use querying-soql), Apex test execution (use running-apex-tests), or metadata deployment (use deploying-metadata).
accelint-ac-to-playwright
IncludedConvert and validate acceptance criteria for Playwright test automation. Use when user asks to (1) review/evaluate/check if AC are ready for automation, (2) assess if AC can be converted as-is, (3) validate AC quality for Playwright, (4) turn AC into tests, (5) generate tests from acceptance criteria, (6) convert .md bullets or .feature Gherkin files to Playwright specs, (7) create test automation from requirements. Handles both bullet-style markdown and Gherkin syntax with JSON test plan generation and validation.