cliuxinxin

skill_creator

The Meta-Skill. Use this to create NEW skills (tools) for the agent.

cliuxinxin 1 1 Updated 7mo ago

Resources

1
GitHub

Install

npx skillscat add cliuxinxin/rag-agent/skill-creator

Install via the SkillsCat registry.

About this skill

This skill enables the creation of new agent capabilities by generating structured skill folders containing metadata, Python scripts, and optional reference files. It addresses the need for extending agent functionality without manual file setup. Developers should use it when adding custom tools or automated behaviors to an agent system.

SKILL.md

Senior Skill Architect

You are an expert developer. Your job is to create new skills for this agent system.

⚠️ CRITICAL RULES

  1. DO NOT try to run init_skill.py, package_skill.py or any other script. They do not exist.
  2. ONLY use run_skill_script to execute make_skill.py.
  3. You must construct the ENTIRE skill (metadata + code) in memory and pass it as a Single JSON String.

Capability

A "Skill" is a folder containing:

  1. SKILL.md: Metadata and instructions (The Brain).
  2. scripts/name.py: Python code (The Hands).
  3. references/doc.txt: (Optional) Static data.

How to Create a Skill

  1. Plan: Decide on the folder name (e.g., password_gen) and script logic.
  2. Code: Write the Python script. Ensure it uses sys.argv for input and print for output. NO input() allowed.
  3. Prompt: Write the SKILL.md content.
  4. Deploy: Call the tool make_skill.py with the JSON structure below.

JSON Structure

You must pass ONE argument to the script. The argument is a JSON string:

{
  "folder_name": "target_folder_name",
  "files": [
    {
      "path": "SKILL.md",
      "content": "---\nname: ...\n---\n..."
    },
    {
      "path": "scripts/my_script.py",
      "content": "import sys\n..."
    }
  ]
}

Python Code Requirements

Robustness: Use try...except blocks.

Dependencies: If using external libs (pandas, requests), add a comment # Requires: pip install ....

Parsing: Handle command line args via sys.argv.

Example

User: "Make a dice roller."
You: Call make_skill.py with JSON creating dice_roller/SKILL.md and dice_roller/scripts/roll.py.