diazmelgarejo/orama-system/cursor-pr-body
Claude Code and agent skill by diazmelgarejo/orama-system
- community
Checking that the SKILL.md file is still in the repository.
Layer 0 comment-only PR updates for Cursor agents — post_comment/gh pr comment only, never auto-change PR descriptions. After operator mints operator-grant-v2 (HMAC + digest binding), append-pr-body.sh is the only allowed write path. Triggers on: update PR body, ManagePullRequest update_pr, gh pr edit, append-pr-body, PR summary, post_comment, PR harmonization notes, operator grant, grant replay.
Install
npx vskill@latest install diazmelgarejo/orama-system/cursor-pr-bodySKILL.md
The same SKILL.md was published earlier as diazmelgarejo/orama-system/cursor-pr-body.
Cursor PR Body — Comment-Only + Append-Only
Layer 0 rule:.cursor/rules/pr-body-comment-only.mdc(alwaysApply)Layers 1–6:.cursor/rules/append-only-pr-body.mdc(operator grant only)Grant lib:scripts/cursor/pr-body-grant-lib.py(mint, verify, reserve, mark-applied, consume, reconcile)Operator mint:scripts/cursor/grant-pr-body-human-override.sh(TTY + not agent/CI)Write:scripts/cursor/append-pr-body.sh(only authorized body-write path;GH_BINfor tests)
Layer 0 — Default for Cursor agents
Do not change PR descriptions automatically. Use comments only:
| Tool | Action | |
|---|---|---|
ManagePullRequest | post_comment only — never update_pr with body= | |
gh | gh pr comment only — never gh pr edit or direct body API calls |
Hooks enforce this at preToolUse, beforeMCPExecution, beforeShellExecution, and beforeSubmitPrompt. You cannot bypass by choosing a different tool.
Operator grant v2 (explicit authorization)
operator-grant-v1 plaintext ack and CURSOR_PR_BODY_HUMAN_OVERRIDE_ACK env exports are rejected. Authorization is an HMAC-authenticated capability in ~/.cursor/pr-body-human-override-ack (operator-grant-v2), not proof that a human is present.
Same-user residual risk: Keychain HMAC on macOS is escalation control — an agent shell running as the operator user can still read the secret or ack file. WebAuthn/MCP approval is deferred to v2.1 security-sentinel (`docs/v2/51-security-sentinel-orbit-passkey-mcp.md`).
Operator workflow
Grant and append must use the same --file or --message (content-digest binding).
Agent workflow (after operator mint)
Direct update_pr, gh pr edit --body-file, and gh api body mutations remain denied even with a grant.
Replay state machine (append-pr-body.sh)
- Never consume the nonce before remote
gh pr editsucceeds. - On edit failure after
reserve, reservation is released. - Reconcile: if follow-up block is already on remote,
reconcileconsumes without duplicate edit.
Canonical HMAC payload (fixed UTF-8 field order, pipe-delimited, no trailing newline):
Hooks call pr-body-guard-core.py to verify grant per append segment and emit BACKUP|repo|pr for preflight READ snapshots (pr_body_run_guard in backup-lib).
Append-only workflow (Layers 1–6)
Forbidden (always)
| Bad | Why | |
|---|---|---|
Turn-end update_pr with latest delta | Clobbered 5+ PRs — comment instead | |
| Any automatic body edit without operator grant v2 | Layer 0 violation | |
gh pr edit / gh api after grant | Grant permits append-pr-body.sh only | |
| Delta-only body even with grant | Layers 1–6 violation | |
| Forge v1 ack or env override exports | Fail-closed; use operator-grant-v2 | |
| Run grant script from agent shell | Operator mint only |
Verification
References
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingbin/orama-system/skills/cursor-pr-body/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/diazmelgarejo/orama-system/cursor-pr-body)