[Agents] [Agent Skills] Add PR review agent and skills#2643
Conversation
🤖 GitHub commentsJust comment with:
|
ECS PR Triage (automated)PR Triage ReportPR: #2643 — [Agents] [Agent Skills] Add PR review agent and skills SummaryThis PR adds a new automated PR quality review agent alongside the existing PR triage agent. It introduces a new GitHub Actions workflow ( Files changed
Routing decisionDirect PR is appropriate. This change is entirely tooling and CI automation — it adds a new GitHub Actions workflow and agent skill definitions. No Risk notes
Completeness checklist
Recommended next actions
Posted by PR Triage workflow |
| # pull_request_target runs in the base-repo context so secrets are available for | ||
| # fork PRs. We checkout the base revision (skills, rules, schema inventory base); | ||
| # the PR diff is read via `gh`. | ||
| pull_request_target: |
There was a problem hiding this comment.
I'm a bit hesitant to use pull_request_target if there are other options available. Considering that we've just had a prompt injection attempt (unsuccessful) recently, is there another way we can do this?
Looking at the other workflow, it seems to use the same mechanism, so maybe this isn't actually an issue?
@andrewkroh, any thoughts on this?
|
Hi! We just realized that we haven't looked into this PR in a while. We're We're labeling this PR as If there is no activity on this PR within the next 2 weeks, it will be Thank you for your contribution! |
Summary: ECS PR quality review agent
What this PR does
Adds an automated PR quality review for ECS schema contributions, complementary to PR Triage (routing). It focuses on field-level quality: naming, descriptions, types, examples vs
pattern/expected_values, OTel hints, and overlap/conflicts against a base-branch schema inventory. Findings use High / Medium / Low severity and are posted as a PR comment with a summary and collapsible<details>sections.Changes
New workflow
.github/workflows/pr-review.ymlpull_request_target(opened,synchronize,ready_for_review);workflow_dispatch(PR number, optional model).schema-inventory.tsvfromschemas/*.yml;gh pr diff; OpenCode + LiteLLM (same secrets pattern aspr-triage.yml); writepr-review-report.md.pr-review-${{ pr_number }}, cancel in-progress.New skill —
.agents/skills/ecs-pr-review/SKILL.md— Execution steps for agents (scope, diff, rules, inventory, report).quality-rules.md— Rule IDs, severities, detection, remediation.report-template.md— Comment layout (title, Overall counts,### Summary details, severity<details>).Rule update
.agents/rules/ecs-schema-standards.mdc— Links to ecs-pr-review skill, quality-rules, andpr-review.yml.Configuration
LITELLM_API_KEYrequired (same as PR Triage). Optional:LITELLM_MODEL,LITELLM_BASE_URL, repo varLITELLM_MODEL_DEFAULT.Notes