plan-and-git-workflow

plan-and-git-workflow is a cursor rule for Cursor from Sartori-RIA/ubuteco_api. It costs 509 tokens per session, scanned A, original, MIT.

A set of project rules for planning work and preparing pull requests, which are proposed code changes submitted for review. It also defines required quality checks.

In plain words
What is it for?
Updating plans, making focused commits, preparing pull requests, and running checks such as tests, style checks, security scans, coverage, and API-drift checks.
Why use it?
It reduces workflow mistakes such as missing plan updates, oversized commits, unverified code, or documentation that no longer matches the project.

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/sartori-ria/ubuteco_api/plan-and-git-workflow
Clone the repo
git clone --depth 1 https://github.com/Sartori-RIA/ubuteco_api

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 plan-and-git-workflow

README.md
[![agentmods](https://agentmods.dev/badge/rules/sartori-ria/ubuteco_api/plan-and-git-workflow.svg)](https://agentmods.dev/rules/sartori-ria/ubuteco_api/plan-and-git-workflow)
Your own site
<a href="https://agentmods.dev/rules/sartori-ria/ubuteco_api/plan-and-git-workflow"><img src="https://agentmods.dev/badge/rules/sartori-ria/ubuteco_api/plan-and-git-workflow.svg" alt="Measured on agentmods" height="20"></a>
Per session 509 This file is loaded in full into every session.
When invoked 509 The same file — it is already loaded in full.
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.00509 $0.00509
Opus 5 $0.00254 $0.00254
Sonnet 5 $0.00102 $0.00102
Haiku 4.5 $0.00051 $0.00051

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

Security

Grade A, and why

plan-and-git-workflow 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 5d 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/plan-and-git-workflow.mdc · 50 lines

What it actually says

Plan & git workflow (ubuteco_api)

Mirror of docs/workflow-plans-and-git.md — edit the doc first, then sync this file.

Applies when implementing docs/plans/ in ubuteco_api.

Before opening a PR (mandatory)

Plan & docs

  1. Open the plan doc (docs/plans/NN-*.md) and docs/plans/README.md.
  2. Mark completed phases with [x], set header Status: completed (or in progress if deliberately partial).
  3. Include plan doc updates in the same feature branch / PR as the code.
  4. PR title/body must name the plan and link docs/plans/....

Plan-only edits with no code may go direct to master per AGENTS.md.

Quality gates (must pass before push / PR)

Check Command
RuboCop bin/rubocop
RSpec bundle exec rspec
Code coverage With RSpec (SimpleCov → coverage/)
Brakeman bin/brakeman --quiet --no-pager --exit-on-warn --exit-on-error
bundler-audit bin/bundler-audit check --update
OpenAPI drift (if contract changed) bundle exec rake openapi:drift_check
Plan status drift (if plan docs changed) bin/plans_drift_check

Shortcut: bin/ci. Do not open a PR with failures.

Commits: small and focused

One logical change per commit (docs, feat, test, fix, refactor). One plan → one branch → one PR: feature/<plan-slug>.

PR checklist

  • Plan doc + README status updated
  • RuboCop, RSpec + coverage, Brakeman, bundler-audit green
  • Small commit history
  • Test plan in PR body
  • Companion React PR linked if cross-stack

Full reference: docs/workflow-plans-and-git.md.

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. 5d ago First seen · 50 lines · 509 tokens per session scan A 9aabb2cdfc72

Subscribe to this mod's changes

plan-and-git-workflow is a cursor rule published in the GitHub repository Sartori-RIA/ubuteco_api (10 stars, last pushed 2mo ago), licensed MIT. It adds 509 tokens to every session, about $0.0025 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-31.