Skip to content

Improve skills and scripts for better agent workflows#33699

Merged
PureWeen merged 3 commits intomainfrom
skill-improvements
Jan 25, 2026
Merged

Improve skills and scripts for better agent workflows#33699
PureWeen merged 3 commits intomainfrom
skill-improvements

Conversation

@PureWeen
Copy link
Member

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Description of Change

This PR improves several agent skills and scripts based on learnings from real agent sessions.

Skills Improvements

Skill Changes
try-fix Streamlined from 346→281 lines, moved examples to references/, removed pr-comment coupling
pr-finalize Enhanced description with trigger phrases and negative triggers, moved 65-line example to references/
verify-tests-fail Added markdown report generation, PR-based output folder structure, auto-detection of PR number
learn-from-pr Updated SKILL.md

Script Improvements

EstablishBrokenBaseline.ps1 - Added fail-fast dirty working directory check:

  • Fails immediately if tracked files have uncommitted changes
  • Uses --untracked-files=no to avoid false positives from logs/artifacts
  • Guarantees baseline validity: if script succeeds, baseline was provably clean
  • Solves the problem: "can you confirm all try-fix runs started from correct baseline?" - now we can

Other

  • Updated pr agent documentation
  • Added android.instructions.md
  • Deleted obsolete skills.instructions.md

Issues Fixed

N/A - Infrastructure improvements

Skills improvements:
- try-fix: Streamlined from 346→281 lines, moved examples to references/
- pr-finalize: Enhanced description with triggers, moved example to references/
- verify-tests-fail: Added markdown report generation and PR-based output structure
- learn-from-pr: Updated SKILL.md

Script improvements:
- EstablishBrokenBaseline.ps1: Added fail-fast dirty working directory check
  - Fails immediately if tracked files have uncommitted changes
  - Uses --untracked-files=no to avoid false positives from logs/artifacts
  - Guarantees baseline validity: if script succeeds, baseline was clean

Other:
- Updated pr agent documentation
- Added android.instructions.md
- Deleted obsolete skills.instructions.md
Copilot AI review requested due to automatic review settings January 23, 2026 23:21
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves agent skills and scripts based on learnings from real agent sessions, making workflows more robust and user-friendly.

Changes:

  • Enhanced verify-tests-fail skill with markdown report generation and PR-based output folder structure
  • Streamlined try-fix skill from 346→281 lines by moving examples to references/
  • Enhanced pr-finalize skill with better trigger phrases and quality preservation guidelines
  • Added fail-fast dirty working directory check to EstablishBrokenBaseline.ps1
  • Added new android.instructions.md with Android-specific development guidance
  • Updated path references from .github/agent-pr-session/ to CustomAgentLogsTmp/PRState/ throughout
  • Deleted obsolete skills.instructions.md (content moved to custom coding guidelines)

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
.github/skills/verify-tests-fail-without-fix/scripts/verify-tests-fail.ps1 Added PR number auto-detection, markdown report generation, and PR-based output directory structure
.github/skills/verify-tests-fail-without-fix/SKILL.md Documented new output files and PR number detection features
.github/skills/try-fix/SKILL.md Streamlined from 346→281 lines, strengthened "alternative-focused" principle, moved examples to references/
.github/skills/try-fix/references/*.md New reference files for output structure, examples, and compile error patterns
.github/skills/pr-finalize/SKILL.md Enhanced description with trigger phrases and negative triggers, added quality preservation guidance
.github/skills/pr-finalize/references/complete-example.md Moved 65-line example to references for progressive disclosure
.github/skills/learn-from-pr/SKILL.md Updated session markdown path references
.github/scripts/EstablishBrokenBaseline.ps1 Added fail-fast dirty working directory check, removed FixFiles parameter (auto-detect only)
.github/instructions/skills.instructions.md Deleted (content moved to custom coding guidelines)
.github/instructions/android.instructions.md New file with Android View namespace collision solutions and handler best practices
.github/agents/pr.md Updated state file path references
.github/agents/pr/post-gate.md Updated state file path references

- Remove duplicate $ErrorActionPreference and $RepoRoot initialization
- Add null-safe check for $MergeBase.Substring() calls
@PureWeen PureWeen requested a review from kubaflo January 23, 2026 23:39
Added a section detailing how to save the PR finalization summary to a markdown file for tracking, including required content and file path. This helps standardize documentation and improve traceability of PR assessments.
@kubaflo kubaflo force-pushed the skill-improvements branch from 2b1603e to 2c55cb9 Compare January 24, 2026 00:20
Copy link
Contributor

@kubaflo kubaflo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's merge this PR before the comment-skill one, so that we can use files from the CustomAgentLogsTemp to generate comments

@PureWeen PureWeen merged commit cd4778d into main Jan 25, 2026
2 of 3 checks passed
@PureWeen PureWeen deleted the skill-improvements branch January 25, 2026 18:37
@kubaflo kubaflo added the area-ai-agents Copilot CLI agents, agent skills, AI-assisted development label Jan 28, 2026
@kubaflo kubaflo added the copilot label Feb 6, 2026
This was referenced Feb 12, 2026
This was referenced Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-ai-agents Copilot CLI agents, agent skills, AI-assisted development copilot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments