bundle-bracket-pr

bundle-bracket-pr is a cursor rule for Cursor from arturogarrido/claudinho. It costs 0 tokens per session (893 once invoked), scanned A, original, MIT.

A checklist for preparing data-heavy changes for a pull request, especially code that builds schedules and tournament brackets from bundled or live data. A pull request is a proposed code change submitted for review.

In plain words
What is it for?
Running build, type, test, and lint checks; validating empty schedule fixtures; resolving knockout winners after scores or penalty results; and checking group standings and bracket indexes.
Why use it?
It catches incorrect bundled results, prematurely confirmed teams, and mistakes in knockout advancement before the change is considered ready.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/arturogarrido/claudinho/bundle-bracket-pr
Clone the repo
git clone --depth 1 https://github.com/arturogarrido/claudinho

Made for: Cursor.

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 bundle-bracket-pr

README.md
[![agentmods](https://agentmods.dev/badge/rules/arturogarrido/claudinho/bundle-bracket-pr.svg)](https://agentmods.dev/rules/arturogarrido/claudinho/bundle-bracket-pr)
Your own site
<a href="https://agentmods.dev/rules/arturogarrido/claudinho/bundle-bracket-pr"><img src="https://agentmods.dev/badge/rules/arturogarrido/claudinho/bundle-bracket-pr.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 893 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00893
Opus 5 $0.00000 $0.00447
Sonnet 5 $0.00000 $0.00179
Haiku 4.5 $0.00000 $0.00089

Measured 4d ago against content hash 0b0758752961, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

bundle-bracket-pr 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 4d 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.

.cursor/rules/bundle-bracket-pr.mdc · 59 lines

How it starts

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

Bundle & bracket PR readiness

Before marking a data-heavy feature merge-ready, run pnpm -r build && pnpm -r typecheck && pnpm -r test && pnpm lint (mirror CI — build first because cli/mcp import @claudinho/core from dist; build alone does not typecheck).

Bundled schedule invariant

schedule.*.json is a resultless skeleton: no scores/status, no confirmed nations in knockout slots.

  • sanitizeBundledFixture must restore topology placeholders for KO home/away.
  • gen:schedule must fail if any knockout fixture carries a real nation flag.
  • Test degraded getBracket() on the bundle: seed/winner slots stay tbd, never confirmed.

Knockout resolution

  • Advance winners from score OR winnerCode (ESPN competitor.winner for penalties).
  • Always test FT draw + winnerCode — routine in knockouts.
  • Group slots project from live standings once ≥1 match played (hasGroupStarted); confirmed when every team has played a full round-robin (played >= n - 1 for n teams); (proj.) only mid-group. TBD at 0 games or when standings are degraded.

Topology indexing

  • Bracket node index must match ESPN winner refs (e.g. "Round of 32 3 Winner"), not kickoff sort order.
  • If live post-round data is unavailable, add a guard test against bundled matchId ↔ index and document the assumption.
  • Spot-check when R32 starts (2026-06-28): confirm ESPN's "Round of 32 N Winner" refs align with ascending event id.

Live hybrid paths

  • When knockout fetch fails but standings succeed: set source from standings provider.
  • Share/MCP: inner formatBracketList({ footer: false }), outer layer adds attribution/notices once.
  • CLI/MCP wrappers: option types must match the formatter (ShareBracketOptions, not ShareSnippetOptions).
  • Surface parity: see .cursor/rules/surface-parity.mdc — every bracket formatter path passes tz + locale; statusline knockouts indirect-resolve via cached getKnockoutFixtures (hot path fail-closed).

Read the full file on GitHub · 59 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. 4d ago First seen · 59 lines · 0 tokens per session scan A 0b0758752961

Subscribe to this mod's changes

bundle-bracket-pr is a cursor rule published in the GitHub repository arturogarrido/claudinho (28 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 893 tokens. 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-08-30.