| name | implement |
|---|---|
| description | End-to-end implementation workflow: plan, implement, verify, commit, and open a draft PR. Use when asked to implement, fix, build, or work on something. |
This skill handles the full lifecycle: plan -> implement -> verify -> commit -> draft PR.
- Understand the request — Read the issue description, linked context, or user instructions.
- Explore the codebase — Find relevant files, understand existing patterns, read tests.
- Create an implementation plan:
- What files will be modified/created
- What the changes will do
- What edge cases to consider
- What tests to add or update
- Present the plan and STOP — Wait for explicit user approval before proceeding.
Do NOT start coding until the plan is approved. If requirements are ambiguous, ask.
Execute the approved plan:
- Follow existing code patterns and conventions in the repo
- Keep changes minimal and focused — don't refactor unrelated code
- Kotlin warnings are treated as errors (
allWarningsAsErrors = true) — write clean code - Use
org.wordpress.aztecpackage conventions - Unit tests: Add or update tests covering new/changed logic. Follow existing test patterns in the repo. If writing meaningful tests would require disproportionate effort (e.g., complex setup, heavy mocking of framework internals), skip but notify the developer explaining why.
Run verification checks and fix any failures. Iterate until all checks pass.
./gradlew :aztec:assembleRelease :app:assembleDebugIf other modules were changed, compile those too:
./gradlew assembleRelease./gradlew ktlint- Fix violations — prefer real fixes over suppression
- Only suppress when it's a false positive and document why
./gradlew aztec:testReleaseOr run specific tests related to the changes:
./gradlew :aztec:testReleaseUnitTest --tests "org.wordpress.aztec.SpecificTest" --infoTest rules:
- NEVER weaken or remove assertions to make tests pass
- NEVER modify production code just to pass a test without permission
- Tests that pass only by not crashing are invalid — every test needs meaningful assertions
- If a test won't pass after reasonable attempts: stop and ask
If any step fails:
- Analyze the error
- Fix the issue
- Re-run the failing check
- Repeat until green
Show a summary of all changes made:
- Files modified/created
- Key behavioral changes
- Test coverage
STOP and wait for user approval before committing.
Only proceed after explicit approval.
./gradlew ktlintFix any remaining issues.
git status
git diff --stat
git diffReview the changes and determine if they should be split into multiple commits:
- Independent logical units = separate commits
- Bug fix + feature = separate commits
- Formatting + logic = separate commits
For each commit, prepare:
- Commit message: Imperative summary + brief body
- Files: Paths to stage
- Summary: What and why
Commit message format — use direct multi-line strings:
git commit -m "Imperative summary
- Detail one
- Detail two
"Rules:
- NO co-author lines — NEVER add "Co-Authored-By" or AI attribution
- Each commit should be cohesive and buildable
- Use
git add -pto split mixed concerns if needed
git add <specific files>
git commit -m "message"# Get the correct remote owner/repo
git remote get-url origin
# Push
git push -u origin HEAD
# Create draft PR
PAGER=cat gh pr create --draft --title "PR title" --body "$(cat <<'EOF'
### Fix
<description>
### Test
1. Step 1
2. Step 2
EOF
)"PR rules:
- Title: short, under 70 characters
- Body: follows the repo's PR template format (### Fix, ### Test, ### Review)
- Always create as draft
- Return the PR URL when done
If the user mentions an issue with a known branch name:
git checkout trunk && git pull && git checkout -b <branch-name>PRs can be stacked — check the actual base:
PAGER=cat gh pr view <NUMBER> --json baseRefNameWhen reviewing or addressing PR feedback:
# Create review JSON
printf '%s\n' '{
"event": "COMMENT",
"body": "Review comment",
"comments": [
{"path": "file.kt", "line": 42, "body": "Inline comment"}
]
}' > /tmp/pr_review.json
PAGER=cat gh api repos/{owner}/{repo}/pulls/{number}/reviews --method POST --input /tmp/pr_review.json