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 skills add tozhax/plumbwork --skill sweetspotgit clone --depth 1 https://github.com/tozhax/plumbworkWrote 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/skills/tozhax/plumbwork/sweetspot)<a href="https://agentmods.dev/skills/tozhax/plumbwork/sweetspot"><img src="https://agentmods.dev/badge/skills/tozhax/plumbwork/sweetspot/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/skills/tozhax/plumbwork/sweetspot"><img src="https://agentmods.dev/badge/skills/tozhax/plumbwork/sweetspot.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.00127 | $0.06646 |
| Opus 5.5 | $0.00051 | $0.02658 |
| Sonnet 5.5 | $0.00025 | $0.01329 |
| Haiku 4.5 | $0.00013 | $0.00665 |
Grade B, and why
sweetspot scanned grade B with 1 finding 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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
1. **Working Baseline Prerequisite:** Apply `sweetspot` only to systems whose functional behavior is currently working and stable. If tests are failing or the system crashes, route to `~/.gemini/config/skills/diagnosing- How it starts
The opening of the file, as written. The whole thing — 161 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Sweetspot — Controlled Performance, Memory, Footprint & Network Optimization Gate
Optimizing an already working, stable system requires stricter discipline than fixing a broken one. Unconstrained optimization prompts across execution speed, Random-Access Memory (RAM), disk footprint, or network Input/Output (I/O) often trigger three failure modes in language models: inventing unmeasured micro-optimizations that degrade readability, silently breaking edge-case behavior or data fidelity, or mutating a project's architecture and purpose without asking. sweetspot enforces controlled, behavior-preserving optimization across three universal local resource axes—Time (Speed/Latency), Memory (RAM Footprint), and Disk (Binary, Bundle & Storage Footprint)—plus a Conditional 4th Axis for networked systems—Network (I/O Download/Upload Bandwidth & Round-Trip Time (RTT) Latency), backed by multi-file hot-path discovery, repeatable measurements, explicit Cross-Axis Trade-off governance, and an honest stop condition when a system reaches its Pareto Frontier (the holistic sweet spot where all active axes meet without structural compromise).
1. Core Invariants
- Working Baseline Prerequisite: Apply
sweetspotonly to systems whose functional behavior is currently working and stable. If tests are failing or the system crashes, route to~/.gemini/config/skills/diagnosing-bugs/SKILL.mdfirst. - Behavior & Data Preservation (
GEMINI.mdRule 9): A controlled optimization leaves every observable contract identical: return values, output formatting, error boundaries, determinism, side effects, wire protocol compatibility, and stored data fidelity. Never delete user data, audit logs, or required assets to claim a memory, disk, or network reduction. - Measure Before and After (
GEMINI.mdRule 8): Intuition about where time, memory, disk space, or network bandwidth is spent holds zero evidentiary weight. Every optimization claim requires a repeatable before-and-after measurement on the target machine (using deterministic loopback harnesses or exact payload/request counters for network boundaries, never noisy external internet jitter). - Holistic Multi-Axis Default, Explicit Axis Flags & Trade-Off Discipline:
- Holistic Intersection Mode (
--all/--holistic, or No Flag — Default): When the user requests general optimization without restricting to a single axis (such as "optimize this game", "bu oyunu/yazılımı optimize et",/sweetspot, or/sweetspot --all), target the Holistic Multi-Axis Intersection simultaneously:- 3-Axis Local Intersection (
Time + Memory + Disk): Applied automatically when Step 1 detects a purely local/offline codebase with no network boundaries. - 4-Axis Networked Intersection (
Time + Memory + Disk + Network): Activated automatically inside Holistic Mode whenever Step 1 detects network boundaries (Hypertext Transfer Protocol (HTTP), WebSocket, Remote Procedure Call (gRPC), socket clients/servers, remote database/service queries, multiplayer netcode, or web bundle/asset delivery). - First eliminate joint slack—dead work, per-frame allocation churn, duplicate in-memory buffers, unstreamed full-file reads, redundant
N+1network round trips, uncompressed wire payloads, and unused dependencies or assets—that improves all active axes together (or improves at least one axis by>= 1%with0%regression beyond< 1%noise on all other active axes) until the software reaches its Pareto Frontier.
- 3-Axis Local Intersection (
- Single-Axis Mode (
--time,--memory,--disk,--netor Natural Language) & Cross-Axis Trade-Off Gate: When the user passes an explicit single-axis flag or names a specific primary axis in natural language, focus on that primary axis and treat all remaining active axes as non-regressing guardrails (< 1%noise floor). Once the Pareto Frontier is reached in either mode, any further gain that requires trading away another resource axis beyond< 1%noise (such as caching in memory or disk to cut network round trips, spending extra processor time on high-ratio compression to shrink upload/download bandwidth, or adding cold-start decompression latency to shrink disk size) is classified as Zone 2 and requires explicit user approval before editing code.
- Holistic Intersection Mode (
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 · 161 lines · 127 tokens per session scan B 90ffdb42ae55
sweetspot is a skill published in the GitHub repository tozhax/plumbwork (33 stars, last pushed 2d ago), licensed MIT. It adds 127 tokens to every session and 6,646 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-02.
sweetspot compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sweetspottozhax/plumbwork | Skill | 33 | 2d ago | MIT | B | 127 | Claude Code, Codex |
| systematic-debuggingopen-metadata/OpenMetadata | Skill | 16k | yesterday | Apache-2.0 | A | 37 | Claude Code |
| log-error-digestzebbern/claude-code-guide | Skill | 4.7k | today | MIT | A | 71 | Claude Code, Codex |
| observability-audit-sessionsIBM/mcp-context-forge | Skill | 4.9k | yesterday | Apache-2.0 | A | 64 | Claude Code, Codex |
| cwv-optimizeradobe/skills | Skill | 343 | yesterday | Apache-2.0 | A | 112 | Claude Code |
| performance-verificationvalkor-ai/loom | Skill | 1.6k | 2d ago | Apache-2.0 | A | 45 | Claude Code, Codex |
| loop-engineeringhuytieu/COG-second-brain | Skill | 1.6k | yesterday | MIT | A | 63 | Claude Code |