Agent skill
skill-create
[Skill Management] Create new Claude Code skills or scan/fix invalid skill headers. Triggers on: create skill, new skill, skill schema, scan skills, fix skills, invalid skill, validate skills, skill header.
Install this agent skill to your Project
npx add-skill https://github.com/duc01226/EasyPlatform/tree/main/.claude/skills/skill-create
SKILL.md
[IMPORTANT] Use
TaskCreateto break ALL work into small tasks BEFORE starting — including tasks for each file read. This prevents context loss from long files. For simple tasks, AI MUST ask user whether to skip.
Quick Summary
Goal: Create new Claude Code skills with proper structure or scan/fix invalid skill headers across the catalog.
Workflow:
- Clarify — Gather purpose, trigger keywords, tools needed via AskUserQuestion
- Check Existing — Glob for similar skills, avoid duplication
- Scaffold — Create directory + SKILL.md with frontmatter + Quick Summary
- Validate — Run frontmatter + header validation
Key Rules:
- Every SKILL.md MUST include
## Quick Summary(Goal/Workflow/Key Rules) within first 30 lines - Single-line
descriptionwith[Category]prefix and trigger keywords - SKILL.md under 500 lines; use
references/for detail - Always break work into small todo tasks; always add final self-review task
Be skeptical. Apply critical thinking, sequential thinking. Every claim needs traced proof, confidence percentages (Idea should be more than 80%).
Modes
| Mode | Trigger | Action |
|---|---|---|
| Create | $ARGUMENTS describes a new skill |
Create skill following workflow below |
| Scan & Fix | $ARGUMENTS mentions scan, fix, validate, invalid |
Run validation across all skills |
Prerequisites
- MUST READ
references/claude-skill-schema.md— Official Claude Code SKILL.md schema
Mode 1: Create Skill
Workflow
- Clarify — If requirements unclear, use
AskUserQuestionfor: purpose, auto vs user-invoked, trigger keywords, tools needed - Check Existing — Glob
.claude/skills/*/SKILL.mdfor similar skills. Avoid duplication. - Create Directory —
.claude/skills/{skill-name}/SKILL.md - Write Frontmatter — Follow schema from
references/claude-skill-schema.md - Write Instructions — Concise, actionable, progressive disclosure
- Add References — Move detailed docs to
references/directory if content >200 lines - Add Scripts — Create
scripts/for executable helpers if needed - Validate — Run frontmatter validation (see Mode 2 single-file check)
Frontmatter Template
---
name: { kebab-case-name }
description: '[Category] What it does. Triggers on: keyword1, keyword2.'
---
Official fields: name, description, argument-hint, disable-model-invocation, user-invocable, allowed-tools, model, context, agent, hooks
Project conventions (non-official but used here): disable-model-invocation: false, version: X.Y.Z
Rules
- SKILL.md is instructions, not documentation. Teach Claude HOW to do the task.
- Single-line
description(multi-line YAML breaks catalog parsing) - Description must include trigger keywords for auto-activation
- Use
[Category]prefix in description (e.g.,[Frontend],[Planning],[AI & Tools]) - Keep SKILL.md under 500 lines; use
references/for detail - Progressive disclosure: frontmatter → SKILL.md summary → reference files
- Token efficiency: every line must earn its place
- No URLs without context — explain what the link provides
- Use
researchersubagent if topic needs research - Use
Exploresubagent for URLs/repos (parallel for multiple sources) - Use
repomixfor GitHub repos
Mode 2: Scan & Fix Invalid Skills
What It Validates
| Check | Rule | Severity |
|---|---|---|
| Frontmatter exists | Must have --- delimiters |
Error |
| Description single-line | No literal newlines in description value | Error |
| Description not empty | Must have description for discoverability | Warning |
| Name format | Lowercase, hyphens, max 64 chars | Error |
| No unknown official fields | Flag fields not in official schema | Info |
| Description has category | Should start with [Category] |
Warning |
| File size | SKILL.md should be <500 lines | Warning |
| Quick Summary exists | Must have ## Quick Summary in first 30 lines |
Warning |
Scan Workflow
- Discover — Glob
.claude/skills/*/SKILL.mdfor all skills - Parse — Read first 20 lines of each file, extract frontmatter
- Validate — Check each rule above
- Report — List issues grouped by severity (Error > Warning > Info)
- Fix — If user confirms, fix Error-level issues automatically:
- Missing frontmatter → add minimal
---\nname: {dir-name}\ndescription: ''\n--- - Multi-line description → collapse to single line
- Invalid name → suggest kebab-case fix
- Missing frontmatter → add minimal
Validate Script
# Report only
node .claude/skills/skill-create/scripts/validate-skills.cjs
# Report + auto-fix (removes invalid fields, renames typos)
node .claude/skills/skill-create/scripts/validate-skills.cjs --fix
# Scan specific directory
node .claude/skills/skill-create/scripts/validate-skills.cjs --path .claude/skills/my-skill
Requirements
$ARGUMENTS
Closing Reminders
- MUST break work into small todo tasks using
TaskCreateBEFORE starting - MUST search codebase for 3+ similar patterns before creating new code
- MUST cite
file:lineevidence for every claim (confidence >80% to act) - MUST add a final review todo task to verify work quality MANDATORY IMPORTANT MUST READ the following files before starting:
- MUST READ
references/claude-skill-schema.mdbefore starting
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
figma-design
[Frontend] Extract design context from Figma URLs via MCP, REST API, or screenshot fallback. Produces structured design tokens, component inventory, and layout specs for design-spec consumption. Triggers on figma url, figma design, extract figma, figma to code.
repomix
[AI & Tools] Package code repositories into single AI-friendly files using Repomix with customizable patterns and multiple output formats. Triggers: repomix, package repo, repository context, codebase snapshot, repo pack.
batch-research
批量数据采集技能,负责分批并发调度 researcher agent 抓取所有数据源。
chinese-writing
专注科技周刊的中文写作与审稿技能指南,指导大模型生成与审核清晰、克制、无 AI 味的高质量周刊内容。
publish-weekly
使用 Payload REST API 将周刊发布到 CMS,正文不包含头部元数据,通过 users API Key 认证。
edit-article
Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.
Didn't find tool you were looking for?