finfocus CLAUDE.md

finfocus CLAUDE.md is an instructions file for coding agents from rshade/finfocus. It costs 5,469 tokens per session, scanned A, original, Apache-2.0.

A project instruction guide for FinFocus, a command-line tool that calculates cloud costs from Pulumi infrastructure definitions. It also records rules for working safely in that repository.

In plain words
What is it for?
It is for building, testing, linting, validating, and running FinFocus while following the repository's development rules.
Why use it?
It makes required commands and restrictions clear, including the rule that changes must not be committed by the agent and that linting and tests must run before success is reported.

Instructions file

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 instructions/rshade/finfocus/claude-md
Clone the repo
git clone --depth 1 https://github.com/rshade/finfocus

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 finfocus CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/rshade/finfocus/claude-md.svg)](https://agentmods.dev/instructions/rshade/finfocus/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/rshade/finfocus/claude-md"><img src="https://agentmods.dev/badge/instructions/rshade/finfocus/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 5,469 This file is loaded in full into every session.
When invoked 5,469 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.05469 $0.05469
Opus 5 $0.02735 $0.02735
Sonnet 5 $0.01094 $0.01094
Haiku 4.5 $0.00547 $0.00547

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

Security

Grade A, and why

finfocus CLAUDE.md 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.

CLAUDE.md · 487 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

CRITICAL INSTRUCTIONS

DO NOT RUN git commit - This is explicitly forbidden. Use git add, git status, git diff, and git log only. The user will commit manually.

ALWAYS run make lint and make test before claiming success.

DO NOT modify .golangci.yml without explicit approval.

Project Overview

FinFocus Core is a CLI tool and plugin host system for calculating cloud infrastructure costs from Pulumi infrastructure definitions. It provides both projected cost estimates and actual historical cost analysis through a plugin-based architecture.

Build Commands

make build         # Build binary to bin/finfocus
make test          # Run unit tests (default, fast)
make test-race     # Run with race detector
make test-integration  # Integration tests (slower)
make test-e2e      # E2E tests (requires AWS credentials)
make lint          # Run golangci-lint + markdownlint
make validate      # go mod tidy, go vet
make clean         # Remove build artifacts
make run           # Build and run with --help
make dev           # Build and run without args
make docs-lint     # Lint markdown docs
make docs-build    # Build Jekyll site
make docs-serve    # Serve docs at http://localhost:4000/finfocus/
make build-recorder    # Build recorder plugin to bin/finfocus-plugin-recorder
make install-recorder  # Build and install recorder to ~/.finfocus/plugins/recorder/0.1.0/

Single Package/Test Commands

go test -v ./internal/cli/...           # Test specific package
go test -v ./internal/engine/...        # Test engine package
go test -run TestSpecificFunction ./... # Run specific test

# Coverage
go test -coverprofile=coverage.out ./...
go tool cover -html=coverage.out        # View in browser

# Plugin management
./bin/finfocus plugin list
./bin/finfocus plugin list --output json  # JSON array for machine consumption
./bin/finfocus plugin validate

Read the full file on GitHub · 487 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 · 487 lines · 5,469 tokens per session scan A ba4ca0ce2687

Subscribe to this mod's changes

finfocus CLAUDE.md is an instructions file published in the GitHub repository rshade/finfocus (5 stars, last pushed 17d ago), licensed Apache-2.0. It adds 5,469 tokens to every session, about $0.0273 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.

Related

Other instructions, from other repositories

claude-aws-cost-saver AGENTS.md

Instructions for prajapatimehul/claude-aws-cost-saver, covering aws cost saver for codex, purpose, codex setup (mcp only), register the aws api mcp server used by this project and verify it is available.

prajapatimehul/claude-aws-cost-saver · 557 tokens

insideout-power AGENTS.md

Instructions for luthersystems/insideout-power, covering insideout — riley infrastructure agent, what riley can do for you, how to invoke riley, via remote mcp (preferred — use this first) and via agent skills.

luthersystems/insideout-power · 1,155 tokens

cloud-mcp-server CLAUDE.md

Claude Code instructions for alexei-led/cloud-mcp-server, covering aws mcp server development guide, build & test commands, architecture, server (server.py) and sandbox (sandbox.py).

alexei-led/cloud-mcp-server · 1,114 tokens

deadline-cloud AGENTS.md

Instructions for aws-deadline/deadline-cloud, covering agents.md - aws deadline cloud client, project overview, repository structure, key commands and development.

aws-deadline/deadline-cloud · 1,687 tokens

defang CLAUDE.md

Instructions for DefangLabs/defang, a project described as: Defang CLI. Develop Once, Deploy Anywhere. Take your app from Docker Compose to a secure and scalable deployment on your favorite cloud in minutes.

DefangLabs/defang · 63 tokens

awsmux AGENTS.md

Instructions for 0hardik1/awsmux, covering agents.md, what awsmux is, build, test, verify, layout and the safety model — invariants you must not weaken.

0hardik1/awsmux · 2,647 tokens