Create Sop
Agent Buildingcreate-sopCreate Sop is an Agent Skill for agent building published in the mikeyobrien/rho repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Create a new SOP-style skill as skills/<name>/SKILL.md with kind: sop frontmatter and structured Parameters/Steps sections.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/mikeyobrien/rho/blob/HEAD/skills/create-sop/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/create-sop, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Create SOP Skill
Overview
Create a new workflow skill where SOPs are implemented as skills.
Canonical artifact:
skills/<skill-name>/SKILL.md
A valid SOP skill must include:
- YAML frontmatter with
name,description, andkind: sop ## Parameters## Steps
Parameters
- sop_topic (required): What the SOP skill should do
- skill_name (optional): Kebab-case skill name. If omitted, generate from topic.
- output_dir (optional, default:
skills): Parent directory for the skill - include_examples (optional, default:
true): Include## Examples - include_troubleshooting (optional, default:
true): Include## Troubleshooting
Steps
1. Gather requirements
Constraints:
- You MUST ask for all required inputs up front.
- You MUST clarify intended outcomes, required tools, and failure boundaries.
- You MUST identify what must be interactive vs autonomous.
2. Define the skill contract
Constraints:
- You MUST create/confirm a kebab-case
skill_name. - You MUST define parameters in a machine-readable bullet format.
- You MUST separate required vs optional params and defaults.
3. Draft SOP skill content
Constraints:
- You MUST generate frontmatter:
---
name: <skill_name>
description: <one-line purpose>
kind: sop
---
- You MUST include these sections in order:
# <Title>## Overview## Parameters## Steps
- You MUST use RFC-2119 constraints (
MUST,SHOULD,MAY). - You MUST include explicit negative constraints with reasons when relevant.
4. Write the artifact
Constraints:
- You MUST write to:
{output_dir}/{skill_name}/SKILL.md - You MUST create parent directories when missing.
- You MUST use the skill artifact convention only:
skills/<skill_name>/SKILL.md.
5. Validate
Constraints:
- You MUST verify frontmatter includes
kind: sop. - You MUST verify
## Parametersand## Stepsare present. - You SHOULD suggest running via:
/skill run {skill_name}.
Output
When done, report:
- Created path
- Parameter list
- Short execution example
Example
Input:
sop_topic: "Automated code review with lint/test gates"skill_name:code-review
Output path:
skills/code-review/SKILL.md
Run with:
/skill run code-review