一键导入
organize-commits
Organize staged changes into logical commits with conventional commit messages. Groups related changes and creates well-structured commit history.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Organize staged changes into logical commits with conventional commit messages. Groups related changes and creates well-structured commit history.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Identify and fix accessibility issues for WCAG 2.1 Level AA compliance, including mobile screen reader support (VoiceOver/TalkBack), touch targets, and keyboard navigation.
Autonomously build an app from staged plans created by /launch-app. Reads plans/active/ stage files and builds each stage with verification, commits, and Slack notifications. Designed for unattended execution via build-app-runner.sh.
Polish components to production quality — interactive states, micro-interactions, and final refinement. Run all three passes or target one area.
Audit and optimize pages for conversion — value props, CTAs, copy, social proof, and friction points. Run a full audit or target a specific area.
Generate multiple design concepts for an app, compare them side-by-side, and implement the chosen direction. Creates detailed design documents with color palettes, typography, spacing, component specs, and interactive HTML mockups.
Apply foundational design system improvements — color palette, typography, spacing, and layout. Run all at once or target a specific area. Use before component-polish for a complete design overhaul.
| name | organize-commits |
| description | Organize staged changes into logical commits with conventional commit messages. Groups related changes and creates well-structured commit history. |
Analyzes staged and unstaged changes, groups them into logical commits, and creates well-structured commits.
Invoke with /organize-commits when you have multiple changes across files that should be split into separate, focused commits.
Run these commands to understand the working state:
git status
git diff --stat
git diff --staged --stat
Group files into logical commits based on:
| Category | Prefix | Description |
|---|---|---|
| Feature | feat | New functionality |
| Fix | fix | Bug fixes |
| Refactor | refactor | Code restructuring without behavior change |
| Style | style | CSS, formatting, whitespace |
| Docs | docs | Documentation only |
| Chore | chore | Build, config, dependencies |
| Test | test | Adding or updating tests |
| Perf | perf | Performance improvements |
Look for patterns:
Show the user a proposed commit plan:
Proposed Commits:
================
Commit 1: feat(initiatives): add filter counts to list views
- src/components/build/InitiativeListView.tsx
- src/components/build/InitiativeListView.module.css
- src/components/objectives/ObjectiveList.tsx
- src/components/objectives/ObjectiveList.module.css
Commit 2: fix(import): add missing fields to import schema
- app/api/projects/[id]/import/route.ts
Commit 3: refactor(plan): reorder tabs for better workflow
- app/(protected)/plan/page.tsx
Commit 4: chore: remove unused components
- (deleted) src/components/initiatives/InitiativeList.tsx
- (deleted) src/components/initiatives/InitiativeList.module.css
- (deleted) src/components/RoadmapPage.tsx
- (deleted) src/components/RoadmapPage.module.css
Ask: "Does this grouping look right? Would you like to adjust any commits?"
For each approved commit group:
# Reset staging area
git reset HEAD
# Stage files for this commit
git add <file1> <file2> ...
# Create commit with conventional commit message
git commit -m "$(cat <<'EOF'
type(scope): short description
- Bullet point details if needed
- Another detail
Co-Authored-By: Claude <noreply@anthropic.com>
EOF
)"
Partial file changes: If a file has changes for multiple commits:
git add -p <file> to stage specific hunksUntracked files: Group new files with their related changes or as a separate "add new component" commit.
Deletions: Group deletions as cleanup/chore commits unless they're part of a refactor.
type(scope): imperative description (max 72 chars)feat(filters): add item counts to filter buttons
fix(import): include epics and userStories in schema
refactor(plan): reorder tabs to match planning workflow
chore: remove unused InitiativeList and RoadmapPage components
Updated files
Fixed stuff
WIP
Changes
After all commits are created, ask the user:
All commits created successfully!
Would you like to track this progress in the changelog? (y/n)
If yes:
/track-progress skillThis step is optional but recommended to keep the changelog in sync with development.
/track-progress to record completed work in the changelog