skills/template-skill-enhanced/SKILL.md
Enhanced skill template with progressive disclosure, bundled resources, and quality rubrics. Use when creating new skills that need structured tiers, reference files, validation rubrics, or advanced bundling patterns beyond the basic template.
npx skillsauth add nickcrew/claude-ctx-plugin template-skill-enhancedInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
A production-ready skill template demonstrating progressive disclosure, bundled resource patterns, and quality validation. Use this template when creating skills that require tiered content loading, reference file organization, or structured quality scoring.
template-skill insteadDefine metadata with kebab-case name, quoted description including a "Use when" clause, version, and tags:
---
name: my-new-skill
description: "Clear description of what this skill does. Use when [specific trigger condition]."
version: 1.0.0
tags: [domain, category]
---
The first section loads immediately on activation. Keep it under ~1000 tokens:
## Core Principles
### Principle 1: Foundation Concept
Explanation with a concise code example:
\`\`\`python
# Demonstrate the concept clearly
def foundation_example(input_data):
validated = validate(input_data)
return transform(validated)
\`\`\`
**Key Points:**
- Critical aspect that must be understood
- Common misconception to avoid
Detailed patterns for common scenarios (~1500 tokens):
### Pattern: Descriptive Name
**Problem**: What specific problem this solves
**Solution**: High-level approach
\`\`\`python
def pattern_implementation(input_data):
validate(input_data)
result = transform(input_data)
return format_output(result)
\`\`\`
**Trade-offs**:
| Aspect | Benefit | Cost |
|--------|---------|------|
| Performance | Fast execution | Higher memory |
| Maintainability | Clear structure | More boilerplate |
Reserve for sophisticated implementations (~2000+ tokens). Include edge cases:
| Scenario | Expected Behavior | Handling Strategy | |----------|-------------------|-------------------| | Empty input | Graceful failure | Return default or descriptive error | | Invalid format | Validation error | Clear error message with fix guidance | | Resource exhaustion | Graceful degradation | Backoff and retry logic |
Create sibling directories for heavy content:
skills/my-new-skill/
├── SKILL.md # Core skill (under token budget)
├── references/
│ ├── README.md # Guide to reference docs
│ └── detailed-patterns.md # Extended pattern documentation
├── examples/
│ └── basic.md # Annotated usage example
└── validation/
└── rubric.yaml # Quality scoring rubric
Set measurable quality criteria:
quality_targets:
clarity: ">= 4/5"
completeness: ">= 4/5"
accuracy: ">= 5/5"
usefulness: ">= 4/5"
cortex skills validate my-new-skill
cortex skills info my-new-skill --show-tokens
Ensure total token count stays within 500–8,000 tokens per CONTRIBUTING guidelines.
references/ or examples/validation/rubric.yaml so skill outputs can be evaluated consistently[Pattern Name] or example_code_here() — always fill in real contenttesting
Use when creating new skills, editing existing skills, or verifying skills work before deployment - applies TDD to process documentation by testing with subagents before writing, iterating until bulletproof against rationalization
testing
Comprehensive security assessment and remediation. Use for security reviews, compliance checks, vulnerability assessments.
research
Systematic performance analysis and optimization. Use when things are slow, need optimization, or preparing for scale.
development
Complete feature development workflow from design to deployment. Use when implementing new features or functionality.