picode: Skill for Claude Code

.pi/skills/quality-gate/SKILL.md

quality-gate is a skill for Claude Code, Codex from cfpperche/picode. It costs 56 tokens per session (776 once invoked), scanned A, original, Apache-2.0.

A completion checklist for software work. It checks mechanical gates such as tests and decision tables, plus judgement-based checks such as changelog and visual review.

In plain words
What is it for?
Use it before closing a task to review tests, decision tables, changelog entries, and UI screenshots.
Why use it?
It helps prevent work from being declared finished when required checks are missing. UI changes fail unless the screenshot has been read and visually approved.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions AGENTS.md.

This is cfpperche/picode's own configuration. It tells Claude Code and Codex how to work on picode itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything picode configures →

Reuse

Borrowing it

Nothing to install: this file belongs to cfpperche/picode. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/cfpperche/picode/main/.pi/skills/quality-gate/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/cfpperche/picode

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for quality-gate

README.md
[![agentmods](https://agentmods.dev/badge/skills/cfpperche/picode/quality-gate/github.svg)](https://agentmods.dev/skills/cfpperche/picode/quality-gate)
Your own site
<a href="https://agentmods.dev/skills/cfpperche/picode/quality-gate"><img src="https://agentmods.dev/badge/skills/cfpperche/picode/quality-gate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for quality-gate

Your own site · 80×15
<a href="https://agentmods.dev/skills/cfpperche/picode/quality-gate"><img src="https://agentmods.dev/badge/skills/cfpperche/picode/quality-gate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 776 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00056 $0.00776
Opus 5.5 $0.00022 $0.00310
Sonnet 5.5 $0.00011 $0.00155
Haiku 4.5 $0.00006 $0.00078

Measured 1mo ago against content hash 75cceea93fe9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

quality-gate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.pi/skills/quality-gate/SKILL.md · 61 lines

How it starts

The opening of the file, as written. The whole thing — 61 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Quality gate

Run this before declaring any code work done in PiCode. The rules come from docs/benchmarks.md (engineering section) and AGENTS.md. Be honest — a failed gate reported honestly beats a passed gate reported falsely.

The mechanical part is one command (ADR-0086)

make ci-scoped   # while iterating: only the gates this diff can break
make close       # at the end: gates + regenerated artifacts + ff check + summary

make close refuses a dirty tree, reuses a green ci-scoped when the tree did not change, regenerates OpenAPI/llms.txt when the diff invalidated them (and commits them), and tells you whether main can fast-forward. Public captures refresh at make deploy, not here. Do not hand-run gofmt/vet/tests/build one by one in twenty turns; if close fails, fix the cause and rerun it. Run this gate and the closing docs in a subagent or a fresh session (ADR-0105): the working session ends at the merge.

The judgement part (read the diff: git diff --stat main...HEAD)

  1. One logical change? If not, split the commit.
  2. New code without tests? Table-driven tests before finishing.
  3. Interacting conditions (delete/restore/auth/cascade/mode)? A decision table exists and every row is tested or named as debt. Two clicks ≠ matrix.
  4. Timed UI (jobs, overlays, lists)? Motion on enter/step/exit; the optimistic next state, not a static wait then a jump.
  5. New non-stdlib dependency? Justified in the commit/PR description (AGENTS.md rule #3). No justification = remove it.
  6. Store mutation without an event, or a new poll against /api/* without a stated reason the feed cannot cover (ADR-0048) → FAIL.
  7. Changelog: user-visible → a fragment docs/changelog.d/<branch>.md (never CHANGELOG.md; the hook refuses it).
  8. Docs: behavior/architecture changed → the docs/architecture/ file for that subsystem; a boundary (protocol, persistence, security, process) → make adr NAME=x.
  9. Visual gate (any user-facing surface changed): /skill:visual-review and /skill:uiux-review on a scratch instance (scripts/qa-scratch.sh), never on production. Screenshots read, overlayAudit ok, visual-card in the reply. Skipped or FAIL → this gate is FAIL. eval JSON is not a visual pass.
  10. Handoff: /skill:handoff-update (one note in docs/handoff/).

Read the full file on GitHub · 61 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 61 lines · 56 tokens per session scan A 75cceea93fe9

Subscribe to this mod's changes

quality-gate is a skill published in the GitHub repository cfpperche/picode (13 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 56 tokens to every session and 776 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-12.

Related

Other skills, from other repositories

code-guidelines-go

Go 1.24–1.27 coding guidelines for the dimetron/pi-go AI agent runtime. Use this skill whenever writing, reviewing, or refactoring ANY Go code in pi-go. This covers idiomatic style, error handling, concurrency, project layout, testing (table-driven, fuzz, benchmarks, synctest), new stdlib usage, golangci-lint v2…

dimetron/pi-go · 124 tokens

vhs-e2e-gif

Record a test run, a TUI session, or any terminal command as a GIF with VHS and attach it to a GitHub PR as a release-hosted asset, never a repo commit. Use when asked to record an e2e run, demo a fix on a PR, attach a GIF or screen recording to a pull request, show a test passing visually, or produce a terminal…

dimetron/pi-go · 106 tokens

code-review-pi

Review code for quality, run linters, check test coverage, fix issues, and enforce gates. Save the final report to ./specs/issues/003-code-review-pi/PROMPT.md. Use before committing changes.

dimetron/pi-go · 50 tokens

adversarial-implementation-review-coach

Adversarial implementation review based on Block's g3 dialectical autocoding research. Use when validating implementation completeness against requirements with fresh objectivity.

rondoflow/rondoflow · 38 tokens

pstack-correct

Find the mistakes agents keep repeating in this repo and make each one impossible. Try architecture first, then types, then a lint whose error names the fix, then a test, and write docs last. Prove each check fails on a real past mistake. Repeat this each time the operator corrects you. Use for /skill:pstack-correct.

dmae97/omk · 75 tokens

codew-release-qa-sweep

Use before claiming Codewhale release work is done: run the full gate sweep and list the manual QA targets.

Hmbown/CodeWhale · 31 tokens