plugins/handsonai/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-plugins 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 AI Workflow 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>/requirements.md) and Design Spec (outputs/<name>/design-spec.md) — or the legacy flat paths (outputs/<name>-requirements.md, outputs/<name>-design-spec.md) if no workflow folder exists. 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/ folderdevelopment
Guide structured testing of AI workflow artifacts, evaluate output quality, identify which building blocks need adjustment, and determine readiness for deployment. Use when the user has built workflow artifacts and needs to test them. This is Step 5 (Test) of the AI Workflow Framework.
development
This skill should be used when the user has built and tested workflow artifacts and wants a Run Guide for deploying and operating their AI workflow. It generates a plain-language guide with setup steps, deployment patterns, and sharing instructions — tailored to the user's platform and build path. This is Step 6 (Run) of the AI Workflow Framework.
development
Evaluate a running AI workflow for quality, relevance, and evolution opportunities. Use when the user wants to review how a deployed workflow is performing, check if it needs tuning, or assess whether it should graduate to a more capable orchestration mechanism. This is Step 7 (Improve) of the AI Workflow Framework.
development
This skill should be used when the user has a Workflow Requirements document and wants to design an AI workflow. It gathers architecture decisions, assesses workflow autonomy level, chooses an orchestration mechanism and involvement mode, classifies steps, maps building blocks, identifies skill candidates, configures agents, and produces a Design Spec for approval. Supports both step-decomposed and goal-driven Workflow Requirements. This is Step 3 (Design) of the AI Workflow Framework.