Sandbox
@AgentSkillOS/SkillAnything

Skill generator for Claude Code, OpenClaw, and Codex

This repo turns a target software tool or workflow into a ready-to-use agent skill. The pipeline is split across `scripts/` for automation, `agents/` for phase instructions, `templates/` for scaffolds, and `references/` for the platform formats and schemas it outputs against.

472 stars48 forksPythonUpdated 5mo ago
Who it's for

Builders who want their agent to create reusable skills from CLI tools, APIs, libraries, or workflows.

What it delivers

You can generate and package a production-ready skill instead of hand-writing it for each platform.

What it does

Seven-phase skill pipeline

Analyzes a target, designs the skill, implements files, generates tests, evaluates results, optimizes the description, and packages the output.

Target auto-detection

Detects whether the target is a CLI tool, REST API, library, workflow, or service and picks a matching path.

Multi-platform packaging

Builds outputs for Claude Code, OpenClaw, Codex, and a generic `.skill` package.

Agent instruction set

Provides phase-specific instructions in `agents/analyzer.md`, `designer.md`, `implementer.md`, `grader.md`, `comparator.md`, `optimizer.md`, and `packager.md`.

Evaluation and benchmark loop

Generates test cases, runs evals, compares results, and improves the skill description from the feedback loop.

Templates and adapters

Includes `templates/skill-scaffold` and `templates/platform-adapters` for new skills and platform-specific output.

How to get it

  1. 1Run
    # Claude Code
    git clone https://github.com/AgentSkillOS/SkillAnything.git ~/.claude/skills/skill-anything
    
    # OpenClaw
    git clone https://github.com/AgentSkillOS/SkillAnything.git ~/.openclaw/skills/skill-anything
    
    # Codex
    git clone https://github.com/AgentSkillOS/SkillAnything.git ~/.codex/skills/skill-anything
  2. 2In Claude Code, just say
    > Create a skill for the httpie CLI tool
    > Generate a multi-platform skill for the Stripe API
    > Turn this data pipeline workflow into a skill

README

SkillAnything
Python License Claude Code OpenClaw Codex

SkillAnything

Making ANY Software Skill-Native
The meta-skill that generates production-ready Skills for AI agent platforms.

Quick StartPipelinePlatformsArchitectureExamplesAttribution


What is SkillAnything?

One target in, production-ready Skills out.

SkillAnything is a Skill that generates Skills. Give it any target -- a CLI tool, REST API, Python library, workflow, or web service -- and it runs a fully automated 7-phase pipeline:

Target: "jq"
  |
  v
[Analyze] -> [Design] -> [Implement] -> [Test] -> [Benchmark] -> [Optimize] -> [Package]
  |                                                                                  |
  v                                                                                  v
analysis.json                                                          dist/
                                                                        ├── claude-code/
                                                                        ├── openclaw/
                                                                        ├── codex/
                                                                        └── generic/

No manual prompt engineering. No copy-paste between platforms. Just tell it what you want a skill for.

Quick Start

Install

# Claude Code
git clone https://github.com/AgentSkillOS/SkillAnything.git ~/.claude/skills/skill-anything

# OpenClaw
git clone https://github.com/AgentSkillOS/SkillAnything.git ~/.openclaw/skills/skill-anything

# Codex
git clone https://github.com/AgentSkillOS/SkillAnything.git ~/.codex/skills/skill-anything

Use

In Claude Code, just say:

> Create a skill for the httpie CLI tool
> Generate a multi-platform skill for the Stripe API
> Turn this data pipeline workflow into a skill

SkillAnything handles the rest.

Run Individual Phases

# Phase 1: Analyze a target
python -m scripts.analyze_target --target "jq" --output analysis.json

# Phase 2: Design architecture
python -m scripts.design_skill --analysis analysis.json --output architecture.json

# Phase 3: Scaffold skill
python -m scripts.init_skill my-skill --template cli --output ./out

# Phase 4: Generate test cases
python -m scripts.generate_tests --analysis analysis.json --skill-path ./out/my-skill

# Phase 5: Run evaluation
python -m scripts.run_eval --eval-set evals.json --skill-path ./out/my-skill

# Phase 6: Optimize description
python -m scripts.run_loop --eval-set trigger-evals.json --skill-path ./out/my-skill --model claude-sonnet-4-20250514

# Phase 7: Package for all platforms
python -m scripts.package_multiplatform ./out/my-skill --platforms claude-code,openclaw,codex

The 7-Phase Pipeline

Inspired by CLI-Anything's methodology, adapted for Skill generation:

PhaseNameWhat It DoesOutput
1AnalyzeAuto-detect target type, extract capabilitiesanalysis.json
2DesignMap capabilities to skill architecturearchitecture.json
3ImplementGenerate SKILL.md + scripts + referencesComplete skill directory
4Test PlanAuto-generate eval cases + trigger queriesevals.json
5EvaluateBenchmark with/without skill, grade resultsbenchmark.json
6OptimizeImprove description via train/test loopOptimized SKILL.md
7PackageMulti-platform distribution packagesdist/

Target Auto-Detection

Target TypeDetection MethodExample
CLI Toolwhich <name> + --help parsingjq, httpie, ffmpeg
REST APIURL with OpenAPI/Swagger specStripe API, GitHub API
LibraryPackage name via pip/npmpandas, lodash
WorkflowStep-by-step descriptionETL pipeline, CI/CD flow
ServiceURL with web docsSlack, Notion

Supported Platforms

Claude Code
~/.claude/skills/
OpenClaw
~/.openclaw/skills/
OpenAI Codex
~/.codex/skills/
Generic
.skill zip
Full support
Hooks in frontmatter
Full support
External settings.json
Full support
openai.yaml companion
Full support
Platform-agnostic

Architecture

SkillAnything/
├── SKILL.md                    # Main entry point (< 500 lines)
├── METHODOLOGY.md              # Full 7-phase pipeline spec
├── config.yaml                 # Pipeline configuration
│
├── agents/                     # Subagent instructions
│   ├── analyzer.md             # Phase 1: Target analysis
│   ├── designer.md             # Phase 2: Skill design
│   ├── implementer.md          # Phase 3: Content writing
│   ├── grader.md               # Phase 5: Eval grading
│   ├── comparator.md           # Blind A/B comparison
│   ├── optimizer.md            # Phase 6: Description optimization
│   └── packager.md             # Phase 7: Multi-platform packaging
│
├── scripts/                    # Python automation core
│   ├── analyze_target.py       # [NEW] Target auto-detection
│   ├── design_skill.py         # [NEW] Architecture generation
│   ├── init_skill.py           # [NEW] Skill scaffolding
│   ├── generate_tests.py       # [NEW] Auto test generation
│   ├── package_multiplatform.py # [NEW] Multi-platform packaging
│   ├── obfuscate.py            # [NEW] PyArmor wrapper
│   ├── run_eval.py             # Trigger evaluation
│   ├── improve_description.py  # AI-powered optimization
│   ├── run_loop.py             # Eval + improve loop
│   ├── aggregate_benchmark.py  # Benchmark statistics
│   └── ...                     # + validators, reporters
│
├── references/                 # Documentation
│   ├── platform-formats.md     # Platform-specific specs
│   ├── schemas.md              # JSON schemas
│   └── pipeline-phases.md      # Phase details
│
├── templates/                  # Generation templates
│   ├── skill-scaffold/         # Skill directory template
│   └── platform-adapters/      # Platform-specific adapters
│
└── eval-viewer/                # Interactive eval review UI
    └── generate_review.py

Examples

Example 1: CLI Tool Skill

> Create a skill for the jq CLI tool

Phase 1: Analyzing jq... detected as CLI tool (confidence: 0.95)
Phase 2: Designing skill architecture... tool-augmentation pattern
Phase 3: Generating SKILL.md + 2 scripts + 1 reference
Phase 4: Created 5 test cases + 20 trigger queries
Phase 5: Benchmark: 87% pass rate (vs 42% baseline)
Phase 6: Description optimized: 18/20 trigger accuracy
Phase 7: Packaged for claude-code, openclaw, codex, generic

Done! Skill at: sa-workspace/dist/

Example 2: API Skill

> Generate a skill for the Stripe API, focus on payments

Phase 1: Fetching Stripe OpenAPI spec... 247 endpoints found
Phase 2: Focusing on payment_intents, customers, charges
Phase 3: Generated SKILL.md with auth setup + endpoint references
...

Example 3: Workflow Skill

> Turn this into a skill: fetch from Postgres, clean with pandas, upload to S3

Phase 1: Detected workflow with 3 steps
Phase 2: workflow-orchestrator pattern, 3 dependencies
Phase 3: Step-by-step SKILL.md with error handling guidance
...

Configuration

Edit config.yaml:

pipeline:
  auto_mode: true              # Full automation or interactive
  skip_eval: false             # Skip phases 5-6 for rapid prototyping

platforms:
  enabled: [claude-code, openclaw, codex, generic]
  primary: claude-code

eval:
  max_optimization_iterations: 5
  runs_per_query: 3

obfuscation:
  enabled: false               # PyArmor protection for core scripts

Code Protection

SkillAnything supports code obfuscation for commercial distribution:

# Obfuscate original scripts (Apache 2.0 derived files are excluded)
python -m scripts.obfuscate --config config.yaml

# Output: dist-protected/ with PyArmor-protected core + readable adapted scripts
CategoryFilesProtection
SkillAnything Original6 scriptsPyArmor obfuscated
Anthropic Adapted9 scriptsSource (Apache 2.0 requires it)
Agent Instructions7 .md filesReadable (required by agents)

Attribution

Built on the shoulders of giants:

ProjectLicenseWhat We Used
CLI-AnythingMIT7-phase pipeline methodology
Dazhuang Skill CreatorApache 2.0Project structure pattern
Anthropic Skill CreatorApache 2.0Eval/benchmark system, agent instructions

See NOTICE for complete attribution details.

Contributing

We welcome contributions! Areas where help is needed:

  • New target type analyzers (e.g., GraphQL, gRPC)
  • Platform adapters for additional agent frameworks
  • Evaluation improvements and test case quality
  • Documentation and examples

License

MIT License -- see LICENSE for details.


SkillAnything -- Making ANY Software Skill-Native
If CLI-Anything makes CLIs for software, SkillAnything makes Skills for everything.

Files in the repo

Repository payload16 top-level entries
  • .github
  • agents
  • assets
  • eval-viewer
  • evals
  • promo
  • references
  • scripts
  • templates
  • .gitignore
  • config.yaml
  • LICENSE
  • METHODOLOGY.md
  • NOTICE
  • README.md
  • SKILL.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More skills

obra/
superpowers

An agentic skills framework & software development methodology that works.

285k
1 add

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

117k
1 add
Vincentwei1021/
anything2explainer

Topic in, narrated explainer video out. A Claude Code / Codex skill that turns any topic into a black-canvas motion-graphics explainer video with TTS voiceover, subtitles and a chapter progress bar. Chinese or English; every frame drawn in code with Remotion.

666

Open-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)

71k