[Agents] [Agent Skills] Add PR review agent and skills#2643
[Agents] [Agent Skills] Add PR review agent and skills#2643bhapas wants to merge 2 commits intoelastic:mainfrom
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 |
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