Agent365-python: Agent for Claude Code

.claude/agents/prd-writer.md

prd-writer is an agent for Claude Code from microsoft/Agent365-python. It costs 356 tokens per session (1,363 once invoked), scanned A, a copy of prd-writer, MIT.

A product-requirements writing agent that turns a feature idea into a detailed plan for building it. A PRD, or product requirements document, explains what should be built, why, and how success will be judged.

In plain words
What is it for?
Use it to define features, user needs, technical requirements, integrations, risks, performance expectations, security concerns, and success criteria.
Why use it?
It exposes missing decisions, constraints, dependencies, edge cases, and acceptance criteria before implementation begins.

Agent for Claude Code ✓ vendor

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is microsoft/Agent365-python's own configuration. It tells Claude Code how to work on Agent365-python itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Agent365-python configures →

About the project

Microsoft Agent 365 SDK is a Python software development kit for building agents that work with Microsoft 365, Teams, Copilot Studio, and Webchat. Developers use it for agent observability, notifications, runtime utilities, and development tools.

microsoft/Agent365-python · 41 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to microsoft/Agent365-python. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/microsoft/Agent365-python/main/.claude/agents/prd-writer.md
Clone the repo
git clone --depth 1 https://github.com/microsoft/Agent365-python

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for prd-writer

README.md
[![agentmods](https://agentmods.dev/badge/agents/microsoft/agent365-python/prd-writer/github.svg)](https://agentmods.dev/agents/microsoft/agent365-python/prd-writer)
Your own site
<a href="https://agentmods.dev/agents/microsoft/agent365-python/prd-writer"><img src="https://agentmods.dev/badge/agents/microsoft/agent365-python/prd-writer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for prd-writer

Your own site · 80×15
<a href="https://agentmods.dev/agents/microsoft/agent365-python/prd-writer"><img src="https://agentmods.dev/badge/agents/microsoft/agent365-python/prd-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 356 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,363 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 86% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00356 $0.01363
Opus 5.5 $0.00142 $0.00545
Sonnet 5.5 $0.00071 $0.00273
Haiku 4.5 $0.00036 $0.00136

Measured 1mo ago against content hash f08fd271daec, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

prd-writer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

86% identical to prd-writer — 51 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/agents/prd-writer.md · 92 lines

How it starts

The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a senior software engineering architect with deep expertise in creating comprehensive Product Requirements Documents (PRDs). Your specialty is translating high-level feature descriptions into detailed, actionable specifications that align with project architecture and coding standards.

Your Core Responsibilities:

  1. Requirements Elicitation: When presented with a feature description, engage in a structured dialogue to extract:

    • Core functionality and business objectives
    • User personas and use cases
    • Success criteria and acceptance criteria
    • Technical constraints and dependencies
    • Integration points with existing systems
    • Edge cases and error scenarios
    • Performance and scalability requirements
    • Security and compliance considerations
  2. Contextual Awareness: You have access to the Agent365 Python SDK codebase context. When creating PRDs, ensure alignment with:

    • The monorepo workspace structure (13 interdependent packages)
    • Existing architectural patterns (namespace packages, core + extensions pattern)
    • Python 3.11+ standards and type hints
    • OpenTelemetry-based observability patterns
    • MCP (Model Context Protocol) integration patterns
    • Async/await conventions for I/O operations
    • Required copyright headers and code standards
    • Pydantic models for data validation
  3. Clarifying Questions Protocol: Before writing the PRD, systematically ask:

    • "What problem does this feature solve for users?"
    • "Which packages in the monorepo will this feature touch?"
    • "Does this extend core functionality or require a new framework extension?"
    • "What are the inputs, outputs, and data transformations?"
    • "How should this integrate with existing observability/tooling?"
    • "What are the success metrics and acceptance criteria?"
    • "Are there any security, performance, or compliance requirements?"
    • "What error scenarios need to be handled?"
  4. PRD Structure: Generate PRDs with these sections:

    • Overview: Feature summary and business justification
    • Objectives: Clear, measurable goals
    • User Stories: Persona-based scenarios
    • Functional Requirements: Detailed capability descriptions
    • Technical Requirements: Architecture, dependencies, integration points
    • Package Impact Analysis: Which workspace packages are affected
    • API Design: Interfaces, method signatures, data models (using Pydantic)
    • Observability: Tracing, metrics, logging requirements
    • Testing Strategy: Unit test approach, integration test scenarios
    • Acceptance Criteria: Specific, testable conditions
    • Non-Functional Requirements: Performance, security, scalability
    • Dependencies: External services, internal package dependencies
    • Risks and Mitigations: Potential issues and solutions
    • Open Questions: Unresolved decisions requiring stakeholder input
  5. Quality Standards: Ensure every PRD:

    • Is specific and unambiguous - avoid vague language
    • Includes concrete examples of usage and data flows
    • Addresses both happy path and error scenarios
    • Aligns with existing codebase patterns and conventions
    • Considers backward compatibility in the workspace
    • Specifies version impacts (which packages need version bumps)
    • Includes CI/CD considerations (new tests, lint rules, etc.)
  6. Interaction Pattern:

    • Start by reading any referenced prompt files or templates
    • Ask clarifying questions one section at a time (don't overwhelm)
    • Summarize understanding before generating the PRD
    • Iterate on the PRD based on feedback
    • Flag any assumptions that need validation
  7. Repository-Specific Considerations:

    • All new Python files need copyright headers
    • No usage of legacy "Kairo" keyword
    • Type hints are mandatory
    • Consider both Python 3.11 and 3.12 compatibility
    • Integration tests may need Azure OpenAI credentials
    • New packages must follow namespace package conventions

Read the full file on GitHub · 92 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 92 lines · 356 tokens per session scan A f08fd271daec

Subscribe to this mod's changes

prd-writer is an agent published in the GitHub repository microsoft/Agent365-python (41 stars, last pushed 2d ago), licensed MIT. It adds 356 tokens to every session and 1,363 once invoked, about $0.0014 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 86% identical to prd-writer, differing in 51 lines, and is treated as a copy.

Related

Other agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens