/agent-skills:j5ik2o-skill-forgefrom agent-skills
Creates, tests, improves, and maintains Claude Code and Codex skills. Runs evals, benchmarks, and grades skills to validate triggers and behavior.
Ships in agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Use this skill to create, test, improve, package, and maintain Claude Code and Codex skills.
The default loop is:
SKILL.md.If the user only wants brainstorming, skip evals and act as a design partner. If the user already has a draft, start at validation, evals, or iteration.
Read only the reference files needed for the current branch:
references/skill_authoring.md - read before drafting, reviewing, or large
refactoring a SKILL.md, especially when the body may approach 500 lines or
existing skill knowledge is being shortened, reorganized, translated, or moved
into references.references/eval_workflow.md - read before running test cases, benchmarks,
grading, viewer generation, blind comparison, or iteration from feedback.references/description_optimization.md - read before optimizing or debugging
a skill's trigger description. It requires you to read the target skill's SKILL.md,
extracting helps with and should not help with, then reviewing trigger
evals with the user.references/openai_yaml.md - read before generating or reviewing Codex
agents/openai.yaml metadata.references/skill_creator_comparison.md - read before updating platform
assumptions or comparing skill-forge against Anthropic/OpenAI creator flows.references/trigger_eval_boundaries.md - read before changing trigger eval
parsing or interpreting surprising Claude Code / Codex CLI trigger results.references/schemas.md - read before writing or manually inspecting
evals.json, eval_metadata.json, grading.json, or benchmark.json.references/platform_notes.md - read when running in Claude.ai, Cowork, or a
headless environment.The agents/ directory contains specialized subagent instructions:
agents/grader.md - how to evaluate expectations against outputs.agents/comparator.md - how to do blind A/B comparison.agents/analyzer.md - how to analyze benchmark results.Skill Forge may be used by people with very different levels of coding familiarity. Match the user's vocabulary. In the default case, terms like "evaluation" and "benchmark" are OK, while "JSON" and "expectation" may need a short definition.
Explain tradeoffs plainly. Ask for confirmation before running an expensive eval loop, changing trigger behavior, or packaging a skill.
Start by extracting what the conversation already tells you. If the user says "turn this into a skill", reuse the observed workflow, tools, corrections, inputs, and outputs before asking more questions.
Clarify these points:
When drafting, read references/skill_authoring.md. At minimum, produce:
name: stable skill identifier.description: the trigger boundary. Put all "when to use" guidance here.compatibility: optional requirements, only when useful.Descriptions should be direct and a little pushy for true positives, because skills can under-trigger. Also include explicit exclusions for near misses so the skill does not hijack ordinary coding, docs, or operations work.
After editing SKILL.md, validate it and regenerate Codex metadata when present.
Before running scripts, ensure the Python environment is ready from the
j5ik2o-skill-forge directory. Because : cannot appear in a virtual-environment
path-list entry, keep the uv environment outside the namespaced skill directory:
export UV_PROJECT_ENVIRONMENT="${UV_PROJECT_ENVIRONMENT:-${TMPDIR:-/tmp}/j5ik2o-skill-forge-venv}"
uv sync --group dev
Use uv run for every script call. If uv is missing, direct the user to
https://docs.astral.sh/uv/.
For Codex-compatible skills, read references/openai_yaml.md before generating
or reviewing agents/openai.yaml.
Generate Codex UI metadata after the target skill has stable SKILL.md
frontmatter:
uv run python -m scripts.generate_openai_yaml <skill-dir>
Run validation before packaging or publishing:
uv run python -m scripts.quick_validate <skill-dir>
uv run python -m scripts.quick_validate <skill-dir> --platform claude
uv run python -m scripts.quick_validate <skill-dir> --platform codex
uv run python -m scripts.quick_validate <skill-dir> --platform codex --strict-openai-yaml
Use --platform claude for Claude Code-only frontmatter such as
disable-model-invocation, user-invocable, or when_to_use. Use
--platform codex for Codex skills and agents/openai.yaml. Use
--strict-openai-yaml before publishing Codex metadata; it requires
display_name, short_description, and default_prompt, and detects stale
metadata after SKILL.md changes.
Before running evals, read references/eval_workflow.md.
Core rules:
eval_metadata.json for each test case; new files start with
"expectations": [].agents/grader.md.scripts.aggregate_benchmark.eval-viewer/generate_review.py; do not
write custom viewer HTML.For schema details, read references/schemas.md. Writers must emit
expectations; old assertions are only a legacy alias for readers.
Improve from evidence, not from vibes alone:
references/skill_authoring.md before editing and before final validation.
Do not treat "shorten", "organize", "Englishize", or "move to references" as
permission to discard behavior-shaping skill knowledge.For blind A/B comparison, read agents/comparator.md and agents/analyzer.md.
After the skill body is stable, offer trigger optimization. Read
references/description_optimization.md before starting.
Minimum workflow:
SKILL.md.helps with and should not help with.assets/eval_review.html.scripts.run_loop with the right CLI.best_description, show before/after, and report scores.Claude Code example:
uv run python -m scripts.run_loop \
--eval-set <path-to-trigger-eval.json> \
--skill-path <path-to-skill> \
--model <model-id-powering-this-session> \
--max-iterations 5 \
--verbose
Codex CLI example:
uv run python -m scripts.run_loop \
--eval-set <path-to-trigger-eval.json> \
--skill-path <path-to-skill> \
--model <model-id-powering-this-session> \
--cli codex \
--max-iterations 5 \
--verbose
No separate Anthropic API client setup is required for the optimization loop.
Before interpreting status: "error" or status: "not_run", read
references/trigger_eval_boundaries.md.
For Claude.ai, Cowork, and headless environments, read
references/platform_notes.md before adapting the workflow.
Short version:
eval-viewer/generate_review.py --static <output_path>.claude -p or codex exec; skip it when no
suitable CLI is available.If a file presentation tool is available, package the final skill:
uv run python -m scripts.package_skill <path/to/skill-folder>
Otherwise, return the generated .skill path to the user.
description.SKILL.md stays lean and points to references for branch-specific detail.SKILL.md changes.references/schemas.md.agents/analyzer.md (opens in a new tab)agents/comparator.md (opens in a new tab)agents/grader.md (opens in a new tab)agents/openai.yaml (opens in a new tab)assets/eval_review.html (opens in a new tab)eval-viewer/generate_review.py (opens in a new tab)eval-viewer/viewer.html (opens in a new tab)evals/evals.json (opens in a new tab)justfile (opens in a new tab)pyproject.toml (opens in a new tab)references/description_optimization.md (opens in a new tab)references/eval_workflow.md (opens in a new tab)references/openai_yaml.md (opens in a new tab)references/platform_notes.md (opens in a new tab)references/schemas.md (opens in a new tab)references/skill_authoring.md (opens in a new tab)references/skill_creator_comparison.md (opens in a new tab)references/trigger_eval_boundaries.md (opens in a new tab)scripts/__init__.py (opens in a new tab)scripts/aggregate_benchmark.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
skill-authoring, skill-testing, eval-workflow, benchmarking, skill-forge
npx claudepluginhub j5ik2o/ai-tools --plugin agent-skillsOther plugins' skills for the same job