Monorepo note: if the repository has top-level
packages/andproject-base/directories (the shopsys/shopsys monorepo layout, not a standalone project), also read.agents/skills/monorepo-vs-project/SKILL.mdand apply its delta (package-first + path/role remap) on top of this skill.
Implement Plan
You are tasked with implementing an approved technical plan from docs/plans/. These plans contain phases with specific changes and success criteria.
Getting Started
When given a plan path:
- Read the plan completely and check for any existing checkmarks (- [x])
- Read the original ticket and all files mentioned in the plan
- Read
.agents/skills/coding-conventions/SKILL.md, in particular Design conventions, before your first edit - Read files fully - never use limit/offset parameters, you need complete context
- Think deeply about how the pieces fit together
- Create a todo list to track your progress
- Start implementing if you understand what needs to be done
If no plan path provided, ask for one.
Implementation Philosophy
Plans are carefully designed, but reality can be messy. Your job is to:
- Follow the plan's intent while adapting to what you find
- Implement each phase fully before moving to the next
- Verify your work makes sense in the broader codebase context
- Update checkboxes in the plan as you complete sections
Apply the design conventions while you write the code, not afterwards: reuse the existing concept the plan names, add no field or argument without a consumer, add no guard for a state nobody can create, and keep new loops on request hot paths cheap. Review is the second line of defense, not the first.
When things don't match the plan exactly, think about why and communicate clearly. The plan is your guide, but your judgment matters too.
If you encounter a mismatch:
- STOP and think deeply about why the plan can't be followed
- Present the issue clearly:
```
Issue in Phase [N]:
Expected: [what the plan says]
Found: [actual situation]
Why this matters: [explanation]
How should I proceed?
```
Verification Approach
After implementing a phase:
- Update your progress in both the plan and your todos
- Check off completed items in the plan file itself using Edit
Don't let verification interrupt your flow - batch it at natural stopping points.
Verification Guidelines
Use the plan's own success criteria. Separate automated from manual checks:
Automated (run in the container / on host):
- Unit tests:
docker compose exec php-fpm php phing tests-unit(only if relevant tests exist) - Static analysis + standards:
docker compose exec php-fpm php phing phpstan standards-fix— PHPStan must also pass on the changed test files, not only onsrc/ - Storefront:
docker compose exec storefront pnpm run check--fix - GraphQL in sync (after schema changes):
make generate-schema
Manual (at completion):
- Full manual testing of the implemented feature in admin / storefront
- Check related functionality for regressions
- Verify the feature meets acceptance criteria from the original plan
Before You Report the Work Done
When all phases are implemented and the automated checks pass, run .agents/skills/self-review/SKILL.md on your own diff, apply what is real, and mention the result (fixed / rejected / open questions) in the handoff. Do this before committing or proposing commits.
If You Get Stuck
When something isn't working as expected:
- First, make sure you've read and understood all the relevant code
- Consider if the codebase has evolved since the plan was written
- Present the mismatch clearly and ask for guidance
Use sub-tasks sparingly - mainly for targeted debugging or exploring unfamiliar territory.
Resuming Work
If the plan has existing checkmarks:
- Trust that completed work is done
- Pick up from the first unchecked item
- Verify previous work only if something seems off
Remember: You're implementing a solution, not just checking boxes. Keep the end goal in mind and maintain forward momentum.