Context Curator Skill
Purpose
Dynamically load relevant context based on the current task type. This skill implements the "Curation Layer" from context engineering principles.
When to Use
- Starting a new complex task
- Resuming work on a feature after a break
- Need to recall past decisions or patterns
- Want to ensure consistent patterns with previous work
Task Type Detection
Analyze the user's request to determine task type:
| Keywords |
Task Type |
Relevant Skills |
| bug, error, fix, broken, debug |
debugging |
bug-diagnosis, tasks-bug-diagnosis |
| command, save, create, update, delete |
backend-cqrs |
backend-cqrs-command, backend-entity-development |
| query, list, get, search, filter |
backend-query |
backend-cqrs-query, backend-entity-development |
| component, UI, frontend, Angular |
frontend |
frontend-angular-component, frontend-angular-store |
| form, validation, input |
frontend-form |
frontend-angular-form, frontend-angular-component |
| API, service, http |
api-integration |
frontend-angular-api-service, backend-cqrs-command |
| review, refactor, improve |
code-review |
code-review, tasks-code-review |
| test, spec, coverage |
testing |
test-generation, tasks-test-generation |
| message, event, bus, sync |
cross-service |
backend-message-bus, arch-cross-service-integration |
| migration, schema, database |
data-migration |
backend-data-migration, db-migrate |
| job, background, scheduled, recurring |
background-job |
backend-background-job |
| security, auth, permission |
security |
arch-security-review |
| performance, slow, optimize |
performance |
arch-performance-optimization |
| implement, feature, add, build |
feature-implementation |
feature-implementation, tasks-feature-implementation |
| document, readme, docs |
documentation |
documentation, tasks-documentation, readme-improvement |
| branch, compare, diff, changes |
branch-comparison |
branch-comparison, tasks-spec-update |
Execution Steps
Step 1: Detect Task Type
Analyze user request keywords to identify task type from the table above.
Step 2: Load Memory Context
Search Memory MCP for relevant entities:
mcp__memory__search_nodes({ query: "[task-type] [feature-name]" })
Key entities to query:
ProjectContext - Overall codebase structure
FeatureProgress_[branch] - Current feature status
PatternHistory - Successfully used patterns
RecentDecisions - Recent architectural decisions
Step 3: Suggest Relevant Skills
Based on detected task type, recommend specific skills from the table.
Step 4: Load Reference Files
For each task type, suggest key reference files:
Backend CQRS:
src/PlatformExampleApp/PlatformExampleApp.TextSnippet.Application/UseCaseCommands/ - Command examples
.github/skills/backend-cqrs-command/SKILL.md - Patterns guide
Frontend Angular:
src/PlatformExampleAppWeb/apps/playground-text-snippet/ - Component examples
.github/skills/frontend-angular-component/SKILL.md - Patterns guide
Debugging:
.github/AI-DEBUGGING-PROTOCOL.md - Full debugging protocol
.github/instructions/debugging.instructions.md - Quick reference
Step 5: Output Context Summary
Provide formatted summary:
## Context Loaded
**Task Type:** [detected type]
**Suggested Skills:** [skill-1], [skill-2]
**Memory Context:** [relevant entities found]
**Reference Files:** [key files to read]
**Previous Work:**
- [Relevant past decisions]
- [Patterns used successfully]
- [Current feature progress]
**Next Steps:**
1. [Recommended first action]
2. [Recommended second action]
Memory Integration
After completing significant work, store learnings:
mcp__memory__create_entities({
entities: [{
name: "Decision_[timestamp]",
entityType: "ArchitecturalDecision",
observations: ["Chose X because Y", "Pattern used: Z"]
}]
})
Example Usage
User: "I need to add a new endpoint for task management"
Context Curator Output:
## Context Loaded
**Task Type:** backend-cqrs + api-integration
**Suggested Skills:** backend-cqrs-command, backend-cqrs-query, frontend-angular-api-service
**Memory Context:** Found FeatureProgress_task-management with 3 observations
**Previous Work:**
- Task entity already created (TaskItemEntity.cs)
- Using SaveTaskItemCommand pattern
**Next Steps:**
1. Check existing TaskItemController for patterns
2. Use backend-cqrs-command skill for new command
3. Update frontend API service
1---2name: context-curator3description: Use when starting a complex task to load relevant context from Memory MCP and suggest appropriate skills based on task type.4---56# Context Curator Skill78## Purpose910Dynamically load relevant context based on the current task type. This skill implements the "Curation Layer" from context engineering principles.1112## When to Use1314- Starting a new complex task15- Resuming work on a feature after a break16- Need to recall past decisions or patterns17- Want to ensure consistent patterns with previous work1819## Task Type Detection2021Analyze the user's request to determine task type:2223| Keywords | Task Type | Relevant Skills |24| ------------------------------------- | ---------------------- | ------------------------------------------------------ |25| bug, error, fix, broken, debug | debugging | bug-diagnosis, tasks-bug-diagnosis |26| command, save, create, update, delete | backend-cqrs | backend-cqrs-command, backend-entity-development |27| query, list, get, search, filter | backend-query | backend-cqrs-query, backend-entity-development |28| component, UI, frontend, Angular | frontend | frontend-angular-component, frontend-angular-store |29| form, validation, input | frontend-form | frontend-angular-form, frontend-angular-component |30| API, service, http | api-integration | frontend-angular-api-service, backend-cqrs-command |31| review, refactor, improve | code-review | code-review, tasks-code-review |32| test, spec, coverage | testing | test-generation, tasks-test-generation |33| message, event, bus, sync | cross-service | backend-message-bus, arch-cross-service-integration |34| migration, schema, database | data-migration | backend-data-migration, db-migrate |35| job, background, scheduled, recurring | background-job | backend-background-job |36| security, auth, permission | security | arch-security-review |37| performance, slow, optimize | performance | arch-performance-optimization |38| implement, feature, add, build | feature-implementation | feature-implementation, tasks-feature-implementation |39| document, readme, docs | documentation | documentation, tasks-documentation, readme-improvement |40| branch, compare, diff, changes | branch-comparison | branch-comparison, tasks-spec-update |4142## Execution Steps4344### Step 1: Detect Task Type4546Analyze user request keywords to identify task type from the table above.4748### Step 2: Load Memory Context4950Search Memory MCP for relevant entities:5152```53mcp__memory__search_nodes({ query: "[task-type] [feature-name]" })54```5556Key entities to query:5758- `ProjectContext` - Overall codebase structure59- `FeatureProgress_[branch]` - Current feature status60- `PatternHistory` - Successfully used patterns61- `RecentDecisions` - Recent architectural decisions6263### Step 3: Suggest Relevant Skills6465Based on detected task type, recommend specific skills from the table.6667### Step 4: Load Reference Files6869For each task type, suggest key reference files:7071**Backend CQRS:**7273- `src/PlatformExampleApp/PlatformExampleApp.TextSnippet.Application/UseCaseCommands/` - Command examples74- `.github/skills/backend-cqrs-command/SKILL.md` - Patterns guide7576**Frontend Angular:**7778- `src/PlatformExampleAppWeb/apps/playground-text-snippet/` - Component examples79- `.github/skills/frontend-angular-component/SKILL.md` - Patterns guide8081**Debugging:**8283- `.github/AI-DEBUGGING-PROTOCOL.md` - Full debugging protocol84- `.github/instructions/debugging.instructions.md` - Quick reference8586### Step 5: Output Context Summary8788Provide formatted summary:8990```markdown91## Context Loaded9293**Task Type:** [detected type]94**Suggested Skills:** [skill-1], [skill-2]95**Memory Context:** [relevant entities found]96**Reference Files:** [key files to read]9798**Previous Work:**99100- [Relevant past decisions]101- [Patterns used successfully]102- [Current feature progress]103104**Next Steps:**1051061. [Recommended first action]1072. [Recommended second action]108```109110## Memory Integration111112After completing significant work, store learnings:113114```115mcp__memory__create_entities({116 entities: [{117 name: "Decision_[timestamp]",118 entityType: "ArchitecturalDecision",119 observations: ["Chose X because Y", "Pattern used: Z"]120 }]121})122```123124## Example Usage125126User: "I need to add a new endpoint for task management"127128Context Curator Output:129130```markdown131## Context Loaded132133**Task Type:** backend-cqrs + api-integration134**Suggested Skills:** backend-cqrs-command, backend-cqrs-query, frontend-angular-api-service135**Memory Context:** Found FeatureProgress_task-management with 3 observations136137**Previous Work:**138139- Task entity already created (TaskItemEntity.cs)140- Using SaveTaskItemCommand pattern141142**Next Steps:**1431441. Check existing TaskItemController for patterns1452. Use backend-cqrs-command skill for new command1463. Update frontend API service147```