aiskillstore/marketplace / skills/2025emma/claude-skills
claude-skills
VerifiedClaude Skills meta-skill: extract domain material (docs/APIs/code/specs) into a reusable Skill (SKILL.md + references/scripts/assets), and refactor existing Skills for clarity, activation reliability, and quality gates.
| File | Kind | Size |
|---|---|---|
| AGENTS.md | markdown | 1.9 KB |
| SKILL.md | skill md | 7.9 KB |
| assets/template-complete.md | markdown | 2.4 KB |
| assets/template-minimal.md | markdown | 926 B |
| references/README.md | markdown | 7.5 KB |
| references/anti-patterns.md | markdown | 3.0 KB |
| references/index.md | markdown | 1.3 KB |
| references/quality-checklist.md | markdown | 1.9 KB |
| references/skill-spec.md | markdown | 3.4 KB |
| scripts/create-skill.sh | script | 4.1 KB |
| scripts/validate-skill.sh | script | 5.4 KB |
| skill-report.json | config | 35.2 KB |
scripts/validate-skill.sh
View on GitHubTRANSLATED CONTENT:
#!/usr/bin/env bash
set -euo pipefail
usage() {
cat <<'EOF'
Usage:
validate-skill.sh <skill-dir> [--strict]
What it does:
- Validates SKILL.md YAML frontmatter (name/description)
- Performs lightweight structural checks
- In --strict mode, enforces the recommended section layout
Examples:
./skills/claude-skills/scripts/validate-skill.sh skills/postgresql
./skills/claude-skills/scripts/validate-skill.sh skills/my-skill --strict
EOF
}
die() {
echo "Error: $*" >&2
exit 1
}
warn() {
echo "Warning: $*" >&2
}
strict=0
skill_dir=""
while [[ $# -gt 0 ]]; do
case "$1" in
-h|--help)
usage
exit 0
;;
--strict)
strict=1
shift
;;
--)
shift
break
;;
-*)
die "Unknown argument: $1 (use --help)"
;;
*)
if [[ -z "$skill_dir" ]]; then
skill_dir="$1"
shift
else
die "Extra argument: $1 (only one <skill-dir> is allowed)"
fi
;;
esac
done
[[ -n "$skill_dir" ]] || { usage; exit 1; }
[[ -d "$skill_dir" ]] || die "Not a directory: $skill_dir"
skill_md="$skill_dir/SKILL.md"
[[ -f "$skill_md" ]] || die "Missing SKILL.md: $skill_md"
base_name="$(basename -- "${skill_dir%/}")"
# -------------------- Parse YAML frontmatter --------------------
frontmatter=""
if frontmatter="$(
awk '
BEGIN { in_fm=0; closed=0 }
NR==1 {
if ($0 != "---") exit 2
in_fm=1
next
}
in_fm==1 {
if ($0 == "---") { closed=1; exit 0 }
print
next
}
END {
if (closed == 0) exit 3
}
' "$skill_md"
)"; then
:
else
rc=$?
case "$rc" in
2) die "SKILL.md must start with YAML frontmatter (--- as the first line)" ;;
3) die "YAML frontmatter is not closed (missing ---)" ;;
*) die "Failed to parse YAML frontmatter (awk exit=$rc)" ;;
esac
fi
name="$(
printf "%s\n" "$frontmatter" | awk -F: '
tolower($1) ~ /^name$/ {
sub(/^[^:]*:[[:space:]]*/, "", $0)
gsub(/[[:space:]]+$/, "", $0)
print
exit
}
'
)"
description="$(
printf "%s\n" "$frontmatter" | awk -F: '
tolower($1) ~ /^description$/ {
sub(/^[^:]*:[[:space:]]*/, "", $0)
gsub(/[[:space:]]+$/, "", $0)
print
exit
}
'
)"
[[ -n "$name" ]] || die "Missing frontmatter field: name"
[[ -n "$description" ]] || die "Missing frontmatter field: description"
if [[ ! "$name" =~ ^[a-z][a-z0-9-]*$ ]]; then
die "Invalid name: '$name' (expected ^[a-z][a-z0-9-]*$)"
fi
if [[ "$strict" -eq 1 && "$name" != "$base_name" ]]; then
die "Strict mode: frontmatter name ('$name') must match directory name ('$base_name')"
fi
# -------------------- Strip fenced code blocks for section checks --------------------
filtered_md="$(mktemp)"
trap 'rm -f "$filtered_md"' EXIT
awk '
BEGIN { in_fence=0 }
/^[[:space:]]*```/ { in_fence = !in_fence; next }
in_fence==0 { print }
' "$skill_md" > "$filtered_md"
# -------------------- Structural checks --------------------
required_h2=(
"When to Use This Skill"
"Not For / Boundaries"
"Quick Reference"
"Examples"
"References"
"Maintenance"
)
for title in "${required_h2[@]}"; do
if ! grep -Eq "^##[[:space:]]+${title}([[:space:]]*)$" "$filtered_md"; then
if [[ "$strict" -eq 1 ]]; then
die "Strict mode: missing required section heading: '## ${title}'"
fi
warn "Missing recommended section heading: '## ${title}'"
fi
done
# references/index.md presence (only enforced in strict mode when references/ exists)
if [[ -d "$skill_dir/references" && "$strict" -eq 1 && ! -f "$skill_dir/references/index.md" ]]; then
die "Strict mode: references/ exists but references/index.md is missing"
fi
# -------------------- Heuristics: Quick Reference size --------------------
quick_start="$(awk 'match($0, /^##[[:space:]]+Quick Reference([[:space:]]*)$/){print NR; exit}' "$filtered_md" || true)"
if [[ -n "$quick_start" ]]; then
quick_end="$(awk -v s="$quick_start" 'NR>s && match($0, /^##[[:space:]]+/){print NR; exit}' "$filtered_md" || true)"
total_lines="$(wc -l < "$filtered_md" | tr -d ' ')"
if [[ -z "$quick_end" ]]; then
quick_end="$((total_lines + 1))"
fi
quick_len="$((quick_end - quick_start - 1))"
if [[ "$quick_len" -gt 250 ]]; then
if [[ "$strict" -eq 1 ]]; then
die "Strict mode: Quick Reference section is too long (${quick_len} lines). Move long-form text into references/."
fi
warn "Quick Reference section is large (${quick_len} lines). Consider moving long-form text into references/."
fi
fi
# -------------------- Heuristics: Examples count --------------------
examples_start="$(awk 'match($0, /^##[[:space:]]+Examples([[:space:]]*)$/){print NR; exit}' "$filtered_md" || true)"
if [[ -n "$examples_start" ]]; then
examples_end="$(awk -v s="$examples_start" 'NR>s && match($0, /^##[[:space:]]+/){print NR; exit}' "$filtered_md" || true)"
total_lines="$(wc -l < "$filtered_md" | tr -d ' ')"
if [[ -z "$examples_end" ]]; then
examples_end="$((total_lines + 1))"
fi
example_count="$(
awk -v s="$examples_start" -v e="$examples_end" '
NR>s && NR<e && match($0, /^###[[:space:]]+Example([[:space:]]|$)/) { c++ }
END { print c+0 }
' "$filtered_md"
)"
if [[ "$example_count" -lt 3 ]]; then
if [[ "$strict" -eq 1 ]]; then
die "Strict mode: expected >= 3 examples (found ${example_count})."
fi
warn "Recommended: >= 3 examples (found ${example_count})."
fi
fi
echo "OK: $skill_dir"
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-changelog-updatemorluto/reaPrepare or rewrite REA release changelogs and GitHub release notes from pinned Git history, with verified contributor thanks and Release Please synchronization. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| academy-guideanthropics/skillsStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| claude-apianthropics/skillsReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIRST if no provider named — don't Read the file). | Stars: 198k | Updated | Claude CodeCodex | Unverified | Install |
| doc-coauthoringanthropics/skillsGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |