pr-cost
Collect a typed AI cost payload for a newly created GitHub PR, persist it to a local ledger, and optionally post an idempotent PR comment when live writes are…
Skill by cheshirecode
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/cheshirecode-pr-cost
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/pr-cost
What's inside
- Skill name
pr-cost- Description
- Collect a typed AI cost payload for a newly created GitHub PR, persist it to a local ledger, and optionally post an idempotent PR comment when live writes are explicitly enabled.
- License
- Unlicense
- Instructions
- 36 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (32)
- INSTALL.md
- SKILL.md
- pr_cost_from_hook.py · adapters/claude/v1/
- README.md · adapters/codex/
- gh · adapters/codex/bin/
- README.md · adapters/cursor/
- hooks.json · adapters/cursor/
- pr-cost-from-hook.sh · adapters/cursor/
- annotate.md · references/
- billed-validation.md · references/
- diagnosis.md · references/
- payload.md · references/
- claude_session_usage.py · scripts/
- codex_session_usage.py · scripts/
- opencode_session_usage.py · scripts/
- pr_cost_collect.py · scripts/
- pr_cost_doctor.py · scripts/
- emit_valid.json · tests/fixtures/
- hook_claude_pr_create.json · tests/fixtures/
- hook_cursor_pr_create.json · tests/fixtures/
- hook_cursor_pr_view.json · tests/fixtures/
- test_adapters_smoke.py · tests/
- test_annotation_recipe.py · tests/
- test_cache_aware_usd.py · tests/
- test_codex_rate_boundaries.py · tests/
- test_no_hardcoded_paths.py · tests/
- test_opencode_reader.py · tests/
- test_pr_cost_collect.py · tests/
- test_pr_cost_doctor.py · tests/
- test_reader_failure_modes.py · tests/
- test_skill_doc_matches_doctor.py · tests/
- test_usage_key_contract.py · tests/
SKILL.md (first lines)
# pr-cost
Collect session usage after successful PR creation. Prefer the local ledger;
GitHub comments require explicit authorization and `PR_COST_HOOK_LIVE=1`.
Resolve the skill directory from this file's load path and run commands there.
## Route first
- Hook setup or adapter installation: read [INSTALL.md](INSTALL.md).
- Construct or validate a payload, invoke a collector, or select a usage reader:
read [references/payload.md](references/payload.md).
- Diagnose a harness lane: read [references/diagnosis.md](references/diagnosis.md).
- Add cost to an existing PR: read [references/annotate.md](references/annotate.md).
- Check a rate or cache-pricing claim against billed cost: read
[references/billed-validation.md](references/billed-validation.md).
Load only the reference needed by the request. Adapters live in
`adapters/{cursor,claude,codex}/`; the collector is `scripts/pr_cost_collect.py`.
## Privacy rules
- Never copy prompts, responses, file contents, or shell output beyond the PR URL.
- Never store API keys, tokens, auth headers, or repo-local secrets.
- Prefer safe metadata only: harness, model, token counts, session identifier,
bounded timestamps, PR URL, and a short note about confidence.
- Cursor and Codex adapters should treat unavailable data as `null`, not as a
reason to scrape unrelated local state.
## Environment
- `PR_COST_LEDGER`: optional ledger override. Defaults to
`~/.local/share/pr-cost/ledger.jsonl`.
- `PR_COST_HOOK_LIVE=1`: enables live `gh pr comment` writes. Unset keeps the
collector dry and ledger-only.From cheshirecode/dotfiles, Unlicense.
More from cheshirecode/dotfiles
- 0.570score
artifact-gate
cheshirecode
Gate an HTML artifact before publishing - tag balance, dead anchors, duplicate ids, non-absolute links, drifted self-claims, and code links that still resolve…
SkillAFreshness: AClaude Code +9 - 0.570score
job-application
cheshirecode
Generate a tailored job-application package (resume, cover letter, skills keyword block) for one job description.
SkillAFreshness: AClaude Code +9 - 0.567score
fast-crawl
cheshirecode
Fetch and crawl web pages as markdown locally, fast, with no browser session.
SkillAFreshness: AClaude Code +9 - 0.567score
loop-engineering
cheshirecode
Run bounded, evidence-driven loops for repeated, resumable, delegated, or scheduled work.
SkillAFreshness: AClaude Code +9 - 0.567score
pr-review
cheshirecode
Review one PR or close out completed work.
SkillAFreshness: AClaude Code +9 - 0.567score
browser-use-setup
cheshirecode
Install, upgrade, wrap, and connect the browser-use CLI across macOS and Linux, with sandbox-safe testing and platform-specific debugging.
SkillAFreshness: AClaude Code +9 - 0.566score
requirement-sync
cheshirecode
Propagate a changed requirement across every place it is written down, and find where the old version still reads as current.
SkillAFreshness: AClaude Code +9 - 0.565score
job-search
cheshirecode
Source remote job postings from public boards (Greenhouse boards, HN Who-is-hiring, RemoteOK, LinkedIn via the browser harness, direct URLs), filter them for…
SkillAFreshness: AClaude Code +9 - 0.529score
evidence-gate
cheshirecode
Gate completion claims by mapping every observable goal or acceptance criterion to typed command, artifact, Git, GitHub, or URL evidence.
SkillBFreshness: BClaude Code +9 - 0.529score
loop-helpers
cheshirecode
Optional deterministic helpers for loop-engineering context packs and fail-open Caveman transport decisions.
SkillBFreshness: BClaude Code +9 - 0.529score
council
cheshirecode
Run multi-angle, audited research with independent voting.
SkillBFreshness: BClaude Code +9 - 0.529score
serena-rg-search
cheshirecode
Pick the right tool for multi-faceted code search across symbols, text, semantic meaning, JSON, git history, and logs.
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Sep 16, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Unlicense
- Repository
- github.com/cheshirecode/dotfiles
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from cheshirecode
- 0.570score
artifact-gate
cheshirecode
Gate an HTML artifact before publishing - tag balance, dead anchors, duplicate ids, non-absolute links, drifted self-claims, and code links that still resolve…
SkillAFreshness: AClaude Code +9 - 0.570score
job-application
cheshirecode
Generate a tailored job-application package (resume, cover letter, skills keyword block) for one job description.
SkillAFreshness: AClaude Code +9 - 0.567score
browser-use-setup
cheshirecode
Install, upgrade, wrap, and connect the browser-use CLI across macOS and Linux, with sandbox-safe testing and platform-specific debugging.
SkillAFreshness: AClaude Code +9 - 0.567score
fast-crawl
cheshirecode
Fetch and crawl web pages as markdown locally, fast, with no browser session.
SkillAFreshness: AClaude Code +9 - 0.567score
loop-engineering
cheshirecode
Run bounded, evidence-driven loops for repeated, resumable, delegated, or scheduled work.
SkillAFreshness: AClaude Code +9 - 0.567score
pr-review
cheshirecode
Review one PR or close out completed work.
SkillAFreshness: AClaude Code +9
Cite this page
pr-cost skill. Agent Mart. https://agentmart.dev/skills/cheshirecode-pr-cost (last updated 2026-10-24)