plugins/ai-registry/skills/writing-workflow-sops/SKILL.md
Write Standard Operating Procedure documentation for workflows and save as markdown files. Selects full or lightweight SOP template based on autonomy level (deterministic vs. guided/autonomous), then adapts for workflow type (Manual, Augmented, Automated). Use when the user asks to write an SOP, document a workflow, create procedure documentation, or capture how a workflow is executed. Triggers on "write an SOP", "document this workflow", "create operating instructions", "how is this workflow executed".
npx skillsauth add jamesgray-ai/handsonai writing-workflow-sopsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Write SOP documentation for workflows and save as markdown files, with optional linking to a workflow tracker (Notion, Airtable, etc.).
Every workflow has two independent characteristics that determine how its SOP should be written:
| Type | Definition | |------|-----------| | Manual | Human does all steps | | Augmented | Human + AI collaborate | | Automated | System does all steps, human monitors |
The Business-First AI Framework defines a single autonomy spectrum used at both the per-step and whole-workflow level:
Deterministic ———————— Guided ———————— Autonomous
(fixed path) (bounded decisions) (context-driven path)
For SOP template selection, the spectrum maps to a binary choice:
| Autonomy Level | SOP Weight | |---------------|------------| | Deterministic | Full SOP — documents every step, branch, and decision point | | Guided or Autonomous | Lightweight SOP — documents how to invoke, human checkpoints, inputs/outputs |
The key test: Can the executor change its path at runtime based on what it encounters? If yes (guided or autonomous) → lightweight SOP. If no (deterministic) → full SOP.
An agent can orchestrate at any autonomy level. An agent that runs a fixed script (step 1 → step 2 → step 3, no branching) is still deterministic and gets a full SOP. An agent that backtracks, re-invokes skills based on feedback, or adapts its sequence is guided or autonomous and gets a lightweight SOP.
| | Deterministic | Guided / Autonomous | |---|---|---| | Manual | Invoicing — same steps every time | — | | Augmented | Launch email sequence — fixed skill order, human reviews each | Course concept development — agent backtracks and re-invokes skills based on instructor feedback (autonomous) | | Automated | Student enrollment provisioning — webhook triggers fixed pipeline | (future) Self-healing deployment monitor (autonomous) |
outputs/<name>-definition.md) and Building Block Spec (outputs/<name>-building-block-spec.md). Extract name, description, trigger, type, execution mode, autonomy level, refined steps, skill candidates, agent config, and failure modes.execution_mode and autonomy_level in frontmatter, and include the taxonomy pair in the relevant section:
**Execution Model:** <Mode> + <Level> as the first line of the Automation Notes section**<Mode> + <Level>** as the bold label in the Execution Pattern sectionsops/<workflow-name>-sop.md. Ask the user where SOPs live in their repo if their project has a different convention.See references/sop-template.md for full template structures.
Used when the workflow follows a fixed sequence regardless of context. The SOP is the process definition.
| Section | Purpose | |---------|---------| | Overview | 1-2 sentence summary | | Prerequisites | Access, data, tools needed | | Trigger | When/how workflow starts | | Procedure | Step-by-step instructions | | Outputs | Deliverables with destinations | | Quality Checks | Success verification | | Troubleshooting | Common problems + fixes | | Automation Notes | For Augmented/Automated only |
Then apply type adaptations:
Used when the executor adapts its path at runtime. The agent's system prompt is the process definition — the SOP documents the human interface.
| Section | Purpose | |---------|---------| | Overview | 1-2 sentence summary + key principle | | Execution Pattern | Names the agent + describes the division of labor | | How to Start | Invocation command + what to have ready | | Your Role at Each Checkpoint | Human decision points only — not the full step sequence | | Outputs | Deliverables with destinations | | When to Skip the Agent | When to run individual skills/steps directly | | Related | Links to agent file, upstream/downstream workflows |
Why lightweight? The agent definition owns the step sequence, skill invocations, and constraints. Duplicating that logic in the SOP creates drift. The SOP's job is to tell a human how to work with the agent — not to re-describe what the agent does internally.
---
title: "<Workflow Name>"
owner: "<Your Name>"
last_reviewed: "YYYY-MM-DD"
execution_mode: augmented # augmented | automated | manual
autonomy_level: guided # deterministic | guided | autonomous | n/a
notion_workflow_url: "" # optional — Notion page URL if you use the AI Registry
---
If you use Notion, Airtable, or another tool to track workflows, update the workflow's SOP link property to point to the markdown file after writing it. This keeps your tracker in sync with the source-of-truth markdown files.
For Notion users with the AI Registry template: update the "SOP" URL property on the workflow's page to point to your markdown file's URL (e.g., GitHub, GitLab, or local path).
outputs/ folderdocumentation
Write Business Process Guide documentation that explains when, why, and how to execute a complete business process with its component workflows, and save as markdown files. Use when documenting a business process end-to-end, creating playbooks, or explaining how multiple workflows fit together. Triggers on "write process guide", "document this process", "create a playbook for", "how do these workflows connect".
development
This skill should be used when the user wants to sync skills to GitHub, push skill changes to a remote repository, or back up local skills. Syncs Claude Agent Skills from ~/.claude/skills/ (local) to GitHub repository using git commands. Commits changes, pushes to remote, and updates Notion AI Building Blocks with GitHub URLs.
development
This skill should be used when the user wants to register or update AI building blocks (Skills, Agents, Prompts, Context MDs) in the Notion AI Building Blocks database. Triggers after skill creation, agent creation, prompt authoring, context MD updates, or when the user asks to register, add, or track a building block in Notion.
documentation
This skill should be used when the user wants to name a workflow, write workflow descriptions, standardize workflow documentation, add a workflow to Notion, or structure workflow entries. Generates consistent, outcome-focused names and descriptions for business workflows and creates entries in the Notion Workflows database.