Agent Skillsrepoprompt/repoprompt-ce › rpce-contribution-check

rpce-contribution-check

GitHub

在提交、推送或执行破坏性操作前,运行预检脚本验证代码变更。包括秘密扫描、仓库护栏检查及PR就绪的重型验证,确保GitHub可见状态安全合规。

.agents/skills/rpce-contribution-check/SKILL.md repoprompt/repoprompt-ce

触发场景

准备创建Git commit 准备推送分支 重写历史、删除分支或Fork 修改GitHub可见仓库状态 执行破坏性操作如force-push

安装

npx skills add repoprompt/repoprompt-ce --skill rpce-contribution-check -g -y
更多选项

非标准路径

npx skills add https://github.com/repoprompt/repoprompt-ce/tree/main/.agents/skills/rpce-contribution-check -g -y

不安装直接使用

npx skills use repoprompt/repoprompt-ce@rpce-contribution-check

指定 Agent (Claude Code)

npx skills add repoprompt/repoprompt-ce --skill rpce-contribution-check -a claude-code -g -y

安装 repo 全部 skill

npx skills add repoprompt/repoprompt-ce --all -g -y

预览 repo 内 skill

npx skills add repoprompt/repoprompt-ce --list

SKILL.md

Frontmatter
{
    "name": "rpce-contribution-check",
    "description": "Validate RepoPrompt CE contributions before committing or pushing. Use whenever an agent is about to create a commit, push the current branch, rewrite history, delete a branch or fork, or change GitHub-visible repository state. Enforces staged-index and outgoing-range secret scanning, repository guardrails, clean push boundaries, an explicit PR-ready lane for path-selected heavyweight validation, and explicit approval for destructive Git or visible live-app operations."
}

RepoPrompt CE Contribution Check

Run the repository-local safety preflight before every commit and push. Read AGENTS.md first and use daemon-coordinated validation where available. Use the explicit pr-ready lane when computed-outgoing-range path-selected local validation evidence is required.

Before committing

  1. Review git status --short and inspect the intended diff.
  2. Stage only intended files. Review git diff --cached --stat and git diff --cached.
  3. Run:
.agents/skills/rpce-contribution-check/scripts/preflight.sh commit
  1. Rerun commit preflight after any staging change, including partial-staging updates. Commit mode scans materialized staged index blobs, not merely working-tree copies.
  2. Keep secret values redacted in terminal output and summaries.

Before pushing

  1. Ensure the working tree is clean.
  2. Run the immediate push safety gate:
.agents/skills/rpce-contribution-check/scripts/preflight.sh push
  1. Review the computed current-branch range printed by the script.
  2. Read references/validation-matrix.md and ensure any required focused, release, smoke, or PR-ready evidence is recorded before pushing.
  3. Push only the intended current branch and check the GitHub Actions run after pushing.

Default push mode validates whitespace, staged-index secrets, guardrails, clean worktree state, the current-branch outgoing range, and outgoing-range secrets. It does not run heavyweight lint/test/build/provider lanes.

Push mode validates only the current branch against its configured upstream. For a non-main topic branch without a configured upstream, it may use origin/main as an explicit comparison fallback. It does not validate tags, --all, --mirror, or arbitrary refspecs.

Full / PR-ready local validation

When preparing computed-outgoing-range local PR evidence, when a maintainer requests it, or when the validation matrix calls for the path-selected lane, run:

.agents/skills/rpce-contribution-check/scripts/preflight.sh pr-ready

pr-ready reruns the push safety gate, then runs any matching path-selected heavyweight lanes for the computed outgoing range, such as conductor selftests, Swift lint, root/provider tests, product builds, and generated Xcode workspace validation for Xcode boundary changes. It does not replace explicit release validation, live smoke, already-pushed PR-base comparison, or destructive-operation approval requirements.

Escalate before destructive operations

Obtain explicit user approval immediately before force-push, history rewrite, branch deletion, fork deletion, credential rotation, any other GitHub-visible destructive mutation, visible app launch/relaunch, or stopping a visible app. Do not bundle approval for a future destructive step into an earlier request.

Focused validation

Read references/validation-matrix.md when deciding whether additional focused tests, builds, PR-ready validation, release checks, or live smoke are required.

版本历史

  • fd28ee6 当前 2026-07-05 15:26

同 Skill 集合

.agents/skills/rpce-issue-creator/SKILL.md
.agents/skills/rpce-release/SKILL.md
.agents/skills/rpce-test-quality/SKILL.md
.agents/skills/rpce-merge-pr-batch/SKILL.md

元信息

文件数
0
版本
fd28ee6
Hash
e8d3ec88
收录时间
2026-07-05 15:26

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-14 06:14
浙ICP备14020137号-1 $访客地图$