with one click
focused-pr
Create focused, well-scoped changesets with clear commit messages
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Create focused, well-scoped changesets with clear commit messages
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Discover team members, delegate tasks, and track progress to completion
Prepare structured meeting agendas and pre-reads from task board, artifacts, and team context
Classify, prioritize, and route incoming incidents based on severity, category, and affected components
Classify incoming requests and route to the appropriate specialist agent
How to communicate with other agents on the system. Use when you need to ask questions, share information, or coordinate.
Compare options against weighted criteria with scored matrix, sensitivity analysis, and quantified recommendation
| name | focused-pr |
| description | Create focused, well-scoped changesets with clear commit messages |
Use this skill whenever you commit code. Every commit should be a focused, self-contained unit of change.
Before writing any code, define what this changeset will and will NOT include:
# Re-read the task to confirm scope
bash /home/shared/scripts/task.sh get "$TASK_ID" | jq -r '.description'
Write a one-sentence summary of what this changeset does. If you cannot summarize it in one sentence, the scope is too broad -- split it.
cd ~/workspace
BRANCH_NAME="task-${TASK_ID}-short-description"
git checkout -b "$BRANCH_NAME"
Rules:
Before committing, review everything:
# See what files changed
git diff --stat
# Review the full diff
git diff
# Check for unintended changes
git diff | grep -E '^\+.*console\.(log|debug|warn)' && echo "WARNING: Debug logging found"
git diff | grep -E '^\+.*#.*TODO|FIXME|HACK' && echo "WARNING: TODO/FIXME found"
git diff | grep -E '^\+.*(\/\/|#).*REMOVE|DELETE|TEMP' && echo "WARNING: Temporary code found"
git diff | grep -E '^\-' | head -20 # Check what was removed — was it intentional?
# Commented-out code (should be deleted, not commented)
git diff | grep -E '^\+\s*(//|#)\s*(function|def |class |const |let |var |import )' \
&& echo "WARNING: Commented-out code found — delete it instead"
# Hardcoded paths or credentials
git diff | grep -E '^\+.*(\/home\/[a-z]|\/Users\/|password|secret|api.?key)' \
&& echo "WARNING: Possible hardcoded path or credential"
# Large files
git diff --stat | awk '{print $NF, $1}' | sort -rn | head -5
Format:
<imperative summary, max 50 chars>
- Specific change 1
- Specific change 2
- Specific change 3
Examples of good summaries:
Add input validation to task.shFix off-by-one in pagination logicRemove deprecated auth middlewareExamples of bad summaries:
Update files (too vague)Fixed the bug with the thing (past tense, unclear)Add validation, fix formatting, update docs (too many things)# Stage specific files (not git add -A)
git add src/module.js tests/module.test.js
# Commit with structured message
git commit -m "Add input validation to task.sh
- Validate task ID format before database lookup
- Return exit code 1 with usage message for invalid IDs
- Add tests for empty, malformed, and valid task IDs"
# Confirm the commit looks right
git log --oneline -1
git show --stat HEAD
# Ensure tests still pass after commit
npm test 2>&1 || python3 -m pytest tests/ -v 2>&1
If you noticed issues while working that are outside this changeset's scope:
# Log observations for future tasks
cat >> ~/notes.md <<EOF
## Observed Issues (from task $TASK_ID)
- [file:line] Description of issue noticed but not fixed
- [file:line] Potential improvement not in scope
EOF