Load task-specific context dynamically based on task type (bug, feature, review, chore, research). Use to focus context before starting work.
Dynamically loads task-specific context based on bug, feature, review, chore, or research type. Use before starting work to prime the agent with relevant files, git history, and project state for focused, efficient context.
/plugin marketplace add melodic-software/claude-code-plugins/plugin install google-ecosystem@melodic-softwaretask-typeLoad task-specific context dynamically based on task type.
$ARGUMENTS: Task type (bug, feature, review, chore, research) or custom descriptionYou are loading task-specific context to prime the agent for focused work.
Parse $ARGUMENTS to determine task type:
| Type | Context Focus |
|---|---|
| bug | Recent commits, test files, error patterns |
| feature | Architecture, related modules, API patterns |
| review | Style guide, test patterns, changed files |
| chore | Project structure, tooling, configs |
| research | Documentation, external resources, examples |
| (custom) | Infer appropriate context from description |
For all types - Run:
git status
git ls-files | head -50
Type-specific discovery:
bug:
git log --oneline -10
git diff HEAD~5 --stat
feature:
ls -la src/
ls -la lib/
review:
git diff --stat
git log --oneline -5
chore:
ls -la
cat package.json | head -20 # or equivalent manifest
research:
ls -la docs/ 2>/dev/null || echo "No docs directory"
ls -la ai_docs/ 2>/dev/null || echo "No ai_docs directory"
For all types - Read:
Type-specific reads:
bug:
feature:
review:
chore:
research:
Summarize loaded context:
## Context Primed: [Type]
**Task Type:** [bug/feature/review/chore/research]
**Files Loaded:** [count]
### Project State
- Branch: [current branch]
- Status: [clean/dirty]
- Recent changes: [summary]
### Loaded Context
- [File 1]: [brief description]
- [File 2]: [brief description]
### Ready For
[What this priming prepares you for]
### Context Efficiency
This priming loaded ~[X] tokens of task-specific context.
Remaining capacity: [estimate]