master-optimize
Skill14 starsChanged 5 days agoMITView on GitHub
Measure resource waste in CPU, memory, rendering, network, disk or battery. Use for Master-Optimize, a performance review or a leak hunt. For structural cleanup use master-refactor.
In this repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- auto-copySkill
- auto-docSkill
- auto-manageSkill
- auto-pilotSkill
- auto-planSkill
- auto-qaSkill
- auto-reflectSkill
- auto-researchSkill
- master-docsSkill
- master-qaSkill
- master-refactorSkill
- master-release-reviewSkill
- master-sanitizeSkill
- wow-loopSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Every finding cites file:line, the waste mechanism, path temperature, user impact, confidence, and a leaner alternative.
- Distinctive: line 15
Do not re-report fixed or dismissed findings from the log without new evidence.
- Distinctive: line 16
Verify every cited finding yourself.
- Very specific: line 17
Write reports under ~/.auto-master/artifacts/<project-slug>/optimize/.
- Very specific: line 31
Draft: - read references/report-format.md and write the report, ranked by user impact and confidence.
- Distinctive: line 33
Correct: - verify every reviewer correction and addition against source.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Master-Optimize
Audit resource efficiency in an authorized local project. Report findings only.
Core Rules
- Every finding cites
file:line, the waste mechanism, path temperature, user impact, confidence, and a leaner alternative. - Label evidence measured, read in source, or hypothesis. Never present an estimate as a measurement.
- Confirm each pattern match against source before reporting it.
- Do not re-report fixed or dismissed findings from the log without new evidence.
- Verify every cited finding yourself. Independent review is triggered by risk, not by default.
- Write reports under
~/.auto-master/artifacts/<project-slug>/optimize/. If home is read-only, keep the suffix privately under<os-temp>/.auto-master/artifacts/outside every repo and tell the user the path. - Preserve unrelated work, do not expose secrets, and never delete or refactor anything.
Modes
- full: scan the repo. On a periodic run, use the log to skim unchanged areas that were checked clean.
- focus: scan the named or current feature plus enough surrounding context to catch cross-boundary waste.
Pipeline
- Startup - confirm the repo root, branch, dirty state, slug, and mode. Read project instructions. Read the summary table of
optimize-log.mdin the report folder and the latest report; open older entries only for an area you are about to scan. Identify the last trustworthy measurement baseline. - Map - use
auto-researchfor a nontrivial scope, or a lean inline map. Reuse Master-Docs output when it exists: read its internal index and graph docs; do not open the manifest JSON. Identify long-lived processes, hot and cold paths, resource lifecycles, render/request/event loops, and existing measurement tools. - Scan - read
references/finding-categories.mdand apply the categories that fit the stack. Spend depth where it pays: hot paths and long-lived processes first; skim cold code. Locate candidates by search (file names and counts), then read the candidate code. For each suspected issue establish the resource, mechanism, path temperature, why the work is unnecessary, the leaner alternative, and whether that alternative preserves behavior. Record checked-clean areas and skipped categories with reasons. - Measure - run only cheap, relevant, repo-native measurements (benchmarks, build stats, profilers). Do not build new infrastructure. Record a receipt per measurement: exact command, exit or result, one line of evidence or an artifact path, time from the shell, and environment. Compare with the prior baseline. After the same measurement failure twice, diagnose it or mark it unavailable; do not retry blindly.
- Draft - read
references/report-format.mdand write the report, ranked by user impact and confidence. Reopen and verify every citation and receipt. - Review decision - request one fresh-context reviewer per
references/peer-review.mdonly when the draft contains a High finding, a security/auth/privacy/data/execution/release boundary, a broad architectural recommendation, or a high-impact claim that depends on nontrivial measurement. Otherwise finalize as self-verified and record why review was skipped. Never imply a review that did not occur. - Correct - verify every reviewer correction and addition against source. Record grounded corrections, refutations, rejected suggestions, and unresolved disputes.
- Present and log - save the report, summarize only in-scope findings, and append one log entry per
references/report-format.md. Do not start implementation.
Hand approved behavior-preserving fixes to master-refactor. Hand behavior changes to the Auto pipeline as a separately authorized run.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

