agentleFS
ImNotTheWolfOfficialImNotTheWolfOfficial/auto-master-skills/skills/master-optimize/SKILL.md

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.

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
  1. Distinctive:

    Read the optimize log first.

    line 15
  2. Distinctive:

    Use full or focus mode. Periodic full audits may narrow unchanged clean areas using the log.

    line 16
  3. Distinctive:

    Verify reviewer additions against source before accepting them.

    line 19
  4. Very specific:

    Write reports under ~/.auto-master/artifacts/<project-slug>/optimize/.

    line 20
  5. Very specific:

    Map: - use auto-research or a lean inline map for architecture, hot paths, resource lifecycles, and existing measurement tools.

    line 26
  6. Distinctive:

    Measure: - run only cheap relevant repo-native measurements and record receipts.

    line 28
  7. Very specific:

    Read references/workflow.md before auditing.

    line 39
  8. Very specific:

    Read references/finding-categories.md before scanning.

    line 40
  9. Very specific:

    Read references/report-format.md before drafting.

    line 41
  10. Very specific:

    Read references/peer-review.md when deciding or running independent review.

    line 42
  11. Very specific:

    Read references/optimize-log.md before log access.

    line 43

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Startup - confirm repo/branch, choose full/focus, read the log, and identify the prior baseline.
  2. Map - use auto-research or a lean inline map for architecture, hot paths, resource lifecycles, and existing measurement tools.
  3. Scan - apply references/finding-categories.md; read actual code and record checked-clean areas.
  4. Measure - run only cheap relevant repo-native measurements and record receipts. After the same measurement failure twice, diagnose rather than retry blindly.
  5. Draft - rank findings by user impact and confidence using references/report-format.md.
  6. Review decision - self-verify citations; invoke the selective review in references/peer-review.md only at a defined risk trigger.
  7. Correct - confirm reviewer corrections/additions in source; record disputes honestly.
  8. Present - save the final or explicitly unreviewed draft report and summarize only findings already in scope.
  9. 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.md before auditing.
  • Read references/finding-categories.md before scanning.
  • Read references/report-format.md before drafting.
  • Read references/peer-review.md when deciding or running independent review.
  • Read references/optimize-log.md before log access.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.