Skip to content
create-agent-sop logo

Create Agent SOP

create-agent-sop

Create agent-ready Standard Operating Procedure (SOP) skills that autonomous agents can execute deterministically. Use when creating workflow skills, procedural skills, or any skill that needs to be unambiguous, idempotent, robust, and observable. Triggers on "create SOP", "new workflow skill", "...

SKILL.md

Full skill instructions

Create Agent SOP

Meta-skill for generating SOP skills that autonomous agents can execute without human intervention.

When to Use

  • Creating workflow skills (e.g., feature-development-loop, weekly-review)
  • Procedural skills with clear start/​end states
  • Skills requiring deterministic, repeatable execution

Process

1. Gather Requirements

Ask user for:

  • Workflow name (hyphen-case, e.g., feature-development-loop)
  • Trigger phrases (when should this SOP activate?)
  • Steps (what are the major phases?)
  • Success criteria (how do we know it's done?)

2. Initialize Skill

pnpm exec tsx .claude/​skills/​create-agent-sop/​scripts/​init_sop_skill.ts <name> --path .claude/​skills

3. Write SKILL.md

Follow the template in references/​sop-template.md. Key sections:

---
name: <skill-name>
description: <what + when to use>
---

# <Skill Name>

## Prerequisites
[Tools, permissions, state requirements]

## Input Schema
[Typed parameters with defaults]

## Procedure
[Numbered steps with @command tags]

## Success Criteria
[Verification checks]

## Error Recovery
[Fallback paths]

4. Add Tools (Optional)

Before adding scripts, evaluate if the functionality should be a CLI tool instead:

Consider CLI Tool WhenUse Script When
Multiple clients could use itSkill-specific logic only
Reusable across skillsSimple validation/​checks
Complex logic worth maintainingGlue code between tools
Would simplify the script significantlyOne-off operations

CLI tools go in packages/​cli/ and are invoked via sp or tool-specific commands. Skills can then call these tools, keeping scripts minimal.

Scripts go in scripts/ for skill-specific operations:

scripts/​validate.sh      # Prerequisite checks
scripts/​check-state.ts   # Skill-specific state validation

5. Validate

Run the validation script to check against the 10 SOP characteristics:

pnpm exec tsx .claude/​skills/​create-agent-sop/​scripts/​validate_sop_skill.ts <skill-path>

Output shows pass/​fail for each characteristic. See references/​sop-characteristics.md for details.

6. Package

Create a distributable .skill file:

pnpm exec tsx .claude/​skills/​create-agent-sop/​scripts/​package_sop_skill.ts <skill-path> [output-dir]

Validates first, then creates <skill-name>.skill (zip format).

References

  • references/​sop-characteristics.md - The 10 characteristics explained
  • references/​sop-template.md - SKILL.md template for SOPs

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View