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/leonardsellem/readwise-vector-dbWrote 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/leonardsellem/readwise-vector-db/git_strategy)<a href="https://agentmods.dev/rules/leonardsellem/readwise-vector-db/git_strategy"><img src="https://agentmods.dev/badge/rules/leonardsellem/readwise-vector-db/git_strategy/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/leonardsellem/readwise-vector-db/git_strategy"><img src="https://agentmods.dev/badge/rules/leonardsellem/readwise-vector-db/git_strategy.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.00718 | $0.00718 |
| Opus 5.5 | $0.00287 | $0.00287 |
| Sonnet 5.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 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.
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.
- 1mo 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.0029 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-30.
Other cursor rules, from other repositories
mcp-gitee-schema
A set of rules for using MCP-Gitee tools, which let an AI agent work with Gitee repositories and projects. Gitee is a code-hosting service similar to GitHub.
conventional-commits
Enforce Conventional Commits format for all commit messages.
development-workflow
Cursor rule "development-workflow" from floriscornel/todo-mcp, covering development workflow for todo mcp, testing & quality assurance, commit structure, branch & pr workflow and publication & releases.
git-workflow
Branch hygiene — rebase on main before every PR and keep branches synced.
ponytail
Ponytail, lazy senior dev mode. Always pick the simplest solution that works.
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.