一键导入
git-workflow
Use when committing, creating PRs, or managing git history. Conventional commits, pre-commit hooks with ruff and basedpyright, branching conventions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when committing, creating PRs, or managing git history. Conventional commits, pre-commit hooks with ruff and basedpyright, branching conventions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Use when migrating a Python project from Poetry to uv. Covers running `uvx migrate-to-uv`, fixing pyproject.toml conversion gaps, rewriting Dockerfiles (poetry install -> uv sync), updating .gitlab-ci.yml, and verifying the result. Trigger keywords: migrate poetry to uv, migrate-to-uv, poetry -> uv, switch to uv, replace poetry.
Use when first opening an unfamiliar Python project. Quick analysis of project structure, dependencies, entry points, test setup, and tooling.
Use when working with poorly typed or legacy Python code. Covers gradual typing, safe annotation strategies, dynamic attributes, and monkeypatching without breaking behavior.
Use when refactoring Python code safely. Covers extract method/class/module, dependency inversion, constants extraction, and test-protected changes.
Use when writing or editing Python code. Enforces strict typing with basedpyright, ruff linting and formatting, modern Python 3.12+ idioms.
Use when writing tests for Python code. Covers pytest conventions, fixtures, mocking, strict type-checked tests.
基于 SOC 职业分类
| name | git-workflow |
| description | Use when committing, creating PRs, or managing git history. Conventional commits, pre-commit hooks with ruff and basedpyright, branching conventions. |
The agent may run ONLY git diff and git diff --staged (read-only review). All
other git operations — add, commit, push, checkout, switch, rebase,
merge, stash, reset, revert, cherry-pick — are denied by the permission
system and must be performed by the user. When a commit is needed, the agent
prepares the message and the change summary; the user runs the git command.
type(scope): descriptionfeat, fix, refactor, test, docs, chore, perf, ci, build.pre-commit-config.yaml exists, hooks run automatically on the user's machineruff check --fix, ruff format, basedpyrightpre-commit is not installed globally; add it as a dev dependency: uv add --dev pre-commitpre-commit run --all-filesmain — protected, no direct pushesfeat/<short-description>fix/<short-description>The agent prepares:
ruff check --fix && ruff formatbasedpyrightpytestgit diff --staged (agent-run, the only git command allowed)The agent then suggests a conventional-commit message; the user stages
(git add) and commits (git commit) themselves.
git diff/git diff --staged.git push, git checkout, git switch, git rebase,
git merge, git stash, git reset, git revert, or git cherry-pick
automatically — propose them as commands for the user to run.git push always requires explicit user action.