declarative-agent-sample-review
Review PRs for declarative agent samples (da-* folders) in pnp/copilot-pro-dev-samples. Use when reviewing da-* sample submissions, checking manifest versions, validating README format. Triggers on "review PR", "review this sample", or PR review requests for declarative agent samples.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Declarative Agent Sample Review
Review declarative agent sample PRs (folders starting with da-) for compliance with repo guidelines.
Workflow
- Checkout PR:
gh pr checkout <number> - Verify sample folder starts with
da- - Run checks below, collecting comments (file, line, issue)
- Submit all comments in single API call (GitHub limitation)
Checks
1. Manifest Schema Versions
Fetch latest versions from Microsoft Learn docs (never use other samples as reference):
| Manifest | File | Property | Docs |
|---|---|---|---|
| App | appPackage/manifest.json |
manifestVersion |
learn.microsoft.com/microsoft-365/extensibility/schema |
| Declarative Agent | appPackage/*DeclarativeAgent.json |
version + $schema |
learn.microsoft.com/microsoft-365-copilot/extensibility/declarative-agent-manifest |
| API Plugin | appPackage/ai-plugin.json |
schema_version |
learn.microsoft.com/microsoft-365-copilot/extensibility/api-plugin-manifest |
2. m365agents.yml
-
No
projectId- auto-generated on provision, must not be committed - Check both
m365agents.ymlandm365agents.local.yml
3. README.md
Compare against templates/README-template.md:
- Contributors section present with actual author names
- Version history lists real author (not "Microsoft")
-
Tracking image uses markdown format at end of file:
 -
URLs consistent (avoid mixed
en-us/locales in same file) -
No trailing
---at end
4. assets/sample.json
Compare against templates/sample-template.json:
-
name:
pnp-copilot-pro-dev-<sample-folder> - url/downloadUrl: correct sample folder path
- authors: matches actual contributors (verify against PR author)
- URLs: consistent locale format
Submitting Reviews
GitHub API cannot add comments to pending reviews after creation. Collect all comments first.
Get commit SHA:
gh pr view <PR> --json headRefOid
Create review.json:
{
"commit_id": "<sha>",
"event": "REQUEST_CHANGES",
"body": "Summary message",
"comments": [
{"path": "file/path", "line": 10, "body": "Issue description"}
]
}
Submit:
gh api repos/pnp/copilot-pro-dev-samples/pulls/<PR>/reviews --method POST --input review.json
Convert to Draft
After submitting a review with requested changes, convert the PR to draft:
gh pr ready <PR> --undo
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-03-11
- 索引更新时间
- 2026-03-11
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!