template-skill-enhanced
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.
What this skill does
# Enhanced Skill Template
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.
## When to Use This Skill
- Creating a new skill that needs **progressive disclosure** (tiered content loading)
- Building skills with **bundled resources** (references, examples, validation rubrics)
- Designing skills that exceed basic template complexity
- Setting up skills with **quality targets** and scoring rubrics
- Avoid using for simple, single-purpose skills — use `template-skill` instead
## Workflow
### Step 1: Set Up Frontmatter
Define metadata with kebab-case name, quoted description including a "Use when" clause, version, and tags:
```yaml
---
name: my-new-skill
description: "Clear description of what this skill does. Use when [specific trigger condition]."
version: 1.0.0
tags: [domain, category]
---
```
### Step 2: Write Core Principles (Tier 1 — Always Loaded)
The first section loads immediately on activation. Keep it under ~1000 tokens:
```markdown
## 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
```
### Step 3: Add Implementation Patterns (Tier 2 — Loaded When Needed)
Detailed patterns for common scenarios (~1500 tokens):
```markdown
### 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 |
```
### Step 4: Add Advanced Usage (Tier 3 — Complex Scenarios)
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 |
### Step 5: Organize Bundled Resources
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
```
### Step 6: Define Quality Targets
Set measurable quality criteria:
```yaml
quality_targets:
clarity: ">= 4/5"
completeness: ">= 4/5"
accuracy: ">= 5/5"
usefulness: ">= 4/5"
```
### Step 7: Validate the Skill
```bash
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.
## Best Practices
- **Progressive disclosure**: Keep Tier 1 concise — load detail on demand
- **Bundled resources**: Move lengthy examples and deep-dives to `references/` or `examples/`
- **Quality rubrics**: Define scoring criteria in `validation/rubric.yaml` so skill outputs can be evaluated consistently
- **Token budget**: Core SKILL.md should stay under token limits; offload heavy content to sibling files
- **Real examples**: Replace all placeholder content with domain-specific, working code
- **Kebab-case naming**: Directories and skill names use lowercase hyphen-case
## Anti-Patterns
- **Placeholder content in production**: Shipping `[Pattern Name]` or `example_code_here()` — always fill in real content
- **Monolithic skills**: Putting everything in SKILL.md instead of using bundled resources
- **Missing "Use when" clause**: Description must include activation context
- **Ignoring token budgets**: Skills over 8,000 tokens slow activation and may be truncated
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.