Execute the implementation plan by processing and executing all tasks defined in tasks.md
Executes the implementation plan by processing and executing all tasks defined in tasks.md
/plugin marketplace add deepeshBodh/human-in-loop/plugin install deepeshbodh-humaninloop-plugins-humaninloop@deepeshBodh/human-in-loop$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
If $ARGUMENTS is empty (blank string with no content), use AskUserQuestion to handle a known Claude Code bug where inputs containing @ file references don't reach plugin commands:
AskUserQuestion(
questions: [{
question: "⚠️ Known Issue: Input may have been lost\n\nClaude Code has a bug where inputs containing @ file references don't reach plugin commands.\n\nWould you like to re-enter your input?",
header: "Input",
options: [
{label: "Re-enter input", description: "I'll type my input in the terminal"},
{label: "Continue without input", description: "Proceed with no input provided"}
],
multiSelect: false
}]
)
$ARGUMENTS${CLAUDE_PLUGIN_ROOT}/scripts/check-prerequisites.sh --json --require-tasks --include-tasks from repo root and parse FEATURE_DIR and AVAILABLE_DOCS list. All paths must be absolute. For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'''m Groot' (or double-quote if possible: "I'm Groot").1.5. Entry Gate: Verify Tasks Workflow Complete
Check if the tasks workflow completed successfully before proceeding:
1.5.1 Check for tasks-context.md:
test -f {FEATURE_DIR}/.workflow/tasks-context.md
1.5.2 If found: Read frontmatter and check status field
1.5.3 Route based on status:
| Status | Action |
|---|---|
completed | Proceed to step 2 |
awaiting-architect / awaiting-advocate / awaiting-user | Tasks workflow incomplete - prompt user |
| Not found | No workflow context - proceed with warning |
If status is not completed:
AskUserQuestion(
questions: [{
question: "Tasks workflow not complete (status: {status}). Implementation requires completed tasks.\n\nPhase: {phase}, Iteration: {iteration}",
header: "Entry Gate",
options: [
{label: "Complete tasks first", description: "Return to /humaninloop:tasks to finish"},
{label: "Proceed anyway", description: "Implement with current tasks.md (may be incomplete)"},
{label: "Abort", description: "Cancel implementation"}
],
multiSelect: false
}]
)
1.5.4 Optional context from workflow artifacts:
{FEATURE_DIR}/.workflow/planner-report.md exists: Note any assumptions made by Task Architect{FEATURE_DIR}/.workflow/advocate-report.md exists: Note any known gaps/limitations flaggedLoad and analyze the implementation context:
Project Setup Verification:
Detection & Creation Logic:
Check if the following command succeeds to determine if the repository is a git repo (create/verify .gitignore if so):
git rev-parse --git-dir 2>/dev/null
Check if Dockerfile* exists or Docker in plan.md → create/verify .dockerignore
Check if .eslintrc* exists → create/verify .eslintignore
Check if eslint.config.* exists → ensure the config's ignores entries cover required patterns
Check if .prettierrc* exists → create/verify .prettierignore
Check if .npmrc or package.json exists → create/verify .npmignore (if publishing)
Check if terraform files (*.tf) exist → create/verify .terraformignore
Check if .helmignore needed (helm charts present) → create/verify .helmignore
If ignore file already exists: Verify it contains essential patterns, append missing critical patterns only If ignore file missing: Create with full pattern set for detected technology
Common Patterns by Technology (from plan.md tech stack):
node_modules/, dist/, build/, *.log, .env*__pycache__/, *.pyc, .venv/, venv/, dist/, *.egg-info/target/, *.class, *.jar, .gradle/, build/bin/, obj/, *.user, *.suo, packages/*.exe, *.test, vendor/, *.out.bundle/, log/, tmp/, *.gem, vendor/bundle/vendor/, *.log, *.cache, *.envtarget/, debug/, release/, *.rs.bk, *.rlib, *.prof*, .idea/, *.log, .env*build/, out/, .gradle/, .idea/, *.class, *.jar, *.iml, *.log, .env*build/, bin/, obj/, out/, *.o, *.so, *.a, *.exe, *.dll, .idea/, *.log, .env*build/, bin/, obj/, out/, *.o, *.a, *.so, *.exe, Makefile, config.log, .idea/, *.log, .env*.build/, DerivedData/, *.swiftpm/, Packages/.Rproj.user/, .Rhistory, .RData, .Ruserdata, *.Rproj, packrat/, renv/.DS_Store, Thumbs.db, *.tmp, *.swp, .vscode/, .idea/Tool-Specific Patterns:
node_modules/, .git/, Dockerfile*, .dockerignore, *.log*, .env*, coverage/node_modules/, dist/, build/, coverage/, *.min.jsnode_modules/, dist/, build/, coverage/, package-lock.json, yarn.lock, pnpm-lock.yaml.terraform/, *.tfstate*, *.tfvars, .terraform.lock.hcl*.secret.yaml, secrets/, .kube/, kubeconfig*, *.key, *.crtParse tasks.md structure and extract:
4.1 Summary Metrics (from ## Summary table):
4.2 Enrich with task-mapping.md (if exists):
## Cycle Details for per-cycle success criteria## Dependency Graph for visual verification of execution order## Risk Assessment to identify cycles needing extra care4.3 Foundation Cycles (from ## Foundation Cycles (Sequential)):
### Cycle N: Title4.4 Feature Cycles (from ## Feature Cycles):
[P] are parallel-eligible### Cycle N: Title [P]4.5 Task Details:
- [ ] **T{cycle}.{task}**: Description[EXTEND] or [MODIFY] in task description4.6 Quality Gates (from ## Quality Gates):
Execute implementation following the task plan:
Cycle-based execution rules:
Foundation Cycles (Sequential):
Feature Cycles (After Foundation):
[P] can execute in parallel with each otherTDD Discipline:
Checkpoints:
**Checkpoint**: statementpnpm lint, pnpm build, tests) after each cycleImplementation execution guidance:
Per-Task Execution:
[EXTEND] tasks: read existing file, add new code[MODIFY] tasks: read existing file, modify specific sections- [ ] to - [x]Per-Cycle Completion:
Error Handling Within Cycles:
Progress tracking and error handling:
[P], can run multiple cycles concurrently- [x] **T#.#**: in tasks.mdCompletion validation:
[x])pnpm lint, pnpm build, full test suite)## Constitution Alignment section exists)## Implementation Complete
**Feature**: {feature_id}
| Metric | Value |
|--------|-------|
| Foundation Cycles | {N}/{N} complete |
| Feature Cycles | {N}/{N} complete |
| Total Tasks | {N}/{N} complete |
### Quality Gates
- Lint: ✓ Pass
- Build: ✓ Pass
- Tests: ✓ Pass ({N} passing)
### Next Steps
- Review implementation at `{paths}`
- Deploy or continue with next feature
Note: This command assumes a complete task breakdown exists in tasks.md. If tasks are incomplete or missing, suggest running /humaninloop:tasks first to regenerate the task list.