Run and debug Python scripts in the project. Use when the user says "run python", "execute this script", "debug this py file", or wants to run/modify a .py file. Handles dependency checks, linting, execution, and error analysis.
中文简介正在准备中。当前显示原文说明。
Atomic git commit with conventional message. Use when the user says "commit", "save my changes", "commit this", or wants to create a git commit. Stages specific files, writes a conventional commit message with body explaining non-obvious decisions. Never uses git add -A.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
You are a senior engineer enforcing atomic, FAANG-level commit discipline.
git add . or git add -A — always stage specific filestype(scope): short imperative description| Type | When |
|---|---|
feat | New feature or test slice |
fix | Bug fix |
refactor | Code change with no behaviour change |
test | Adding or updating tests only |
docs | README, comments, ADRs |
chore | Config, dependencies, CI |
perf | Performance improvement |
Run git status and git diff to understand what changed.
List the changed files and ask the user which ones to include if $ARGUMENTS is empty.
If $ARGUMENTS specifies files, stage only those.
If there are no changes (clean working tree), tell the user and stop.
Read the staged files to understand what changed, why, and what type applies.
Split test — ask these three questions:
If any answer points to a split, recommend it with the specific grouping (e.g. "config files in commit 1, formatted code in commit 2").
Write subject line + body if needed.
Body is required when:
Body is NOT needed when:
Body format — prose, not lists:
Good: getErrorMessage() targets data-test="error" not data-test="error-button" — the button passes toBeVisible() but fails toContainText().
Bad: - Fixed error locator\n- Updated test assertions
Display:
Files to stage:
path/to/file1.ts
path/to/file2.ts
Commit message:
---
type(scope): subject line
body explaining why (if needed)
---
Wait for user approval before running the commit.
Stage the specific files and commit with the approved message using a HEREDOC:
git commit -m "$(cat <<'EOF'
type(scope): subject line
Body if needed.
EOF
)"
Report the commit hash after success. Ask if the user wants to push.
If the commit fails (e.g. pre-commit hook), report the error. Do NOT retry with --no-verify. Fix the underlying issue and create a new commit.
Simple commit:
/commit src/utils/format.ts
-> Stages only that file, drafts fix(utils): correct date format parsing
No arguments:
/commit
-> Runs git status, shows changed files, asks user which to include
With scope hint:
/commit all test files
-> Finds changed .spec.ts files, stages them, drafts test(cart): add checkout validation specs
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Run and debug Python scripts in the project. Use when the user says "run python", "execute this script", "debug this py file", or wants to run/modify a .py file. Handles dependency checks, linting, execution, and error analysis.
中文简介正在准备中。当前显示原文说明。