Create New SOP
Name
agent-sop:create-sop - Create a new Standard Operating Procedure file
Synopsis
/create-sop
Description
This command guides users through creating well-structured Standard Operating Procedures (SOPs) for AI agents. It provides step-by-step assistance in determining SOP purpose, structuring content, applying RFC 2119 keywords, and saving files with proper naming conventions.
Implementation
You are helping the user create a new Standard Operating Procedure (SOP) file.
Your Task
Guide the user through creating a well-structured SOP file by:
Ask about the SOP purpose (if not provided):
- What workflow or task does this SOP address?
- When should this SOP be used?
- What is the expected outcome?
Determine SOP type:
- Analysis/Review SOP (analyzing code, reviewing PRs, auditing)
- Implementation SOP (building features, writing code, making changes)
- Deployment SOP (deploying changes, rolling back, configuring)
- Maintenance SOP (updating dependencies, cleaning up, refactoring)
Create the SOP file following this structure:
# {Action Verb} {Specific Outcome}
## Overview
{1-2 sentences describing what this SOP accomplishes and when to use it}
## Parameters
- **Parameter Name**: {parameter_name} - Description and example values
- **Configuration**: {config_option} - Available options
## Prerequisites
### Required Tools
- Tool name (version X.X or higher)
### Required Knowledge
- Understanding of relevant concepts
### Required Setup
- Required environment configuration
## Steps
1. First major step
- Sub-step with details
- Another sub-step
- **Validation**: How to verify this step succeeded
2. Second major step
- Implementation detail
- Expected outcome
- **Validation**: Verification method
3. Third major step
- Specific actions
- Success indicators
## Success Criteria
- [ ] Measurable outcome 1
- [ ] Measurable outcome 2
- [ ] Measurable outcome 3
- [ ] All tests pass
- [ ] Documentation updated
## Error Handling
### Error: {Common Error Name}
**Symptoms**: How this error manifests
**Cause**: Why this error occurs
**Resolution**:
1. First troubleshooting step
2. Second troubleshooting step
3. Alternative approach
## Related SOPs
- **{related-sop}**: When to use this instead
- **{complementary-sop}**: What to do next
Use RFC 2119 keywords appropriately:
- MUST: Absolute requirements (security, data integrity, prerequisites)
- SHOULD: Strong recommendations (best practices, optimizations)
- MAY: Optional actions (enhancements, preferences)
- MUST NOT: Absolute prohibitions (security violations, data risks)
- SHOULD NOT: Strong discouragement (anti-patterns)
File naming:
- Use kebab-case
- Use
.sop.md extension
- Examples:
deploy-production.sop.md, code-review-security.sop.md
Save location:
- Ask where to save (or use
~/sops/ as default)
- Suggest organizing by category:
~/sops/deployment/, ~/sops/development/
Best Practices to Follow
- Use active voice and imperative mood
- Start steps with action verbs
- Include validation steps after major actions
- Provide specific, measurable success criteria
- Include common error scenarios
- Add examples where helpful
- Keep parameters at the top for easy reference
After Creating the SOP
- Test the SOP by walking through it
- Add to SOP index if one exists
- If using with Agent SOP MCP server, ensure file has
.sop.md extension
- Consider versioning (add version and changelog if this will evolve)
Example Interaction
User: "Help me create an SOP for deploying to production"
Response:
- Ask clarifying questions about deployment process
- Identify required tools (kubectl, docker, etc.)
- Map out deployment steps
- Create structured SOP file with proper RFC 2119 keywords
- Save to appropriate location
- Suggest testing the SOP with a dry-run deployment
1---2name: create-sop3description: Create a new Standard Operating Procedure (SOP) file with proper structure4---5
6# Create New SOP
7
8## Name
9
10agent-sop:create-sop - Create a new Standard Operating Procedure file
11
12## Synopsis
13
14```
15/create-sop
16```
17
18## Description
19
20This command guides users through creating well-structured Standard Operating Procedures (SOPs) for AI agents. It provides step-by-step assistance in determining SOP purpose, structuring content, applying RFC 2119 keywords, and saving files with proper naming conventions.
21
22## Implementation
23
24You are helping the user create a new Standard Operating Procedure (SOP) file.
25
26## Your Task
27
28Guide the user through creating a well-structured SOP file by:
29
301. **Ask about the SOP purpose** (if not provided):
31 - What workflow or task does this SOP address?
32 - When should this SOP be used?
33 - What is the expected outcome?
34
352. **Determine SOP type**:
36 - Analysis/Review SOP (analyzing code, reviewing PRs, auditing)
37 - Implementation SOP (building features, writing code, making changes)
38 - Deployment SOP (deploying changes, rolling back, configuring)
39 - Maintenance SOP (updating dependencies, cleaning up, refactoring)
40
413. **Create the SOP file** following this structure:
42
43```markdown
44# {Action Verb} {Specific Outcome}
45
46## Overview
47
48{1-2 sentences describing what this SOP accomplishes and when to use it}
49
50## Parameters
51
52- **Parameter Name**: {parameter_name} - Description and example values
53- **Configuration**: {config_option} - Available options
54
55## Prerequisites
56
57### Required Tools
58- Tool name (version X.X or higher)
59
60### Required Knowledge
61- Understanding of relevant concepts
62
63### Required Setup
64- Required environment configuration
65
66## Steps
67
681. First major step
69 - Sub-step with details
70 - Another sub-step
71 - **Validation**: How to verify this step succeeded
72
732. Second major step
74 - Implementation detail
75 - Expected outcome
76 - **Validation**: Verification method
77
783. Third major step
79 - Specific actions
80 - Success indicators
81
82## Success Criteria
83
84- [ ] Measurable outcome 1
85- [ ] Measurable outcome 2
86- [ ] Measurable outcome 3
87- [ ] All tests pass
88- [ ] Documentation updated
89
90## Error Handling
91
92### Error: {Common Error Name}
93
94**Symptoms**: How this error manifests
95
96**Cause**: Why this error occurs
97
98**Resolution**:
991. First troubleshooting step
1002. Second troubleshooting step
1013. Alternative approach
102
103## Related SOPs
104
105- **{related-sop}**: When to use this instead
106- **{complementary-sop}**: What to do next
107```
108
1091. **Use RFC 2119 keywords** appropriately:
110 - **MUST**: Absolute requirements (security, data integrity, prerequisites)
111 - **SHOULD**: Strong recommendations (best practices, optimizations)
112 - **MAY**: Optional actions (enhancements, preferences)
113 - **MUST NOT**: Absolute prohibitions (security violations, data risks)
114 - **SHOULD NOT**: Strong discouragement (anti-patterns)
115
1161. **File naming**:
117 - Use kebab-case
118 - Use `.sop.md` extension
119 - Examples: `deploy-production.sop.md`, `code-review-security.sop.md`
120
1211. **Save location**:
122 - Ask where to save (or use `~/sops/` as default)
123 - Suggest organizing by category: `~/sops/deployment/`, `~/sops/development/`
124
125## Best Practices to Follow
126
127- Use active voice and imperative mood
128- Start steps with action verbs
129- Include validation steps after major actions
130- Provide specific, measurable success criteria
131- Include common error scenarios
132- Add examples where helpful
133- Keep parameters at the top for easy reference
134
135## After Creating the SOP
136
1371. Test the SOP by walking through it
1382. Add to SOP index if one exists
1393. If using with Agent SOP MCP server, ensure file has `.sop.md` extension
1404. Consider versioning (add version and changelog if this will evolve)
141
142## Example Interaction
143
144User: "Help me create an SOP for deploying to production"
145
146Response:
147
1481. Ask clarifying questions about deployment process
1492. Identify required tools (kubectl, docker, etc.)
1503. Map out deployment steps
1514. Create structured SOP file with proper RFC 2119 keywords
1525. Save to appropriate location
1536. Suggest testing the SOP with a dry-run deployment