pull-requests
microsoft/agent-framework/python/.github/skills/pull-requests/SKILL.md
Guidance for creating pull requests and handling PR review comments in the Agent Framework repository. Use this when writing a PR description (filling out the PR template) or when responding to and resolving review comments on an existing PR.
- Commits and pushes
What's in it
- Pull Request Workflow
- 1. Writing the PR description
- ### Motivation & Context
- ### Description & Review Guide
- ### Related Issue
- ### AI Assistance
- ### Contribution Checklist
- Do not
- Creating the PR
- 2. Handling review comments
- Useful commands
---
name: pull-requests
description: >
Guidance for creating pull requests and handling PR review comments in the
Agent Framework repository. Use this when writing a PR description (filling out
the PR template) or when responding to and resolving review comments on an
existing PR.
---
# Pull Request Workflow
This skill covers two tasks: (1) writing a high-quality PR description, and
(2) handling review comments on an existing PR.
## 1. Writing the PR description
Always follow the repository PR template at
[`.github/pull_request_template.md`](../../../../.github/pull_request_template.md). Keep its
exact structure and headings. Fill every section:
### `### Motivation & Context`
Explain *why* the change is needed: the problem it solves and the scenario it
contributes to. Describe the net change relative to `main` — this is implied, so
do **not** spell out "vs main" explicitly.
### `### Description & Review Guide`
Describe the changes, the overall approach, and the design. Answer the three
prompts:
- **What are the major changes?**
- **What is the impact of these changes?**
- **What do you want reviewers to focus on?** — This item is for **human
reviewers only**. Automated/AI reviewers must ignore it and review the entire
change rather than narrowing scope to it.
### `### Related Issue`
Link the issue the PR fixes using a GitHub closing keyword (`Fixes #123` /
`Closes #123`) so it closes automatically on merge. For a non-trivial change,
confirm that a maintainer added the `ready-for-implementation` label or explicitly
agreed with the direction in an issue comment. A PR with no agreed issue may be
closed without detailed review. Before opening, confirm there is no other open PR
for the same issue; if there is, explain how this PR differs.
For a trivial change that does not require an issue, replace the `Fixes #`
placeholder with `N/A - trivial change` and briefly explain why the change is an
obvious correction whose desired result is not reasonably in dispute.
For repository-maintained scheduled automation, replace the placeholder with
`N/A - repository automation` and identify the generating workflow.
### `### AI Assistance`
Check exactly one option:
- Select **"No material AI assistance was used."** only when generative AI did
not create or substantially transform submitted content.
- Otherwise select **"This is an AI-assisted contribution."** and briefly
identify the assisted areas.
Generating or substantially editing the PR description with Copilot counts as
material AI assistance even if the implementation itself was not AI-assisted.
Never include prompts or sensitive information in the disclosure.
### `### Contribution Checklist`
Check every item that applies. Confirm that the PR links to an agreed issue or
documents a trivial-change or repository-automation exception. For the
breaking-change item:
- Leave **"This is not a breaking change."** checked for the common case.
- If the change **is** breaking, add the `breaking change` label **or** put
`[BREAKING]` in the title prefix, before or after a language prefix such as
`Python:` or `.NET:` — workflows keep the label and the title prefix in sync
automatically (see `.github/workflows/label-title-prefix.yml` and
`.github/workflows/label-pr.yml`).
### Do not
- Do **not** add ad-hoc sections such as "Validation" or "Tests run"; CI/CD and
the checklist already cover validation status.
- Do **not** remove or reorder the template's headings.
### Creating the PR
Open new PRs as **drafts** until they are ready for review. Example:
```bash
gh pr create --repo microsoft/agent-framework --base main \
--head <your-fork-owner>:<branch> --draft \
--title "<concise title>" --body "<body following the template>"
```
## 2. Handling review comments
When a PR receives review comments, follow this sequence — **do not start editing
code before the user has reviewed the plan**:
1. **Review the comments.** Read every review comment and thread on the PR,
including inline code comments and general review summaries.
2. **Make a plan.** Produce a concrete plan describing how each comment will be
addressed (or why it should not be, with reasoning).
3. **Let the user review the plan.** Present the plan and wait for the user's
approval or adjustments before implementing anything.
4. **Implement.** Make the agreed changes.
5. **Reply to every comment.** Add a reply to **all** comments explaining how it
was addressed, preferably citing the commit containing the change. If the
feedback was not addressed, explain why. Leave no comment unanswered.
6. **Resolve completed threads yourself.** After replying and completing any
necessary discussion, resolve the review thread. Do not wait for the reviewer
or a maintainer to resolve it. Leave a thread open only while it has an
unanswered question or active discussion.
### Useful commands
List review comments and threads:
```bash
# Inline review comments
gh api repos/{owner}/{repo}/pulls/{pr}/comments
# Review threads with resolution state (GraphQL)
gh api graphql -f query='
query($owner:String!,$repo:String!,$pr:Int!){
repository(owner:$owner,name:$repo){
pullRequest(number:$pr){
reviewThreads(first:100){
nodes{ id isResolved comments(first:50){ nodes{ id body author{login} } } }
}
}
}
}' -F owner={owner} -F repo={repo} -F pr={pr}
```
Reply to an inline review comment:
```bash
gh api repos/{owner}/{repo}/pulls/{pr}/comments/{comment_id}/replies \
-f body="Addressed in <commit>: <explanation>"
```
Resolve a review thread (needs the thread node id from the GraphQL query above):
```bash
gh api graphql -f query='
mutation($threadId:ID!){
resolveReviewThread(input:{threadId:$threadId}){ thread{ isResolved } }
}' -F threadId={thread_id}
```
More agent context in microsoft/agent-framework
68 other files this repository gives its agents, the first 60 shown.
AGENTS.md
- dotnet/AGENTS.md
- dotnet/samples/AGENTS.md
- python/AGENTS.md
- python/packages/a2a/AGENTS.md
- python/packages/ag-ui/AGENTS.md
- python/packages/anthropic/AGENTS.md
- python/packages/azure-ai-search/AGENTS.md
- python/packages/azure-contentunderstanding/AGENTS.md
- python/packages/azure-cosmos/AGENTS.md
- python/packages/azure-cosmos-memory/AGENTS.md
- python/packages/bedrock/AGENTS.md
- python/packages/chatkit/AGENTS.md
- python/packages/claude/AGENTS.md
- python/packages/copilotstudio/AGENTS.md
- python/packages/core/AGENTS.md
- python/packages/declarative/AGENTS.md
- python/packages/devui/AGENTS.md
- python/packages/foundry_local/AGENTS.md
- python/packages/gemini/AGENTS.md
- python/packages/github_copilot/AGENTS.md
- python/packages/hosting-a2a/AGENTS.md
- python/packages/hosting-mcp/AGENTS.md
- python/packages/lab/AGENTS.md
- python/packages/mem0/AGENTS.md
- python/packages/mistral/AGENTS.md
- python/packages/monty/AGENTS.md
- python/packages/ollama/AGENTS.md
- python/packages/openai/AGENTS.md
- python/packages/purview/AGENTS.md
- python/packages/redis/AGENTS.md
- python/packages/typesafe/AGENTS.md
- python/samples/AGENTS.md
Copilot instructions
Skill
- build-and-testdotnet/.github/skills/build-and-test/SKILL.md
- project-structuredotnet/.github/skills/project-structure/SKILL.md
- pull-requestsdotnet/.github/skills/pull-requests/SKILL.md
- verify-dotnet-samplesdotnet/.github/skills/verify-dotnet-samples/SKILL.md
- verify-samples-tooldotnet/.github/skills/verify-samples-tool/SKILL.md
- unit-converterdotnet/samples/02-agents/AgentSkills/Agent_Step01_FileBasedSkills/skills/unit-converter/SKILL.md
- unit-converterdotnet/samples/02-agents/AgentSkills/Agent_Step04_MixedSkills/skills/unit-converter/SKILL.md
- unit-converterdotnet/samples/02-agents/AgentSkills/Agent_Step07_SkillsAutoApproval/skills/unit-converter/SKILL.md
- risk-scoringdotnet/samples/02-agents/Harness/BuildYourOwnClaw/Claw_Step03_ScalingCapabilities/skills/risk-scoring/SKILL.md
- valuationdotnet/samples/02-agents/Harness/BuildYourOwnClaw/Claw_Step03_ScalingCapabilities/skills/valuation/SKILL.md
- risk-scoringdotnet/samples/02-agents/Harness/BuildYourOwnClaw/Claw_Step04_ProductionReady/ClawAgent/skills/risk-scoring/SKILL.md
- valuationdotnet/samples/02-agents/Harness/BuildYourOwnClaw/Claw_Step04_ProductionReady/ClawAgent/skills/valuation/SKILL.md
- regex-testerdotnet/samples/02-agents/Harness/Harness_Step04_CodeExecution/skills/regex-tester/SKILL.md
- escalation-policydotnet/samples/04-hosting/FoundryHostedAgents/responses/Hosted-AgentSkills/skills/escalation-policy/SKILL.md
- support-styledotnet/samples/04-hosting/FoundryHostedAgents/responses/Hosted-AgentSkills/skills/support-style/SKILL.md
- community-projects.github/skills/community-projects/SKILL.md
- pull-requests.github/skills/pull-requests/SKILL.md
- agent-framework-py-releasepython/.github/skills/agent-framework-py-release/SKILL.md
- python-code-qualitypython/.github/skills/python-code-quality/SKILL.md
- python-developmentpython/.github/skills/python-development/SKILL.md
- python-feature-lifecyclepython/.github/skills/python-feature-lifecycle/SKILL.md
- python-package-managementpython/.github/skills/python-package-management/SKILL.md
- python-testingpython/.github/skills/python-testing/SKILL.md
- risk-scoringpython/samples/02-agents/harness/build_your_own_claw/claw_step04_production_ready/skills/risk-scoring/SKILL.md
- valuationpython/samples/02-agents/harness/build_your_own_claw/claw_step04_production_ready/skills/valuation/SKILL.md
- risk-scoringpython/samples/02-agents/harness/build_your_own_claw/skills/risk-scoring/SKILL.md
- valuationpython/samples/02-agents/harness/build_your_own_claw/skills/valuation/SKILL.md
Discussion
Talked about elsewhere, linking to microsoft/agent-framework
- Microsoft's new framework for building and orchestrating AI agents
Hacker News · 4 points · Apr 4, 2026
- High severity transitive vulnerability in a popular Microsoft package?
Stack Overflow · -3 votes · 1 answers · Jul 9, 2026
- Hyperlight codeact disponible en #dotnet et en #python dans Microsoft agent framework #opensource #ai github.com/microsoft/ag...
Bluesky · @aymericw.bsky.social · 5 likes and reposts · May 12, 2026
- Project system data flow 'CapabilitiesScope Aggregating Publishing: 46625485' closed because of an exception.
GitHub · microsoft/vscode-dotnettools · 9 reactions · 13 comments · Nov 4, 2025
- Microsoft Agent Framework
Hacker News · 3 points · Oct 1, 2025
- Microsoft made multi-agent workflows boring in the best way. Graph orchestration, OpenTelemetry, time-travel debugging, durable execution.…
Bluesky · @jeremymorgan.com · 5 likes and reposts · 1 replies · May 1, 2026
- Add headers to McpTool spec
GitHub · microsoft/AgentSchema · 4 reactions · Mar 23, 2026
- Microsoft Agent Framework
Hacker News · 2 points · Oct 3, 2025
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
No reports yet. Be the first to say whether it worked.
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

