with one click
commit
创建符合规范的提交信息,支持常规提交格式和emoji。使用 /commit 来创建提交。
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
创建符合规范的提交信息,支持常规提交格式和emoji。使用 /commit 来创建提交。
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
| name | commit |
| description | 创建符合规范的提交信息,支持常规提交格式和emoji。使用 /commit 来创建提交。 |
This command helps you create well-formatted commits with conventional commit messages and emoji.
To create a commit, just type:
/commit
Or with options:
/commit --no-verify
--no-verify, automatically runs pre-commit checks:
pnpm lint to ensure code qualitypnpm build to verify the build succeedspnpm generate:docs to update documentationgit statusgit addgit diff to understand what changes are being committedThis is a monorepo project containing multiple datapacks. All commit messages must include the changed project's name tag in the format [PROJECT_ABBR] where the abbreviation is derived from the first letter of each word in the project name (uppercase).
The complete commit message format for this monorepo is:
[PROJECT_ABBR] <emoji> <type>: <description>
<detailed_description>
<footers>
Where:
[PROJECT_ABBR] <emoji> <type>: <description>Title Line (First Line):
[PROJECT_ABBR] <emoji> <type>: <description>Body (Optional but Recommended):
Footers (Optional):
Fixes #123, Closes #456BREAKING CHANGE: <description>Co-authored-by: Name <email>Abbreviation derivation: Take the first letter of each word in the project name, convert to uppercase
When to use project tags:
When to omit project tags:
.github/, rule/, template/)<type>: <description> where type is one of:
feat: A new featurefix: A bug fixdocs: Documentation changesstyle: Code style changes (formatting, etc)refactor: Code changes that neither fix bugs nor add featuresperf: Performance improvementstest: Adding or fixing testschore: Changes to the build process, tools, etc.When to use multi-line messages:
When single-line is acceptable:
Body content best practices:
Example structure:
[DFL] ✨ feat: add item validation function
Adds a new validation function to check item properties before
processing. This prevents crashes when handling malformed items
and improves error messages for debugging.
The validation is performed before any transformations to ensure
data integrity throughout the pipeline. This addresses issue #123
where invalid items caused silent failures.
Fixes #123
feat: New featurefix: Bug fixdocs: Documentationstyle: Formatting/stylerefactor: Code refactoringperf: Performance improvementstest: Testschore: Tooling, configurationci: CI/CD improvementsrevert: Reverting changestest: Add a failing testfix: Fix compiler/linter warningsfix: Fix security issueschore: Add or update contributorsrefactor: Move or rename resourcesrefactor: Make architectural changeschore: Merge brancheschore: Add or update compiled files or packageschore: Add a dependencychore: Remove a dependencychore: Add or update seed fileschore: Improve developer experiencefeat: Add or update code related to multithreading or concurrencyfeat: Improve SEOfeat: Add or update typesfeat: Add or update text and literalsfeat: Internationalization and localizationfeat: Add or update business logicfeat: Work on responsive designfeat: Improve user experience / usabilityfix: Simple fix for a non-critical issuefix: Catch errorsfix: Update code due to external API changesfix: Remove code or filesstyle: Improve structure/format of the codefix: Critical hotfixchore: Begin a projectchore: Release/Version tagswip: Work in progressfix: Fix CI buildchore: Pin dependencies to specific versionsci: Add or update CI build systemfeat: Add or update analytics or tracking codefix: Fix typosrevert: Revert changeschore: Add or update licensefeat: Introduce breaking changesassets: Add or update assetsfeat: Improve accessibilitydocs: Add or update comments in source codedb: Perform database related changesfeat: Add or update logsfix: Remove logstest: Mock thingsfeat: Add or update an easter eggchore: Add or update .gitignore filetest: Add or update snapshotsexperiment: Perform experimentsfeat: Add, update, or remove feature flagsui: Add or update animations and transitionsrefactor: Remove dead codefeat: Add or update code related to validationfeat: Improve offline supportWhen analyzing the diff, consider splitting commits based on these criteria:
Project-specific changes (with project abbreviation):
[DFL] ✨ feat: add new library function for item manipulation[SD] 🐛 fix: resolve stone disappearance timing issue[ALB] 📝 docs: update auto lucky block configuration guide[DFL] ♻️ refactor: simplify function error handling logicRepository-wide changes (without project abbreviation):
♻️ refactor: update build system configuration for all datapacks📝 docs: update repository README with new project structure🔧 chore: add new CI workflow for automated testingProject-specific feature with context:
[DFL] ✨ feat: add item validation function
Adds a new `validateItem()` function to check item properties before
processing. This prevents crashes when handling malformed items and
provides clear error messages for debugging.
Key improvements:
- Validates item ID format and metadata structure
- Checks for required NBT tags
- Returns detailed error objects instead of boolean
- Includes unit tests for edge cases
This addresses the silent failures reported in issue #123.
Bug fix with technical details:
[SD] 🐛 fix: resolve stone disappearance timing issue
Fixes a race condition where stones would disappear before their
animation completed. The issue occurred because the cleanup function
was called too early in the tick cycle.
Changes:
- Moved cleanup logic to run after animation check
- Added 2-tick delay before removal
- Updated state management to track animation progress
Fixes #456
Refactoring with breaking changes:
[ALB] ♻️ refactor: restructure lucky block configuration
BREAKING CHANGE: Configuration file format has changed
The old flat structure has been replaced with a nested format for
better organization and future extensibility.
Old format:
{
"drop_chance": 0.1,
"reward_count": 3
}
New format:
{
"rewards": {
"drop_chance": 0.1,
"count": 3
}
}
Migration guide: See MIGRATION.md for detailed upgrade instructions.
Repository-wide change:
♻️ refactor: migrate from webpack to vite for all datapacks
Improves build performance and developer experience by switching
to Vite as the build tool.
Benefits:
- 10x faster hot reload
- Simpler configuration
- Better TypeScript support
- Reduced dependency count
All projects now use a unified build configuration located in
the root `build/` directory.
Co-authored-by: Developer Name <dev@example.com>
--no-verify: Skip running the pre-commit checks (lint, build, generate:docs)pnpm lint, pnpm build, pnpm generate:docs) will run to ensure code quality