ecs-pr-triage
Skill1.1k starsChanged 7 months agoApache-2.0View on GitHub
Triages an ECS pull request. Analyzes the PR diff and metadata, classifies the change (schema / tooling / docs / mixed), routes it to the correct contribution path (direct PR vs RFC Proposal vs needs-discussion), checks PR completeness, and produces a structured Triage Report.
Trending
Quiet this year.thin dataabout the whole repository
Who's talking about elastic/ecs
- fluent/fluentd-kubernetes-daemonset“Feaure request: Adhere to Elastic Common Schema (ECS)”GitHub · Apr 4, 2019 · 11 reactions
- elastic/kibana“[Observability] Shared ECS fields across solutions (Uptime, APM, Logs, Metrics)”GitHub · Jun 18, 2020 · 8 reactions
- elastic/package-registry“Change stream.* fields to dataset.* fields”GitHub · May 27, 2020 · 8 reactions
- elastic/kibana“Expose Elasticsearch case insensitivity in EQL/KQL”GitHub · Jun 9, 2022 · 7 reactions
- elastic/beats“Go modules”GitHub · Jan 27, 2020 · 7 reactions
The biggest 5 of 7 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 7
Talked about on GitHub (7 times).
On GitHub · 7
- Apr 4, 2019Feaure request: Adhere to Elastic Common Schema (ECS) — fluent/fluentd-kubernetes-daemonset11 reactions · 4 comments
- Jun 18, 2020[Observability] Shared ECS fields across solutions (Uptime, APM, Logs, Metrics) — elastic/kibana8 reactions · 18 comments
- May 27, 2020Change stream.* fields to dataset.* fields — elastic/package-registry8 reactions · 12 comments
- Jun 9, 2022Expose Elasticsearch case insensitivity in EQL/KQL — elastic/kibana7 reactions · 9 comments
- Jan 27, 2020Go modules — elastic/beats7 reactions · 11 comments
2 more on GitHub
- Mar 16, 2019Compatibility with Elastic ECS? — logstash-plugins/logstash-filter-useragent5 reactions · 4 comments
- Sep 25, 2018Elastic Common Schema (ECS) — HASecuritySolutions/VulnWhisperer5 reactions · 6 comments
In this repositoryOne other file it gives its agents.
- ecs-rfc-guideSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 54
If schema change: generated/ and docs/reference/ artifacts present in the diff (evidence that make was run and outputs committed).
- Very specific: line 55
If new/changed fields relate to OTel semconv: otel: metadata is encouraged but not required.
- Very specific: line 56
No hand-edits to files that should only be generator output (docs/reference/ecs-*.md, generated/).
- Distinctive: line 71
Conservative: when borderline, prefer Needs Discussion or Needs RFC over Direct PR.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ECS PR triage
This skill triages an ECS pull request. The agent needs access to the PR diff, changed file list, PR description, and metadata — either already present in context or fetched via tools (e.g. gh). It analyzes that context, makes a routing decision, and delivers a triage report.
Execution steps
1. Inventory the PR context
From the PR context available to you (or fetched via gh pr view, gh pr diff, etc.), extract:
- PR number, title, author.
- Changed file paths — bucket every path into one of these categories:
schemas/— source schema YAML (the key signal for routing)generated/— build outputs (should only change as a side effect of schema +make)scripts/— generator tooling, tests, templatesdocs/— hand-authored docs vs generated reference (docs/reference/ecs-*.md)rfcs/— RFC markdown and supporting YAML.github/— CI workflows, templates, issue configrelease/— release-process artifacts:versionfile,CHANGELOG.mdrotation, release-note shuffling indocs/- Root config —
Makefile,version,CHANGELOG.next.md, etc.
- PR description body — check which of the 7 template sections from
.github/PULL_REQUEST_TEMPLATE.mdare filled vs empty/placeholder. - Diff content — scan for signals: new field set files, field removals,
type:changes, newreusableentries,allowed_valuesadditions,alpha/betachanges, etc.
2. Classify the change
Walk the decision tree in classification-rules.md in priority order:
- Check for release process PR first — if the PR exclusively touches release mechanics (version bumps, changelog rotation, moving/updating release notes in
docs/,CHANGELOG.mdconsolidation) it is always Direct PR. Release PRs never require an RFC or discussion regardless of how many files change. - Check §1 (RFC triggers) — any match means classification is Needs RFC.
Triggers: new
schemas/*.ymlfile, breaking changes (field removal, type change, semantic redefinition), new reuse topology, novel use case, ECS-wide scope, >10 new leaf fields. - Check §3 (ambiguous) — any match (without §1) means classification is Needs Discussion.
Includes: 3–10 new fields in one field set, new
allowed_valueson categorization fields (event.category,event.type,event.kind), maturity promotions, unjustifiedobject/flattened. - Otherwise §2 — all remaining low-risk patterns → classification is Direct PR.
Assign labels:
- Change type:
Schema Change|Tooling|Documentation|Mixed - Scope:
Minor|Moderate|Substantial
3. Check completeness
Evaluate against the checklist in ecs-pr-completeness rule:
- PR description: all 7 template sections answered (not empty/placeholder).
CHANGELOG.next.mdentry: only expected whenschemas/orscripts/files change (i.e. schema changes or tooling changes). RFC-only PRs (rfcs/only), pure documentation PRs, CI-only PRs, and release process PRs do not require a changelog entry. When required, verify it is in the correct section (Schema Changes vs Tooling and Artifact Changes) and includes#NNNN.- If schema change:
generated/anddocs/reference/artifacts present in the diff (evidence thatmakewas run and outputs committed). - If new/changed fields relate to OTel semconv:
otel:metadata is encouraged but not required. - No hand-edits to files that should only be generator output (
docs/reference/ecs-*.md,generated/).
Mark each item as met or missing.
4. Produce the triage report
Fill report-template.md completely. Rules:
- Cite specific triggers. E.g. "New file
schemas/foo.ymldetected → RFC required per classification-rules §1." - List every missing checklist item with clear remediation (e.g. "Add a
CHANGELOG.next.mdentry under Schema Changes > Added with#NNNN"). - If Needs RFC: point the contributor to
rfcs/PROCESS.mdand the RFC template atrfcs/0000-rfc-template.md. Reference the ecs-rfc-guide skill for a detailed walkthrough. - If Needs Discussion: state exactly what is ambiguous and what a maintainer should weigh in on.
Decision defaults
- Conservative: when borderline, prefer Needs Discussion or Needs RFC over Direct PR. Under-triaging is worse than over-triaging.
- No approval authority: the agent triages and reports. It does not approve, request changes, or merge.
Important repo facts
- Source of truth for fields:
schemas/*.yml. Hand-edits togenerated/ordocs/reference/ecs-*.mdwithout a corresponding schema change are errors — flag them. - Build pipeline:
makeregenerates all artifacts;make testruns unit tests;make checkruns generate + test + diff (CI parity). - RFC process: single Proposal stage per
rfcs/PROCESS.md; template atrfcs/0000-rfc-template.md. - OTel mapping:
otel:metadata on fields is optional; encouraged when a clear semconv counterpart exists but not a merge gate.
Related assets
- classification-rules.md — full decision tree with thresholds and examples.
- report-template.md — output format to fill.
- ecs-rfc-guide skill — reference for contributors when RFC is needed.
- Rules: ecs-contribution-routing, ecs-schema-standards, ecs-pr-completeness.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

