task-context-loader
This skill contains shell command directives (!`command`) that may execute system commands. Review carefully before installing.
Task Context Loader
Load all context needed before implementing a task.
Active Tasks
!ls implementation_process/in_progress/ 2>/dev/null
Activation
Activate when you detect:
/drupal-dev-framework:implement <task>command- "Work on X task" or "Implement X"
- "Start coding X"
- Beginning a coding session for a component
Workflow
1. Identify Project and Task
Get project path from project_state.md. Find the task:
v3.0.0 Folder Structure:
- Check
implementation_process/in_progress/{task}/for task directory - If directory exists, verify
task.mdfile exists
v2.x Single File (backward compatibility):
- Check
implementation_process/in_progress/{task}.mdfor single file
If neither exists, offer to create one using the Skill tool to invoke implementation-task-creator (it is a skill, not an agent)
2. Load Architecture
Use Read tool to load:
{project_path}/architecture/main.md
{project_path}/architecture/{component}.md (if exists)
Extract from architecture:
- Component purpose
- Dependencies
- Pattern references
3. Load Task Files
v3.0.0 Folder Structure:
Load all relevant phase files:
-
Load task.md (tracker):
Use `Read` on `{task}/task.md`Extract:
- Goal
- Acceptance criteria
- Current phase status
- Related tasks
-
Load research.md (if exists):
Use `Read` on `{task}/research.md`Context from Phase 1 research
-
Load architecture.md (if exists):
Use `Read` on `{task}/architecture.md`Extract:
- Architecture design
- Pattern decisions
- Component specifications
-
Load implementation.md (if exists):
Use `Read` on `{task}/implementation.md`Extract:
- Progress notes
- TDD steps
- Files created/modified
- Current status
v2.x Single File (backward compatibility):
Use Read on {task}.md and extract all sections
4. Load Pattern References
From architecture files, find pattern references like:
Based on: core/modules/.../src/...
Use Read to load the referenced core files. Extract:
- Key method signatures
- Dependency injection patterns
- Implementation approach
5. Check for Guides
If project_state.md has a guides path, invoke guide-loader skill for relevant guides.
6. Present Context Summary
Format output as:
## Ready to Implement: {Task Name}
### Objective
{from task file}
### Architecture Summary
{key points from architecture}
### Pattern Reference
{primary core file}:
- Key methods to follow: {list}
- Dependencies to inject: {list}
### TDD Approach
1. Test file: {path}
2. First test: {what to test}
### Files to Create/Modify
- {file 1}: {what to do}
- {file 2}: {what to do}
### Acceptance Criteria
- [ ] {criterion 1}
- [ ] {criterion 2}
### Dependencies
Complete these first:
- {prerequisite task, if any}
---
Ready to write the first test?
7. Activate TDD Companion
After presenting context, remind:
TDD reminder: Write test first, then implement.
Use superpowers:test-driven-development for detailed TDD guidance.
Stop Points
STOP and wait for user:
- If task file not found (offer to create)
- After presenting context summary
- If prerequisites are incomplete (ask how to proceed)
More from camoa/claude-skills
html-generator
Use when generating branded HTML pages and components from a design system. Creates standalone HTML components and composes them into full pages with embedded CSS, responsive design, and brand integration.
43memory-manager
Use after completing any phase activity - updates project_state.md, project registry, ensures files are in correct locations, maintains lean memory
39diagram-generator
Use when visualizing architecture - generates Mermaid diagrams for data flow, service relationships, or entity structures. Trigger: 'draw diagram', 'visualize', 'show relationships', 'mermaid chart'.
30code-quality-audit
Use when checking code quality, running security audits, testing coverage, finding SOLID/DRY violations, or setting up quality tools. Use when user says "audit this code", "check security", "run PHPStan", "code quality", "find violations", "SOLID check", "DRY check", "test coverage", "lint this", "security review", "is this production ready", "check for vulnerabilities", "code review", "grade this code". Supports Drupal (PHPStan, PHPMD, Psalm, Semgrep, Trivy, Gitleaks via DDEV) and Next.js (ESLint, Jest, Semgrep, Trivy, Gitleaks). Use proactively before deployment or after significant code changes.
20requirements-gatherer
Use when gathering project requirements - asks structured questions about project type, scope, integrations, and constraints to populate project_state.md
17generating-infographics
Use when creating infographics, data visualizations, process diagrams, timelines, or comparisons - generates branded infographics using @antv/infographic with 114 templates across 7 categories. Triggers on "create infographic", "make infographic", "visualize data", "timeline", "process diagram".
17