All skills
sanyuan0704 avatar

/skill-forge

@ae75e91
by Shawn Yangsanyuan0704/sanyuan-skills3.9k stars
344

Create high-quality, production-grade skills for Claude Code. Expert guidance on skill architecture, workflow design, prompt engineering, and packaging. Use when user wants to create a new skill, build a skill, design a skill, write a skill, update an existing skill, improve a skill, refactor a skill, debug a skill, or package a skill. Triggers: 'create skill', 'build skill', 'new skill', 'skill creation', 'write a skill', 'make a skill', 'design a skill', 'improve skill', 'package skill', 'skill development', 'skill template', 'skill best practices', 'write SKILL.md'.

Use this Skill: https://skilld.dev/gh/sanyuan0704/sanyuan-skills/skill-forge

This session only. Nothing lands on disk.

referencesparameter-system.md

≈753 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Parameter System

The $ARGUMENTS Variable

Skills receive user input through the $ARGUMENTS variable. This includes everything the user types after the skill invocation.

Example: /my-skill article.md --style dark --quick → $ARGUMENTS = article.md --style dark --quick

Designing Parameters

Basic Structure

Document parameters as a table in SKILL.md:

## Options

| Option | Description | Default |
|--------|-------------|---------|
| `<content>` | Input file or text | Required |
| `--style <name>` | Visual style | auto |
| `--quick` | Skip confirmation gates | false |
| `--lang <code>` | Output language | en |

Parameter Types

  1. Positional: <content> — the main input
  2. Named flags: --style dark — configuration with a value
  3. Boolean flags: --quick — toggle behavior (no value)
  4. Partial execution: --outline-only, --images-only — run only part of the workflow
  5. Selective redo: --regenerate 3 — redo a specific item without rerunning everything

Argument Hint

Add argument-hint to frontmatter so users see parameter suggestions when typing /:

argument-hint: [content] [--style name] [--quick] [--lang code]

Advanced Patterns

Partial Execution

Let users run only part of the workflow instead of start-to-finish:

/slide-deck content.md --outline-only     # Only generate outline
/slide-deck content.md --prompts-only     # Only generate image prompts
/slide-deck slide-deck/topic/ --images-only  # Only generate images

In SKILL.md, check the flag and skip to the relevant step:

## Step 1: Parse Arguments

$ARGUMENTS

If `--outline-only`: Execute Steps 1-3 only, then output.
If `--images-only`: Skip to Step 7, load existing prompts.
If `--regenerate N`: Skip to Step 7, regenerate only slide N.
Otherwise: Execute full workflow.

Independent Dimensions

Design parameters to be independently combinable — any combination is valid:

/cover-image article.md --type conceptual --palette warm --rendering flat-vector
/cover-image article.md --quick                # Skip confirmation, full auto
/cover-image article.md --ref style-ref.png    # Use reference image

Each dimension (type, palette, rendering) is independent. The user can set any, all, or none.

Quick Mode

A --quick flag that skips confirmation gates is a common and useful pattern:

## Step 2: Confirm Options ⚠️ REQUIRED

Unless `--quick` was passed:
- Present options to user
- Wait for confirmation

If `--quick`: Use auto-selected defaults and proceed.

This lets power users skip the interactive flow while keeping it safe by default.

Default Values

Always define sensible defaults for every parameter:

## Defaults

- `--style`: auto-detected from content
- `--lang`: same as input content
- `--slides`: 8-12 based on content length

This way, /my-skill content.md with zero flags still produces good output.

Source: SKILL.md on GitHub

No alerts16d5 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    The skill is completely safe to use. It contains purely educational material, templates, and basic Python utility scripts designed to assist developers in writing high-quality Claude Code skills following best practices.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

  • Runlayer7mo

    11 files scanned · No issues

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at ae75e91. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 7 months ago

README badge

README badge for sanyuan0704/sanyuan-skills/skill-forge