Self-contained compound loop: read threadsskilllearnings.log, cluster the misses, propose concrete sub-skill rule edits, and apply them with the user's approval.

MITAuto-check passedWriting & Content

Install Optimize

skills CLI
$ npx skills add akseolabs-seo/AK-Threads-booster --skill optimize -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install akseolabs-seo/AK-Threads-booster optimize --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/akseolabs-seo/AK-Threads-booster.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/optimize .claude/skills/optimize && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
optimize
GitHub stars
275
Token cost
~1.8k tokens
SKILL.md length
813 words
Files
1
Skills in repo
12
Repo updated
First seen
Licence
MIT

At a glance

Self-contained compound loop: read threadsskilllearnings.log, cluster the misses, propose concrete sub-skill rule edits, and apply them with the user's approval.

  • Works in 6 steps: Load and Cluster → Draft Proposals → User Review → …
  • Words: optimize
  • SKILL.md covers Principles & Knowledge, User Data Paths, Execution Flow and Boundary Reminders
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Optimize is an agent skill from akseolabs-seo/AK-Threads-booster. Self-contained compound loop: read threadsskilllearnings.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', '自我優化', '閉環'.

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Writing & Content. The repository describes itself as: AK體 · 數據驅動的 Threads 寫文決策系統。用你的歷史貼文、演算法與社媒心理學,協助選題、起草、發文前診斷、表現預估與復盤。Data-driven Threads writing advisor — topic selection, drafting, diagnosis, prediction & review based on your… The licence is MIT.

When your agent uses it

  • Words: optimize

Example prompts

  • “optimize”
  • “compound”
  • “優化skill”
  • “/optimize”

Requirements

  • Pre-approved tools (allowed-tools): Read, Write, Edit, Grep, Glob

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Load and Cluster
  2. Draft Proposals
  3. User Review
  4. Apply Approved Edits
  5. Supersede Addressed Entries
  6. Report

What it can do on your machine

Read from SKILL.md and the folder at commit cc08954. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Grep
    • Glob

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are json).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Optimize loads about 1.8k tokens when it runs. Until then it costs about 70 tokens; SKILL.md has 813 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~70
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from akseolabs-seo/AK-Threads-booster at commit cc08954, republished under its MIT licence (© akseolabs-seo). 813 words, ~1,774 tokens.

Download SKILL.mdSave it as .claude/skills/optimize/SKILL.md (or your agent's skills folder).
name
optimize
description
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', '自我優化', '閉環'.
allowed-tools
Read, Write, Edit, Grep, Glob
version
2.0.0

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:

  1. User signal is sacred. Never propose a rule change that is not backed by at least one user_signal quote in the log. If a cluster has zero user signals, it cannot drive an edit.
  2. 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.
  3. Strip the log honestly. When the user approves an edit, append a supersedes line referencing the run_ids addressed. Do not rewrite or delete prior entries.
  4. 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 /review
  • skills/*/SKILL.md + skills/*/references/*.md — sub-skill rule surface
  • knowledge/_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
  1. Read every JSON line in threads_skill_learnings.log. Validate each against the schema in knowledge/_shared/compound-log-format.md — skip and warn on malformed lines; do not error out.

  2. Ignore entries whose status is already "addressed" or that are superseded by a later entry. Walk forward; keep only the final open entry for each run_id chain.

  3. Cluster by (sub_skill, category). Report cluster sizes:

    text
    ## 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
  4. 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 summary and user_signal fields.
  • Evidence: quote 1–3 user_signal strings verbatim, with run_ids.
  • Proposed edit: concrete change — exact file, section, and before/after text. If the edit belongs in knowledge/_shared/red-lines.md or 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 /analyze no 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.

Show full SKILL.md (327 more words)Show less
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:

  1. Follow templates/FAILSAFE.md for every write: backup <file>.bak-<ISO> → write temp → atomic rename → prune to 5.
  2. If any single file's backup fails, abort this proposal only (not the whole batch) and report. Other proposals continue.
  3. After a successful edit, bump the affected sub-skill's version frontmatter 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:

json
{
  "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:

text
## 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_signal quote. A /optimize run 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 /optimize unprompted inside /review. /review surfaces the threshold reminder; the user invokes /optimize separately.

© akseolabs-seo, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/optimize of akseolabs-seo/AK-Threads-booster.

Open the folder on GitHubat commit cc08954

Compare with similar skills

Optimize next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Optimize compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Optimize this skillakseolabs-seo/AK-Threads-booster275—~1.8kAutomated safety check: PassMIT
Socialcoreyhaines31/marketingskills54k4 repos~4.5kAutomated safety check: PassMIT
HumanizerAzure-Samples/interview-coach-agent-framework17237 repos~5.8kAutomated safety check: PassMIT
Avoid AI Writingconorbronsdon/avoid-ai-writing4.9k3 repos~8.1kAutomated safety check: PassMIT
JavaScript Concept Fact Checkerleonardomso/33-js-concepts67k1 repos~5kAutomated safety check: PassMIT
User-Facing Text Cleanupguillaumemeyer/watermarks-remover24k—~3.5kAutomated safety check: PassMIT

Similar skills

  • Social

    coreyhaines31/marketingskills

    When the user wants help creating, scheduling, or optimizing social media content for LinkedIn, Twitter/X, Instagram, TikTok, or Facebook, or wants to do social listening and engagement triage.

    54k GitHub starsUsed in 4 repos~4.5k tokens
    Writing & ContentAuto-check passed
  • Humanizer

    Azure-Samples/interview-coach-agent-framework

    Official

    Remove signs of AI-generated writing from text. An agent skill from Azure-Samples/interview-coach-agent-framework.

    172 GitHub starsUsed in 37 repos~5.8k tokens
    Writing & ContentAuto-check passed
  • Avoid AI Writing

    conorbronsdon/avoid-ai-writing

    Audit and rewrite content to remove AI writing patterns ("AI-isms").

    4.9k GitHub starsUsed in 3 repos~8.1k tokens
    Writing & ContentAuto-check passed
  • JavaScript Concept Fact Checker

    leonardomso/33-js-concepts

    Verifies the technical accuracy of JavaScript concept pages by checking code examples, MDN and ECMAScript claims and external links through a five-phase method.

    67k GitHub starsUsed in 1 repo~5k tokens
    Writing & ContentAuto-check passed
  • User-Facing Text Cleanup

    guillaumemeyer/watermarks-remover

    Audits prose for invisible Unicode characters and rewrites it while keeping facts, citations, code and required disclosures unchanged and the writer's voice intact.

    24k GitHub stars~3.5k tokensUpdated 3 days ago
    Writing & ContentAuto-check passed
  • Social Content

    freekmurze/dotfiles

    When the user wants help creating, scheduling, or optimizing social media content for LinkedIn, Twitter/X, Instagram, TikTok, Facebook, or other platforms.

    1k GitHub starsUsed in 23 repos~2.1k tokens
    Writing & ContentAuto-check passed

More from akseolabs-seo/AK-Threads-booster

All 12 skills in this repo
  • Voice

    akseolabs-seo/AK-Threads-booster

    Deep analysis of user's historical posts and comment replies to build a comprehensive Brand Voice profile.

    275 GitHub stars~2k tokensUpdated 3 mo ago
    Auto-check: notes
  • Panel

    akseolabs-seo/AK-Threads-booster

    Launch or prepare the optional local visual panel for AK-Threads-Booster.

    275 GitHub stars~873 tokensUpdated 3 mo ago
    Auto-check: notes
  • Topics

    akseolabs-seo/AK-Threads-booster

    Mine insights from comments and historical data to recommend the next worthwhile topics.

    275 GitHub stars~1.8k tokensUpdated 3 mo ago
    Auto-check: notes
  • Update

    akseolabs-seo/AK-Threads-booster

    Check AK-Threads-Booster for upstream GitHub updates, safely fast-forward the local skill repo, or install an opt-in weekly Codex automation that keeps the skill on the latest version.

    275 GitHub stars~1.1k tokensUpdated 3 mo ago
    Auto-check: notes
  • Draft

    akseolabs-seo/AK-Threads-booster

    Select a topic and generate a draft based on the user's Brand Voice.

    275 GitHub stars~2.6k tokensUpdated 3 mo ago
    Auto-check passed
  • Refresh

    akseolabs-seo/AK-Threads-booster

    Refresh threadsdailytracker.json. An agent skill from akseolabs-seo/AK-Threads-booster.

    275 GitHub stars~1.1k tokensUpdated 3 mo ago
    Auto-check: notes

Questions about Optimize

What does Optimize do?

Self-contained compound loop: read threadsskilllearnings.log, cluster the misses, propose concrete sub-skill rule edits, and apply them with the user's approval. Optimize is an agent skill from akseolabs-seo/AK-Threads-booster.log, cluster the misses, propose concrete sub-skill rule edits, and apply them with the user's approval.

When should I use Optimize?

Optimize fits situations like: words: optimize.

How do I install Optimize in Claude Code?

Run `npx skills add akseolabs-seo/AK-Threads-booster --skill optimize -a claude-code`. Or copy the skill folder (skills/optimize in akseolabs-seo/AK-Threads-booster) into .claude/skills/optimize in your project. Claude Code loads it when a task matches its description.

How do I install Optimize in Codex?

Run `npx skills add akseolabs-seo/AK-Threads-booster --skill optimize -a codex`. Or copy the skill folder (skills/optimize in akseolabs-seo/AK-Threads-booster) into .agents/skills/optimize in your project. Codex loads it when a task matches its description.

Can I use Optimize in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add akseolabs-seo/AK-Threads-booster --skill optimize -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/optimize, .gemini/skills/optimize, .github/skills/optimize and .opencode/skills/optimize in your project.

What does Optimize need to run?

SKILL.md names no scripts, command-line tools or credentials: Optimize is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Write, Edit, Grep, Glob.

Does Optimize access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Optimize safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Optimize use?

Optimize is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Optimize use?

About 1.8k tokens (SKILL.md is roughly 7.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Optimize?

Skills that share tags, products or a category with Optimize: Social (coreyhaines31/marketingskills, 54k stars), Humanizer (Azure-Samples/interview-coach-agent-framework, 172 stars), Avoid AI Writing (conorbronsdon/avoid-ai-writing, 4.9k stars) and JavaScript Concept Fact Checker (leonardomso/33-js-concepts, 67k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Optimize?

akseolabs-seo (a GitHub user) maintains it in akseolabs-seo/AK-Threads-booster, which has 275 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on July 3, 2026.

Source: akseolabs-seo/AK-Threads-booster on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.