원클릭으로
focused-pr
Create focused, well-scoped changesets with clear commit messages
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Create focused, well-scoped changesets with clear commit messages
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
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