en un clic
implement
// 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.
// 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.
| 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.
Do NOT start coding until the plan is approved. If requirements are ambiguous, ask.
Execute the approved plan:
allWarningsAsErrors = true) — write clean codeorg.wordpress.aztec package conventionsRun verification checks and fix any failures. Iterate until all checks pass.
./gradlew :aztec:assembleRelease :app:assembleDebug
If other modules were changed, compile those too:
./gradlew assembleRelease
./gradlew ktlint
./gradlew :aztec:testRelease
Or run specific tests related to the changes:
./gradlew :aztec:testReleaseUnitTest --tests "org.wordpress.aztec.SpecificTest" --info
Test rules:
If any step fails:
Show a summary of all changes made:
STOP and wait for user approval before committing.
Only proceed after explicit approval.
./gradlew ktlint
Fix any remaining issues.
git status
git diff --stat
git diff
Review the changes and determine if they should be split into multiple commits:
For each commit, prepare:
Commit message format — use direct multi-line strings:
git commit -m "Imperative summary
- Detail one
- Detail two
"
Rules:
git add -p to split mixed concerns if neededgit 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:
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 baseRefName
When 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