Skill forge

From Tibsfox/gsd-skill-creator · View interactive version

Skill forge is an AI agent skill from the GitHub repository Tibsfox/gsd-skill-creator. Use when the user asks to forge, scaffold, author, or ship a new skill or agent — the skill-creator's own namesake artifacts. Drives the skill-forge loop (create → fill → validate → critique → ship → publish) via the skill-creator CLI.

How to use this skill

Skill file

Skill Forge

Forge a new skill or agent end-to-end using the skill-creator

CLI. The forge is the toolchain that scaffolds, validates, and

ships skills and agents; this skill is the playbook that drives it.

When to invoke

Trigger on any of:

Do not trigger for:

skill-creator refine <name> (corrections, not a new artifact).

(suggest-first, reversible).

that is the cartridge-forge skill.

Prerequisites

  1. docs/SKILL-FORMAT.md is the normative frontmatter/format

reference; docs/skill-authoring/skill-md-quality-checks.md

lists the hard defects the gate rejects; docs/authoring-tools.md

maps the CLI surface. Read them once per session if the context

is not already loaded.

  1. Pick the slug (kebab-case, matches the skill name:). Keep it

specific — the description and triggers must not collide with an

existing skill's activation.

  1. Decide skill vs agent. A skill is auto-loading guidance

(a SKILL.md); an agent is a delegated subagent with its own

tool set (an agents/<name>.md). Author the one the task needs.

The Forge Loop

create → fill → validate → critique → ship → publish

Every step is idempotent. skill ship is the gate — if it exits

non-zero, the skill is not ready to publish.

1. Create

skill-creator create

The wizard scaffolds a spec-valid SKILL.md: repo-canonical

frontmatter (version / format / status: ACTIVE) plus a body

seeded from a template preset (workflow-guide / reference /

checklist) rather than a blank prompt. It prints a

Next: validate → critique → ship footer.

For an agent instead of a skill:

skill-creator agents create --name=<slug> --description="…"

(or run it interactively). It delegates to the AgentGenerator and

writes a spec-valid agent .md with comma-separated tools.

2. Fill

Replace the template body with real guidance. A well-formed skill

body typically wants:

explicit do-not list (the highest-signal way to keep two

on-demand skills from co-activating).

Keep the frontmatter description and triggers distinct: a

trigger that is a verbatim-truncated copy of the description is a

hard defect (see step 3).

3. Validate

skill-creator validate <name>

Runs the skill-content gate: it blocks on structural threats

(unsafe YAML, path traversal, schema violation, secret in

frontmatter) and sanitizes-and-warns on in-body issues. A clean

exit is required.

4. Critique

skill-creator critique <name>

Surfaces quality issues (thin triggers, missing sections, vague

description) that validate does not hard-block. Address the

findings before shipping.

5. Ship

skill-creator skill ship <name>

Runs the ship pipeline in order — **validate → critique →

test-triggering** — with a per-gate verdict. Exit code 0 means

<name> is ship-ready. This is the equivalent of cartridge-forge's

eval gate: do not report "done" before it is green. Use --mock

to dry-run the pipeline.

For an agent, the parallel gate is:

skill-creator agents validate

which now exits non-zero on spec defects.

6. Publish

skill-creator publish <name>

Promotes the ship-ready skill. Only run after skill ship is green.

Rules

  1. Never hand-edit a skill under .claude/skills/. That tree is

gitignored and self-mod-guarded; the tracked source is

project-claude/skills/. Author there and let

node project-claude/install.cjs deploy it.

  1. Never skip skill ship. It is the publish gate.
  2. A correction is not a new skill. Route "the skill got X

wrong" to skill-creator refine, not a fresh create.

  1. Keep triggers distinct from the description and from other

skills' triggers — co-activation is a real cost on every session.

  1. Commit the SOURCE only (project-claude/…), never

.claude/… — the git-add-blocker enforces this.

Reference walkthrough

A well-formed recent skill to model:

project-claude/skills/skill-frontmatter-doctor/SKILL.md — a

single-file, on-demand skill with a tight description, distinct

triggers, and a clear defect-detection procedure.

Output contract

After the loop completes, report to the user:

Do not report "done" before skill ship (or agents validate) has

been run and shown green.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.