optimize
Skill274 starsChanged 7 months agoMITView on GitHub
Self-contained compound loop: read threads_skill_learnings.log, cluster the misses, propose concrete sub-skill rule edits, and apply them with the user's approval. The fourth step after Plan / Work / Review. Trigger words: 'optimize', 'compound', '優化skill', '自我優化', '閉環'.
45 other projects use a version of this.
Adopted by
Most recently taken up by
- flavien-ia/hypervibe-harnesstheir own version, first seen Oct 4, 2026
- dracocephalum/dc-agenticstheir own version, first seen Oct 4, 2026
- daintreehq/daintreetheir own version, first seen Oct 1, 2026
- OpenPerfAgent/who-ate-my-flopstheir own version, first seen Sep 30, 2026
- tradeblocks-org/tradeblocks-skillstheir own version, first seen Sep 28, 2026
- theexperiencecompany/gaiatheir own version, first seen Sep 17, 2026
Used with
Projects with it also use arrange, overdrive and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
nikafastovets-langSkillarrange
Improve layout, spacing, and visual rhythm. Fixes monotonous grids, inconsistent spacing, and weak visual hierarchy to create intentional compositions.
Also in 6 projects that use this
nikafastovets-langSkilloverdrive
Push interfaces past conventional limits with technically ambitious implementations. Whether that's a shader, a 60fps virtual table, spring physics on a dialog, or scroll-driven reveals — make users ask "how did they do that?
Also in 10 projects that use this
mtctSkillquieter
Tone down overly bold or visually aggressive designs. Reduces intensity while maintaining design quality and impact.
Also in 14 projects that use this
mtctSkillteach-impeccable
One-time setup that gathers design context for your project and saves it to your AI config file. Run once to establish persistent design guidelines.
Also in 10 projects that use this
zwy123zwySkillnormalize
将用户随意输入的提示词规范化为结构清晰、便于大模型执行的标准化提示词。适用于需要整理、统一提示词格式时调用。
Also in 10 projects that use this
mickeylorenziniSkillharden
Audits any substantial deliverable — documents, grant sections, strategies, protocols, skills, configs, roadmaps, plans — against domain-specific quality criteria before delivery. Searches the web for best practices, runs dual-pass thematic and structural audit with severity classification, fixes all issues, and iterates until convergence. Activates when producing deliverables exceeding 4 paragraphs or 20 lines, or when the user says "harden", "audit", "stress test", or "review before delivering", or when re-auditing a modified deliverable for regressions. Does not activate for conversational responses, brainstorming, web search summaries, or rough drafts.
Also in 14 projects that use this
- +4 more from mtct
- +1 more from nikafastovets-lang
Other versions45 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 45
- kovrichard/catalyst★ 469same name
- 10xChengTu/Mux0★ 346same name
- theexperiencecompany/gaia★ 306same name
- AkaraChen/aghub★ 271same name
- marketcalls/vectorbt-backtesting-skills★ 207same name
- atelier-fashion/adlc-toolkit★ 171same name
- rwliebs/Dossier★ 89same name
- daintreehq/daintree★ 75same name
- StyleSwift/StyleSwift★ 62same name
- FavioVazquez/learnship★ 61same name
35 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 0 are common, 6 are distinctive, and 10 are very specific to this project.
0
Common
Most of the 44 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
User signal is sacred: Never propose a rule change that is not backed by at least one user_signal quote in the log.
- Distinctive: line 23
Propose, do not auto-patch: Every edit — even trivial wording — waits for an explicit "yes" from the user on that specific proposal.
- Very specific: line 24
Strip the log honestly: When the user approves an edit, append a supersedes line referencing the run_ids addressed.
- Very specific: line 25
Stay inside the skill: Only edit files under this skill's tree: skills/*/SKILL.md, skills/*/references/*.md, knowledge//*.md, …
- Very specific: line 37
If threads_skill_learnings.log is missing or empty, tell the user there is nothing to optimize yet and stop cleanly.
- Very specific: line 45
Read every JSON line in threads_skill_learnings.log.
- Distinctive: line 60
If no cluster has ≥ 2 entries, say so.
- Distinctive: line 78
Ask: "Which of these should I apply?
- Very specific: line 88
Follow templates/FAILSAFE.md for every write: backup <file>.bak-<ISO> → write temp → atomic rename → prune to 5.
- Distinctive: line 89
If any single file's backup fails, abort this proposal only (not the whole batch) and report.
- Very specific: line 90
After a successful edit, bump the affected sub-skill's version frontmatter by a patch-level increment (e.g.
- Very specific: line 134
No proposal without a verbatim user_signal quote.
- Distinctive: line 135
Do not touch files outside the skill tree.
- Very specific: line 136
Do not auto-bump the main SKILL.md version for sub-skill-only edits.
- Distinctive: line 137
If the log is empty or every entry is already superseded, say so and stop.
- Very specific: line 138
Do not run /optimize unprompted inside /review.
“Common” is measured: kept by at least 6 in 10 of the 44 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AK-Threads-Booster Skill-Level Compound Module
You are the compound-loop worker for AK-Threads-Booster. /review captures skill-level misses (the sub-skill gave bad advice, the user proved it wrong) into threads_skill_learnings.log. This skill turns that log into concrete rule changes inside the sub-skills themselves.
Ships with this skill. No external meta-skill required. Every proposed edit requires the user's approval before it lands.
Principles & Knowledge
Load knowledge/_shared/principles.md and knowledge/_shared/compound-log-format.md (the log schema). No skill-specific knowledge files beyond those.
Core rules:
- User signal is sacred. Never propose a rule change that is not backed by at least one
user_signalquote in the log. If a cluster has zero user signals, it cannot drive an edit. - Propose, do not auto-patch. Every edit — even trivial wording — waits for an explicit "yes" from the user on that specific proposal. Batch approvals ("do them all") are fine; silent writes are not.
- Strip the log honestly. When the user approves an edit, append a
supersedesline referencing therun_ids addressed. Do not rewrite or delete prior entries. - Stay inside the skill. Only edit files under this skill's tree:
skills/*/SKILL.md,skills/*/references/*.md,knowledge/**/*.md,templates/*.md. Never touch the user's tracker, brand voice, or logs.
User Data Paths
Glob in the working directory and the skill root:
threads_skill_learnings.log— the compound log written by/reviewskills/*/SKILL.md+skills/*/references/*.md— sub-skill rule surfaceknowledge/_shared/*.md— shared rules (red-lines, discovery, principles, config, compound log format)
If threads_skill_learnings.log is missing or empty, tell the user there is nothing to optimize yet and stop cleanly.
Execution Flow
Step 1: Load and Cluster
- Read every JSON line in
threads_skill_learnings.log. Validate each against the schema inknowledge/_shared/compound-log-format.md— skip and warn on malformed lines; do not error out. - Ignore entries whose
statusis already"addressed"or that are superseded by a later entry. Walk forward; keep only the final open entry for eachrun_idchain. Cluster by
(sub_skill, category). Report cluster sizes:## Compound Log Summary - Total open entries: N - Superseded / addressed: M - Clusters (sub_skill / category / count): - analyze / false_positive / 3 - draft / freshness_miss / 2 - voice / voice_drift / 2 - review / rule_gap / 1- If no cluster has ≥ 2 entries, say so. A single one-off miss rarely justifies a rule change — surface it to the user but mark it low priority.
Step 2: Draft Proposals
For each cluster worth acting on (≥ 2 entries, or the user explicitly picks a single entry), draft a proposal. Each proposal must include:
- Cluster:
<sub_skill> / <category>with count. - What the misses have in common: one sentence synthesizing the
summaryanduser_signalfields. - Evidence: quote 1–3
user_signalstrings verbatim, with run_ids. - Proposed edit: concrete change — exact file, section, and before/after text. If the edit belongs in
knowledge/_shared/red-lines.mdor another shared file, say so. - Reason: why this edit addresses the pattern.
- Strip when: a condition under which this rule should later be retired (e.g. "when
/analyzeno longer mis-flags pronoun-only hooks for 20 consecutive runs"). Every new rule needs an exit criterion — otherwise rules accumulate forever. - Priority: High (repeating red-line miss), Medium (upside gap), Low (polish).
Present all proposals in a single list, then wait for the user. Do not apply anything yet.
Step 3: User Review
Ask: "Which of these should I apply? Answer by proposal number, 'all', or 'skip'. You can also edit the proposal text before I apply it."
Honor the answer exactly. If the user edits a proposal, treat the edited version as authoritative.
For proposals the user rejects, record that too — append a dated note to skills/optimize/references/rejected-proposals.md (create the file if missing) with the cluster, the proposal, and the user's reason if given. This keeps the skill from re-proposing the same change next run.
Step 4: Apply Approved Edits
For each approved proposal:
- Follow
templates/FAILSAFE.mdfor every write: backup<file>.bak-<ISO>→ write temp → atomic rename → prune to 5. - If any single file's backup fails, abort this proposal only (not the whole batch) and report. Other proposals continue.
- After a successful edit, bump the affected sub-skill's
versionfrontmatter by a patch-level increment (e.g.1.1.0 → 1.1.1). Shared-file edits bump the main SKILL.md version.
Step 5: Supersede Addressed Entries
For every entry addressed by an approved edit, append one new JSON line to threads_skill_learnings.log:
{
"ts": "<ISO>",
"run_id": "<new uuid4>",
"skill": "ak-threads-booster",
"sub_skill": "optimize",
"category": "other",
"summary": "addressed by /optimize",
"evidence_post_id": null,
"evidence_quote": null,
"user_signal": "<verbatim original user_signal that drove the edit>",
"suggested_fix": "<file:section that was edited>",
"status": "logged",
"supersedes": "<original run_id>"
}Append-only per templates/FAILSAFE.md. Never rewrite the original entry. The supersedes field is how future /optimize runs know to skip it.
Step 6: Report
End with:
## Optimize Summary
- Proposals drafted: N
- Applied: A (listing file + section + version bump)
- Rejected by user: R (logged to rejected-proposals.md)
- Entries superseded: E
- Open clusters still worth watching: [list with cluster + count]Also tell the user that CHANGELOG.md should get a manual entry if any rule change is behavior-affecting — /optimize does not write CHANGELOG.md itself. That decision needs human judgment about what is worth announcing.
Boundary Reminders
- No proposal without a verbatim
user_signalquote. A/optimizerun that guesses what went wrong is a regression. - Do not touch files outside the skill tree. User content (tracker, brand_voice.md, working-dir drafts) is off limits.
- Do not auto-bump the main SKILL.md version for sub-skill-only edits. Only bump the main when a shared file changes.
- If the log is empty or every entry is already superseded, say so and stop. Success looks like "nothing to do".
- Do not run
/optimizeunprompted inside/review./reviewsurfaces the threshold reminder; the user invokes/optimizeseparately.
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.

