agentleFS
arturogarridoarturogarrido/claudinho/.cursor/rules/release-discipline.mdc

claudinho / rules

Cursor rule35 starsChanged 34 days agoMITView on GitHub

Release batching, gitignore policy, and pre-tag checks

  • Reads credentials

The file

We split this release-discipline.mdc into the rules it gives an agent

6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Do not tag npm until CI is green and pnpm release:qa passes (tripwires at the end must be 0 failed).

    line 11
  2. Very specific:

    Before tagging: git diff main must not include accidental private paths (docs/, CLAUDE.local.md, .env).

    line 13
  3. Very specific:

    Every commit produced with an AI agent: follow AGENTS.md § Commit attribution — trailer names the agent and model in use (e.g.

    line 17
  4. Very specific:

    Never: add !docs/… exceptions to .gitignore without explicit maintainer approval.

    line 27
  5. Distinctive:

    Before merge or release of bracket or kickoff-formatting work:

    line 31
  6. Very specific:

    After pnpm -r build, run pnpm release:qa and eyeball the rendered sections.

    line 36

≈ “Common” is an estimate: at least 1 in 5 of the 6,668 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
release-discipline.mdc
---
description: Release batching, gitignore policy, and pre-tag checks
alwaysApply: true
---

# Release discipline

## One feature, one release

- **One user-facing feature → one minor.** Stack review fixes (tz, dates, guards) into the **same PR** before merge when they belong to the same feature.
- Do **not** tag npm until CI is green **and** `pnpm release:qa` passes (tripwires at the end must be 0 failed).
- `scripts/gate.sh` runs CI's gating list locally (not `pnpm release:qa`, not CI's Node 22 floor, Windows and macOS jobs), and `scripts/push-and-watch.sh <branch>` reads CI's per-job result on the pushed SHA.
- Before tagging: `git diff main` must not include accidental private paths (`docs/`, `CLAUDE.local.md`, `.env`).

## Commit attribution

Every commit produced with an AI agent: follow **`AGENTS.md` § Commit attribution** — trailer names the agent **and** model in use (e.g. `Co-Authored-By: Cursor (Composer 2.5) <cursoragent@cursor.com>`).

## Public vs private docs

**Tracked (public engineering guides):** `AGENTS.md`, `CLAUDE.md`, `.cursor/rules/`, README, MCP tool descriptions.

**Gitignored (maintainer-local):** `docs/` (the maintainer's private notes and notebook) and `CLAUDE.local.md`. Never cite a file under `docs/` from a tracked file — the pack guard (`scripts/check-pack.mjs`, run in CI) fails on any `docs/<name>` reference.

- Engineering process → update the **public** guides above.
- Candid history, strategy, or release post-mortems → `docs/` notebook only.
- **Never** add `!docs/…` exceptions to `.gitignore` without explicit maintainer approval.

## Bracket / live-formatting ship checklist

Before merge **or** release of bracket or kickoff-formatting work:

1. Adversarial tests: 0 games, mid-tournament (2/3 played), degraded standings.
2. **Surface parity:** CLI `bracket` + MCP `get_bracket` + `share bracket` all pass `tz` and show calendar dates on multi-week knockouts.
3. **Statusline and `ambient --json` knockouts (if touched):** indirect-resolve via cached `getKnockoutFixtures` — hot path fail-closed (no 🏳️ on countdown or `live · syncing…`); empty-cache short TTL; `knockout-surface-coverage.test.ts` + `statusline.test.ts` / `refresh.test.ts` green. See `.cursor/rules/surface-parity.mdc`.
4. After `pnpm -r build`, run **`pnpm release:qa`** and eyeball the rendered sections; keep `packages/mcp/test/tools.test.ts` green for MCP arg threading.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.