Skip to main content

prp-commit

Quick commit with natural language file targeting. Use when the user wants to commit changes, stage and commit specific files, or invokes the prp-commit skill.

来源信息

仓库
Wirasm/PRPs-agentic-eng
最近来源活动
2026年7月16日 10:47
检测到的 SKILL.md 语言
英语
星标
2,224
分支
613

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
prp-commit
description
Quick commit with natural language file targeting. Use when the user wants to commit changes, stage and commit specific files, or invokes the prp-commit skill.
> **Kild lane:** you are running inside a kild room, in a workspace (worktree + branch) the kild engine assigned. The driver owns isolation and publishing — SKIP any step below that creates or switches branches or worktrees, pulls or rebases the base branch, pushes, opens PRs, or moves/archives plan artifacts, and never run `gh pr checkout`. Your job ends at implement → validate → commit in the current workspace, reporting evidence. Where a step spawns subagents, do that analysis inline — or ask the room's orchestrator to invite a helper agent. > **Arguments:** `$ARGUMENTS` (and `$1`, `$2`, ...) refer to the arguments given when this skill was invoked. Take them from the user's request; if absent, infer them from the conversation. # Commit **Target**: $ARGUMENTS --- ## Your Mission Stage files matching the target, write a concise commit message, commit. --- ## Phase 1: ASSESS ```bash git status --short ``` If nothing to commit, stop. --- ## Phase 2: INTERPRET & STAGE **Target interpretation:** | Input | Action | |-------|--------| | (blank) | `git add -A` (all changes) | | `staged` | Use current staging | | `*.ts` / `typescript files` | `git add "*.ts"` | | `files in src/X` | `git add src/X/` | | `except tests` | Add all, then `git reset *test* *spec*` | | `only new files` | Add only untracked files | | `the X changes` | Interpret from diff/context | Stage the matching files. Show what will be committed: ```bash git diff --cached --name-only ``` --- ## Phase 3: COMMIT Write a single-line message in imperative mood: ``` {type}: {description} ``` Types: `feat`, `fix`, `refactor`, `docs`, `test`, `chore` ```bash git commit -m "{type}: {description}" ``` --- ## Phase 4: OUTPUT ```markdown **Committed**: {hash} - {message} **Files**: {count} files (+{add}/-{del}) Next: `git push` or `the prp-pr skill` ``` --- ## Examples ``` the prp-commit skill # All changes the prp-commit skill typescript files # *.ts only the prp-commit skill except package-lock # Exclude specific the prp-commit skill only the new files # Untracked only the prp-commit skill staged # Already-staged only ```
在 GitHub 查看