write-skill

Creates and validates standards-compliant skill files with proper structure.

16|5|Updated Dec 3, 2025
One-click install
npx skills add https://github.com/wayne930242/weihung-claude-plugin --skill write-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-skill
Source: https://github.com/wayne930242/weihung-claude-plugin/tree/main/skills/write-skill
Command: npx skills add https://github.com/wayne930242/weihung-claude-plugin --skill write-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Crafting effective Claude Skills requires adherence to specific structural, content, and best practice guidelines (e.g., concise descriptions, progressive disclosure, token efficiency). This skill simplifies the process of creating high-quality, optimized SKILL.md files.

Core Features & Use Cases

  • Skill Scaffolding: Initializes new skill directories with the correct structure, including SKILL.md, scripts/, references/, and assets/.
  • Best Practices & Validation: Guides users on writing effective YAML frontmatter (especially descriptions with triggers), body content, and provides a validation script to check for common issues.
  • Progressive Disclosure: Teaches how to keep SKILL.md lean by offloading detailed information to references/, improving token efficiency.
  • Use Case: You need to create a new skill for "semantic commit generation". This skill helps you structure SKILL.md with a clear description, define a script for the core logic, and add detailed examples in references/examples.md.

Quick Start

Help me write a new Claude Skill called 'code-reviewer'. It should focus on identifying common anti-patterns in Python code.

Frequently Asked Questions about write-skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a new Claude Skill with proper SKILL.md structure and frontmatter?

Create a SKILL.md file with required YAML frontmatter (name, description fields), keep the body under 200 lines, and organize supporting content into scripts/, references/, and assets/ directories. This structure ensures consistency and token efficiency across your Skill implementation.

What's the best way to write an effective Skill description for prompt engineering and AI development?

Write a concise description that includes triggers and clearly states the problem solved, following best practices for YAML frontmatter. Use progressive disclosure to keep descriptions lean while offloading detailed examples and guidance to references/, maximizing token efficiency.

How do I validate my SKILL.md file for common formatting and best practice issues?

Use the included validation script to check for YAML frontmatter compliance, required name and description fields, body length constraints, and correct directory layout. This ensures your Skill meets functional requirements before deployment.

Can I use this Skill to improve an existing Claude Skill or only for creating new ones?

This Skill applies to both creating new Skills and refactoring existing ones. It provides standardized templates and best-practice guidance to ensure all Skills—whether new or mature—meet structural, content, and optimization standards.

Why should I keep SKILL.md bodies under 200 lines and use progressive disclosure?

Lean SKILL.md files with progressive disclosure reduce token overhead and improve readability. By moving detailed examples, extended documentation, and reference material to separate files, you create efficient Skills that load faster and communicate intent clearly.

What components and supporting files does a well-structured Skill need?

A complete Skill includes SKILL.md with frontmatter, a scripts/ directory for core logic, a references/ directory for documentation and examples, and an assets/ folder for media or config files. This layout supports automation, best practices, and lean design.