一键导入
git-workflow
Git commit conventions, validation gates, and CI/CD workflows. Use when committing changes, verifying gates, or working with GitHub Actions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Git commit conventions, validation gates, and CI/CD workflows. Use when committing changes, verifying gates, or working with GitHub Actions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
GOAP-based orchestrator for managing GitHub issues, creating action plans, and executing workspace operations with branch/PR workflow.
Configure and troubleshoot npm OIDC Trusted Publishing for GitHub Actions. Use when npm publish fails with E404, OIDC errors, or provenance issues.
GitHub release management, crates.io trusted publishing, npm provenance, and GitHub Pages documentation. Use when creating releases, publishing packages, or deploying docs.
Validate merge readiness with atomic commits and GitHub Actions checks using gh CLI; use for pre-merge verification and CI truth validation.
Apply TRIZ inventive principles to solve problems that seem to have no good solution. Use after triz-analysis has identified contradictions.
Implement or refactor Rust in this repository. Use when writing new modules, modifying existing source files, or adding features to the chaotic_semantic_memory crate.
| name | git-workflow |
| description | Git commit conventions, validation gates, and CI/CD workflows. Use when committing changes, verifying gates, or working with GitHub Actions. |
Use Conventional Commits format:
<type>(<scope>): <short summary in imperative mood>
<body: explain what and why, not how>
<footer: BREAKING CHANGE, Co-authored-by, etc.>
See references/commit-types.md for full type/scope guide and examples.
Run before every commit:
export CARGO_TERM_PROGRESS_WHEN=never
cargo check --message-format=short
cargo test --all-features --quiet
cargo fmt --check
cargo clippy -- -D warnings
Or use: scripts/validate.sh
cargo bench --bench benchmark -- --save-baseline main
cargo bench --bench benchmark -- --baseline main
Target: reservoir_step_50k < 100μs
gh pr checks --watch
gh run list --branch <branch> --limit 5
Do not claim success until both local and GitHub checks pass.
When reviewing/fixing multiple open PRs, always check ALL of these for EVERY PR before starting work:
# 1. Merge conflict check (FIRST - before anything else)
gh pr list --state open --json number,title,mergeable \
--jq '.[] | "\(.number): \(.title) — \(.mergeable)"'
# 2. CI status check
for pr in $(gh pr list --state open --json number --jq '.[].number'); do
echo "PR #$pr:"
gh pr checks $pr 2>&1 | grep "fail" | wc -l
echo "failures"
done
# 3. Review comments requiring action
gh pr list --state open --json number,reviewDecision \
--jq '.[] | "\(.number): \(.reviewDecision)"'
Merge order rules:
mergeable status FIRST — resolve conflicts before CI fixesgh pr merge --auto when clearing multiple PRs (rebase loop)Never skip: A PR showing MERGEABLE in the API can still have conflicts after other PRs merge. Re-check after each merge.
gh pr diff --name-only is empty (0 files), close as
no-op — do not spend mutation/CI budget.origin/main before merge: Jules can force-push after a human/agent
fix and silently drop sibling merges (e.g. remove Rayon from probe_batch).
Always: git diff --stat origin/main...HEAD and skim for unexpected reverts.commitlint --from base --to head. One early
bad scope (perf(ops):) fails even if later commits are valid. Squash/reword;
validate with npx commitlint --from origin/main --to HEAD --verbose.commitlint.config.cjs scope-enum
(e.g. framework, not ops; docs without a fake plans scope).⚠️ NEVER use --auto merge when the repo requires "up to date with base branch".
This repo requires PRs to be up-to-date with main before merge. Auto-merge creates an infinite loop:
Correct protocol — merge one at a time:
# For each PR in dependency order:
git checkout <branch>
git fetch origin main
git rebase origin/main
git push origin <branch> --force-with-lease
# Wait for CI to pass (~15 min)
gh pr checks <number> --watch
# Merge (only after ALL checks green)
gh pr merge <number> --squash --delete-branch
# Then move to next PR (main has changed)
Use scripts/pr-triage.sh to get the full picture before starting.
Anti-patterns to avoid:
gh pr merge --auto on multiple PRs (creates rebase loops)