Skip to content

fix(pr-triage): address bundled scripts by skill directory - #2063

Open
shahar1 wants to merge 1 commit into
apache:mainfrom
shahar1:fix/skill-local-script-paths
Open

shahar1 wants to merge 1 commit into
apache:mainfrom
shahar1:fix/skill-local-script-paths

Conversation

@shahar1

@shahar1 shahar1 commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • pr-triage told the agent to run its two bundled helpers from <framework>/skills/pr-management-triage/scripts/. On a marketplace install <framework> is ~/.cache/apache-magpie/framework/current, which holds tools/ and no skills/, so both commands fail with "No such file".
  • Both commands now use <skill-dir>/scripts/, the placeholder isolated-setup-doctor already uses. It resolves on every install method.

Type of change

  • Skill change (.claude/skills/<name>/) — eval fixtures updated below

Test plan

  • prek run on the two changed files passes (after refreshing the measured_tokens stamp)
  • Other: on a marketplace install of 0.9.0.dev202611101307, ran typed_decision_prefilter.py from the skill's own scripts/ directory against a synthetic PR. It returned a prediction and wrote the telemetry record. ls ~/.cache/apache-magpie/framework/current/ shows only plugins/ and tools/.
  • For skill changes: eval suite passes for the affected skill — not run. No eval fixture pins either command.

No new eval fixture: the change is a path in a command block, not skill behaviour.

RFC-AI-0004 compliance

  • Vendor neutrality — placeholders only; check-placeholders passes

Linked issues

None.

Notes for reviewers (optional)

Four other skills use the same <framework>/skills/<name>/scripts/ form and have the same gap on marketplace installs: workflow-optimization, model-verify, setup status, and write-skill. I left them out. The setup-status eval fixtures pin python3 .apache-magpie/skills/setup-status/scripts/collect_status.py, so that one needs fixture changes and a decision on the expected command. I can follow up once the placeholder choice here is agreed.

<skill-dir> has no row in the AGENTS.md placeholder table yet. Each use defines it inline, as setup does.

Refs #2023, which noted this gap.

Generated-by: Claude Code (Fable 5.2), reviewed by shahar1 before submission

The pr_link.py and typed_decision_prefilter.py commands pointed at
<framework>/skills/pr-management-triage/scripts/. On a marketplace
install <framework> is ~/.cache/apache-magpie/framework/current, which
holds tools/ and no skills/, so both commands fail with "No such file".

Use <skill-dir>/scripts/, the placeholder isolated-setup-doctor already
uses, which resolves on every install method.

Signed-off-by: Shahar Epstein <60007259+shahar1@users.noreply.github.com>
Generated-by: Claude Code (Fable 5.2)
@github-actions github-actions Bot added family:pr-management pr-management-* skills capability:triage Sweep + classify + propose disposition labels Nov 13, 2026

@Kaap10 Kaap10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM! Clean and necessary fix.

Switching to <skill-dir>/scripts/ cleanly resolves the missing script failure on marketplace installs and matches the existing pattern in isolated-setup-doctor. Frontmatter token restamp is verified and CI is all green.

Doing the other four skills and adding <skill-dir> to AGENTS.md in a follow-up makes total sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

capability:triage Sweep + classify + propose disposition family:pr-management pr-management-* skills

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants