Delegate independent tasks to specialized agents working concurrently with isolated context.
Export Skills to Agent Skills Standard
export-skills
Export SpecWeave skills to Agent Skills open standard format (agentskills.io) for cross-platform portability. Use when converting skills to GitHub Copilot, VS Code, Gemini CLI, or Cursor format. Creates portable SKILL.md files compatible with any Agent Skills-supported tool.
SKILL.md
Full skill instructions
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
| Option | Description |
|---|---|
--output <dir> | Output directory (default: .agent-skills/) |
--plugin <name> | Export specific plugin (default: all) |
--skill <name> | Export specific skill (default: all) |
--dry-run | Preview without writing files |
--validate | Validate 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 Field | Agent Skills Field | Notes |
|---|---|---|
name | name | Direct mapping |
description | description | Direct mapping (max 1024 chars) |
allowed-tools | allowed-tools | Convert comma to space-delimited |
| N/A | license | Add Apache-2.0 by default |
| N/A | compatibility | Add "Designed for Claude Code" |
| N/A | metadata.author | Use plugin manifest author |
| N/A | metadata.source | Add "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:
- Parse YAML frontmatter
- Extract description (truncate to 1024 chars if needed)
- Convert
allowed-toolsfrom comma to space-delimited - Generate Agent Skills-compliant frontmatter
- Preserve markdown body content
Step 3: Validate Output
Each exported skill must:
- Have
namematching directory name - Have
descriptionbetween 1-1024 characters - Have
nameusing onlya-zand- - 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:
- Commit to repo: Skills can be discovered from any subdirectory
- Push to GitHub: Enable Copilot skill discovery
- 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)
Project-Specific Learnings
Before starting work, check for project-specific learnings:
# Check if skill memory exists for this skill
cat .specweave/skill-memories/export-skills.md 2>/dev/null || echo "No project learnings yet"
Project learnings are automatically captured by the reflection system when corrections or patterns are identified during development. These learnings help you understand project-specific conventions and past decisions.
More Other skills
brand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.
internal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).
Fundamental design principles for writing maintainable, testable Python code.
responsive-design
Modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first strategies.
Generate Playwright tests from scenarios using interactive browser exploration and validation.
Automated website exploration and test case generation using Playwright.
Modern React state management with Redux Toolkit, Zustand, Jotai, and React Query for every state category.
gdpr-data-handling
GDPR-compliant data handling with consent management, data subject rights, and privacy controls.
Python error handling patterns including input validation, exception hierarchies, and partial failure handling. Use when implementing validation logic, designing exception strategies, handling batch processing failures, or building robust APIs.
refactor-plan
Detailed multi-file refactor planning with safety checks and rollback guidance.
