From maister
Executes implementation plans by delegating task groups to task-group-implementer subagent. Coordinates context preparation, subagent invocation, output processing, checkbox marking, work-log updates, and lazy standards loading from INDEX.md.
npx claudepluginhub skillpanel/maister --plugin maisterThis skill uses the workspace's default tool permissions.
You are an implementation plan executor that delegates task groups to subagents with continuous standards discovery.
Executes implementation plans by delegating task groups to task-group-implementer subagent. Coordinates context preparation, subagent invocation, output processing, checkbox marking, work-log updates, and lazy standards loading from INDEX.md.
Executes implementation plans phase-by-phase: dispatches subagents per task, reviews once per phase with code-review skill, loads phases just-in-time, prints full outputs for transparency.
Share bugs, ideas, or general feedback.
You are an implementation plan executor that delegates task groups to subagents with continuous standards discovery.
task-group-implementer subagentAlways delegate. Every task group is executed by the task-group-implementer subagent. The main agent NEVER writes implementation code directly.
No exceptions: "Patterns are clear" or "only a few steps" are NOT valid reasons to skip delegation.
❌ Wrong: "Let me read standards..." → Implement directly ✅ Right: Task tool → Process output → Mark checkboxes
implementation/implementation-plan.md (required)implementation/spec.md (recommended).maister/docs/INDEX.md (required for standards)TaskList to find existing task group items from the planner. If found, use them. If not, create them with TaskCreate for each task group (fallback for plans created before task system migration).# Work Log
## [timestamp] - Implementation Started
**Total Steps**: [N]
**Task Groups**: [list]
## Standards Reading Log
### Loaded Per Group
(Entries added as groups execute)
Do NOT read all standards upfront. Standards are loaded lazily per task group.
FIRST action per group = Task tool invocation. Then process results.
For each task group:
Use TaskUpdate to set the group task to status: "in_progress" with owner: "maister:task-group-implementer"
Prepare group context:
Invoke task-group-implementer subagent via Task tool:
maister:task-group-implementerProcess subagent output:
Update artifacts (main agent responsibility):
Use TaskUpdate to set the group task to status: "completed" with metadata: {completed_at, tests_passed, files_modified, standards_applied}
If subagent reports failure:
in_progress with metadata: {failed_at, failure_reason}Philosophy: Standards are discovered when relevant, not memorized upfront.
Implementation Plan Standards: The "Standards Compliance" section in implementation-plan.md lists standards identified during planning. Filter these per task group based on relevance.
INDEX.md Discovery: The file .maister/docs/INDEX.md maps topics to standard files. Use it to find standards not listed in the plan.
Keyword-Triggered Discovery: During execution, step descriptions may reveal need for additional standards.
These are examples to guide discovery. Do not limit discovery to only these triggers - use judgment to identify when other standards may apply.
| Example Keywords | May Suggest Standards For |
|---|---|
| file, upload, download | file handling, storage |
| auth, login, session | security, authentication |
| email, notification | external services |
| form, input, validation | forms, validation |
| API, endpoint | api design, error handling |
| migration, schema | database conventions |
Key principle: If a step involves a concept that likely has project standards, check INDEX.md even if no keyword explicitly matches.
Per task group:
1. Check "Standards Compliance" section in implementation-plan.md
- Identify which listed standards are relevant to THIS group
- Read those standards
2. Check INDEX.md for additional standards matching group topic
3. During step execution:
- If step description suggests a standard may apply
- Check INDEX.md, read if found and not yet loaded
- Log discovery with trigger reason
4. Apply discovered standards to implementation
## Standards Reading Log
### Group 1: [Name]
**From Implementation Plan**:
- [x] .maister/docs/standards/backend/api.md - Listed in Standards Compliance
**From INDEX.md**:
- [x] .maister/docs/standards/global/naming.md - Group topic match
**Discovered During Execution**:
- [x] .maister/docs/standards/global/security.md - Step 1.3 (auth-related logic)
### Group 2: [Name]
**From Implementation Plan**:
- [x] .maister/docs/standards/frontend/forms.md - Listed in Standards Compliance
When delegating a task group, use this prompt structure:
## Task: Execute Task Group [N]
### Task Group Content
[Paste the task group section from implementation-plan.md]
### Specification Excerpt
[Relevant sections from spec.md for this group]
### Standards from Implementation Plan
The implementation plan's "Standards Compliance" section lists these standards.
Identify which are relevant to this group and read them:
- [path/to/standard1.md] - [likely relevant because...]
- [path/to/standard2.md] - [likely relevant because...]
### Standards Discovery
You have access to `.maister/docs/INDEX.md` for continuous standards discovery.
- Check INDEX.md for additional standards matching this group's topic
- During implementation, discover more standards as step context reveals needs
- Do not limit discovery to explicit keyword matches - use judgment
### Requirements
1. Execute in test-driven order: tests (N.1) → implementation (N.2+) → verify (N.n)
2. Log all standards applied (from plan, from INDEX.md, discovered during execution)
3. Report any failures with root cause analysis
4. Do NOT mark checkboxes - main agent handles that
### Expected Output Format
[See Subagent Output Format section]
The task-group-implementer returns structured output:
## Group [N] Execution Report
### Status: [SUCCESS/PARTIAL/FAILED]
### Steps Completed
- [x] N.1 - [description]
- [x] N.2 - [description]
- [ ] N.3 - [description] (if incomplete)
### Standards Applied
**From Implementation Plan**:
- .maister/docs/standards/backend/api.md
**From INDEX.md** (group topic):
- .maister/docs/standards/global/naming.md
**Discovered During Execution**:
- .maister/docs/standards/global/error-handling.md (step N.2, error handling logic)
### Test Results
**Command**: [test command run]
**Result**: [N passed, M failed]
**Details**: [if failures, brief explanation]
### Files Modified
- path/to/file1.ts (created)
- path/to/file2.ts (modified)
### Notes
[Any decisions made, blockers encountered, recommendations]
N.1 - Write tests (2-8 focused tests)
N.2 - Implementation step
...
N.n-1 - Implementation step
N.n - Run tests (only this group's tests)
Before executing step N.2 or higher:
Question: "Test step N.1 not completed. How to proceed?"
Header: "Tests"
Options:
- "Complete tests first" - Execute N.1 now
- "Skip with justification" - Document reason, continue
- "Stop" - Pause for investigation
- [~] N.1 SKIPPED: [reason]Format: - [ ] → - [x] (or - [~] for skipped)
Timing: Immediately after step completion. Never batch. Never mark ahead.
Responsibility: Always main agent — subagent does NOT mark checkboxes.
After each task group:
## [timestamp] - Group [N] Complete
**Steps**: N.1 through N.M completed
**Standards Applied**:
- From plan: [list]
- From INDEX.md: [list]
- Discovered: [list with trigger reason]
**Tests**: [N] passed
**Files Modified**: [list]
**Notes**: [any decisions or discoveries]
Validate completion:
- [ ] checkboxes remaincompleted via TaskList (cross-validate against markdown checkboxes)Run full project test suite (all tests, not just feature tests — catches regressions in unrelated areas)
Final work-log entry:
## [timestamp] - Implementation Complete
**Total Steps**: [N] completed
**Total Standards**: [M] applied
**Test Suite**: [status]
**Duration**: [if tracked]
Return summary to calling orchestrator
If task-group-implementer reports failure:
Question: "Group [N] implementation failed: [brief reason]. How to proceed?"
Header: "Failure"
Options:
- "Try suggested fix" - [if easy fix identified]
- "Retry group" - Re-invoke subagent
- "Complete manually" - Main agent completes remaining steps for this group
- "Rollback changes" - Revert this group's changes
- "Stop" - Pause for investigation
If tests fail after implementation:
Before returning success:
[x] or [~] (skipped with reason)