# Skill Builder

> Create new Claude Code skills with best practices. Use when user wants to create, extract, or build a new skill. Provides templates and GitHub automation. Trigger phrases include "create a skill", "build a skill", "extract a skill", "new skill", "/skill-builder".

- **Type:** Skill
- **Install:** `agentstack add skill-wrsmith108-skill-builder-claude-skill-skill-builder`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [wrsmith108](https://agentstack.voostack.com/s/wrsmith108)
- **Installs:** 0
- **Category:** [Developer Tools](https://agentstack.voostack.com/c/developer-tools)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [wrsmith108](https://github.com/wrsmith108)
- **Source:** https://github.com/wrsmith108/skill-builder-claude-skill/tree/main/skills/skill-builder

## Install

```sh
agentstack add skill-wrsmith108-skill-builder-claude-skill-skill-builder
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Skill Builder

Create Claude Code skills following proven patterns from mature skills (Linear, Governance).

> **Templates**: [templates/](../../templates/)
> **Best Practices**: [BEST-PRACTICES.md](../../BEST-PRACTICES.md)
> **GitHub Automation**: [scripts/create-repo.mjs](scripts/create-repo.mjs)

---

## Quick Start

When user asks to create a skill:

### 1. Gather Basic Info

Ask the user:
- **Skill name**: Short, descriptive (e.g., "governance", "linear", "docker")
- **Description**: One sentence explaining when to use it
- **Trigger phrases**: What should activate this skill?
- **Problem it solves**: What does the user gain?

### 2. Provide Templates

Copy and customize these templates:

```bash
# Copy all templates to working directory
cp -r templates/* /path/to/new-skill/
```

### 3. Customize Files

Guide user through customizing:
1. `skills//SKILL.md` — Core skill definition
2. `CHANGELOG.md` — Version history
3. `README.md` — Installation and usage
4. `package.json` — Plugin metadata and topics

### 4. Publish to GitHub

Run the automation script:

```bash
node skills/skill-builder/scripts/create-repo.mjs \
  --name "-claude-skill" \
  --description "Claude Code skill for " \
  --topics "claude,claude-code,claude-plugin,"
```

---

## Template-First Workflow

### Step 1: Create Directory Structure

```bash
mkdir -p -claude-skill/skills//scripts
mkdir -p -claude-skill/.claude-plugin
mkdir -p -claude-skill/templates  # Optional
```

### Step 2: Copy Core Templates

| Template | Copy to | Purpose | Customize |
|----------|---------|---------|-----------|
| `SKILL-template.md` | `skills//SKILL.md` | Core skill definition | Name, description, triggers, content |
| `CHANGELOG-template.md` | `CHANGELOG.md` | Version history | Add initial features, lessons learned |
| `README-template.md` | `README.md` | User documentation | Installation, usage, examples |
| `package-template.json` | `package.json` | npm metadata | Name (kebab-case), topics |
| `plugin-template.json` | `.claude-plugin/plugin.json` | Plugin manifest (source of truth) | Name (**kebab-case**), description, version |
| `marketplace-template.json` | `.claude-plugin/marketplace.json` | Marketplace manifest (enables install) | Marketplace name, plugin name (**kebab-case**) |
| `setup-template.mjs` | `skills//scripts/setup.mjs` | Optional setup-verification script | Add checks for your skill's prerequisites |

### Step 3: Fill In Placeholders

All templates use these placeholders:

| Placeholder | Replace With | Example |
|-------------|--------------|---------|
| `{{SKILL_NAME}}` | Skill name (lowercase) | `governance` |
| `{{SKILL_TITLE}}` | Skill title (Title Case) | `Governance` |
| `{{DESCRIPTION}}` | One-sentence description | `Engineering standards enforcement` |
| `{{TRIGGER_PHRASES}}` | Comma-separated triggers | `"code review", "commit", "standards"` |
| `{{TOPICS}}` | GitHub topics | `governance,code-quality,standards` |
| `{{AUTHOR}}` | GitHub username | `wrsmith108` |
| `{{DATE}}` | Today's date | `2025-12-27` |

---

## Curated Best Practices

### From Linear Skill (Most Mature)

| Pattern | Why It Works |
|---------|--------------|
| **CHANGELOG with "Lesson Learned"** | Captures *why* changes were made, not just *what* |
| **Quick Start at top** | Gets new users productive immediately |
| **`allowed-tools` frontmatter** | Explicit tool dependencies |
| **MCP Reliability Matrix** | Shows which tools work reliably |
| **Anti-pattern tables** | Shows what NOT to do alongside correct patterns |
| **Setup verification script** | Immediate feedback on configuration |
| **Helper scripts** | Encapsulate complex operations |

### From Governance Skill

| Pattern | Why It Works |
|---------|--------------|
| **Two-document model** | Separates operational (CLAUDE.md) from policy (standards.md) |
| **Pre-commit/PR checklists** | Actionable reminders at key moments |
| **Section references (§1.3)** | Precise cross-referencing |
| **Compliance audit script** | Automated enforcement |

### Universal Patterns

| Pattern | Implementation |
|---------|---------------|
| **Explicit triggers** | List all phrases in description frontmatter |
| **No project-specific references** | Use generic examples, placeholders |
| **Templates over hardcoding** | Configurable via CONFIG object or placeholders |
| **Version with semver** | CHANGELOG follows Keep a Changelog format |
| **MIT license** | Standard for Claude Code skills |

---

## SKILL.md Structure

Every SKILL.md should have:

```markdown
---
name: 
description: 
allowed-tools:
  - 
  - 
---

# 

One-line description.

> **Key Reference**: [link](path)

---

## Quick Start (First-Time Users)

1. Verify setup
2. Common operations
3. Getting help

---

## When This Skill Activates

### Trigger 1
What happens, what to check

### Trigger 2
What happens, what to check

---

## Core Patterns

Tables, examples, code blocks

---

## Anti-Patterns vs Correct Patterns

| Anti-Pattern | Correct Pattern | Why |
|--------------|-----------------|-----|
| ❌ Bad thing | ✅ Good thing | Reason |

---

## [Domain-Specific Sections]

...

---

## Related Documents

- [Link 1](path)
- [Link 2](path)

---

*Last updated: *
```

---

## package.json Structure

`package.json` is for npm metadata only. **Do not** put a `claude-plugin` block here — the
Claude Code plugin manifest lives in `.claude-plugin/plugin.json` (see below), which is the
single source of truth.

```json
{
  "name": "claude-plugin-",
  "version": "1.0.0",
  "description": "",
  "keywords": [
    "claude",
    "claude-code",
    "claude-plugin",
    "",
    ""
  ],
  "author": "",
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "https://github.com//-claude-skill.git"
  },
  "files": ["skills", "templates", "README.md", "LICENSE"]
}
```

---

## Plugin & Marketplace Manifests (`.claude-plugin/`)

For the skill to be installable via `claude plugin install`, the repo needs **two** manifests.
Copy `plugin-template.json` and `marketplace-template.json` into `.claude-plugin/`.

**CRITICAL:** plugin and marketplace `name` fields must be **kebab-case with no spaces**
(use ``, never the Title-Case ``). A space here means
`/` will not invoke the skill.

`.claude-plugin/plugin.json`:

```json
{
  "name": "",
  "description": "",
  "version": "1.0.0",
  "author": { "name": "", "url": "https://github.com/" },
  "license": "MIT"
}
```

`.claude-plugin/marketplace.json` (skills auto-discover from `skills/` under `source`):

```json
{
  "name": "-skills",
  "owner": { "name": "" },
  "plugins": [
    {
      "name": "",
      "source": ".",
      "description": ""
    }
  ]
}
```

Users then install with:

```bash
claude plugin marketplace add /-claude-skill
claude plugin install @-skills
```

---

## GitHub Topics for Discoverability

### Required Topics (all skills)
- `claude`
- `claude-code`
- `claude-plugin`

### Domain Topics (choose relevant)
- `governance`, `code-quality`, `standards`
- `project-management`, `issue-tracking`
- `testing`, `automation`
- `security`, `authentication`
- `database`, `api`
- `documentation`, `developer-tools`

---

## Publishing Checklist

Before publishing:

- [ ] SKILL.md has frontmatter (name, description, allowed-tools)
- [ ] SKILL.md has Quick Start section
- [ ] All placeholders replaced (no `{{...}}` remaining)
- [ ] No project-specific references (generic examples only)
- [ ] CHANGELOG.md has initial release with "Lesson Learned"
- [ ] README.md has installation instructions (the `claude plugin marketplace add` + `install` flow)
- [ ] `.claude-plugin/plugin.json` exists with a **kebab-case** `name` (no spaces)
- [ ] `.claude-plugin/marketplace.json` exists so the plugin is installable
- [ ] LICENSE file exists (MIT)
- [ ] Topics include `claude`, `claude-code`, `claude-plugin`

---

## Example: Creating a "Docker" Skill

```bash
# 1. Create structure
mkdir -p docker-claude-skill/skills/docker/scripts

# 2. Copy templates
cp templates/* docker-claude-skill/

# 3. Customize (example)
# - Replace {{SKILL_NAME}} with "docker"
# - Replace {{SKILL_TITLE}} with "Docker"
# - Add docker-specific patterns to SKILL.md

# 4. Publish
node skills/skill-builder/scripts/create-repo.mjs \
  --name "docker-claude-skill" \
  --description "Claude Code skill for Docker container development" \
  --topics "claude,claude-code,claude-plugin,docker,containers,devops"
```

---

## Related Skills

- **Linear Skill** — Example of MCP integration, SDK automation
- **Governance Skill** — Example of documentation patterns, audit scripts
- **Varlock Skill** — Example of security-focused skill

---

*Last updated: December 2025*
*Meta-skill for building Claude Code skills*

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [wrsmith108](https://github.com/wrsmith108)
- **Source:** [wrsmith108/skill-builder-claude-skill](https://github.com/wrsmith108/skill-builder-claude-skill)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-wrsmith108-skill-builder-claude-skill-skill-builder
- Seller: https://agentstack.voostack.com/s/wrsmith108
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
