Agent skill

Skill Optimizer

by sickn33 in sickn33/agentic-awesome-skills

Diagnose and optimize Agent Skills (SKILL.md) with real session data and research-backed static analysis.

MITAuto-check passedAgent Workflows

Install Skill Optimizer

skills CLI
$ npx skills add sickn33/agentic-awesome-skills --skill skill-optimizer -a claude-code

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

GitHub CLI
$ gh skill install sickn33/agentic-awesome-skills skill-optimizer --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/sickn33/agentic-awesome-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/skill-optimizer .claude/skills/skill-optimizer && 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
skill-optimizer
GitHub stars
47k
Used in
1 other repo
Token cost
~3k tokens
SKILL.md length
1,418 words
Files
1
Skills in repo
1,394
Repo updated
First seen
Licence
MIT

At a glance

Diagnose and optimize Agent Skills (SKILL.md) with real session data and research-backed static analysis.

  • Works in 4 steps: Identify Target Skills → Collect Session Data → Run 8 Analysis Dimensions → …
  • Tasks that involve Skill management
  • SKILL.md covers When to Use This Skill, Rules, Overview and Usage, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Skill Optimizer is an agent skill from sickn33/agentic-awesome-skills. Diagnose and optimize Agent Skills (SKILL.md) with real session data and research-backed static analysis. Works with Claude Code, Codex, and any Agent Skills-compatible agent.

Its SKILL.md is about 3k 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 Agent Workflows, covering Skill management and Static analysis and SAST. The repository describes itself as: AAS Core is the local, agent-first control plane for complete catalog discovery, agent-owned selection, stack validation, and planning, backed by 2,400+ agentic skills. Includes… The licence is MIT.

When your agent uses it

  • Tasks that involve Skill management
  • Tasks that involve Static analysis and SAST

Example prompts

  • “/skill-optimizer”

Requirements

  • Python 3

Workflow steps

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

  1. Identify Target Skills
  2. Collect Session Data
  3. Run 8 Analysis Dimensions
  4. Composite Score

What it can do on your machine

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

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    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 markdown).

    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

Skill Optimizer loads about 3k tokens when it runs. Until then it costs about 48 tokens; SKILL.md has 1,418 words of instructions outside code blocks.

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

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 sickn33/agentic-awesome-skills at commit 1e53ce2, republished under its MIT licence (© sickn33). 1,418 words, ~3,007 tokens.

Download SKILL.mdSave it as .claude/skills/skill-optimizer/SKILL.md (or your agent's skills folder).
name
skill-optimizer
description
Diagnose and optimize Agent Skills (SKILL.md) with real session data and research-backed static analysis. Works with Claude Code, Codex, and any Agent Skills-compatible agent.
risk
safe
source
hqhq1025/skill-optimizer (MIT)
date_added
2026-04-11

When to Use This Skill

  • Use when skills are not triggering as expected or seem broken
  • Use when you want to audit and improve your skill library's quality
  • Use when you want to understand which skills are underperforming or wasting context tokens

Rules

  • Read-only: never modify skill files. Only output report.
  • All 8 dimensions: do not skip any. If data is insufficient, report "N/A — insufficient session data" rather than omitting.
  • Quantify: "you had 12 research tasks last week but the skill never triggered" beats "you often do research".
  • Suggest, don't prescribe: give specific wording suggestions for description improvements, but frame as suggestions.
  • Show evidence: for undertrigger claims, quote the actual user message that should have triggered the skill.
  • Evidence-based suggestions: when suggesting description rewrites, cite the specific research finding that motivates the change (e.g., "front-load trigger keywords — MCP study shows 3.6x selection rate improvement").

Overview

Analyze skills using historical session data + static quality checks, output a diagnostic report with P0/P1/P2 prioritized fixes. Scores each skill on a 5-point composite scale across 8 dimensions.

CSO (Claude/Agent Search Optimization) = writing skill descriptions so agents select the right skill at the right time. This skill checks for CSO violations.

Usage

  • /optimize-skill → scan all skills
  • /optimize-skill my-skill → single skill
  • /optimize-skill skill-a skill-b → multiple specified skills

Data Sources

Auto-detect the current agent platform and scan the corresponding paths:

SourceClaude CodeCodexShared
Session transcripts~/.claude/projects/**/*.jsonl~/.codex/sessions/**/*.jsonl—
Skill files~/.claude/skills/*/SKILL.md~/.codex/skills/*/SKILL.md~/.agents/skills/*/SKILL.md

Platform detection: Check which directories exist. Scan all available sources — a user may have both Claude Code and Codex installed.

Workflow

Identify target skills
        ↓
Collect session data (python3 scripts scan JSONL transcripts)
        ↓
Run 8 analysis dimensions
        ↓
Compute composite scores
        ↓
Output report with P0/P1/P2
Step 1: Identify Target Skills

Scan skill directories in order: ~/.claude/skills/, ~/.codex/skills/, ~/.agents/skills/. Deduplicate by skill name (same name in multiple locations = same skill). For each, read SKILL.md and extract:

  • name, description (from YAML frontmatter)
  • trigger keywords (from description field)
  • defined workflow steps (Step 1/2/3... or ### sections under Workflow)
  • word count

If user specified skill names, filter to only those.

Step 2: Collect Session Data

Use python3 scripts via Bash to scan session JSONL files. Extract:

Claude Code sessions (~/.claude/projects/**/*.jsonl):

  • Skill tool_use calls (which skills were invoked)
  • User messages (full text)
  • Assistant messages after skill invocation (for workflow tracking)
  • User messages after skill invocation (for reaction analysis)

Codex sessions (~/.codex/sessions/**/*.jsonl):

  • session_meta events → extract base_instructions for skill loading evidence
  • response_item events → assistant outputs (workflow tracking)
  • event_msg events → tool execution and skill-related events
  • User messages from turn_context events (for reaction analysis)

Note: Codex injects skills via context rather than explicit Skill tool calls. Skill loading (present in base_instructions) does NOT equal active invocation. To detect actual use, search for skill-specific workflow markers (step headers, output formats) in response_item content within that session. A skill is "invoked" only if the agent produced output following the skill's defined workflow.

Aggregated:

  • Per-skill: invocation count, trigger keyword match count
  • Per-skill: user reaction sentiment after invocation
  • Per-skill: workflow step completion markers
Step 3: Run 8 Analysis Dimensions

You MUST run ALL 8 dimensions. The baseline behavior without this skill is to skip dimensions 4.2, 4.3, 4.5b, and 4.8. These are the most valuable dimensions — do not skip them.

4.1 Trigger Rate

Count how many times each skill was actually invoked vs how many times its trigger keywords appeared in user messages.

Claude Code: count Skill tool_use calls in transcripts. Codex: count sessions where the agent produced output following the skill's workflow markers (not merely loaded in context).

Diagnose:

  • Never triggered → skill may be useless or trigger words wrong
  • Keywords match >> actual invocations → undertrigger problem, description needs work
  • High frequency → core skill, worth optimizing
4.2 Post-Invocation User Reaction

This dimension is critical and easy to skip. Do not skip it.

After a skill is invoked in a session, read the user's next 3 messages. Classify:

  • Negative: "no", "wrong", "never mind", "not what I wanted", user interrupts
  • Correction: user re-describes their intent, manually overrides skill output
  • Positive: "good", "ok", "continue", "nice", user follows the workflow
  • Silent switch: user changes topic entirely (likely false positive trigger)

Report per-skill satisfaction rate.

4.3 Workflow Completion Rate

This dimension is critical and easy to skip. Do not skip it.

For each skill invocation found in session data:

  1. Extract the skill's defined steps from SKILL.md
  2. Search the assistant messages in that session for step markers (Step N, specific output formats defined in the skill)
  3. Calculate: how far did execution get?

Report: {skill-name} (N steps): avg completed Step X/N (Y%)

If a specific step is frequently where execution stops, flag it.

4.4 Static Quality Analysis

Check each SKILL.md against these 14 rules:

CheckPass Criteria
Frontmatter formatOnly name + description, total < 1024 chars
Name formatLetters, numbers, hyphens only
Description triggerStarts with "Use when..." or has explicit trigger conditions
Description workflow leakDescription does NOT summarize the skill's workflow steps (CSO violation)
Description pushinessDescription actively claims scenarios where it should be used, not just passive
Overview sectionPresent
Rules sectionPresent
MUST/NEVER densityCount ALL-CAPS directive words; >5 per 100 words = flag
Word count< 500 words (flag if over)
Narrative anti-patternNo "In session X, we found..." storytelling
YAML quoting safetydescription containing : must be wrapped in double quotes
Critical info positionCore trigger conditions and primary actions must be in the first 20% of SKILL.md
Description 250-char checkPrimary trigger keywords must appear within the first 250 characters of description
Trigger condition count≤ 2 trigger conditions in description is ideal
Show full SKILL.md (529 more words)Show less
4.5a False Positive Rate (Overtrigger)

Skill was invoked but user immediately rejected or ignored it.

4.5b Undertrigger Detection

This is the highest-value dimension. For each skill, extract its capability keywords (not just trigger keywords — what the skill CAN do). Then scan user messages for tasks that match those capabilities but where the skill was NOT invoked.

Report: which user messages SHOULD have triggered the skill but didn't, and suggest description improvements.

Compounding Risk Assessment: For skills with chronic undertriggering (0 triggers across 5+ sessions where relevant tasks appeared), flag as "compounding risk" — undertriggered skills cannot self-improve through usage feedback, causing the gap to widen over time. Recommend immediate description rewrite as P0.

4.6 Cross-Skill Conflicts

Compare all skill pairs:

  • Trigger keyword overlap (same keywords in two descriptions)
  • Workflow overlap (two skills teach similar processes)
  • Contradictory guidance
4.7 Environment Consistency

For each skill, extract referenced:

  • File paths → check if they exist (test -e)
  • CLI tools → check if installed (which)
  • Directories → check if they exist

Flag any broken references.

4.8 Token Economics

This dimension is critical and easy to skip. Do not skip it.

For each skill:

  • Word count (from Step 1)
  • Trigger frequency (from 4.1)
  • Cost-effectiveness = trigger count / word count
  • Flag: large + never-triggered skills as candidates for removal or compression

Progressive Disclosure Tier Check: Evaluate each skill against the 3-tier loading model:

  • Tier 1 (frontmatter): ~100 tokens. Check: is description ≤ 1024 chars?
  • Tier 2 (SKILL.md body): <500 lines recommended. Check: word count.
  • Tier 3 (reference files): loaded on demand. Check: does skill use reference files for detailed content, or cram everything into SKILL.md?

Flag skills that put 500+ words in SKILL.md without using reference files as "poor progressive disclosure".

Step 4: Composite Score

Rate each skill on a 5-point scale:

ScoreMeaning
5Healthy: high trigger rate, positive reactions, complete workflows, clean static
4Good: minor issues in 1-2 dimensions
3Needs attention: significant gap in 1 dimension or minor gaps in 3+
2Problematic: never triggered, or negative user reactions, or major static issues
1Broken: doesn't work, references missing, or fundamentally misaligned

Scored dimensions (weighted average):

  • Trigger rate: 25%
  • User reaction: 20%
  • Workflow completion: 15%
  • Static quality: 15%
  • Undertrigger: 15%
  • Token economics: 10%

Qualitative dimensions (reported but not scored):

  • 4.5a Overtrigger: reported as count + examples
  • 4.6 Cross-Skill Conflicts: reported as conflict pairs
  • 4.7 Environment Consistency: reported as pass/fail per reference

Report Format

markdown
# Skill Optimization Report
**Date**: {date}
**Scope**: {all / specified skills}
**Session data**: {N} sessions, {date range}

## Overview
| Skill | Triggers | Reaction | Completion | Static | Undertrigger | Token | Score |
|-------|----------|----------|------------|--------|--------------|-------|-------|
| example-skill | 2 | 100% | 86% | B+ | 1 miss | 486w | 4/5 |

## P0 Fixes (blocking usage)
1. ...

## P1 Improvements (better experience)
1. ...

## P2 Optional Optimizations
1. ...

## Per-Skill Diagnostics
### {skill-name}
#### 4.1 Trigger Rate
...
#### 4.2 User Reaction
...
(all 8 dimensions)

Research Background

The analysis dimensions in this report are grounded in the following research:

  • Undertrigger detection: Memento-Skills (arXiv:2603.18743) — skills as structured files require accurate routing; unrouted skills cannot self-improve via the read-write learning loop
  • Description quality: MCP Description Quality (arXiv:2602.18914) — well-written descriptions achieve 72% tool selection rate vs. 20% random baseline (3.6x improvement)
  • Information position: Lost in the Middle (Liu et al., TACL 2024) — U-shaped LLM attention curve
  • Format impact: He et al. (arXiv:2411.10541) — format changes alone can cause 9-40% performance variance
  • Instruction compliance: IFEval (arXiv:2311.07911) — LLMs struggle with multi-constraint prompts

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

© sickn33, 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/skill-optimizer of sickn33/agentic-awesome-skills.

Open the folder on GitHubat commit 1e53ce2

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in sickn33/agentic-awesome-skills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Skill Optimizer 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.

Skill Optimizer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Skill Optimizer this skillsickn33/agentic-awesome-skills47k1 repos~3kAutomated safety check: PassMIT
Skill Cultivation Funneltelagod/code-abyss244—~794Automated safety check: NotesMIT
Architecturepikax/verter112—~5.6kAutomated safety check: PassMIT
Mcaf Dotnet Roslynatormanagedcode/Storage138—~1.2kAutomated safety check: PassMIT
Darwin Skill Optimizeralchaincyf/darwin-skill6.2k1 repos~4.7kAutomated safety check: PassMIT
Using Agent Skillsaddyosmani/agent-skills102k4 repos~2.4kAutomated safety check: PassMIT

Similar skills

  • Skill Cultivation Funnel

    telagod/code-abyss

    Distills repeated workflows into new skills, improves existing ones and promotes them through local, project and community tiers after a default-deny safety scan.

    244 GitHub stars~794 tokensUpdated 2 mo ago
    Agent WorkflowsAuto-check: notes
  • Architecture

    pikax/verter

    Verter codebase architecture: high-level module map, TypeScript packages, plugin system, CSS analysis, MCP server, static analysis types

    112 GitHub stars~5.6k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Mcaf Dotnet Roslynator

    managedcode/Storage

    Use the open-source free Roslynator analyzer packages and optional CLI for .NET.

    138 GitHub stars~1.2k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Darwin Skill Optimizer

    alchaincyf/darwin-skill

    Scores SKILL.md files on a nine-dimension rubric, then improves them in a keep-or-revert loop with independent judge agents, test prompts, git history and human checkpoints.

    6.2k GitHub starsUsed in 1 repo~4.7k tokens
    Agent WorkflowsAuto-check passed
  • Using Agent Skills

    addyosmani/agent-skills

    Meta-skill for choosing which workflow skill fits the task at hand, plus always-on habits: surface assumptions, stop on confusion, push back, keep it simple and stay in scope.

    102k GitHub starsUsed in 4 repos~2.4k tokens
    Agent WorkflowsAuto-check passed
  • Skill Creator

    zhayujie/CowAgent

    Guides creating, installing and updating agent skills in a workspace: SKILL.md frontmatter, bundled scripts and references, with scripts to scaffold, validate and package.

    47k GitHub stars~4.7k tokensUpdated yesterday
    Agent WorkflowsAuto-check: notes

More from sickn33/agentic-awesome-skills

All 1,394 skills in this repo
  • Liuguang Banlan UI

    sickn33/agentic-awesome-skills

    Implements an interface in one of two named color modes, iridescent white or colorful black, from a parameterized starter that reports measured color intensity.

    47k GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • User Thoughts Memory

    sickn33/agentic-awesome-skills

    Saves a user's project decisions, rules and preferences into a project-local mdbase so later sessions and other agents can recover the intent.

    47k GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • Using LWC Memory and Graphs

    sickn33/agentic-awesome-skills

    Keeps project decisions, research and verified results available across coding-agent sessions through LWC memory, a document Wiki graph and a CodeGraph code index.

    47k GitHub starsUsed in 1 repo~2k tokens
    Auto-check passed
  • Find Complementary Founders

    sickn33/agentic-awesome-skills

    Guides an agent through assessing its own owner for cofounder fit, publishing an approved profile, and ranking complementary profiles other agents published for their owners.

    47k GitHub starsUsed in 1 repo~4.8k tokens
    Auto-check passed
  • Whatsapp Cloud API

    sickn33/agentic-awesome-skills

    Integracao com WhatsApp Business Cloud API (Meta). An agent skill from sickn33/agentic-awesome-skills.

    47k GitHub starsUsed in 2 repos~4.5k tokens
    Auto-check passed
  • Cline Pilot

    sickn33/agentic-awesome-skills

    Acts as a proxy for the Cline CLI, dispatching coding tasks one at a time, monitoring runs by hard evidence, relaying decisions to you and learning per-project preferences.

    47k GitHub starsUsed in 1 repo~4.6k tokens
    Auto-check passed

Questions about Skill Optimizer

What does Skill Optimizer do?

Diagnose and optimize Agent Skills (SKILL.md) with real session data and research-backed static analysis. Skill Optimizer is an agent skill from sickn33/agentic-awesome-skills.md) with real session data and research-backed static analysis.

When should I use Skill Optimizer?

Skill Optimizer fits situations like: tasks that involve Skill management; tasks that involve Static analysis and SAST.

How do I install Skill Optimizer in Claude Code?

Run `npx skills add sickn33/agentic-awesome-skills --skill skill-optimizer -a claude-code`. Or copy the skill folder (skills/skill-optimizer in sickn33/agentic-awesome-skills) into .claude/skills/skill-optimizer in your project. Claude Code loads it when a task matches its description.

How do I install Skill Optimizer in Codex?

Run `npx skills add sickn33/agentic-awesome-skills --skill skill-optimizer -a codex`. Or copy the skill folder (skills/skill-optimizer in sickn33/agentic-awesome-skills) into .agents/skills/skill-optimizer in your project. Codex loads it when a task matches its description.

Can I use Skill Optimizer 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 sickn33/agentic-awesome-skills --skill skill-optimizer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/skill-optimizer, .gemini/skills/skill-optimizer, .github/skills/skill-optimizer and .opencode/skills/skill-optimizer in your project.

What does Skill Optimizer need to run?

SKILL.md names no scripts, command-line tools or credentials: Skill Optimizer is instructions for the agent only. Our summary lists: Python 3.

Does Skill Optimizer 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 Skill Optimizer 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 Skill Optimizer use?

Skill Optimizer 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 Skill Optimizer use?

About 3k tokens (SKILL.md is roughly 12k 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 Skill Optimizer?

Skills that share tags, products or a category with Skill Optimizer: Skill Cultivation Funnel (telagod/code-abyss, 244 stars), Architecture (pikax/verter, 112 stars), Mcaf Dotnet Roslynator (managedcode/Storage, 138 stars) and Darwin Skill Optimizer (alchaincyf/darwin-skill, 6.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Skill Optimizer?

sickn33 (a GitHub user) maintains it in sickn33/agentic-awesome-skills, which has 47,304 GitHub stars. The repository holds 1,394 skills in this directory. The repository was last updated on October 6, 2026.

Source: sickn33/agentic-awesome-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.