rpce-contribution-check
Skill943 starsChanged 2 months agoApache-2.0View on GitHub
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.
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- rpce-issue-creatorSkill
- rpce-maintainer-guidanceSkill
- rpce-merge-pr-batchSkill
- rpce-releaseSkill
- rpce-swift-6-concurrency-migrationSkill
- rpce-swift-concurrency-fixSkill
- rpce-test-qualitySkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Run the repository-local safety preflight before every commit and push.
- Distinctive: line 21
Keep secret values redacted in terminal output and summaries.
- Distinctive: line 25
Ensure the working tree is clean.
- Distinctive: line 26
Run the immediate push safety gate:
- Distinctive: line 33
Read references/validation-matrix.md and ensure any required focused, release, smoke, or PR-ready evidence is recorded before pushing.
- Very specific: line 36
Default push mode validates whitespace, staged-index secrets, guardrails, clean worktree state, the current-branch outgoing range, and …
- Distinctive: line 42
When preparing computed-outgoing-range local PR evidence, when a maintainer requests it, or when the validation matrix calls for the …
- Distinctive: line 56
Read references/validation-matrix.md when deciding whether additional focused tests, builds, PR-ready validation, release checks, or live …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
- Review
git status --shortand inspect the intended diff. - Stage only intended files. Review
git diff --cached --statandgit diff --cached. - Run:
.agents/skills/rpce-contribution-check/scripts/preflight.sh commit- Rerun commit preflight after any staging change, including partial-staging updates. Commit mode scans materialized staged index blobs, not merely working-tree copies.
- Keep secret values redacted in terminal output and summaries.
Before pushing
- Ensure the working tree is clean.
- Run the immediate push safety gate:
.agents/skills/rpce-contribution-check/scripts/preflight.sh push- Review the computed current-branch range printed by the script.
- Read references/validation-matrix.md and ensure any required focused, release, smoke, or PR-ready evidence is recorded before pushing.
- 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-readypr-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. Heavy build/test/package lanes may wait on conductor's per-user global heavy slot when another worktree is already running Swift/Xcode-heavy work; treat that as coordination, not a reason to launch duplicate direct swift/xcodebuild commands. 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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

