From 66cb3e5a9310f07f53c2b5ff0edcc774b434325f Mon Sep 17 00:00:00 2001 From: Jiang Bohan Date: Fri, 30 Jan 2026 17:39:52 +0800 Subject: [PATCH] refactor(skill-creator): use direct bash commands instead of Python script Simplify skill creation by using mkdir + cat instead of init_skill.py to avoid path resolution issues between bundled and managed directories --- skills/skill-creator/SKILL.md | 66 ++++++++++++++++++++++------------- 1 file changed, 42 insertions(+), 24 deletions(-) diff --git a/skills/skill-creator/SKILL.md b/skills/skill-creator/SKILL.md index 6afbbf70..c596b274 100644 --- a/skills/skill-creator/SKILL.md +++ b/skills/skill-creator/SKILL.md @@ -33,39 +33,57 @@ Before creating, clarify: ### Step 2: Initialize the Skill -**CRITICAL: Always use the init_skill.py script to create skills.** This ensures the skill is created in the correct location (`~/.super-multica/skills/`). +**CRITICAL: Always create skills in `~/.super-multica/skills/`, NOT in the current working directory.** + +Create the skill directory and files: ```bash -# Basic usage -python3 ~/.super-multica/skills/skill-creator/scripts/init_skill.py +# 1. Create the skill directory +mkdir -p ~/.super-multica/skills/ -# With description and resources -python3 ~/.super-multica/skills/skill-creator/scripts/init_skill.py my-skill \ - --description "What this skill does" \ - --resources scripts +# 2. Create SKILL.md with proper structure +cat > ~/.super-multica/skills//SKILL.md << 'EOF' +--- +name: +description: +version: 1.0.0 +metadata: + emoji: "🔧" + tags: + - custom +--- + +## Instructions + + +EOF + +# 3. (Optional) Create scripts directory if needed +mkdir -p ~/.super-multica/skills//scripts ``` -**Script options:** -- `--description, -d` - Skill description -- `--emoji, -e` - Emoji for display (default: 🔧) -- `--tag, -t` - Primary tag (default: custom) -- `--resources, -r` - Create directories: `scripts`, `references`, or both - -**Examples:** +**Example - Creating a translator skill:** ```bash -# Simple skill -python3 scripts/init_skill.py translator -d "Translate text between languages" +mkdir -p ~/.super-multica/skills/translator -# Skill with helper script -python3 scripts/init_skill.py pdf-rotator -d "Rotate PDF pages" -r scripts +cat > ~/.super-multica/skills/translator/SKILL.md << 'EOF' +--- +name: Translator +description: Translate text between languages. Use when user asks to translate text. +version: 1.0.0 +metadata: + emoji: "🌐" + tags: + - language +--- -# Skill with references -python3 scripts/init_skill.py api-helper -d "Help with API calls" -r scripts,references -``` +## Instructions -The script path when running from the skill-creator directory: -```bash -python3 ~/.super-multica/skills/skill-creator/scripts/init_skill.py +When asked to translate text: +1. Identify source and target languages +2. Provide accurate, natural translations +3. For ambiguous terms, offer alternatives +EOF ``` ### Step 3: Edit the Skill