Back to list
anton-abyzov

export-skills

by anton-abyzov

Autonomous AI Development Framework. Build production software with specs, tests, and docs that write themselves. Works with Claude, Cursor, Copilot.

23🍴 3📅 Jan 24, 2026

SKILL.md


name: export-skills description: Export SpecWeave skills to Agent Skills open standard format (agentskills.io). Converts Claude Code plugin skills to portable SKILL.md files compatible with GitHub Copilot, VS Code, Gemini CLI, Cursor, and other Agent Skills-compatible tools. Activates for export skills, agent skills, github skills, skills.md, agentskills, portable skills, convert skills, skill export, cross-platform skills. visibility: public allowed-tools: Read, Write, Glob, Bash

Export Skills to Agent Skills Standard

Overview

Export SpecWeave skills to the Agent Skills open standard format. This enables skill portability across:

  • GitHub Copilot (VS Code integration)
  • Gemini CLI
  • Cursor
  • Claude Code
  • Other Agent Skills-compatible tools

Usage

/sw:export-skills [options]

Options

OptionDescription
--output <dir>Output directory (default: .agent-skills/)
--plugin <name>Export specific plugin (default: all)
--skill <name>Export specific skill (default: all)
--dry-runPreview without writing files
--validateValidate output against Agent Skills spec

Output Structure

.agent-skills/
├── architect/
│   └── SKILL.md
├── security/
│   └── SKILL.md
├── qa-lead/
│   └── SKILL.md
└── pm/
    └── SKILL.md

Field Mapping

SpecWeave FieldAgent Skills FieldNotes
namenameDirect mapping
descriptiondescriptionDirect mapping (max 1024 chars)
allowed-toolsallowed-toolsConvert comma to space-delimited
N/AlicenseAdd Apache-2.0 by default
N/AcompatibilityAdd "Designed for Claude Code"
N/Ametadata.authorUse plugin manifest author
N/Ametadata.sourceAdd "SpecWeave"
visibility(not mapped)Agent Skills uses file placement
invocableBy(not mapped)Agent Skills discovery is implicit

Execution Steps

Step 1: Discover Skills

# Find all SKILL.md files in plugins
find plugins -name "SKILL.md" -type f

Step 2: Convert Each Skill

For each SKILL.md:

  1. Parse YAML frontmatter
  2. Extract description (truncate to 1024 chars if needed)
  3. Convert allowed-tools from comma to space-delimited
  4. Generate Agent Skills-compliant frontmatter
  5. Preserve markdown body content

Step 3: Validate Output

Each exported skill must:

  • Have name matching directory name
  • Have description between 1-1024 characters
  • Have name using only a-z and -
  • Not have -- in name
  • Not start/end with -

Step 4: Write Files

Write to output directory with structure:

{output}/{skill-name}/SKILL.md

Conversion Script

interface SpecWeaveSkill {
  name: string;
  description: string;
  'allowed-tools'?: string;
  visibility?: string;
  invocableBy?: string[];
  context?: string;
  model?: string;
}

interface AgentSkill {
  name: string;
  description: string;
  license?: string;
  compatibility?: string;
  metadata?: Record<string, string>;
  'allowed-tools'?: string;
}

function convertSkill(specweave: SpecWeaveSkill, pluginName: string): AgentSkill {
  return {
    name: specweave.name,
    description: specweave.description.slice(0, 1024),
    license: 'Apache-2.0',
    compatibility: 'Designed for Claude Code (or similar products)',
    metadata: {
      author: 'specweave',
      source: 'SpecWeave',
      plugin: pluginName
    },
    'allowed-tools': specweave['allowed-tools']?.replace(/,\s*/g, ' ')
  };
}

Example Output

Input (plugins/specweave/skills/architect/SKILL.md):

---
name: architect
description: System Architect expert...
allowed-tools: Read, Write, Edit
context: fork
model: opus
---

Output (.agent-skills/architect/SKILL.md):

---
name: architect
description: System Architect expert...
license: Apache-2.0
compatibility: Designed for Claude Code (or similar products)
metadata:
  author: specweave
  source: SpecWeave
  plugin: sw
allowed-tools: Read Write Edit
---

Post-Export Actions

After exporting:

  1. Commit to repo: Skills can be discovered from any subdirectory
  2. Push to GitHub: Enable Copilot skill discovery
  3. Publish: Consider publishing to skill registries

Limitations

  • SpecWeave-specific fields (context, model, invocableBy) are not exported
  • Progressive disclosure phases (sub-files) are not included
  • Skill memory files are not exported (they're runtime state)

Score

Total Score

75/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon