Add learn-from-pr agent and enhance skills framework structure#33579
Add learn-from-pr agent and enhance skills framework structure#33579
Conversation
Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
|
@copilot we want pr-finalize skill to run whenever you do code reviews |
Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
Added Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
.github/skills/pr-finalize/SKILL.md
Outdated
| description: Finalizes any PR for merge by verifying title and description match actual implementation. Ensures commit message helps future agents understand the change. Use on any PR before merge, when description may be stale, or to review commit message quality. | ||
| description: Verifies PR title and description match actual implementation. Works on any PR. Optionally updates agent session markdown if present. | ||
| compatibility: Requires GitHub CLI (gh) | ||
| on-code-review: true |
There was a problem hiding this comment.
@copilot is this a real property? Can you link to docs
There was a problem hiding this comment.
No, on-code-review is not a documented property in the official GitHub Copilot skills specification (https://agentskills.io/specification). I've removed it in commit 7ec13fa.
The specification only defines these frontmatter fields:
name(required)description(required)license,metadata(optional)
For code review integration, the skill can still be invoked by the code review agent during its workflow - integration happens through agent configuration and skill discovery, not through skill frontmatter properties.
There was a problem hiding this comment.
@copilot what about these docs?
These seem useful for influencing the reviewer
There was a problem hiding this comment.
You're right - those docs show the proper way to customize code reviews. I've added a "Code Review Instructions" section to .github/copilot-instructions.md in commit 6309b69 that instructs the code reviewer to always run the pr-finalize skill.
According to the GitHub documentation, instructions in this file are automatically applied when @copilot performs code reviews, so the pr-finalize skill will now be invoked during the review process.
Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
Progress: Addressed Code Review Feedback
Completed Tasks
Changes Made
1. Removed SUMMARY.md
2. Updated .gitignore
SUMMARY.mdto the PR helper files section3. Refined Code Review Instruction (
.github/copilot-instructions.md)Before
After
Impact
Original prompt
this branch is ready for a PR can you create a PR for this branch please
[Chronological Review] - Session started with user providing summary of work on PR #33353 (MacCatalyst crash fix) - User asked to run reproduction test 10 times - completed successfully - Extensive debugging to get correct app version running (wrong folder issue discovered) - Test logic restored, confirmed reproduction working - Explored 11 different fix approaches using try-fix skill - User provided final fix: remove ShellSectionRootRenderer code, enhance PageViewController with window.Handler check - Applied fix to PageViewController with window disposal detection - Created/updated test files (Issue33352.cs) - Committed changes, created PR #33552 for multi-window support - Added learn-from-pr skill and agent based on lessons from PR #33353 - Updated pr-finalize skill with enhanced structure - Added missing skills to copilot-instructions.md - Latest: Running pr-finalize skill on PR #33353, creating recommendation files[Intent Mapping]
[Technical Inventory]
[Code Archaeology]
src/Core/src/Platform/iOS/PageViewController.cs- Added window?.Handler null check + try-catch in TraitCollectionDidChange (lines 60-88)src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRootRenderer.cs- REMOVED TraitCollectionDidChange override (lines 144-151 deleted)src/Controls/tests/TestCases.HostApp/Issues/Issue33352.cs- Test page (629 lines)src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue33352.cs- UI test automation (159 lines).github/agent-pr-session/issue-33352.md- Complete session documentation with 11 try-fix attempts, final fix, lessons learned.github/skills/pr-finalize/SKILL.md- Restructured with Inputs/Outputs/Completion Criteria (274 lines changed).github/skills/learn-from-pr/SKILL.md- Created comprehensive analysis framework (230 lines).github/agents/learn-from-pr.md- Created agent wrapper that applies improvements (171 lines).github/skills/try-fix/SKILL.md- Added structure: Inputs/Outputs/Completion Criteria/Error Handling (+49 lines).github/copilot-instructions.md- Added Skills vs Agents table, documented 7 skills, learn-from-pr agent (+61 lines)CustomAgentLogsTmp/pr-finalize-33353/- Created 4 recommendation files for PR updates[Progress Assessment]
Completed:
Pending:
[Context Validation]
All critical context preserved:
Created from Copilot CLI via the copilot delegate command.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.