master-optimize
Skill15 starsChanged 4 months agoMITView on GitHub
Audit an authorized local repo or feature for wasted memory, CPU, rendering, network, disk, battery, and unnecessary complexity. Use for Master-Optimize, performance review, resource audits, leak hunts, rendering bloat, or lean-code opportunities. Produces an evidence-backed analysis report with measurement receipts and risk-triggered independent review; it never changes project code.
In this repository15 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
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 4 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Read the optimize log first.
- Distinctive: line 16
Use full or focus mode. Periodic full audits may narrow unchanged clean areas using the log.
- Distinctive: line 19
Verify reviewer additions against source before accepting them.
- Very specific: line 20
Write reports under ~/.auto-master/artifacts/<project-slug>/optimize/.
- Very specific: line 26
Map: - use auto-research or a lean inline map for architecture, hot paths, resource lifecycles, and existing measurement tools.
- Distinctive: line 28
Measure: - run only cheap relevant repo-native measurements and record receipts.
- Very specific: line 39
Read references/workflow.md before auditing.
- Very specific: line 40
Read references/finding-categories.md before scanning.
- Very specific: line 41
Read references/report-format.md before drafting.
- Very specific: line 42
Read references/peer-review.md when deciding or running independent review.
- Very specific: line 43
Read references/optimize-log.md before log access.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Produce a source-grounded resource-efficiency report. Do not implement fixes in this run.
Core Rules
- Cite
file:line, the waste mechanism, path temperature, user impact, confidence, and a leaner alternative for every finding. - Label evidence as measured, read in source, or hypothesis. Never present estimates as measurements.
- Capture execution receipts for benchmarks or measurement commands and compare with the last trustworthy baseline/report when available.
- Read the optimize log first; do not re-report fixed/dismissed findings without new evidence.
- Use full or focus mode. Periodic full audits may narrow unchanged clean areas using the log.
- Independently verify every cited finding yourself. Trigger one fresh-context reviewer only when the report contains a High finding, a critical security/auth/data/execution/release boundary, a broad architectural recommendation, or a high-impact claim dependent on nontrivial measurement.
- Ordinary Medium/Low focus reports may finish self-verified. Record why independent review was used or skipped; never imply review occurred.
- Verify reviewer additions against source before accepting them. Reviewer advice is not authority.
- Write reports under
~/.auto-master/artifacts/<project-slug>/optimize/. - Preserve unrelated work, do not expose secrets, and never automatically delete or refactor anything.
Pipeline
- Startup - confirm repo/branch, choose full/focus, read the log, and identify the prior baseline.
- Map - use
auto-researchor a lean inline map for architecture, hot paths, resource lifecycles, and existing measurement tools. - Scan - apply
references/finding-categories.md; read actual code and record checked-clean areas. - Measure - run only cheap relevant repo-native measurements and record receipts. After the same measurement failure twice, diagnose rather than retry blindly.
- Draft - rank findings by user impact and confidence using
references/report-format.md. - Review decision - self-verify citations; invoke the selective review in
references/peer-review.mdonly at a defined risk trigger. - Correct - confirm reviewer corrections/additions in source; record disputes honestly.
- Present - save the final or explicitly unreviewed draft report and summarize only findings already in scope.
- Log - append findings, dismissed claims, checked-clean areas, receipts, baseline delta, and review mode.
Hand approved behavior-preserving fixes to master-refactor; hand behavior changes to the Auto pipeline as a separate authorized run.
References
- Read
references/workflow.mdbefore auditing. - Read
references/finding-categories.mdbefore scanning. - Read
references/report-format.mdbefore drafting. - Read
references/peer-review.mdwhen deciding or running independent review. - Read
references/optimize-log.mdbefore log access.
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.

