3058f4c744
Add architecture doc (research-wiki/ARCHITECTURE.md), CLAUDE.md with tiered SOP for Fable 5, adapted .claude skills/hooks/settings, package skeleton (src/polygateway), pyproject with import-linter contracts, Makefile, .env.example and smoke test.
1.7 KiB
1.7 KiB
name, description
| name | description |
|---|---|
| commit | Use when committing code changes - enforces commit message format, safety checks, and prohibits AI signatures |
Commit
Automatically generate a commit message and submit the code.
Workflow
- Check status: run
git statusto inspect changes (do not use-uall) - Review diff: run
git diff --stagedandgit diffto inspect the exact changes - Check style: run
git log --oneline -10to review recent commit style - Generate message: create a commit message that follows the rules below
- Commit: stage the files and commit
Commit Message Rules
Format
<type>: <description>
[optional body]
Type Values
feat: new featurefix: bug fixdocs: documentation updaterefactor: refactor with no functional changetest: test-related changechore: build / tooling / configurationperf: performance optimizationci: CI/CD related
Rules
- The description must be written in English
- Keep it under 72 characters
- Use the imperative mood, for example "add user authentication" instead of "added user authentication"
Safety Rules
Caution
Never add any AI signature to a commit message:
- Do not add
Co-Authored-By: Claude- Do not add
🤖 Generated with...- Do not add any AI signature or marker
Sensitive File Check
Before committing, check whether any of the following files were accidentally added:
.env/.env.*credentials.json*_secret**.pem/*.key
If sensitive files are found, warn the user and wait for confirmation.
Examples
# Auto-generate a message
/commit
# Specify a message
/commit "feat: add user login"