一键导入
development-policy
Use when applying or reminding about PR-based feature work, test regression thresholds, commitlint rules, TDD workflow, and GitFlow enforcement.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when applying or reminding about PR-based feature work, test regression thresholds, commitlint rules, TDD workflow, and GitFlow enforcement.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | development-policy |
| description | Use when applying or reminding about PR-based feature work, test regression thresholds, commitlint rules, TDD workflow, and GitFlow enforcement. |
main or develop — All changes must go through PR workflow (enforced by prevent-direct-push job)mainmain: Production-ready code. Only accepts merges from develop branch PRs.develop: Integration branch. Only accepts merges from feature/fix/docs branches via PR.Create feature branch from develop:
git checkout -b feature/your-feature develop
Develop and commit using conventional format (see Commit Rules below)
Push to feature branch:
git push -u origin feature/your-feature
Create Pull Request to develop:
Closes #<n> or Relates to #<n>Get PR approval and ensure all checks pass:
Merge to develop via GitHub UI (enables audit trail)
Release to main via PR from develop when ready:
develop → mainmain/develop?The prevent-direct-push job will automatically fail and display this message:
❌ Direct pushes to 'main' are not allowed.
Please use the GitFlow workflow:
1. Create a feature branch: git checkout -b feature/your-feature
2. Push your branch: git push -u origin feature/your-feature
3. Create a Pull Request on GitHub
4. Get approval and merge via GitHub UI
This ensures all commits follow conventional format and pass CI/CD checks.
Exception: Bot pushes (Dependabot, Renovate, GitHub Actions) and merge commits are automatically allowed.
Commits must follow conventional commit style:
feat, fix, docs, refactor, test, perf, build, ci, chore, or revertsaga, dag, outbox, storage, strategies, monitoring, cli, execution, triggers, visualization, integrations, sagaz, docs, ci, deps, tests
✅ Valid:
feat(saga): add replay capability for saga executionfix(storage): resolve connection pool leak on disconnectdocs(ci): update GitFlow workflow documentationci(tests): add performance regression detection❌ Invalid:
Added new feature (missing type and scope)feat: something (missing scope)feat(my-scope): Something (invalid scope, sentence case)feat(saga): Add feature. (sentence case, ends with period)95% relative to mainGitFlow-compliance workflow validates:
feature/*, fix/*, refactor/* (major), perf/*, revert/*Relates to #<n> or Ref #<n>)test/*, ci/*, build/*, chore/*, docs/*Closes #<n>, Fixes #<n>, Resolves #<n>, Relates to #<n>, Ref #<n>✅ Create for: Bug reports, feature requests, technical debt, ADRs, design discussions ❌ Don't create for: Dependency updates, CI changes, chore work, trivial fixes
Closes #<n> / Fixes #<n> / Resolves #<n>: Use when PR fully resolves the issue
Relates to #<n> / Ref #<n>: Use when PR is related to but doesn't fully resolve the issue
See Issue-PR Policy for complete guidelines and examples.
Branches must follow <type>/<topic> where type is one of:
feature, fix, docs, refactor, test, chore, ci
Examples: feature/saga-replay, docs/refactor-dev-guides, fix/storage-pool-leak
.github/workflows/gitflow-compliance.yml - Direct push protection and PR validationcommitlint.config.cjs - Commit message validationWhen creating a PR, the automated workflow verifies:
| Problem | Solution |
|---|---|
| "Direct pushes to 'main' not allowed" | Use git checkout -b feature/name develop then PR workflow |
| Commitlint failing on merge commit | Merge commits are auto-ignored; check regular commits |
| PR job not running | Verify head branch doesn't start with dependabot/ or renovate/ |
| Force push needed urgently | Create emergency PR or contact maintainers for review |