Install
$ agentstack add skill-matrixfounder-universal-skills-skill-creator ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Skill Creator Guide
This skill provides the authoritative standard for creating and iteratively improving Agent Skills. It combines the Anthropic Skills Standard with our local architecture rules.
Core loop: Draft skill → Write test cases → Run evals (with-skill + baseline) → Review with user → Improve → Repeat.
Your job is to figure out where the user is in this process and help them progress. Maybe they want to create a skill from scratch — help narrow intent, write a draft, create tests, run them, iterate. Maybe they already have a draft — go straight to eval/iterate. Be flexible.
Red Flags (Anti-Rationalization)
STOP and READ THIS if you are thinking:
- "I'll skip the eval step, the skill looks fine" → WRONG. Run evals — untested skills fail silently in production.
- "I can write the whole skill without talking to the user" → WRONG. Capture Intent first — assumptions cause rewrites.
- "The description is descriptive enough" → WRONG. CSO triggers are mechanical. Follow the schema.
- "This skill is too simple for a script" → WRONG. If logic > 5 lines, text instructions fail 30% of the time. Use a script.
- "I'll skip the viewer and evaluate outputs myself" → WRONG. Generate the eval viewer BEFORE evaluating — get results in front of the human ASAP.
Purpose
Enable agents to create, test, and iteratively improve Agent Skills following the Gold Standard. This skill provides both the quality standards (what makes a good skill) and the workflow engine (how to iterate to get there).
Capabilities
- Create new skills from scratch with validated structure
- Run structured evals with baseline comparison (with-skill vs without-skill)
- Grade, benchmark, and review eval results via interactive viewer
- Iteratively improve skills based on user feedback
- Optimize skill descriptions for better triggering accuracy
- Package skills into distributable
.skillfiles - Adapt workflow to different environments (Claude Code, Codex, Antigravity, Claude.ai, Cowork)
1. Quality Standards (Summary)
> Full details: references/writing_skills_best_practices_anthropic.md > Design patterns: references/skill_design_patterns.md
Skill Anatomy
Every skill follows this directory structure:
skill-name/
├── SKILL.md (Required — YAML frontmatter + markdown body)
├── examples/ # Few-shot training: input/output pairs
├── assets/ # User output: templates, files for output
├── references/ # Agent knowledge: specs, guidelines, schemas
├── scripts/ # Executable logic: Python/Bash tools
└── eval-viewer/ # (Optional) Interactive eval review UI
All subdirectories are optional. Do NOT create README.md, CHANGELOG.md, or other aux docs inside the skill folder — all instructions go in SKILL.md.
Key Rules
- Script-First: If a step requires >5 lines of if/then/else logic, it MUST be a Python script in
scripts/— agents are unreliable at executing complex logic from text. - Inline-Block Policy: Fenced code blocks are checked two-tier — over 20 lines warns, over 60 lines fails.
mermaidfences are exempt;text/console/outputfences can only warn. Bulk reference material or templates SHOULD move toexamples/,assets/, orreferences/; core procedural blocks may instead be split into labelled sub-blocks. Thresholds are config-driven (validation.quality_checks.max_inline_lines_warn/_fail). - Graduated Language: Skills must work across LLMs (Claude, Gemini, Codex, Qwen, Llama). Use graduated instruction strength:
- Safety-critical:
MUST/ALWAYS+ explain why - Behavioral: Explain why + imperative verb
- Prohibited:
MUST NOT+ consequence - CSO (Search Optimization): The
descriptionfield determines if a skill is loaded. Start withUse when...(preferred),Guidelines for...,Helps with...,Standards for..., orDefines.... Keep under 50 words. Make descriptions "pushy" to prevent under-triggering. - Red Flags: Every skill MUST include a "Red Flags" section to prevent agent rationalization.
- Naming: Use gerund form
verb-ing-noun(e.g.,processing-pdfs). Always lowercase kebab-case.
Frontmatter
---
name: skill-my-capability
description: "Use when..."
tier: [0|1|2]
version: 1.0
---
Run python3 scripts/init_skill.py --help to see available Tiers. Do NOT guess tiers manually.
Required Sections in SKILL.md
- Purpose — the "Why"
- Red Flags — "Stop and Rethink" triggers
- Capabilities — bulleted list
- Execution Mode —
prompt-first,script-first, orhybrid - Script Contract — required for script-first/hybrid (command, inputs, outputs, exit codes)
- Safety Boundaries — explicit scope and exclusions
- Validation Evidence — objective verification output
- Instructions — step-by-step algorithms
- Examples — input/output pairs (see
examples/SKILL_EXAMPLE_LEGACY_MIGRATOR.md)
Template: assets/SKILL_TEMPLATE.md
Execution Mode
- Mode:
hybrid - Rationale: Skill authoring needs judgement for structure/quality decisions and deterministic scripts for repeatable validation and generation.
Script Contract
- Primary Commands:
python3 scripts/init_skill.py --tier— generate skill skeletonpython3 scripts/validate_skill.py— validate structure and compliancepython3 scripts/package_skill.py— package into.skillfile- Inputs: skill name/path, tier, and local policy config.
- Outputs: generated skeletons, validation pass/fail, warnings,
.skillarchives. - Failure Semantics: non-zero exit code on validation errors.
Safety Boundaries
- Operate only on explicit target skill directories.
- No broad or implicit repo-wide mutation.
- Destructive actions never default; require explicit user intent.
Validation Evidence
validate_skill.pyoutput and generated diffs.- Quality checks: section coverage, CSO, inline efficiency, metadata.
2. Creating a Skill
Capture Intent
Start by understanding the user's intent. The current conversation might already contain a workflow they want to capture. If so, extract answers from conversation history first — tools used, sequence of steps, corrections made, I/O formats observed.
- What should this skill enable the agent to do?
- When should this skill trigger? (what user phrases/contexts)
- What's the expected output format?
- Should we set up test cases? Skills with objectively verifiable outputs (file transforms, data extraction, code generation) benefit from tests. Subjective skills (writing style, art) often don't. Suggest the appropriate default, let the user decide.
Interview and Research
Proactively ask about edge cases, I/O formats, example files, success criteria, dependencies. Wait to write test prompts until this is ironed out.
Check available MCPs — if useful for research, research in parallel via subagents if available, otherwise inline.
Write the SKILL.md
- Check Duplicates: Verify in your Skill Catalog.
- Initialize:
``bash python3 scripts/init_skill.py my-new-skill --tier 2 ``
- Populate: Edit the auto-generated
SKILL.md. Fill in Red Flags, description, Execution Mode, Script Contract, Safety Boundaries, Validation Evidence. Consultreferences/skill_design_patterns.mdandreferences/writing_skills_best_practices_anthropic.md. - Cleanup: Remove unused placeholder files/directories created by init.
- Validate:
``bash python3 scripts/validate_skill.py ../my-new-skill ``
Test Cases
After the draft, write 2-3 realistic test prompts — things a real user would actually say. Share them with the user for confirmation, then run them.
Save to evals/evals.json. Don't write assertions yet — just prompts. You'll draft assertions while runs are in progress.
{"skill_name": "my-skill", "evals": [
{"id": 1, "prompt": "Realistic user prompt", "files": [],
"expectations": ["Verifiable outcome 1", "Verifiable outcome 2"]}
]}
See references/eval_schemas.md for the full schema.
3. Running and Evaluating Test Cases
This section is one continuous sequence — don't stop partway through.
Put results in -workspace/ as a sibling to the skill directory. Organize by iteration (iteration-1/, iteration-2/) and within that, each test case gets a directory.
Step 1: Spawn all runs (with-skill AND baseline) in the same turn
For each test case, spawn two subagents in the same turn — one with the skill, one without. Launch everything at once so it all finishes around the same time.
With-skill run:
Execute this task:
- Skill path:
- Task:
- Input files:
- Save outputs to: /iteration-/eval-/with_skill/outputs/
Baseline run (depends on context):
- New skill: no skill at all → save to
without_skill/outputs/ - Improving existing skill: snapshot the old version first (
cp -r), point baseline at snapshot → save toold_skill/outputs/
Write eval_metadata.json for each test case with a descriptive name.
Step 2: While runs are in progress, draft assertions
Don't wait — use this time to draft quantitative assertions. Good assertions are objectively verifiable with descriptive names. Don't force assertions onto subjective outputs.
Update eval_metadata.json and evals/evals.json with assertions.
Step 3: As runs complete, capture timing data
When each subagent completes, save total_tokens and duration_ms to timing.json in the run directory. This is the only opportunity to capture this data.
Step 4: Grade, aggregate, and launch the viewer
- Grade each run — spawn a grader subagent reading
agents/grader.md. Savegrading.jsonwith fieldstext,passed,evidence. For programmatic assertions, write and run a script. When the skill's output is structured (JSON/numbers/files) or it shares a PASS/FAIL gate with production, prefer a deterministic script-grader that imports the production gate — seereferences/advanced-eval-patterns.md.
- Aggregate into benchmark:
``bash python3 scripts/aggregate_benchmark.py /iteration-N --skill-name ` Produces benchmark.json and benchmark.md`.
- Analyst pass — read benchmark data, surface patterns (see
agents/analyzer.md).
- Launch the viewer:
``bash nohup python3 eval-viewer/generate_review.py \ /iteration-N \ --skill-name "my-skill" \ --benchmark /iteration-N/benchmark.json \ > /dev/null 2>&1 & VIEWER_PID=$! ` For iteration 2+, add --previous-workspace /iteration-`.
- Tell the user: "I've opened the results in your browser. 'Outputs' tab shows test cases with feedback boxes. 'Benchmark' tab shows quantitative comparison. Come back when you're done."
Step 5: Read the feedback
When the user is done, read feedback.json. Empty feedback = looks good. Focus improvements on test cases with specific complaints.
kill $VIEWER_PID 2>/dev/null
4. Improving the Skill
How to think about improvements
- Generalize from feedback. You're iterating on a few examples to create a skill used many times. Rather than overfitty changes or oppressively constrictive MUSTs, try different metaphors or recommend different patterns.
- Keep the prompt lean. Remove things not pulling their weight. Read transcripts — if the skill wastes time on unproductive steps, trim those instructions.
- Explain the why. Today's LLMs are smart. When given good harness they go beyond rote instructions. If you find yourself writing ALWAYS/NEVER in all caps, reframe with reasoning. That's more powerful and effective.
- Look for repeated work across test cases. Read transcripts — if all subagents independently wrote similar helper scripts, that script should be bundled in
scripts/.
The iteration loop
- Apply improvements
- Rerun all test cases into
iteration-/, including baselines - Launch viewer with
--previous-workspace - Wait for user review
- Read feedback, improve, repeat
Stop when: user is happy, feedback is all empty, or no meaningful progress.
5. Description Optimization
After the skill is working well, optimize the description for better triggering accuracy.
Step 1: Generate trigger eval queries
Create ~20 eval queries — mix of should-trigger and should-not-trigger. Save as JSON:
[{"query": "realistic user prompt with details", "should_trigger": true}]
Queries must be realistic — include file paths, personal context, abbreviations, typos, casual speech. Focus on edge cases: near-misses that share keywords but need different skills.
Step 2: Review with user
Present eval set using the HTML template:
- Read
assets/eval_review.html - Replace
__EVAL_DATA_PLACEHOLDER__,__SKILL_NAME_PLACEHOLDER__,__SKILL_DESCRIPTION_PLACEHOLDER__ - Write to temp file and open it
- User edits queries, exports as
eval_set.json
Step 3: Run the optimization loop
> Dependencies: Requires pip install anthropic and claude CLI installed. Claude Code specific — see Section 6 for other environments.
python3 scripts/run_loop.py \
--eval-set \
--skill-path \
--model \
--max-iterations 5 --verbose
This splits eval set into 60% train / 40% test, runs each query 3 times, uses Claude with extended thinking to propose improvements, iterates up to 5 times, selects by test score to avoid overfitting.
Step 4: Apply the result
Take best_description from output, update the skill's frontmatter. Show before/after and scores.
6. Environment Adaptations
Claude Code (full workflow)
All features work: subagents for parallel test runs, viewer via browser, claude -p for description optimization, package_skill.py for packaging.
Codex
Codex supports subagents. Adapt:
- Description optimization:
run_loop.pyusesclaude -pwhich is Claude Code specific. Skip this step or run it manually. - Viewer: If no browser, use
--staticfor standalone HTML.
Antigravity IDE
Full workflow available. Follow the standard process. If subagents are available, use parallel test runs. Otherwise, run tests sequentially.
Claude.ai (no subagents)
- Running tests: No subagents. Read the skill's SKILL.md, then follow its instructions yourself, one test at a time. Skip baseline runs.
- Reviewing: Skip browser viewer. Present results directly in conversation. Save output files and tell user where they are.
- Benchmarking: Skip quantitative benchmarking.
- Description optimization: Requires
claudeCLI. Skip on Claude.ai. - Packaging:
package_skill.pyworks anywhere with Python.
Cowork (headless)
- Subagents work. If timeouts occur, run tests sequentially.
- No browser — use
--staticfor viewer. User clicks link to open HTML. - Feedback: "Submit All Reviews" downloads
feedback.jsonas file. - GENERATE THE EVAL VIEWER BEFORE evaluating outputs yourself — get results in front of the human ASAP.
7. Advanced: Blind Comparison
For rigorous A/B comparison between skill versions, read agents/comparator.md and agents/analyzer.md. Give two outputs to an independent agent without telling it which is which, let it judge quality.
Optional. Most users won't need it — the human review loop is usually sufficient.
8. Package and Present
If the present_files tool is available:
python3 scripts/package_skill.py
Direct the user to the resulting .skill file.
9. Scripts & Tools Reference
scripts/ — Core automation
init_skill.py: Generate compliant skill skeletonvalidate_skill.py: Enforce structure, frontmatter, CSO, execution-policyskill_utils.py: Config loader (defaults + project overlay) +parse_skill_md()aggregate_benchmark.py: Compute benchmark summary fromgrading.jsonfiles
…
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: MatrixFounder
- Source: MatrixFounder/Universal-skills
- License: Apache-2.0
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.