saas-finops-optimization

saas-finops-optimization is a cursor rule for Cursor from galyarderlabs/galyarder-framework. It costs 58 tokens per session (1,361 once invoked), scanned A, original, MIT.

A guide for reducing infrastructure and AI spending in SaaS applications, including cloud services, databases, serverless functions, payment systems, and AI APIs.

In plain words
What is it for?
Use it to plan infrastructure, investigate high cloud or AI bills, optimize Vercel, Supabase, Neon, Stripe, and AI API usage, and monitor costs.
Why use it?
It helps explain and control rising bills by examining resource usage, scaling, token consumption, and ongoing burn rate.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to plan infrastructure, investigate high cloud or AI bills, optimize…

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/galyarderlabs/galyarder-framework/saas-finops-optimization
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.

Clone the repo
git clone --depth 1 https://github.com/galyarderlabs/galyarder-framework

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 saas-finops-optimization

README.md
[![agentmods](https://agentmods.dev/badge/rules/galyarderlabs/galyarder-framework/saas-finops-optimization.svg)](https://agentmods.dev/rules/galyarderlabs/galyarder-framework/saas-finops-optimization)
Your own site
<a href="https://agentmods.dev/rules/galyarderlabs/galyarder-framework/saas-finops-optimization"><img src="https://agentmods.dev/badge/rules/galyarderlabs/galyarder-framework/saas-finops-optimization.svg" alt="Measured on agentmods" height="20"></a>
Per session 58 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,361 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00058 $0.01361
Opus 5 $0.00029 $0.00681
Sonnet 5 $0.00012 $0.00272
Haiku 4.5 $0.00006 $0.00136

Measured 3d ago against content hash d86524d88b4a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

saas-finops-optimization 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 3d 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/saas-finops-optimization.mdc · 89 lines

How it starts

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

THE Agentic Company Framework GLOBAL PROTOCOLS (MANDATORY)

1. Token Economy: The RTK Prefix

The local environment is optimized with rtk (Rust Token Killer). Always use the rtk prefix for shell commands (e.g., rtk npm test) to minimize token consumption.

  • Example: rtk npm test, rtk git status, rtk ls -la.
  • Note: Never use raw bash commands unless rtk is unavailable.

2. Traceability: Linear is Law

No cognitive labor happens outside of a tracked ticket. You operate exclusively within the bounds of a project-scoped issue.

  • Project Discovery: Before any work, check if a Linear project exists for the current workspace. If not, CREATE it.
  • Issue Creation: ALWAYS create or link an issue WITHIN the specific Linear project. NEVER operate on 'No Project' issues.
  • Status: Transition issues to "In Progress" before coding and "Done" after verification.

3. Cognitive Integrity: Scratchpad Reasoning

Before executing any high-impact tool (write_file, replace, run_shell_command), it is standard protocol to output a <scratchpad> block demonstrating your internal reasoning, trade-off analysis, and specific execution plan.

4. Technical Integrity: The industry experts Principles

Combat AI slop through rigid adherence to the four principles of Andrej industry experts:

  1. Think Before Coding: Don't guess. If uncertain, STOP and ASK. State assumptions explicitly. If ambiguity exists, present multiple interpretationsdon't pick silently. Push back if a simpler approach exists.
  2. Simplicity First: Implement the minimum code that solves the problem. No speculative abstractions. If 200 lines could be 50, rewrite it. No "configurability" unless requested.
  3. Surgical Changes: Touch ONLY what is necessary. Every changed line must trace to the request. Don't "improve" adjacent code or refactor things that aren't broken. Remove orphans YOUR changes made, but leave pre-existing dead code (mention it instead).
  4. Goal-Driven Execution: Define success criteria via tests-first. Loop until verified.
    • Multi-step tasks MUST use this syntax:
      1. [Step] verify: [check]
      2. [Step] verify: [check]

Read the full file on GitHub · 89 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. 3d ago First seen · 89 lines · 58 tokens per session scan A d86524d88b4a

Subscribe to this mod's changes

saas-finops-optimization is a cursor rule published in the GitHub repository galyarderlabs/galyarder-framework (23 stars, last pushed 1mo ago), licensed MIT. It adds 58 tokens to every session and 1,361 once invoked, about $0.0003 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-09-03.

Related

Other cursor rules, from other repositories

azure-cost-management-navigator

Expert in Azure Cost Management, enterprise enrollments, subscriptions, management groups, and the specific shape of Azure billing exports -- FOCUS, EA, MCA, and CSP scenarios.

Cletrics/finops-agents · 35 tokens

finops-practice-lead

Operates the FinOps practice end-to-end -- cadences, policies, maturity assessment, and the integration with allied disciplines (ITAM, ITSM, ITFM/TBM, Security, Sustainability). Runs the discipline that aligns Engineering, Finance, and Leadership.

Cletrics/finops-agents · 52 tokens

cloud-onboarding-coordinator

Runs the cost-transparent migration process for workloads moving into cloud, between clouds, or between accounts/subscriptions. Designs the intake gate that prevents new workloads from landing untagged, unallocated, and unforecast.

Cletrics/finops-agents · 42 tokens

finops-tooling-evaluator

Build-vs-buy analysis, vendor selection, and tool-portfolio hygiene for FinOps platforms, k8s cost tools, commitment optimizers, and reporting/BI layers. Picks tools that deliver FinOps Capabilities, not logos.

Cletrics/finops-agents · 47 tokens

kubernetes-finops-engineer

Specialist in Kubernetes cost allocation, namespace and label-based chargeback, and cluster-level optimization. Comfortable with OpenCost, Kubecost, Karpenter, cluster autoscaler, and vertical pod autoscaler.

Cletrics/finops-agents · 42 tokens

aws-savings-plans-strategist

Expert in Compute and EC2 Instance Savings Plans. Models the right commitment level, term, payment option, and hedge ratio to maximize effective discount without bleeding on unused commitment.

Cletrics/finops-agents · 34 tokens