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.
npx agentmods add rules/leonardsellem/readwise-vector-db/git_strategygit clone --depth 1 https://github.com/leonardsellem/readwise-vector-dbWhat 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 | $0.00718 | $0.00718 |
| Opus 5 | $0.00359 | $0.00359 |
| Sonnet 5 | $0.00144 | $0.00144 |
| Haiku 4.5 | $0.00072 | $0.00072 |
Grade A, and why
git_strategy 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 2d 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.
What it actually says
-
Branch-per-Task (BPT) strategy
- For every Taskmaster task create a dedicated branch:
task-<id>-<slug>(e.g.task-17-api-metrics-fix). - Base the branch on
master(or the active feature tag’s branch if using tags).
- For every Taskmaster task create a dedicated branch:
-
Explicit confirmation before committing
- Stage (
git add -A) only after tests pass locally. - Ask the user for “OK to commit & push?” before every commit.
- If yes:
git commit -m "<Conventional Commit>"thengit push -u origin <branch>. - If no: keep refining until approval.
- If yes:
- Stage (
-
Atomic, Conventional Commits
- One logical change per commit; do not mix refactors with new features.
- Use Conventional Commits (
feat:,fix:,docs:,chore:, …). - Include Task ID in the footer:
feat(api): add /metrics endpoint Task: #12
-
Pull-Request & Merge rules
- Open a PR as soon as the first commit is pushed (draft OK).
- CI must be green (lint, type-check, tests, coverage ≥90 %) before PR can be marked ready.
- At least one approving review required.
- Squash-merge into
masterto keep history linear; PR title becomes squash commit.
-
CI/CD pipeline tie-ins
pushorpull_requeston any branch triggers the CI matrix (.github/workflows/ci.yml):- Ruff / Black / Mypy linters
- Pytest + coverage gate (≥90 %)
- Optional perf job (
make perf) on nightly cron
pushonmaster(post-merge) additionally:- Builds & pushes the Docker image to GHCR
- Uploads nightly
pg_dumpbackup artifacts
- Semantic version tag (
v*.*.*) triggers Vercel/Supabase deploy workflow when those features land (Task 18).
-
Rebasing & Syncing
- Keep branch up-to-date via
git pull --rebase origin master. - Resolve conflicts locally; re-run full test suite before pushing.
- Keep branch up-to-date via
-
Large / risky features
- If a feature spans several Taskmaster tasks:
- Create an umbrella branch
feature/<name>forked frommaster. - Open PR targeting
master, then stack task branches on top and merge sequentially.
- Create an umbrella branch
- If a feature spans several Taskmaster tasks:
-
Emergency fixes
- Branch from
master→hotfix/<issue>- Fast-track through CI; reviewers may approve retrospectively if blocking production.
- Branch from
-
Tag discipline
- Only CI/CD or release scripts create annotated tags (
git tag -a vX.Y.Z -m ...).
- Only CI/CD or release scripts create annotated tags (
-
Pre-commit hooks (guard rails)
poetry run pre-commit installon first clone.- Hooks block pushes that violate formatting or lint rules.
-
Documentation & traceability
- Link PRs to Taskmaster tasks (
Fixes TM-#<id>) so the bot can automatically close them. - Keep CHANGELOG updated via Changesets if public releases are cut.
- Link PRs to Taskmaster tasks (
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.
- 2d ago First seen · 66 lines · 718 tokens per session scan A bc84e9d05bf7
git_strategy is a cursor rule published in the GitHub repository leonardsellem/readwise-vector-db (24 stars, last pushed 1y ago), licensed MIT. It adds 718 tokens to every session, about $0.0036 per session on Opus 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-30.
Other cursor rules, from other repositories
redisvl
token.strip().strip(",").replace("“", "").replace("”", "").lower().
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.
typescript
Changes to these high-fan-out internals can affect every message, delta, element, or rerun. Keep work in them minimal, and benchmark changes with representative stress-test apps.
coolify-ai-docs
Master reference to all Coolify AI documentation in .ai/ directory.
python_lib
Tips and guidelines specific to the development of the Streamlit Python library, not applicable to scripts and e2e tests.