بنقرة واحدة
generate-backpressure
// Generates a BACKPRESSURE.md file for any project. Analyzes codebase and PRD to produce deterministic self-verification checks that AI coding agents run on their own output.
// Generates a BACKPRESSURE.md file for any project. Analyzes codebase and PRD to produce deterministic self-verification checks that AI coding agents run on their own output.
| name | generate-backpressure |
| description | Generates a BACKPRESSURE.md file for any project. Analyzes codebase and PRD to produce deterministic self-verification checks that AI coding agents run on their own output. |
| user-invocable | true |
This skill generates a BACKPRESSURE.md file for a software project. The file defines deterministic checks that AI coding agents run to verify their own work without human intervention.
Read these files to find what the project already has:
Package managers (find build/test/lint scripts):
package.json scriptspyproject.toml [tool.*] sections and [project.scripts]Cargo.toml [profile.*] and Makefile targetsgo.mod and Makefile targetsCI/CD (find checks the team already runs):
.github/workflows/*.ymlJenkinsfile, .gitlab-ci.ymlStatic analysis config (find configured tools):
tsconfig.json, .eslintrc*, biome.jsonmypy.ini, pyproject.toml [tool.ruff], pyproject.toml [tool.mypy]clippy.toml, rustfmt.tomlTest directories (confirm tests exist):
tests/, __tests__/, spec/, test/, *_test.goAgent config (find existing check references):
CLAUDE.md, AGENTS.md, .cursorrules, .cursor/rules/If the user provides a PRD or requirements doc:
Write BACKPRESSURE.md at the project root using this format:
# BACKPRESSURE.md
> Deterministic verification checks for [project-name].
> Agents: run these checks after every code change. Do not proceed if blocking checks fail.
## Build
- `<command>` — <expected result>
- severity: blocking
- when: after-every-change
## Types
- `<command>` — <expected result>
- severity: blocking
- when: after-every-change
## Tests
- `<command>` — <expected result>
- severity: blocking
- when: after-every-change
## Lint
- `<command>` — <expected result>
- severity: blocking
- when: before-commit
Additional sections as needed: Architecture, Contracts, Performance, Custom.
- `<shell command>` — <what "pass" looks like>
- severity: blocking | warning
- when: after-every-change | before-commit | on-demand
- notes: <why this check exists>
Rules:
blockingafter-every-changebefore-commit or on-demandBefore writing the file:
After generating, add a reference to the project's agent config:
If CLAUDE.md exists, append:
## Verification
Read BACKPRESSURE.md. Run all blocking checks after code changes. Do not proceed on failure.
If .cursorrules exists, append:
Read BACKPRESSURE.md for verification checks. Run blocking checks after every code change.
The generated BACKPRESSURE.md file, written to the project root. Report to the user: