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.
git clone --depth 1 https://github.com/brendadeeznuts1111/betting-brain-v3Wrote 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.
[](https://agentmods.dev/rules/brendadeeznuts1111/betting-brain-v3/ci-patterns)<a href="https://agentmods.dev/rules/brendadeeznuts1111/betting-brain-v3/ci-patterns"><img src="https://agentmods.dev/badge/rules/brendadeeznuts1111/betting-brain-v3/ci-patterns/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.
<a href="https://agentmods.dev/rules/brendadeeznuts1111/betting-brain-v3/ci-patterns"><img src="https://agentmods.dev/badge/rules/brendadeeznuts1111/betting-brain-v3/ci-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00007 | $0.01840 |
| Opus 5.5 | $0.00003 | $0.00736 |
| Sonnet 5.5 | $0.00001 | $0.00368 |
| Haiku 4.5 | $0.00001 | $0.00184 |
Grade A, and why
ci-patterns 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.
How it starts
The opening of the file, as written. The whole thing — 321 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CI/CD Patterns
Local CI Execution
One-Click Commands
# Full CI pipeline
bun run ci
# Quick CI (skip slow checks)
bun run ci:quick
# Interactive CI with reporting
bun run ci:local
# Just tests
bun test
CI Script Structure
Standard CI Pipeline
const steps = [
{
name: 'Security Scan',
command: ['sg', 'scan', 'src/'],
timeout: 30000,
required: true
},
{
name: 'SQL Migration Validation',
command: ['bun', 'run', 'scripts/validate-migrations.ts'],
timeout: 10000,
required: true
},
{
name: 'Lint Code',
command: ['bun', 'run', 'lint'],
timeout: 30000,
required: false
},
{
name: 'Type Check',
command: ['bun', 'x', 'tsc', '--noEmit'],
timeout: 60000,
required: false
},
{
name: 'Unit Tests',
command: ['bun', 'test', 'tests/unit'],
timeout: 120000,
required: true
},
{
name: 'Integration Tests',
command: ['bun', 'test', 'tests/integration'],
timeout: 180000,
required: true
},
{
name: 'Build',
command: ['bun', 'run', 'build:worker'],
timeout: 60000,
required: true
}
];
GitHub Actions Patterns
Workflow Structure
name: CI Pipeline
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
# Cancel outdated runs
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
security:
name: Security Gate
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.2.23
- run: sg scan src/
test:
name: Tests
needs: security # Block on security
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: bun test
build:
name: Build
needs: [security, test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: bun run build:worker
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.
- 1mo ago First seen · 321 lines · 7 tokens per session scan A cee83ffe007e
ci-patterns is a cursor rule published in the GitHub repository brendadeeznuts1111/betting-brain-v3 (8 stars, last pushed yesterday), licensed MIT. It adds 7 tokens to every session and 1,840 once invoked, about $0.0000 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-08-31.
Other cursor rules, from other repositories
typescript-imports
Golden rule: import each symbol from the module that defines it. A package index.ts may barrel only its own ./ modules — never another package.
docs
All documentation files use MDX format with a specific structure.
release
Changesets release pipeline - version PR and its dispatched CI check, shared vX.Y.Z tag, CI gate before tagging, release:check gate, Dependabot changesets, no npm publish, GITHUBTOKEN tag trigger limitation.
cursorrules
Use the latest version of Shadcn to install new components, like this command to add a button component.
git-workflow
Cloud Agents MUST run git add, git commit, and git push before ending their response when they have made code changes. Do not end your turn without pushing. ALWAYS use Pull Requests instead of pushing directly to main.
new-env-var-checklist
Checklist when adding any new env secret/variable — Turbo globalEnv, GitHub sync, workflow maps, Alchemy bindings. Prevents "secret synced but worker never gets it".