Review and validate Claude Code skills for completeness, packaging correctness, and marketplace compatibility. Use when reviewing a skill, checking skill packaging, validating SKILL.md before publishing, or running /skill-review. Checks frontmatter, file references, variable substitution, and external dependencies.
Ships in rhoai-security-reviewer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Comprehensive validation of Claude Code skills to ensure they are well-formed, self-contained, and marketplace-compatible.
/skill-review [skill-directory]
If no directory specified, reviews the current working directory as a skill.
This skill performs 13 validation checks. See references/checks.md for detailed descriptions of each check.
references/ if needed$ARGUMENTS, $0-$9, ${CLAUDE_SKILL_DIR}, ${CLAUDE_SESSION_ID}${CLAUDE_SKILL_DIR}/ refs resolve to real filescontext: fork Impact — streaming suppression in CI/pipeline contexts${CLAUDE_SKILL_DIR} fail after marketplace installThis skill includes a Python script for automated validation:
python3 ${CLAUDE_SKILL_DIR}/scripts/validate.py <skill-directory>
The script returns JSON output with validation results and exits with:
0 if no errors found1 if validation errors detectedYou can use this script directly for quick validation, or follow the step-by-step bash instructions below for detailed interactive feedback.
When writing the review report to a file, use this exact structure so the audit script can verify completeness. Every one of the 13 checks must appear as a level-2 heading with a **Verdict:** line:
## Check 1: SKILL.md Structure
...analysis...
**Verdict:** PASS
## Check 2: Naming Conventions
...analysis...
**Verdict:** WARN
...
## Check 13: Marketplace Compatibility
...analysis...
**Verdict:** PASS
Valid verdicts: PASS, WARN, FAIL, INFO.
The audit script also accepts **Severity:** as an alias for **Verdict:** (and WARNING as an alias for WARN).
The rest of the report (title, summary table, priority fixes) is freeform — only the ## Check N: headings and verdict lines are required.
When the user invokes this skill:
Determine skill directory
skill_dir = $ARGUMENTSskill_dir = $(pwd)skill_dir=$(cd "$skill_dir" && pwd)Check SKILL.md exists
if [ ! -f "$skill_dir/SKILL.md" ]; then
echo "❌ ERROR: SKILL.md not found in $skill_dir"
exit 1
fi
Parse and validate frontmatter
Use Read tool to read $skill_dir/SKILL.md.
Check for frontmatter:
content = # content from Read
if not content.startswith('---'):
print("❌ ERROR: No frontmatter found (must start with ---)")
issues.append("missing_frontmatter")
Extract frontmatter (lines between first --- and second ---):
lines = content.split('\n')
if lines[0] == '---':
fm_end = lines[1:].index('---') + 1
fm_text = '\n'.join(lines[1:fm_end])
markdown_content = '\n'.join(lines[fm_end+1:])
Parse YAML (in bash):
# Extract frontmatter
awk '/^---$/{f=!f;next}f' "$skill_dir/SKILL.md" > /tmp/frontmatter.yaml
# Validate required fields
if ! grep -q '^name:' /tmp/frontmatter.yaml; then
echo "❌ Missing required field: name"
fi
if ! grep -q '^description:' /tmp/frontmatter.yaml; then
echo "❌ Missing required field: description"
fi
Validate frontmatter field types
Extract and check each field:
# Check model field if present
model=$(grep '^model:' /tmp/frontmatter.yaml | awk '{print $2}' | tr -d '"' | tr -d "'")
if [ -n "$model" ] && [[ ! "$model" =~ ^(opus|sonnet|haiku)$ ]]; then
echo "⚠️ Invalid model: $model (must be opus, sonnet, or haiku)"
fi
# Check effort field if present
effort=$(grep '^effort:' /tmp/frontmatter.yaml | awk '{print $2}' | tr -d '"' | tr -d "'")
if [ -n "$effort" ] && [[ ! "$effort" =~ ^(low|medium|high)$ ]]; then
echo "⚠️ Invalid effort: $effort (must be low, medium, or high)"
fi
Validate variable substitution
Use Grep to find variable references:
# Find all ${...} patterns
grep -oE '\$\{[A-Z_]+\}' "$skill_dir/SKILL.md" | sort -u > /tmp/variables.txt
# Check each variable
while read var; do
case "$var" in
'${CLAUDE_SKILL_DIR}'|'${CLAUDE_SESSION_ID}')
# Valid
;;
*)
echo "⚠️ Invalid variable: $var"
echo " Valid: \$ARGUMENTS, \$0-\$9, \${CLAUDE_SKILL_DIR}, \${CLAUDE_SESSION_ID}"
;;
esac
done < /tmp/variables.txt
Find file references
Detect markdown links and ${CLAUDE_SKILL_DIR} references:
# Markdown links: [text](file)
grep -oE '\[([^\]]+)\]\(([^)]+)\)' "$skill_dir/SKILL.md" | \
grep -oE '\(([^)]+)\)' | tr -d '()' > /tmp/md_refs.txt
# ${CLAUDE_SKILL_DIR}/file references
grep -oE '\$\{CLAUDE_SKILL_DIR\}/[a-zA-Z0-9_\-/\.]+' "$skill_dir/SKILL.md" | \
sed 's/\${CLAUDE_SKILL_DIR}\///' > /tmp/skill_refs.txt
# Combine and check existence
cat /tmp/md_refs.txt /tmp/skill_refs.txt | sort -u | while read file; do
# Skip URLs
if [[ "$file" =~ ^https?:// ]]; then
continue
fi
# Check in skill directory
if [ -f "$skill_dir/$file" ]; then
echo "✅ Found in skill dir: $file"
# Check in repo root (packaging issue)
elif [ -f "$file" ]; then
echo "⚠️ Found in repo root: $file (packaging issue)"
else
echo "❌ Not found: $file"
fi
done
Check context: fork usage
if grep -q '^context: *fork' /tmp/frontmatter.yaml; then
echo "⚠️ context:fork detected — streaming output will be suppressed"
echo " --output-format stream-json and SDK receive_response() will"
echo " produce zero events until the skill completes."
echo " Remove context:fork unless this skill orchestrates background agents."
fi
Check script path portability
Find script references that won't resolve after marketplace install (where cwd is the invoking project, not the plugin directory):
# Scripts WITHOUT ${CLAUDE_SKILL_DIR} — will break after install
grep -E '(python3?|bash|sh|node) +[a-zA-Z]' "$skill_dir/SKILL.md" | \
grep -v 'CLAUDE_SKILL_DIR' | \
while read line; do
echo "⚠️ Script reference without \${CLAUDE_SKILL_DIR}: $line"
echo " Will fail after marketplace install (cwd is not the plugin dir)"
done
# External script dependencies at repo root
grep -E '(python3?|bash|sh|source|\.) (scripts?|\.\.)/[a-zA-Z0-9_\-/\.]+' "$skill_dir/SKILL.md" | \
while read line; do
script=$(echo "$line" | grep -oE '(scripts?|\.\.)/[a-zA-Z0-9_\-/\.]+')
if [ -f "$script" ]; then
echo "⚠️ External script dependency: $script"
echo " This will NOT be available after marketplace installation"
fi
done
Check shared artifact directory safety
Detect patterns that are unsafe for concurrent per-ticket jobs on a shared filesystem:
# Broad glob patterns that process all files
grep -E '(ls|for.*in|glob) .*\*\.md' "$skill_dir/SKILL.md" | \
grep -v 'RHAISTRAT-\*\|RHAIRFE-\*' | \
while read line; do
echo "⚠️ Broad glob pattern: $line"
echo " Will process ALL files in directory — unsafe for concurrent per-ticket jobs"
echo " Consider using a targeted prefix (e.g., RHAISTRAT-*.md)"
done
# Shared index file writes (read-then-rewrite pattern)
grep -E '(Write|write|>).*tickets\.(md|yaml|json)' "$skill_dir/SKILL.md" | \
while read line; do
echo "⚠️ Shared index file write: $line"
echo " Read-then-rewrite will clobber under concurrent jobs"
echo " Consider per-ticket files or symlinks instead"
done
Analyze runtime dependencies
Detect file operations and script executions:
# Shell file operations in code blocks
awk '/```(bash|sh|!)/,/```/' "$skill_dir/SKILL.md" | \
grep -E '(cat|head|tail|source|\.|>|>>).*[a-zA-Z0-9_\-]+\.(md|yaml|json|txt|sh|py)' | \
grep -oE '[a-zA-Z0-9_\-/\.]+\.(md|yaml|json|txt|sh|py|csv|xml)' | \
sort -u > /tmp/runtime_files.txt
# Categorize each file
echo ""
echo "## Runtime Dependencies"
cat /tmp/runtime_files.txt | while read file; do
if [ -f "$skill_dir/$file" ]; then
echo "✅ Available: $file (in skill dir)"
elif [ -f "$file" ]; then
echo "⚠️ Packaging issue: $file (at repo root)"
else
# May be created at runtime
echo "ℹ️ Not packaged: $file (may be created at runtime)"
fi
done
Synthesize all findings:
echo ""
echo "## Marketplace Compatibility Assessment"
echo ""
external_scripts=$(grep -c "External script dependency" /tmp/report.txt || echo 0)
packaging_issues=$(grep -c "packaging issue" /tmp/report.txt || echo 0)
if [ $external_scripts -eq 0 ] && [ $packaging_issues -eq 0 ]; then
echo "✅ **MARKETPLACE COMPATIBLE**"
echo ""
echo "This skill is self-contained and can be installed via:"
echo " /plugin install plugin-name@registry-name"
echo ""
echo "All dependencies are bundled in the skill directory."
else
echo "⚠️ **REQUIRES FULL REPOSITORY CHECKOUT**"
echo ""
echo "This skill has external dependencies and cannot be installed via marketplace."
echo ""
echo "Issues found:"
echo " - External script dependencies: $external_scripts"
echo " - Files at repo root: $packaging_issues"
echo ""
echo "Expected usage pattern:"
echo " 1. Clone full repository"
echo " 2. Skills discovered from .claude/skills/ directory"
echo " 3. All repo scripts available during execution"
echo ""
echo "To make marketplace-compatible:"
echo " 1. Copy all scripts from scripts/ into skill directory"
echo " 2. Update references to use \${CLAUDE_SKILL_DIR}/script-name"
echo " 3. Bundle requirements.txt if needed"
fi
Generate summary report
Write the report to the output file using the required format from the Report Format section above. The report must contain all 13 checks as ## Check N: <Name> headings, each with a **Verdict:** PASS|WARN|FAIL|INFO line.
You may add a title, summary table, and priority fixes section around the check sections — only the 13 headings and verdicts are structurally required.
Severity guidelines for verdicts:
Categorize issues by severity
CRITICAL (skill is BROKEN and will not work):
namedescriptionWARNING (skill works but has issues):
context: fork suppresses streaming output in CI/pipeline contexts${CLAUDE_SKILL_DIR} will break after marketplace installINFO (recommendations):
${CLAUDE_SKILL_DIR} for all script referencesProvide actionable recommendations
Based on findings, suggest next steps with priority:
If CRITICAL issues found:
❌ CRITICAL: This skill is BROKEN
Required fixes (skill will not work until these are resolved):
1. Add YAML frontmatter to SKILL.md:
---
name: skill-name
description: What this skill does
user-invocable: true
allowed-tools: "Read, Write, Bash"
---
2. Ensure frontmatter starts at line 1 with ---
3. Ensure second --- delimiter is present
4. Verify YAML syntax is valid
If WARNING issues found:
Important: Do NOT say "good news: marketplace compatible" if there are critical frontmatter issues. Missing frontmatter means the skill is completely non-functional, regardless of file packaging.
Self-check: Audit report completeness
After writing the report file, run the audit:
python3 ${CLAUDE_SKILL_DIR}/scripts/validate.py --audit-report <report-file-path>
The script returns JSON with found_checks, missing_checks, and checks_without_verdict.
If missing_checks or checks_without_verdict are non-empty:
## Check N: <Name> sections**Verdict:** PASS|WARN|FAIL|INFO lineDo NOT present the report to the user until the audit passes.
/skill-review .claude/skills/assess-rfe
✅ Frontmatter valid
✅ All required fields present
✅ No invalid variables
✅ All file references found in skill directory
✅ No external script dependencies
✅ MARKETPLACE COMPATIBLE
/skill-review .claude/skills/rfe.create
✅ Frontmatter valid
❌ Invalid variable: ${N}
⚠️ External script dependency: scripts/frontmatter.py
⚠️ External script dependency: scripts/next_rfe_id.py
⚠️ REQUIRES FULL REPOSITORY CHECKOUT
Recommendations:
1. Replace ${N} with $1, $2, etc. for positional args
2. Copy scripts/frontmatter.py to .claude/skills/rfe.create/
3. Update references to use ${CLAUDE_SKILL_DIR}/frontmatter.py
/skill-review .claude/skills/quality-repo-analysis
❌ No frontmatter found (must start with ---)
Add frontmatter to SKILL.md:
---
name: quality-repo-analysis
description: Analyze repository quality metrics
user-invocable: true
allowed-tools: "Read, Grep, Bash"
---
/skill-review .claude/skills/strategy-refine
✅ Frontmatter valid
⚠️ context:fork detected — streaming output will be suppressed
⚠️ Script reference without ${CLAUDE_SKILL_DIR}: python3 scripts/frontmatter.py
⚠️ Script reference without ${CLAUDE_SKILL_DIR}: python3 scripts/fetch_issue.py
⚠️ Broad glob pattern: for f in artifacts/strat-tasks/*.md
⚠️ REQUIRES FULL REPOSITORY CHECKOUT
Recommendations:
1. Remove context:fork — this skill does not orchestrate background agents
2. Use ${CLAUDE_SKILL_DIR}/scripts/frontmatter.py for marketplace portability
3. Change glob from *.md to RHAISTRAT-*.md for per-ticket safety
4. Add symlink-based RFE→STRAT lookup in strategy-create for O(1) resolution
context: fork, script path portability, and shared artifact safety checks are based on real issues found running ederign/strat-creator skills as K8s pipeline jobs (see bugs/eder-strat-skills-script.txt and bugs/eder-strat-skills-tracing.md)What SKILL.md sets; muted values are Claude Code's defaults
/rhoai-security-reviewer:skill-reviewfrom rhoai-security-reviewer
rhoai-security-reviewer@opendatahub-skills is listed by opendatahub-io/skills-registry — review the source before installing
npx claudepluginhub opendatahub-io/skills-registry --plugin rhoai-security-reviewerOther plugins' skills for the same job
28 skills in this plugin
/bug-completenessScore bug report completeness (0-100)