Skip to content

Agent SOPs #529

@zastrowm

Description

@zastrowm

Overview

The docs page needs to refactor its guidance for prompting agents. The current guidance is quite general, so I want to include specific instructions about prompting using Agent SOPs: https://github.com/strands-agents/agent-sop/blob/main/README.md

Here is a related blog post: https://aws.amazon.com/blogs/opensource/introducing-strands-agent-sops-natural-language-workflows-for-ai-agents/


Implementation Requirements

Based on clarification discussion:

Documentation Structure

Create a new "Guides" section in the documentation navigation containing an "Effective Prompting" page that covers:

  1. General prompting paradigms and best practices
  2. Agent SOPs as one of the key prompting paradigms
  3. Update the existing prompts.md page to reference the new guide

Technical Approach

Files to Create

  • docs/user-guide/guides/effective-prompting.md - New comprehensive prompting guide

Files to Modify

  • mkdocs.yml - Add new "Guides" section to navigation
  • docs/user-guide/concepts/agents/prompts.md - Add reference/link to the new Effective Prompting guide

Content Requirements for Effective Prompting Guide

1. Prompting Paradigms Overview

  • Cover different approaches to prompting agents
  • Explain when to use different techniques

2. Agent SOPs Section

Include the following for Agent SOPs:

  • What are Agent SOPs: Brief explanation of markdown-based natural language workflows with RFC 2119 constraints (MUST, SHOULD, MAY), parameterized inputs, and progress tracking

  • Using Agent SOPs with Strands: Show how to use SOPs as the system_prompt parameter:

    from strands import Agent
    from strands_tools import editor, shell
    from strands_agents_sops import code_assist
    
    agent = Agent(
      system_prompt=code_assist,
      tools=[editor, shell]
    )
  • Example: codebase_summary SOP: Highlight the codebase_summary SOP as a practical example use case

  • Custom SOP Authoring: Include guidance on creating custom SOPs (reference the SOP format and RFC 2119 constraints)

  • Package Reference: Link to strands-agents-sops PyPI package and agent-sop repository for detailed documentation on available SOPs

Code Examples

  • Use Python examples with the {{ ts_not_supported() }} macro for TypeScript tabs (since strands-agents-sops is Python-only)

Navigation Structure (mkdocs.yml)

Add a new "Guides" section, suggested placement after "Concepts":

- Guides:
  - Effective Prompting: user-guide/guides/effective-prompting.md

Acceptance Criteria

  • New "Guides" section appears in documentation navigation
  • "Effective Prompting" page created with prompting paradigms overview
  • Agent SOPs documented with Strands integration example
  • codebase_summary SOP highlighted as example use case
  • Custom SOP authoring guidance included
  • Links to strands-agents-sops package and repo
  • Existing prompts.md updated to reference new guide
  • TypeScript tabs show {{ ts_not_supported() }} message
  • Documentation builds successfully with mkdocs build
  • Local preview works with mkdocs serve

Resources

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions