Skip to content

oliverv/caro / .agents/skills/oma-pm

oma-pm

Verified

Turn product requirements into scoped tasks with dependencies and acceptance criteria. Use for implementation planning and prioritization.

resources/examples.md

View on GitHub
# PM Agent - Examples

## Example 1: Simple TODO App

**Input**: "Build a TODO app with JWT authentication"

**Output**:
```json
{
  "project_name": "TODO App with JWT Auth",
  "tech_stack": {
    "frontend": "resolve from oma-frontend/resources/tech-stack.md at planning time",
    "backend": "resolve from oma-backend/variants/{node,python,rust}/tech-stack.md at planning time",
    "mobile": "",
    "database": "resolve from oma-db guidance at planning time",
    "infrastructure": ""
  },
  "tasks": [
    {
      "id": "task-1",
      "agent": "backend",
      "title": "JWT authentication API",
      "priority": 1,
      "dependencies": [],
      "estimated_complexity": "high",
      "scope": ["src/api/auth/"],
      "test_approach": "tdd",
      "test_scope": ["unit", "integration"],
      "test_approach_rationale": "Deterministic authorization rules with clear inputs and outputs.",
      "acceptance_criteria": [
        "POST /api/auth/register with email + password",
        "POST /api/auth/login returns access + refresh tokens",
        "Password hashed with Argon2id",
        "Rate limiting: 5/min on login"
      ]
    },
    {
      "id": "task-2",
      "agent": "backend",
      "title": "TODO CRUD API",
      "priority": 1,
      "dependencies": [],
      "estimated_complexity": "medium",
      "scope": ["src/api/todos/"],
      "acceptance_criteria": [
        "CRUD endpoints for /api/todos",
        "User-scoped (JWT required)",
        "Pagination on list endpoint"
      ]
    },
    {
      "id": "task-3",
      "agent": "frontend",
      "title": "Login + Register UI",
      "priority": 1,
      "dependencies": [],
      "estimated_complexity": "medium",
      "scope": ["src/web/auth/"],
      "acceptance_criteria": [
        "Login and register forms with validation",
        "JWT token storage",
        "Redirect to /todos after login"
      ]
    },
    {
      "id": "task-4",
      "agent": "frontend",
      "title": "TODO List UI",
      "priority": 2,
      "dependencies": ["task-2", "task-3"],
      "estimated_complexity": "medium",
      "scope": ["src/web/todos/"],
      "acceptance_criteria": [
        "Add, toggle, delete todos",
        "Loading and empty states",
        "Responsive design"
      ]
    },
    {
      "id": "task-5",
      "agent": "qa",
      "title": "Security & Performance Review",
      "priority": 3,
      "dependencies": ["task-1", "task-2", "task-3", "task-4"],
      "estimated_complexity": "medium",
      "scope": [],
      "acceptance_criteria": [
        "OWASP Top 10 audit passed",
        "Lighthouse > 90",
        "No N+1 queries"
      ]
    }
  ]
}
```

## Example 2: Feature Addition to Existing App

**Input**: "Add a comment system to the blog posts"

**Output**:
```json
{
  "project_name": "Blog Comments Feature",
  "tasks": [
    {
      "id": "task-1",
      "agent": "backend",
      "title": "Comments API",
      "priority": 1,
      "dependencies": [],
      "estimated_complexity": "medium",
      "scope": ["src/api/comments/", "migrations/"],
      "acceptance_criteria": [
        "POST /api/posts/{id}/comments (auth required)",
        "GET /api/posts/{id}/comments (public, paginated)",
        "DELETE /api/comments/{id} (owner only)",
        "Nested replies (1 level deep)"
      ]
    },
    {
      "id": "task-2",
      "agent": "frontend",
      "title": "Comment Section UI",
      "priority": 2,
      "dependencies": ["task-1"],
      "estimated_complexity": "medium",
      "scope": ["src/web/comments/"],
      "acceptance_criteria": [
        "Comment list with pagination (load more)",
        "Add comment form (auth required)",
        "Reply to comment",
        "Delete own comment",
        "Real-time count update"
      ]
    }
  ]
}
```

## Example 3: Standards-Aligned Delivery Plan

**Input**: "Plan this enterprise release with risk and governance considerations"

**Output**:
```json
{
  "project_name": "Enterprise Release Plan",
  "architecture_decisions": [
    {
      "decision": "Use phased rollout with feature flags",
      "rationale": "Reduces operational risk during release",
      "alternatives_considered": ["big bang release", "tenant-by-tenant rollout"]
    }
  ],
  "project_controls": {
    "iso_21500": {
      "scope_defined": true,
      "stakeholders_identified": ["product", "security", "operations"],
      "dependencies_mapped": true
    },
    "iso_31000": {
      "top_risks": [
        "migration rollback failure",
        "auth regression on legacy users"
      ],
      "treatments": [
        "pre-release restore drill",
        "shadow auth validation"
      ]
    },
    "iso_38500": {
      "decision_owner": "engineering manager",
      "approval_required_for": ["prod migration", "feature-flag enablement"]
    }
  }
}
```
planning-and-task-breakdownaddyosmani/agent-skillsBreaks work into ordered tasks. Use when you have a spec or clear requirements and need to break work into implementable tasks. Use when a task feels too large to start, when you need to estimate scope, or when parallel work is possible.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
screenpipethedotmack/claude-memSearch screen and audio history recorded by Screenpipe and optionally save selected context into claude-mem. Use when the user asks to recall desktop activity, a meeting, or something seen in another app through Screenpipe.Stars: 118kUpdated Claude CodeCodexVerifiedInstall
contact-widgetnexu-io/open-designSelf-contained floating chat widget with welcome screen, social links, meeting button, and message input. Single HTML file, zero dependencies.Stars: 108kUpdated Claude CodeCodexVerifiedInstall
meeting-notesnexu-io/open-designMeeting notes page — title bar with attendees, agenda checklist, decisions block, action items table with owners + dates, and a "next meeting" footer. Use when the brief mentions "meeting notes", "minutes", "1:1 notes", "all-hands recap", or "会议纪要".Stars: 108kUpdated Claude CodeCodexVerifiedInstall