From 4c9aeab65e10515e459c5032d68e8f52eef8d2ad Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 28 Aug 2026 14:55:30 +0000 Subject: [PATCH] :books: Add issue/PR CLI auto-trigger to agent guide When an issue or PR is mentioned in conversation, fetch details via gh CLI or scripts/gh.py instead of WebFetch. Use gh issue view for issues, gh pr view for single PRs, and scripts/gh.py prs for multiple PRs. AI-assisted-by: glm-5.3-flash --- AGENTS.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index d4d1e238e7..69d33e7eba 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -40,6 +40,15 @@ Skipping this step is the #1 cause of incorrect or incomplete work. `github.com/penpot/penpot/security/advisories/GHSA-*`, extract the GHSA ID from the URL and run `python3 scripts/gh.py advisories ` to fetch full advisory details before proceeding. +- **Issue or PR mentioned** — When the user mentions a penpot/penpot issue or + PR (URL like `github.com/penpot/penpot/issues/` / `.../pull/`, or a + bare `#` when context clearly refers to this repo), fetch details via CLI + instead of WebFetch: + - Issue → `gh issue view --repo penpot/penpot` (add `--comments` when + discussion context matters). + - Single PR → `gh pr view --repo penpot/penpot`. + - Multiple PRs (list, file, or milestone) → `python3 scripts/gh.py prs ...`. + Do this before proceeding. Only use WebFetch if the CLI fails. ## Writing Rules