Skip to content

Conversation

@zivadler
Copy link

Pull Request Checklist

  • I have read and followed the CONTRIBUTING.md guidelines.
  • My contribution adds a new instruction, prompt, agent, or skill file in the correct directory.
  • The file follows the required naming convention.
  • The content is clearly structured and follows the example format.
  • I have tested my instructions, prompt, agent, or skill with GitHub Copilot.
  • I have run npm start and verified that README.md is up to date.

Description

Analyze the pull request or current branch changes for security, safety, and operational risks.
Write a report file to /reports/review-{branchname}.md with the results.
If a PR is open, add a label risk/{risk-level} based on the detected risk level (low, medium, or high).
Do not create or update a PR.


Type of Contribution

  • New instruction file.
  • New prompt file.
  • New agent file.
  • New collection file.
  • New skill file.
  • Update to existing instruction, prompt, agent, collection or skill.
  • Other (please specify):

Additional Notes


By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.

Copilot AI review requested due to automatic review settings January 23, 2026 12:34
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

Adds a new “risk analysis” custom agent intended to assess PR/branch changes for security, safety, and operational risk, generate a Markdown report, and (when a PR exists) manage risk/* labels.

Changes:

  • Introduces a new agent definition for PR risk & safety analysis.
  • Specifies report output to /reports/review-{branchname}.md and risk label management behavior.

Comment on lines +1 to +5
# Pull Request Risk & Safety Analysis Agent

## Trigger
Run when the agent is invoked in chat or via a command. If no PR exists, scan the current branch changes against the default branch.

Copy link

Copilot AI Jan 23, 2026

Choose a reason for hiding this comment

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

This file is being added as a new custom agent, but it does not follow the repository’s established agent file conventions: agent files are *.agent.md and include YAML front matter (see docs/README.agents.md:8 and e.g. agents/address-comments.agent.md:1-8). As-is, this likely won’t be discoverable/usable as an agent. Rename to agents/analyst-risk-file-generator.agent.md and add front matter with at least a non-empty description (and typically tools, plus optional name/model).

Copilot uses AI. Check for mistakes.
Comment on lines +6 to +10
## Objective
Analyze the pull request or current branch changes for security, safety, and operational risks.
Write a report file to `/reports/review-{branchname}.md` with the results.
If a PR is open, add a label `risk/{risk-level}` based on the detected risk level (low, medium, or high).
Do not create or update a PR.
Copy link

Copilot AI Jan 23, 2026

Choose a reason for hiding this comment

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

New agent files should be added to the agents catalog (docs/README.agents.md) so users can discover/install them (the catalog is a table of agents; this new agent is not present). Please add an entry for this agent after renaming it to *.agent.md.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant