Skill creator

From oimiragieo/agent-studio · View interactive version

Skill creator is an AI agent skill from the GitHub repository oimiragieo/agent-studio. Create, validate, and convert skills for the agent ecosystem. Enforces standardized structure for consistency. Enables self-evolution by creating new skills on demand, converting MCP servers and codebases to skills.

How to use this skill

Skill file

Mode: Script-First - Use scripts/create.cjs as the canonical path for new skill creation, then use this guide for research, review, and integration follow-through.

Skill Creator

Create, validate, install, and convert skills for the multi-agent ecosystem without skipping routing, catalog, and registry integration.

Purpose

Use this skill to:

  1. Create a new skill from scratch.
  2. Convert MCP servers or external codebases into skills.
  3. Install a skill from GitHub.
  4. Validate an existing skill definition.
  5. Assign or register related hooks, schemas, and companion artifacts.

Reference Docs

Actions

| Action | Use when | Primary command |

| ------------------------------------- | ------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |

| create | Creating a brand-new skill | node .claude/skills/skill-creator/scripts/create.cjs --name <skill-name> --description "<summary>" |

| convert | Converting an MCP server into a skill | node .claude/skills/skill-creator/scripts/convert.cjs --source <package-or-url> |

| validate | Checking an existing skill definition | node .claude/tools/cli/validate-integration.cjs .claude/skills/<skill-name>/SKILL.md |

| install | Importing a skill from GitHub | Follow the preserved install flow in enterprise bundle details |

| convert-codebase | Turning an external tool or codebase into a skill | Follow the preserved conversion notes in enterprise bundle details |

| consolidate | Folding many narrow skills into domain experts | Use the preserved consolidation reference in enterprise bundle details |

| convert-rules | Migrating legacy rules into skills | Use the preserved rule-conversion reference in enterprise bundle details |

| assign | Assigning a skill to one or more agents | Use the checklist below and the detailed matrix in integration reference |

| register-hooks / register-schemas | Wiring existing assets into a skill | Use the preserved action notes in enterprise bundle details |

| show-structure | Reviewing the expected folder layout | Use the template and directory guidance below |

Core Creation Workflow

Step 0: Existence Check and Updater Delegation

Before creating any skill file, check whether the skill already exists.

test -f .claude/skills/<skill-name>/SKILL.md && echo "EXISTS" || echo "NEW"

Step 0.1: Smart Duplicate Detection

Run the duplicate detector before proceeding:

const { checkDuplicate } = require('.claude/lib/creation/duplicate-detector.cjs');
const result = checkDuplicate({
  artifactType: 'skill',
  name: proposedName,
  description: proposedDescription,
  keywords: proposedKeywords || [],
});

Handle results exactly as before:

Step 0.5: Companion Check

Run the companion check before creation:

  1. Load .claude/lib/creators/companion-check.cjs.
  2. Call checkCompanions("skill", "{skill-name}").
  3. Record required and recommended companion artifacts.
  4. Capture any skipped companions in the post-creation notes.

If the skill provides behavioral guidance that should persist outside explicit invocation, confirm whether it also needs .claude/rules/<skill-name>.md.

Step 1: Choose the Correct Action

Pick the narrowest action that matches the request:

Step 2: Run the Research Gate Before Finalizing Content

Complete the preserved research workflow in research gate details before you finalize the skill body. That reference keeps the original VoltAgent, Exa, arXiv, typed-artifact-search, evidence-quality, and external-content safety material.

Step 3: Run the Canonical Create Script

For a brand-new skill, start with the managed scaffold:

node .claude/skills/skill-creator/scripts/create.cjs --name <skill-name> --description "<summary>"

Use the template below as the contract that the generated SKILL.md must satisfy. The detailed format notes, action examples, and layout guidance remain preserved in enterprise bundle details.

Step 4: Review the Requested Scaffold

The enterprise bundle is now opt-in. Start from the minimal scaffold by default, and only add enterprise files when the request explicitly asks for --enterprise or the capability truly needs them. At minimum, decide whether the skill needs:

The original bundle breakdown and acceptance checklist are preserved in enterprise bundle details.

Step 5: Validate and Integrate

Before completion:

  1. Run the post-creation checklist below.
  2. Run node .claude/tools/cli/validate-integration.cjs .claude/skills/<skill-name>/SKILL.md.
  3. Regenerate the skill index if the artifact is new or materially changed.
  4. Re-run any targeted validators needed for the touched surface.
  5. If the new skill reveals companion artifact work for another creator, record it as a Follow-Up item instead of invoking another creator inline from this flow.

Router Gap Detection

After scaffolding or updating a skill, verify the routing layer can still discover it. Treat any no matching agent/skill result as a routing gap that must be resolved before handoff.

Template Reference

Use this baseline structure in SKILL.md:

---
name: skill-name
description: What the skill does
version: 1.0.0
model: sonnet
invoked_by: user | agent | both
user_invocable: true | false
tools: [Read, Write, Bash]
args: "<required> [optional]"
agents: [developer, qa]
category: "Validation & Quality"
tags: [testing, validation]
frontmatter:
  triggers:
    - <pattern or trigger phrase that should invoke this skill>
  token_budget: 10000  # estimated token cost for invoking this skill
  # output_schema_ref: (set if a skill-*-output.schema.json exists for this skill)
  # requires_skills: []  # list dependent skill names here
---

# Skill Name

## Purpose
What this skill accomplishes.

## Usage
How the skill is invoked and applied.

## Examples
Concrete invocation or workflow examples.

Required frontmatter fields that must stay explicit: name, description, version, agents, category, tags, tools, invoked_by, and user_invocable.

v3.1.0 Schema Addition: `frontmatter` block

The frontmatter object is an optional, machine-parseable metadata block introduced in v3.1.0. Agents can inspect it without parsing full prose. The create action emits it by default in all new SKILL.md files.

| Field | Type | Required | Purpose |

| ------------------- | ---------- | -------- | ----------------------------------------------------------------------- |

| triggers | string[] | No | Patterns that should cause the skill to be invoked |

| token_budget | integer | No | Estimated token cost (min 1000); used by planner for budgeting |

| output_schema_ref | string | No | Path to the skill's output schema (e.g. skill-foo-output.schema.json) |

| requires_skills | string[] | No | Names of skills this skill depends on (resolved by skill index) |

All frontmatter fields are optional. Existing SKILL.md files without the frontmatter block remain valid — the schema uses additionalProperties: true at the root level, and the frontmatter property is not in required. Do NOT add frontmatter to existing skills during unrelated updates; add it only when the skill is being intentionally refreshed or verified.

Post-Creation Checklist

Ecosystem Alignment Contract (MANDATORY)

This creator skill must keep every new or updated skill aligned with the broader creator ecosystem:

Cross-Creator Handshake (Required)

Before handoff, verify the related ecosystem updates:

  1. Routing and discovery metadata were updated where required.
  2. Companion agents, hooks, tools, templates, rules, or workflows were created or explicitly waived.
  3. validate-integration.cjs passes for the skill artifact.
  4. Skill indexes and registries were regenerated when metadata changed.
  5. Any unresolved ecosystem gaps were recorded as follow-up work.

Research Gate (Exa + arXiv — BOTH MANDATORY)

For new skill patterns, packaging approaches, or AI-adjacent methodologies:

  1. Use Exa to review current ecosystem patterns and implementation examples.
  2. Search arXiv when the topic touches AI agents, evaluation, orchestration, memory/RAG, security, or other emerging methods.
  3. Record the decisions, constraints, and non-goals that shaped the skill contract.
  4. Prefer the smallest validated change that satisfies the request.

Regression-Safe Delivery

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.