From e896a70627a757cefea87f06880bb291761e3f08 Mon Sep 17 00:00:00 2001 From: David Cramer Date: Tue, 3 Feb 2026 10:00:54 -0800 Subject: [PATCH] fix(iterate-pr): Handle workflow field as string from gh CLI The gh pr checks --json workflow field returns a string, not an object. The previous code assumed it was a dict with a "name" key, causing an AttributeError when accessing .get("name") on a string. Also update SKILL.md to use uv run instead of python directly, and add skill design guideline to AGENTS.md for consistent script invocation. Co-Authored-By: Claude --- AGENTS.md | 4 ++++ plugins/sentry-skills/skills/iterate-pr/SKILL.md | 4 ++-- .../skills/iterate-pr/scripts/fetch_pr_checks.py | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index c5fb526..22e79a9 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -51,6 +51,10 @@ license: LICENSE Instructions for the agent. ``` +## Skill Design Guidelines + +When writing skills that include Python scripts, always instruct the agent to use `uv run