본문으로 건너뛰기
cccskills
무료GitHub에 공개

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(8)

  • SKILL.md4.1 KB
  • AGENTS.md5.2 KB
  • BACKPRESSURE.md2.1 KB
  • examples/fastapi-app.md3.7 KB
  • examples/nextjs-app.md4.0 KB
  • examples/python-cli.md3.6 KB
  • LICENSE1.0 KB
  • README.md9.0 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Generate BACKPRESSURE.md

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.

When to Use

  • Starting a new project and want to set up agent self-verification
  • Existing project has no formalized checks for agent workflows
  • User says "generate backpressure", "create checks for agents", "set up back pressure"
  • After a failed agent session where wrong assumptions leaked into implementation

Process

1. Discover Existing Checks

Read these files to find what the project already has:

Package managers (find build/test/lint scripts):

  • package.json scripts
  • pyproject.toml [tool.*] sections and [project.scripts]
  • Cargo.toml [profile.*] and Makefile targets
  • go.mod and Makefile targets

CI/CD (find checks the team already runs):

  • .github/workflows/*.yml
  • Jenkinsfile, .gitlab-ci.yml

Static analysis config (find configured tools):

  • tsconfig.json, .eslintrc*, biome.json
  • mypy.ini, pyproject.toml [tool.ruff], pyproject.toml [tool.mypy]
  • clippy.toml, rustfmt.toml

Test directories (confirm tests exist):

  • tests/, __tests__/, spec/, test/, *_test.go

Agent config (find existing check references):

  • CLAUDE.md, AGENTS.md, .cursorrules, .cursor/rules/

2. Extract from PRD (if provided)

If the user provides a PRD or requirements doc:

  • Extract acceptance criteria that can be expressed as CLI commands
  • Map performance requirements to budget checks
  • Map API contracts to learning test candidates
  • Map architectural constraints to import/dependency checks

3. Generate the File

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.

Check Format

- `<shell command>` — <what "pass" looks like>
  - severity: blocking | warning
  - when: after-every-change | before-commit | on-demand
  - notes: <why this check exists>

Rules:

  • Commands must be copy-paste runnable from project root
  • Default severity: blocking
  • Default when: after-every-change
  • Slow checks (>30s): set to before-commit or on-demand
  • Section order: Build > Types > Lint > Tests > Architecture > Contracts > Performance > Custom
  • No LLM-as-judge checks. No human-in-the-loop checks. Deterministic only.

4. Validate

Before writing the file:

  • Every command exists in the project (not fabricated)
  • Every command runs from project root
  • At least 3 sections have real checks
  • No checks require LLM judgment
  • No checks require human interaction
  • Max 15-20 checks total

5. Integrate

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.

Output

The generated BACKPRESSURE.md file, written to the project root. Report to the user:

  • How many checks were generated
  • Which sections were populated
  • Any sections that were skipped and why
  • Suggested checks to add manually (if there are gaps)

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

이 스킬의 문제 신고