Brief description of what this skill does (1-2 sentences). Use when [specific trigger condition]. Keep under 200 words total.
/plugin marketplace add NickCrew/claude-cortex/plugin install nickcrew-claude-ctx-2@NickCrew/claude-cortexThis skill inherits all available tools. When active, it can use any tool Claude has access to.
examples/basic.mdreferences/README.mdvalidation/rubric.yamlBrief overview paragraph (2-3 sentences) explaining what this skill provides, its purpose, and scope. Include the key value proposition and what makes this skill unique.
Specific scenarios that should activate this skill:
Keywords and phrases that indicate this skill should activate:
Essential knowledge required for effective skill execution. This section loads immediately when the skill activates.
Explanation of the first essential concept:
// Simple, clear example demonstrating the concept
// Include comments explaining key decisions
example_code_here()
Key Points:
Second essential concept building on the foundation:
// Example showing pattern application
// Demonstrate best practices
apply_pattern()
When to Apply:
Quality requirements for implementations using this skill:
Detailed patterns for common scenarios. Load this section when deeper guidance is needed.
Problem: Describe the specific problem this pattern solves
Solution: Explain the approach at a high level
Implementation:
// Complete, working example
// Well-commented to explain approach
// Include error handling
function patternImplementation(input) {
// Step 1: Validate input
validate(input);
// Step 2: Apply transformation
const result = transform(input);
// Step 3: Return with proper formatting
return format(result);
}
Trade-offs:
| Aspect | Benefit | Cost |
|---|---|---|
| Performance | Fast execution | Higher memory |
| Maintainability | Clear structure | More boilerplate |
| Flexibility | Easy to extend | Initial complexity |
When to Use: Specific criteria for applying this pattern
When to Avoid: Situations where this pattern is inappropriate
Problem: Different problem domain or same problem with different constraints
Solution: Alternative approach with different trade-offs
Implementation:
// Alternative implementation
// Highlight differences from Pattern 1
alternative_approach()
Comparison with Pattern 1:
Deeper patterns for complex scenarios. Load only when needed for sophisticated implementations.
Context explaining when this advanced usage is necessary:
// More sophisticated example
// Show integration with multiple concepts
// Demonstrate production-ready code
class AdvancedImplementation {
constructor(config) {
this.config = this.validateConfig(config);
}
execute() {
// Complex implementation
// Include error handling
// Show performance considerations
}
}
Considerations:
Common edge cases and how to handle them:
| Scenario | Expected Behavior | Handling Strategy |
|---|---|---|
| Empty input | Graceful failure | Return default or throw descriptive error |
| Invalid format | Validation error | Provide clear error message with fix guidance |
| Resource exhaustion | Graceful degradation | Implement backoff and retry logic |
Quick reference for implementing this skill effectively.
Common mistakes to avoid when using this skill.
What it looks like:
// Incorrect approach (anti-pattern)
bad_implementation_example()
Why it's problematic:
Correct approach:
// Correct implementation
correct_implementation_example()
What it looks like: Brief description
Why it's problematic: Explanation of consequences
How to fix: Guidance on correct approach
describe('Feature under test', () => {
it('handles expected case correctly', () => {
// Arrange
const input = prepareInput();
// Act
const result = executeFunction(input);
// Assert
expect(result).toEqual(expectedOutput);
});
it('handles edge case gracefully', () => {
// Edge case testing
});
});
// Integration test example
// Show testing across boundaries
integration_test_example()
Symptoms: Observable behavior indicating this issue
Likely Causes:
Resolution Steps:
Prevention: How to avoid this issue in the future
Symptoms: What the user observes
Quick Fix: Immediate solution if available
Root Cause: Underlying issue explanation
This skill includes the following resources:
references/README.md - Guide to using reference documentationreferences/detailed-patterns.md - Extended pattern documentationexamples/basic.md - Simple usage example with annotationsvalidation/rubric.yaml - Quality scoring rubric for skill outputsToken Efficiency: This skill is designed for progressive disclosure:
Quality Targets:
This skill follows the cortex cookbook pattern for enhanced skill bundling.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.