ワンクリックで
commit
Create conventional commits following OpenOrder standards with AGPL co-authoring
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Create conventional commits following OpenOrder standards with AGPL co-authoring
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Generate CRUD API endpoints following OpenOrder patterns (Fastify, Prisma, Zod, RBAC)
Scaffold new POS or payment adapter implementations. Use when adding support for Square, Toast, Clover, Stripe, or other integrations.
Initialize Docker development environment with database migrations. Use for first-time setup or after pulling major changes.
Run comprehensive checks across the entire monorepo. Use before creating PRs or after making cross-package changes.
Create and validate Prisma database migrations. Use after schema.prisma changes or when adding new database features.
Audit codebase for security vulnerabilities, secret leakage, dependency risks, and configuration issues. Use before commits, when adding dependencies, or reviewing PRs. Enforces zero-secrets policy, dependency isolation, and secure build practices.
| name | commit |
| description | Create conventional commits following OpenOrder standards with AGPL co-authoring |
| disable-model-invocation | false |
| allowed-tools | Bash(git*) |
This skill enforces conventional commit format with AGPL license awareness.
Check Repository State
git status
Understand Changes
git diff
git diff --staged
Determine Commit Type
feat: New features
fix: Bug fixes
docs: Documentation only
refactor: Code restructuring without behavior change
test: Adding or updating tests
chore: Tooling, dependencies, build config
perf: Performance improvements
Generate Commit Message
Format:
<type>: <subject>
<optional body>
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Subject Guidelines:
Examples:
feat: add real-time order status updates via SSE
fix: prevent duplicate order creation on double-click
docs: update Docker setup instructions
refactor: extract payment adapter interface
test: add integration tests for webhook verification
chore: update Prisma to v5.8.0
Stage Files
Prefer specific files over blanket staging:
# Good - explicit files
git add apps/api/src/routes/orders.ts apps/api/src/services/order-service.ts
# Avoid - catches everything including unintended files
git add -A
git add .
Never stage:
.env filescredentials.jsonnode_modules/Create Commit
Use heredoc for proper formatting:
git commit -m "$(cat <<'EOF'
feat: add real-time order status updates via SSE
Implement Server-Sent Events endpoint for customers to track
order status without polling. Includes automatic reconnection
and connection timeout handling.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
EOF
)"
Verify Commit
git status
git log -1 --pretty=format:"%h %s"
Handle Pre-Commit Hook Failures
If pre-commit hook fails:
--no-verify (bypasses safety checks)--amend (would modify previous commit)Example:
# Hook failed due to linting errors
npm run lint:fix
git add apps/api/src/routes/orders.ts
git commit -m "$(cat <<'EOF'
feat: add real-time order status updates via SSE
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
EOF
)"
For larger projects, add scope to commits:
feat(api): add webhook signature verification
fix(dashboard): prevent order duplication on refresh
docs(setup): update Docker Compose instructions
Common scopes:
api - Backend changesstorefront - Customer-facing appdashboard - Restaurant management appwidget - Embeddable widgetpos-adapters - POS integrationspayment-adapters - Payment providersshared-types - TypeScript typesui - Shared componentsIf introducing breaking changes:
feat!: change order API response format
BREAKING CHANGE: Order API now returns ISO timestamps instead of
Unix timestamps. Update all clients to parse ISO 8601 format.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
If commit includes unrelated changes, split into separate commits:
# Bad - mixing concerns
git add apps/api/src/routes/orders.ts apps/dashboard/src/components/Header.tsx
git commit -m "fix: various updates"
# Good - separate commits
git add apps/api/src/routes/orders.ts
git commit -m "fix: prevent duplicate order creation"
git add apps/dashboard/src/components/Header.tsx
git commit -m "fix: correct header alignment on mobile"
Always include Claude co-authorship trailer:
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This is required for AGPL compliance and transparency about AI-assisted development.
.env, .env.local)node_modules/dist/, .next/, out/).vscode/, .idea/).DS_Store, Thumbs.db)These should already be in .gitignore, but verify before staging.