Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计提醒

sop-authoring标准作业程序创作

Agent Skill

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

总安装

808

周安装

33

GitHub Stars

143

下载量

259
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:sop-authoring(标准作业程序创作)
来源仓库:https://github.com/thebushidocollective/han
仓库路径:skills/sop-authoring
安装命令:
npx skills add https://github.com/thebushidocollective/han --skill sop-authoring
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/thebushidocollective/han --skill sop-authoring

简介

sop-authoring 用于辅助安全审计、权限检查、凭据风险和认证流程排查,适合梳理敏感配置、分析鉴权逻辑或生成安全复核清单。

  • 适用于系统安全评估、权限管理或合规审计场景。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 确认具体用法。
  • 使用时不能将工具输出直接当作最终结论,涉及密钥、令牌或生产系统时应先确认最小权限和操作边界。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

SOP Authoring

Effective Standard Operating Procedures (SOPs) transform complex workflows into reusable, deterministic instructions for AI agents. This skill covers the principles and practices for writing clear, actionable SOPs.

Key Concepts

What Makes a Good SOP

  1. Single Responsibility: Each SOP addresses one specific workflow or task
  2. Deterministic: Same inputs produce same outputs
  3. Actionable: Every step is concrete and executable
  4. Parameterized: Variables enable reuse across contexts
  5. Self-Contained: Minimal external dependencies

SOP vs. General Documentation

  • SOPs: Prescriptive workflows with specific steps
  • Documentation: Descriptive reference material
  • Guides: Educational content with explanations
  • Tutorials: Step-by-step learning experiences

Use SOPs when you need consistent, repeatable execution of multi-step processes.

Best Practices

Writing Clear Instructions

DO:

  • Use active voice and imperative mood
  • Start steps with action verbs (analyze, generate, validate)
  • Be specific about expected outcomes
  • Include success criteria for each step
  • Use numbered lists for sequential steps
  • Use bullet points for unordered items

DON'T:

  • Use passive voice ("should be done" → "do this")
  • Include vague instructions ("improve the code")
  • Mix procedural and reference content
  • Assume implicit knowledge without stating it

Title and Description

# {Action Verb} {Outcome} SOP

## Overview
{1-2 sentences describing what this SOP accomplishes and when to use it}

Good Titles:

  • "Generate Codebase Documentation"
  • "Implement Feature Using TDD"
  • "Review Pull Request for Security"

Poor Titles:

  • "Documentation" (too vague)
  • "How to Maybe Improve Code Quality" (uncertain)
  • "The Complete Guide to Everything" (too broad)

Structuring Steps

Sequential Steps:

## Steps

1. Analyze the codebase structure
   - Identify main entry points
   - Map directory organization
   - Document key dependencies

2. Extract architectural patterns
   - Identify design patterns in use
   - Document data flow
   - Note component relationships

3. Generate documentation
   - Create README.md with overview
   - Document API interfaces
   - Add setup instructions

Conditional Logic:

## Steps

1. Check if tests exist
   - If tests exist: Run existing test suite
   - If no tests: Create test structure first

2. Implement feature based on test results
   - If tests pass: Add new functionality
   - If tests fail: Fix failing tests before proceeding

Parameters

Define parameters that make SOPs reusable:

## Parameters

- **Repository Path**: {repository_path}
- **Output Format**: {output_format} (markdown, json, html)
- **Verbosity Level**: {verbosity} (concise, detailed, comprehensive)

Usage in Steps:

1. Navigate to {repository_path}
2. Generate documentation in {output_format} format
3. Use {verbosity} level of detail

Success Criteria

Include explicit success criteria:

## Success Criteria

- [ ] All source files are documented
- [ ] README.md exists with setup instructions
- [ ] API documentation is complete
- [ ] Examples are tested and working

Examples

Example 1: Code Review SOP

# Review Code Changes for Quality

## Overview
Systematically review code changes for quality, maintainability, and adherence to project standards.

## Parameters

- **Pull Request URL**: {pr_url}
- **Review Depth**: {depth} (quick, standard, thorough)

## Steps

1. Fetch pull request details from {pr_url}
   - Read PR description and context
   - Identify changed files
   - Note breaking changes

2. Review code quality
   - Check for code smells
   - Verify error handling
   - Assess test coverage
   - Validate documentation updates

3. Check architectural consistency
   - Ensure patterns match existing code
   - Verify separation of concerns
   - Review dependency additions

4. Generate review feedback
   - List issues by severity (critical, major, minor)
   - Suggest specific improvements
   - Highlight positive changes

## Success Criteria

- [ ] All critical issues identified
- [ ] Feedback is specific and actionable
- [ ] Code style checked against project standards
- [ ] Security implications reviewed

Example 2: Feature Implementation SOP

# Implement Feature Using Test-Driven Development

## Overview
Implement new feature following TDD red-green-refactor cycle with comprehensive test coverage.

## Parameters

- **Feature Description**: {feature_description}
- **Test Framework**: {test_framework}

## Steps

1. Create failing test (RED)
   - Write test that describes desired behavior
   - Run test to confirm it fails
   - Verify failure message is correct

2. Implement minimal code (GREEN)
   - Write simplest code to pass the test
   - Avoid premature optimization
   - Run test to confirm it passes

3. Refactor (REFACTOR)
   - Improve code structure
   - Extract common patterns
   - Run tests to ensure they still pass

4. Repeat for each requirement
   - Break feature into small increments
   - Follow red-green-refactor for each
   - Commit after each complete cycle

## Success Criteria

- [ ] All tests pass
- [ ] Test coverage ≥ 80%
- [ ] No code duplication
- [ ] Feature meets requirements

Example 3: Documentation Generation SOP

# Generate Comprehensive Codebase Documentation

## Overview
Analyze codebase and generate comprehensive documentation including architecture overview, API reference, and setup instructions.

## Parameters

- **Repository Path**: {repository_path}
- **Documentation Format**: {format} (markdown, html, pdf)
- **Include Examples**: {include_examples} (yes, no)

## Steps

1. Analyze repository structure
   - Identify programming languages
   - Map directory organization
   - Locate configuration files
   - Find existing documentation

2. Extract architectural information
   - Identify main entry points
   - Document data flow
   - Map component dependencies
   - Note design patterns

3. Document public APIs
   - List all public functions/methods
   - Extract parameter types
   - Document return values
   - Include usage examples if {include_examples} is yes

4. Generate setup instructions
   - List prerequisites
   - Document installation steps
   - Provide configuration examples
   - Include troubleshooting section

5. Create documentation files
   - Generate README.md with overview
   - Create API.md with interface documentation
   - Add CONTRIBUTING.md if project accepts contributions
   - Format output as {format}

## Success Criteria

- [ ] Documentation covers all public APIs
- [ ] Setup instructions are complete
- [ ] Architecture is clearly explained
- [ ] Examples are tested and accurate

Common Patterns

Error Handling

## Error Handling

If any step fails:
1. Document the failure reason
2. Provide troubleshooting steps
3. Suggest alternative approaches
4. Do NOT proceed to next step

Validation Steps

## Validation

After each major step:
- Verify output meets quality criteria
- Check for errors or warnings
- Confirm results match expectations

Iterative Processes

## Process

For each {item} in {collection}:
1. Perform action on {item}
2. Validate result
3. Continue to next {item}

Anti-Patterns

Avoid These Common Mistakes:

  1. Overly General Instructions

- ❌ "Improve the code quality" - ✅ "Run linter and fix all errors, then remove code duplication"

  1. Missing Context

- ❌ "Run the tests" - ✅ "Run test suite using npm test and verify all tests pass"

  1. Ambiguous Success Criteria

- ❌ "Code should be good" - ✅ "Code passes all linter checks and has no security vulnerabilities"

  1. Hidden Assumptions

- ❌ Assuming tools are installed - ✅ Explicitly list prerequisites

  1. Mixing Multiple Workflows

- ❌ Combining testing, deployment, and monitoring in one SOP - ✅ Create separate SOPs that can be composed

Related Skills

  • sop-structure: Learn how to organize SOP sections
  • sop-rfc2119: Use RFC 2119 keywords for precise requirements
  • sop-maintenance: Keep SOPs up to date and relevant

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

24.67%
按下载量换算64

Antigravity

23.91%
按下载量换算62

OpenCode

18.48%
按下载量换算48

Gemini CLI

11.18%
按下载量换算29

Claude Code

8.01%
按下载量换算21

windsurf

3.15%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills