Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Cowork Optimizer

ASecurity

Analyze and optimize an assistant task or project to make it run faster, use fewer tokens, reduce unnecessary steps, and improve overall structure. Use this skill whenever the user shares an assistant task or project and asks to optimize, improve, speed up, refactor, or reduce model usage. Also trigger when the user says things like "make this more efficient", "this task is slow", "can we trim this down", "review my task setup", or pastes an assistant task/project definition and asks for feed...

2 stars
0 votes
0 copies
0 views
Added 9/19/2026
ai-agentsgobashgitapi

Works with

apimcp

Security Analysis

A100/100

Scanned 9/19/2026

Install to Claude Code

$npx -y skills add KalastajaM/Cluide --skill cowork-optimizer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cowork Optimizer?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Cowork Optimizer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kalastajam-cowork-optimizer/badge)](https://www.skillsdirectory.com/skills/kalastajam-cowork-optimizer)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: cowork-optimizer
description: >
  Analyze and optimize an assistant task or project to make it run faster, use fewer tokens, reduce unnecessary steps, and improve overall structure. Use this skill whenever the user shares an assistant task or project and asks to optimize, improve, speed up, refactor, or reduce model usage. Also trigger when the user says things like "make this more efficient", "this task is slow", "can we trim this down", "review my task setup", or pastes an assistant task/project definition and asks for feedback. Do NOT use for
  building something new (use `ai-assistant-setup`), for auditing a whole project against
  the guide set (`tasks/analyze-project.md`), for choosing a model tier (`dispatch`), or
  for reviewing a document, plan or decision (`review-protocol`). The object here is an
  existing task or project that already runs and costs too much.
---
 
# Assistant Task Optimizer

Analyze an assistant task or project definition, identify optimization opportunities, present a prioritized plan, get user sign-off, then implement agreed changes.

> This skill applies the patterns from [references/06_TASK_EFFICIENCY_GUIDE.md](references/06_TASK_EFFICIENCY_GUIDE.md) and [references/07_TASK_LEARNING_GUIDE.md](references/07_TASK_LEARNING_GUIDE.md). Read those guides if you want to understand the reasoning behind any recommendation.

## Rules

> **Clarifying questions:** For any step with a fixed set of options, use the current surface’s question tool when available, otherwise ask a concise question in chat.

- Always use this skill before making any edits to an assistant task or project — even if the user just says "take a look at my task."
- Do not silently apply changes beyond what was agreed in Phase 3.
- Flag tradeoffs explicitly — do not silently optimize toward one axis (speed vs. thoroughness).
 
---
 
## Platform selection

The stable skill name remains `cowork-optimizer`. Identify Claude/Cowork, Codex, or ChatGPT and the actual task runner. Optimise the shared procedure without changing its scheduler owner, permissions, or outcomes. Use reported metrics where exposed; mark estimates as estimates and unavailable usage as unknown. For OpenAI/local folders, inspect only the supplied project, not `/sessions`; for source-only projects, work from supplied task definitions and return proposed edits if write access is absent.

## Phase 1: Ingest

**If the content is already in the conversation, skip to Phase 2 immediately.**

Otherwise, attempt to locate the task autonomously before asking the user:

```bash
find /sessions -maxdepth 6 -name "TASK.md" 2>/dev/null
```

(`/sessions` is the Cowork container path — outside Cowork, skip this probe.)

If one or more TASK.md files are found, present the list and use the current surface’s question tool (or chat if unavailable) (one per found task + "Paste content here") to ask which to audit. If none are found, use the current surface’s question tool (or chat if unavailable) to ask how the user wants to provide it:
> Buttons: `Paste task instructions` / `Provide file path` / `Provide project folder path`

If files are referenced inside the instructions (e.g., skill files, reference docs, templates), read those too — optimization depends on understanding the full dependency chain.
 
**Read any referenced skill files.** If the task invokes one or more skills (via `/skill-name` or a `skills:` directive), read those SKILL.md files before auditing. A task may be doing manually what a skill already handles better, or may be loading a skill for a narrow use case that doesn't justify the overhead.
 
Also check whether the task folder contains any of these companion files — they're highly informative for the audit:
- `IMPROVEMENTS.md` — tracks applied fixes, pending proposals, and known issues
- `RUN_LOG.md` — reveals which steps fail repeatedly or take long
- `KNOWLEDGE_SUMMARY.md` — indicates whether state is being carried efficiently between runs
 
**If the content is already in the conversation, skip asking and proceed directly to Phase 2.**
 
---
 
## Phase 2: Audit

Analyze the task/project across eight dimensions. For each finding, note: what it is, why it's a problem, and the effort to fix (Low / Medium / High).

**Read `references/audit-dimensions.md` for the full checklist.** The dimensions are ranked by typical ROI:

| Dimension | Focus | Typical ROI |
|---|---|---|
| 2.1 Token & Context Efficiency | Instruction size, always-loaded files, lazy loading | Highest |
| 2.2 External Data Fetching | Two-pass triage, digest collapsing, recency skips | Highest |
| 2.3 Run Flow Efficiency | Fast-path skips, deduplication, conditional regeneration | High |
| 2.4 Edit Efficiency | Targeted edits vs. full read/write | Medium |
| 2.5 Output & Script Offloading | Fixed-format output → scripts | Medium |
| 2.7 Instruction Clarity | Ambiguity, missing criteria, implicit assumptions | Medium |
| 2.8 Structural / Architectural | Task splitting, script candidates, hardcoded values | Low–Medium |
| 2.9 Self-Improvement Infrastructure | IMPROVEMENTS.md, RUN_LOG.md scaffolding | Low (optional) |

Stop when you are confident there are no further significant findings. Dimensions 2.7–2.9 can be skipped if the task is already efficient.

---

## Phase 3: Present the Plan

**If no findings exceed ~500 tokens per run in estimated impact and none are qualitatively significant (clarity, correctness, structural), say so explicitly and stop:** "This task is already well-optimized. No changes recommended." Do not generate a thin list of minor findings just to appear thorough.

Otherwise, produce a structured audit report in the conversation. Format:

**Summary** — one sentence characterizing the main issues and rough token cost estimate if calculable.

**What already works** — one or two lines naming the parts of the task that are efficient or well
structured and should survive the edit. Without this the report can only be read as a list of
deficiencies, including for a task that is largely fine.

For each finding that is a judgement rather than a measurement, carry a confidence and name what evidence
would make you drop it. A finding with no answer to that is an opinion — leave it out.

Then a prioritized list of findings, highest ROI first. For each:
- **Finding title** (e.g., "Unconditional large file load in step 3")
- What the problem is
- Proposed fix
- Effort: Low / Medium / High
- Impact: token savings estimate, speed improvement, or qualitative benefit
 
**Token estimation guide:**
| Component | Rough cost |
|-----------|------------|
| Task instruction file | ~15 tokens/line |
| Each "read every run" file | ~15 tokens/line |
| Each external API fetch (full) | 200–2,000 tokens |
| Each file write (generated output) | ~15 tokens/line |
| Script execution | ~50 tokens |
 
**Flag tradeoffs explicitly.** If a proposed change trades thoroughness for speed, say so. Let the user decide — don't silently optimize toward one axis.
 
**Scope note:** Self-improvement infrastructure (IMPROVEMENTS.md, RUN_LOG.md, KNOWLEDGE_SUMMARY.md) is valuable but represents a meaningful addition, not just a cleanup. Present it as an optional enhancement, not a required fix, unless the task already has partial scaffolding.
 
End with a question using the available tool or chat: `All of them` / `Let me pick` / `None — findings only`
(If "Let me pick": follow up with numbered buttons for each finding.)
 
---
 
## Phase 4: Implement
 
Once the user confirms which changes to make:
 
1. **Back up before editing.** Preferred: `git add` and commit the current state so there's a clean restore point. If git is not available, copy the file with a `.bak` suffix. Note the backup location in your response.
2. Apply changes one finding at a time.
3. After each non-trivial change, briefly note what you changed and why (one line).
4. Present the final revised task/project.
5. If the task has test prompts or a known test workflow, suggest running it to verify behavior is unchanged.

**To roll back:** restore from git (`git checkout -- <file>`) or copy the `.bak` file back to its original path and delete the modified version.
 
**Apply vs. propose discipline:**
- Apply directly (no further confirmation): clearly correct, low-risk, narrow-scope changes — typos, wrong dates, confirmed facts, adding a named sender to a noise list.
- Flag and ask before applying: anything that affects behavior in a non-obvious way, restructures how information is tracked, modifies core logic, touches 3+ files, or where you're not certain the user would agree.
 
**Do not silently apply changes beyond what was agreed.** If you spot something while implementing that wasn't in the plan, flag it and ask.
 
---
 
## Phase 5: Wrap-up
 
After implementation:
- Summarize what changed vs. what was left alone (and why, if relevant).
- Note the new estimated TASK.md line count and token cost per run if measurably improved.
- Offer to package/export if the user needs to reinstall the task or share it.
- If the frontmatter `description` is vague or seems to trigger unreliably, offer to rewrite it: a good description names concrete user phrases, specific file types, and clear exclusions. Rewriting it is low-effort and can significantly improve how reliably Claude picks up the skill.

---

## Edge Cases

- If the task file is empty or contains only a title: say "This task has no content to audit. Would you like me to help you write it from scratch instead?" and offer to run `tasks/setup-scheduled-task.md`.
- If the task is under 50 lines and already follows Guide 06 patterns: say "This task is already well-optimized. No changes recommended." Do not invent marginal findings.
- If the user provides a Cowork project folder (not a single TASK.md): read all task files in the folder and audit each independently, presenting findings grouped by file.
- If IMPROVEMENTS.md contains stale proposals (>10 pending, none applied): flag this as a finding — the improvement system itself needs maintenance.
- If the task uses MCP tools that are not configured in the current environment: note this in findings but do not treat it as an optimization issue — it's a setup problem, not an efficiency problem.

Attribution

KalastajaMKalastajaM
View sourceMore from KalastajaM →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.

1023331 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

686011 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3331 votes

catchup

Recovers prior coding-agent session context by running `catchup <agent> --since-compact`, which extracts a clean summary of a previous Codex, Claude Code, Antigravity, OpenCode, or Pi Agent session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", or asks to recover/summarize a previous session before continuing. Do NOT use for the current conversation, git history, or any non-agent log.

611 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →