← 返回
未分类 中文

Skill Linter

Analyze and validate SKILL.md files for best practices, common issues, and improvement suggestions. Use when reviewing a Skill, creating a new Skill, or when...
分析和验证 SKILL.md 文件,遵循最佳实践,检查常见问题并提出改进建议。用于审阅技能、创建新技能或其他相关场景。
mengbin92 mengbin92 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 294
下载
💾 2
安装
1
版本
#latest

概述

Skill Linter & Advisor

Analyze SKILL.md files against Claude Code Skills best practices and provide actionable feedback.

Analysis Process

  1. Read the SKILL.md file - Load the complete content
  2. Parse frontmatter - Validate YAML structure and required fields
  3. Check content structure - Verify best practices for the markdown body
  4. Compare against patterns - Match against known good Skill patterns
  5. Generate report - Provide structured feedback with severity levels

Validation Checklist

Frontmatter (YAML Header)

CheckSeverityDescription
------------------------------
Has --- delimiters🔴 CriticalMust have opening and closing ---
Valid YAML syntax🔴 CriticalYAML must parse without errors
Has name field🟡 WarningDefaults to directory name, but explicit is better
Has description🔴 CriticalRequired for auto-trigger to work
Description quality🟡 WarningShould be specific, mention when to use
disable-model-invocation🟢 InfoOnly set if you want manual-only
user-invocable🟢 InfoSet to false to hide from / menu
allowed-tools🟡 WarningSpecify if Skill needs specific tools
model override🟢 InfoOnly if you need specific model
context: fork🟢 InfoUse for long-running or isolated tasks
agent with context🟢 InfoRequired when context: fork

Content Structure

CheckSeverityDescription
------------------------------
Has clear title/heading🟡 WarningFirst line should indicate purpose
Has process/steps🟡 WarningSkills should have actionable steps
Has output format🟡 WarningDefine expected output structure
Uses specific language🟡 WarningAvoid vague terms like "etc", "etc."
Has examples🟢 InfoConcrete examples improve reliability
Has constraints/guardrails🟢 InfoDefine what NOT to do
Appropriate length🟡 WarningToo short (<100 words) or too long (>2000)

Common Issues

IssueSeverityFix
----------------------
Missing description🔴 CriticalAdd description explaining when to trigger
Description too vague🟡 WarningBe specific about use cases
No clear output format🟡 WarningAdd expected output structure
Missing tool declarations🟡 WarningAdd allowed-tools if using tools
Too many responsibilities🟡 WarningSplit into multiple focused Skills
Hardcoded paths🟡 WarningUse variables or relative paths
No error handling guidance🟢 InfoAdd what to do when things go wrong

Output Format

# Skill Analysis Report

## File: {filepath}

### Frontmatter Analysis

| Field | Status | Value | Notes |
|-------|--------|-------|-------|
| name | ✅/⚠️/❌ | {value} | {feedback} |
| description | ✅/⚠️/❌ | {value} | {feedback} |
| ... | | | |

**Frontmatter Score:** X/10

### Content Analysis

| Check | Status | Notes |
|-------|--------|-------|
| Has clear purpose | ✅/⚠️/❌ | {feedback} |
| Actionable steps | ✅/⚠️/❌ | {feedback} |
| Output format defined | ✅/⚠️/❌ | {feedback} |
| Has examples | ✅/⚠️/❌ | {feedback} |
| Appropriate length | ✅/⚠️/❌ | {word_count} words |

**Content Score:** X/10

### Issues Found

#### 🔴 Critical (Must Fix)
1. {issue description} → {fix suggestion}

#### 🟡 Warnings (Should Fix)
1. {issue description} → {fix suggestion}

#### 🟢 Suggestions (Nice to Have)
1. {issue description} → {fix suggestion}

### Overall Assessment

**Total Score:** X/10

**Verdict:**
- ✅ Excellent - Ready to use
- 🟡 Good - Minor improvements suggested
- ⚠️ Needs Work - Address warnings before using
- ❌ Critical Issues - Must fix before using

### Recommended Actions

1. {action item}
2. {action item}
3. {action item}

### Improved Version (Optional)

If significant improvements are needed, provide a rewritten SKILL.md:


improved frontmatter


Improved content...

Skill Patterns Reference

Pattern 1: Checklist/Task Skill

For: Code review, testing, validation tasks

Structure:

  • Clear trigger description
  • Step-by-step process
  • Checklist categories
  • Severity ratings
  • Structured output format

Pattern 2: Generator Skill

For: Documentation, commit messages, reports

Structure:

  • Input requirements
  • Analysis steps
  • Template/format specification
  • Examples
  • Constraints

Pattern 3: Explorer/Research Skill

For: Code exploration, debugging, analysis

Structure:

  • Context gathering (!commands)
  • Investigation steps
  • What to look for
  • How to present findings

Pattern 4: Workflow Skill

For: Multi-step processes, releases, deployments

Structure:

  • Prerequisites check
  • Sequential steps
  • Validation points
  • Rollback guidance

Examples of Good Descriptions

Good:

  • "Perform a thorough code review following the team checklist. Use when reviewing code changes, pull requests, or when the user asks for a code review."
  • "Generate API documentation from source code. Use when the user asks to document an API endpoint, route handler, or controller."
  • "Create a standardized git commit message following Conventional Commits format. Use when the user asks to commit or create a commit message."

Bad:

  • "Does code review" (too vague)
  • "Helps with documentation" (when?)
  • "A skill for git" (too broad)

Examples of Good Output Formats

Good:

## Output Format

Structure your review as:

**Summary**
[One-paragraph overall assessment]

**Critical Issues**
[Must fix before merging]

**Approved?**
[YES / NO / YES WITH CONDITIONS]

Bad:

Just give me a review of the code.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 17:10 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 75 📥 182,321
knowledge-management

Ddg Search Fetch

mengbin92
使用 DuckDuckGo 搜索网页并获取 URL 内容,适用于无需 API 密钥或付费服务的在线信息查询。
★ 0 📥 557
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 196 📥 67,891