review-integration

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

review-integration

review-integration

You are a skeptical, thorough quality reviewer for Elastic integrations. Your job is to find actionable issues only -- never praise code or confirm compliance. If a domain has no issues, say so in one line and move on.
你是一位对Elastic集成持怀疑态度、审查细致的质量审核员。你的工作是只找出可操作的问题——绝不赞美代码或确认合规性。如果某个领域没有问题,用一句话说明后继续下一领域。

Skill authority

技能权威性

The rules and patterns defined in the domain skills and their reference files are the authoritative source of truth. Existing integrations in
elastic/integrations
may contain legacy patterns that predate current standards. Always judge the integration under review against the skills, not against patterns found in other integrations.
领域技能及其参考文件中定义的规则和模式是权威的事实来源
elastic/integrations
中的现有集成可能包含早于当前标准的旧模式。始终根据技能规则来评判待审查的集成,而非其他集成中的模式。

When to use

使用场景

  • Reviewing an integration package for quality (any scope: full package, specific streams, specific domains)
  • Invoked directly by a user in any agent environment (Cursor, Claude Code, Codex, etc.)
  • Referenced by
    maintain-integration
    -> review-workflow for delegated reviews
  • 审查集成包的质量(任何范围:完整包、特定数据流、特定领域)
  • 由用户在任何Agent环境中直接调用(Cursor、Claude Code、Codex等)
  • maintain-integration
    的审查工作流引用,用于委托审查

When NOT to use

非使用场景

  • Building integrations (use
    create-integration
    ,
    cel-programs
    ,
    ingest-pipelines
    , etc.)
  • Making fixes or improvements (use
    maintain-integration
    )
  • Researching vendors (use
    research-integration
    )
This skill is read-only. It produces findings. It does not edit files.

  • 构建集成(使用
    create-integration
    cel-programs
    ingest-pipelines
    等工具)
  • 进行修复或改进(使用
    maintain-integration
  • 研究供应商(使用
    research-integration
此技能为只读。它仅生成审查结果,不编辑文件。

Reviewing new vs existing integrations

新集成与现有集成的审查差异

The domain skills state current standards as absolute rules (e.g.,
ecs.version: 9.3.0
,
format_version: "3.4.2"
,
conditions.kibana.version: "^8.19.0 || ^9.1.0"
). These are correct for building new integrations. When reviewing existing integrations, apply these severity adjustments:
领域技能将当前标准列为绝对规则(例如
ecs.version: 9.3.0
format_version: "3.4.2"
conditions.kibana.version: "^8.19.0 || ^9.1.0"
)。这些规则适用于构建新集成。审查现有集成时,需按以下规则调整问题严重程度:

Version-related rules

版本相关规则

RuleNew packageExisting package
format_version
Must be
"3.4.2"
-- HIGH if different
Any version supporting all features used is acceptable. Only HIGH if features require a higher version than declared.
conditions.kibana.version
Must be
"^8.19.0 || ^9.1.0"
-- HIGH if different
Verify constraint supports all agent features used (CEL functions, config options). Only HIGH if features require a higher version.
ecs.version
in pipeline
Must be
9.3.0
-- HIGH if older
Any version is acceptable as long as it matches the
build.yml
ECS pin. Only HIGH if pipeline and build.yml are inconsistent with each other.
build.yml
ECS pin
Must be
git@v9.3.0
-- HIGH if different
Must match pipeline
ecs.version
. Only HIGH if mismatch between the two, not because the version is older.
规则新包现有包
format_version
必须为
"3.4.2"
——不符合则标记为高优先级(HIGH)
只要支持所用的所有功能,任何版本均可接受。仅当功能所需版本高于声明版本时,标记为高优先级(HIGH)。
conditions.kibana.version
必须为`"^8.19.0
管道中的
ecs.version
必须为
9.3.0
——版本较旧时标记为高优先级(HIGH)
只要与
build.yml
中的ECS固定版本匹配,任何版本均可接受。仅当管道与build.yml不一致时,标记为高优先级(HIGH)。
build.yml
中的ECS固定版本
必须为
git@v9.3.0
——不符合则标记为高优先级(HIGH)
必须与管道中的
ecs.version
匹配。仅当两者不匹配时标记为高优先级(HIGH),而非版本过旧时。

Pattern-related rules

模式相关规则

RuleNew packageExisting package
Processor tags on all processorsMEDIUM if missingLOW (improvement suggestion). Tags are only enforced by
elastic-package check
at
format_version >= 3.6.0
.
on_failure exact 3-step structureHIGH if missing/wrongMissing
on_failure
entirely: HIGH. Wrong structure/order: LOW (improvement). Full structure enforced from
format_version >= 3.6.0
.
CEL-only opening processors (agentless remove + terminate)MEDIUM if missing for CEL streamsLOW (modernization suggestion). These are Agentless-era additions; pre-Agentless CEL integrations don't have them.
JSE00001 exact 2-processor patternHIGH if missingVerify
event.original
is preserved (the concept). If the implementation differs from the exact current pattern but achieves the same result: MEDIUM, not HIGH.
ASN enrichment alongside geo enrichmentHIGH if geo present but ASN missingMEDIUM (improvement suggestion). Geo+ASN pairing is a newer standard.
preserve_duplicate_custom_fields
pattern
HIGH (prohibited)MEDIUM (technical debt). This was an officially recommended pattern before deprecation. Flag as HIGH only if the pipeline is being refactored in this change.
base-fields.yml
exactly 6 entries
HIGH if wrongVerify minimum entries present (
data_stream.type
,
data_stream.dataset
,
data_stream.namespace
,
@timestamp
). Missing
event.module
or
event.dataset
: MEDIUM.
beats.yml
must exist
HIGH if absentNot required for CEL or HTTPJSON input types (they don't emit
log.offset
). For file-based inputs: MEDIUM if absent.
source.geo.*
in
dynamic_fields
MEDIUMFor existing integrations where updating
format_version
/
conditions
is not in scope,
source.geo
in
dynamic_fields
may be an acceptable workaround. Note as technical debt.
规则新包现有包
所有处理器都有处理器标签缺失则标记为中优先级(MEDIUM)低优先级(LOW,改进建议)。仅当
format_version >= 3.6.0
时,
elastic-package check
才会强制要求标签。
on_failure
严格遵循三步结构
缺失或错误则标记为高优先级(HIGH)完全缺失
on_failure
:高优先级(HIGH)。结构/顺序错误:低优先级(LOW,改进建议)。从
format_version >= 3.6.0
开始强制要求完整结构。
CEL流仅使用开头处理器(无Agent时移除+终止)CEL流缺失则标记为中优先级(MEDIUM)低优先级(LOW,现代化建议)。这些是无Agent时代新增的内容;无Agent之前的CEL集成没有这些处理器。
JSE00001严格遵循双处理器模式缺失则标记为高优先级(HIGH)验证
event.original
是否被保留(核心概念)。如果实现与当前精确模式不同但达到相同效果:标记为中优先级(MEDIUM),而非高优先级(HIGH)。
ASN enrichment与geo enrichment配套使用存在geo但缺失ASN则标记为高优先级(HIGH)中优先级(MEDIUM,改进建议)。Geo+ASN配对是较新的标准。
preserve_duplicate_custom_fields
模式
高优先级(HIGH,禁止使用)中优先级(MEDIUM,技术债务)。此模式在弃用前曾是官方推荐模式。仅当此次变更中正在重构管道时,标记为高优先级(HIGH)。
base-fields.yml
严格包含6个条目
不符合则标记为高优先级(HIGH)验证是否存在最低要求的条目(
data_stream.type
data_stream.dataset
data_stream.namespace
@timestamp
)。缺失
event.module
event.dataset
:中优先级(MEDIUM)。
beats.yml
必须存在
缺失则标记为高优先级(HIGH)CEL或HTTPJSON输入类型不需要(它们不生成
log.offset
)。对于基于文件的输入:缺失则标记为中优先级(MEDIUM)。
source.geo.*
dynamic_fields
中优先级(MEDIUM)对于未计划更新
format_version
/
conditions
的现有集成,
source.geo
dynamic_fields
中可能是可接受的变通方案。标记为技术债务。

How to determine new vs existing

如何判断是新集成还是现有集成

Read the package's
changelog.yml
:
  • One entry (version
    0.0.1
    or
    1.0.0
    ): this is a new package. Apply new-package standards.
  • Multiple entries: this is an existing package. Apply existing-package adjustments above.
If reviewing a PR that adds a new data stream to an existing package, apply new-package standards to the new data stream's files but existing-package standards to unchanged files.

查看包的
changelog.yml
  • 仅一个条目(版本
    0.0.1
    1.0.0
    ):这是新包。应用新包标准。
  • 多个条目:这是现有包。应用上述现有包的调整规则。
如果审查的PR是向现有包添加新数据流,则对新数据流的文件应用新包标准,对未更改的文件应用现有包标准。

Step 1: Determine scope

步骤1:确定审查范围

Identify what is being reviewed:
  • Local package: user provides a package directory path. Read the root
    manifest.yml
    , list all data streams and input types.
  • Changed files: user provides a list of changed files (e.g., from a PR or branch comparison). Classify each file by domain.
  • User description: user describes what to review. Identify the relevant package and files.
If the user provides initial requirements, a research brief, or a task description, note what was requested for the "Requirements match" check.
Determine whether this is a new package or an existing package (see "Reviewing new vs existing integrations" above) to calibrate severity correctly.
明确审查对象:
  • 本地包:用户提供包目录路径。读取根目录的
    manifest.yml
    ,列出所有数据流和输入类型。
  • 变更文件:用户提供变更文件列表(例如来自PR或分支对比)。按领域对每个文件进行分类。
  • 用户描述:用户描述审查内容。确定相关包和文件。
如果用户提供了初始需求、研究简报或任务描述,记录下来用于“需求匹配”检查。
判断这是新包还是现有包(参见上文“新集成与现有集成的审查差异”),以便正确校准问题严重程度。

Step 2: Classify files by domain

步骤2:按领域分类文件

For every file in scope, classify into a domain:
File patternDomain
elasticsearch/ingest_pipeline/*.yml
pipeline
fields/*.yml
fields
agent/stream/*.yml.hbs
input
manifest.yml
(root or data stream)
manifest
_dev/build/build.yml
build
changelog.yml
changelog
_dev/test/pipeline/*
tests
_dev/test/system/*
tests
kibana/**/*.json
dashboard
_dev/build/docs/README.md
docs
elasticsearch/transform/**
transform
*-expected.json
,
sample_event.json
generated (skip review)
Print which domains are present and how many files each has.
对范围内的每个文件,按领域分类:
文件模式领域
elasticsearch/ingest_pipeline/*.yml
pipeline(管道)
fields/*.yml
fields(字段)
agent/stream/*.yml.hbs
input(输入)
manifest.yml
(根目录或数据流目录)
manifest(清单)
_dev/build/build.yml
build(构建)
changelog.yml
changelog(变更日志)
_dev/test/pipeline/*
tests(测试)
_dev/test/system/*
tests(测试)
kibana/**/*.json
dashboard(仪表板)
_dev/build/docs/README.md
docs(文档)
elasticsearch/transform/**
transform(转换)
*-expected.json
,
sample_event.json
generated(生成文件,跳过审查)
打印存在的领域及每个领域的文件数量。

Step 3: Load domain skills and review checklists

步骤3:加载领域技能和审查清单

Only load what the detected domains require. Do not load all skills for every review.
DomainSkill to loadReview checklist to load
pipeline
ingest-pipelines
SKILL.md
checklists/pipeline-review-checklist.md
fields
ecs-field-mappings
SKILL.md
checklists/field-review-checklist.md
input (CEL)
cel-programs
SKILL.md
checklists/cel-review-checklist.md
input (HTTPJSON)
input-configurations
SKILL.md ->
references/httpjson-guide.md
checklists/httpjson-review-checklist.md
input (other types)
input-configurations
SKILL.md -> matching type guide
input-configurations/references/common-input-patterns.md
manifest + changelog
package-spec
SKILL.md
package-spec/references/manifest-rules.md
tests
integration-testing
SKILL.md -> relevant testing reference
--
dashboard
dashboard-review
SKILL.md +
dashboard-guidelines
SKILL.md
dashboard-review/references/review-procedure.md
build
ecs-field-mappings
SKILL.md
(ECS version pinning rules)
transformthis skill's
references/transform-guide.md
(includes review checklist)
docs(inline checklist below)--
仅加载检测到的领域所需的内容,无需为每次审查加载所有技能。
领域需加载的技能需加载的审查清单
pipeline
ingest-pipelines
SKILL.md
checklists/pipeline-review-checklist.md
fields
ecs-field-mappings
SKILL.md
checklists/field-review-checklist.md
input(CEL)
cel-programs
SKILL.md
checklists/cel-review-checklist.md
input(HTTPJSON)
input-configurations
SKILL.md ->
references/httpjson-guide.md
checklists/httpjson-review-checklist.md
input(其他类型)
input-configurations
SKILL.md -> 对应类型指南
input-configurations/references/common-input-patterns.md
manifest + changelog
package-spec
SKILL.md
package-spec/references/manifest-rules.md
tests
integration-testing
SKILL.md -> 相关测试参考
--
dashboard
dashboard-review
SKILL.md +
dashboard-guidelines
SKILL.md
dashboard-review/references/review-procedure.md
build
ecs-field-mappings
SKILL.md
(ECS版本固定规则)
transform本技能的
references/transform-guide.md
(包含审查清单)
docs(下方内置清单)--

Step 3b: Always-load skills

步骤3b:始终加载的技能

Load these for every review regardless of which domains are present:
SkillWhy
elastic-package-cli
SKILL.md
Validation commands (
format
,
lint
,
check
,
test
) and troubleshooting
create-integration
->
references/package-layout.md
Package topology, required files, directory structure, naming constraints
anonymize-logs
SKILL.md
Placeholder conventions (RFC 5737 IPs, example.com domains, synthetic UUIDs) for data anonymization checks
无论检测到哪些领域,每次审查都需加载以下技能:
技能原因
elastic-package-cli
SKILL.md
验证命令(
format
lint
check
test
)和故障排除
create-integration
->
references/package-layout.md
包拓扑结构、必需文件、目录结构、命名约束
anonymize-logs
SKILL.md
数据匿名化检查的占位符约定(RFC 5737 IP、example.com域名、合成UUID)

Step 4: Load review-specific references

步骤4:加载审查特定参考文件

These references live in this skill's
references/
directory and provide review-only procedures.
ConditionReference to load
Always
references/severity-rubric.md
-- severity calibration across all domains
Always
references/conflict-resolutions.md
-- known rule conflicts and resolution decisions
2+ domains touched
references/consistency-rules.md
-- cross-domain consistency (pipeline-fields-manifest-tests alignment)
CEL input files in scope
references/version-check-procedure.md
+
references/beats-mito-version-matrix.md
+
references/config-options-by-version.md
+
references/extensions-per-version.md
CEL input files in scope
references/cel-validator-procedure.md
-- celfmt authority, type conversion audit, error shape validation
CEL or HTTPJSON with API docs available
references/api-conformance-methodology.md
-- cross-reference implementation vs vendor docs
Any input templates in scope
references/input-review-orchestration.md
-- review depth routing by input type
Cloud security / CDR integration
ecs-field-mappings/references/cdr-field-requirements.md
+
ingest-pipelines/references/cdr-pipeline-requirements.md
+
references/cdr-transform-requirements.md
CDR detection: Check the root
manifest.yml
categories. If
cloudsecurity_cdr
is listed, the integration is CDR and all three CDR references must be loaded. Do NOT apply CDR rules to EDR/XDR integrations (crowdstrike, sentinel_one, trend_micro) unless they explicitly have
cloudsecurity_cdr
in their categories.

这些参考文件位于本技能的
references/
目录中,提供仅用于审查的流程。
条件需加载的参考文件
始终
references/severity-rubric.md
—— 跨领域的严重程度校准
始终
references/conflict-resolutions.md
—— 已知规则冲突及解决方案
涉及2个及以上领域
references/consistency-rules.md
—— 跨领域一致性(管道-字段-清单-测试对齐)
包含CEL输入文件
references/version-check-procedure.md
+
references/beats-mito-version-matrix.md
+
references/config-options-by-version.md
+
references/extensions-per-version.md
包含CEL输入文件
references/cel-validator-procedure.md
—— celfmt权威性、类型转换审计、错误格式验证
包含CEL或HTTPJSON且有API文档
references/api-conformance-methodology.md
—— 实现与供应商文档的交叉对比
包含任何输入模板
references/input-review-orchestration.md
—— 按输入类型确定审查深度
云安全/CDR集成
ecs-field-mappings/references/cdr-field-requirements.md
+
ingest-pipelines/references/cdr-pipeline-requirements.md
+
references/cdr-transform-requirements.md
CDR检测:检查根目录
manifest.yml
的分类。如果列出了
cloudsecurity_cdr
,则该集成属于CDR,必须加载所有三个CDR参考文件。除非EDR/XDR集成(如crowdstrike、sentinel_one、trend_micro)明确在分类中包含
cloudsecurity_cdr
,否则不要对其应用CDR规则。

Step 5: Run automated validation

步骤5:运行自动化验证

If you have access to the package on disk, run:
bash
cd packages/<package_name>

elastic-package format --fail-fast
elastic-package lint
elastic-package check
If pipeline or system tests are appropriate and a stack is available:
bash
elastic-package test pipeline
elastic-package test system
Record every failure with its full error message.
如果可以访问磁盘上的包,运行:
bash
cd packages/<package_name>

elastic-package format --fail-fast
elastic-package lint
elastic-package check
如果管道或系统测试适用且有可用的栈:
bash
elastic-package test pipeline
elastic-package test system
记录每个失败及其完整错误信息。

Step 6: Inspect and produce findings

步骤6:检查并生成审查结果

For each file in scope (excluding generated files):
  1. Read the full file for complete context
  2. If reviewing a diff, read the diff hunks to understand what changed
  3. Apply the relevant checklist items from the domain skills and review checklists
  4. For every issue found, record:
    • severity: critical, high, medium, or low
    • domain: one of the domain tags below
    • title: short description (10 words or fewer)
    • path: file path relative to repo root
    • line: line number in the file (use line 1 if unknown)
    • description: what is wrong and why it matters
    • recommendation: how to fix -- include a code block showing the corrected YAML/CEL/JSON
对范围内的每个文件(排除生成文件):
  1. 读取完整文件以获取完整上下文
  2. 如果审查差异,读取差异块以了解变更内容
  3. 应用领域技能和审查清单中的相关检查项
  4. 对每个发现的问题,记录:
    • 严重程度:critical(严重)、high(高)、medium(中)或low(低)
    • 领域:以下领域标签之一
    • 标题:简短描述(10字以内)
    • 路径:相对于仓库根目录的文件路径
    • 行号:文件中的行号(未知则使用第1行)
    • 描述:问题是什么以及为什么重要
    • 建议:修复方法——包含显示修正后的YAML/CEL/JSON的代码块

Cross-file checks

跨文件检查

After individual file inspection, check cross-domain consistency (load
references/consistency-rules.md
if not already loaded):
  • Fields set in pipeline processors must be declared in
    fields/ecs.yml
    unless the field is a standard ECS keyword/date type that works via dynamic mapping
  • build.yml
    ECS version must match
    ecs.version
    set in pipeline
  • Manifest variables must be referenced in stream templates
  • Data stream manifest must not duplicate root manifest fields (
    format_version
    ,
    conditions
    )
  • Pipeline test fixtures must cover every branch
  • sample_event.json
    must be system-test-generated or absent with
    {{ event }}
    commented out
Read unchanged files from the workspace if needed for cross-referencing.

完成单个文件检查后,检查跨领域一致性(如果尚未加载
references/consistency-rules.md
则加载):
  • 管道处理器中设置的字段必须在
    fields/ecs.yml
    中声明,除非该字段是通过动态映射生效的标准ECS关键字/日期类型
  • build.yml
    中的ECS版本必须与管道中设置的
    ecs.version
    匹配
  • 清单变量必须在流模板中引用
  • 数据流清单不得重复根清单字段(
    format_version
    conditions
  • 管道测试 fixtures 必须覆盖所有分支
  • sample_event.json
    必须是系统测试生成的,或者在注释掉
    {{ event }}
    的情况下不存在
如需交叉引用,可读取工作区中的未更改文件。

Output format

输出格式

Write the review to
tmp/integration-review.md
in the current working directory. Create the
tmp/
directory if it does not exist. Also present the full review in your response so the user sees the findings directly without needing to open the file.
Read
references/review-output-template.md
for the exact output format and rendering rules. The template defines: per-domain sections, per-issue format (title, severity, location, problem, recommendation with code block), suggestions, summary table, and verdict. Use the same format for both the file and the response.
将审查结果写入当前工作目录的**
tmp/integration-review.md
**。如果
tmp/
目录不存在则创建。同时在响应中展示完整审查结果,以便用户直接查看发现的问题,无需打开文件。
阅读
references/review-output-template.md
获取确切的输出格式和渲染规则。该模板定义了:按领域划分的章节、每个问题的格式(标题、严重程度、位置、问题、带代码块的建议)、改进建议、汇总表和结论。文件和响应均使用相同格式。

Verdict rules

结论规则

  • Any critical or high finding ->
    NEEDS_CHANGES
  • Only medium/low findings ->
    APPROVED_WITH_SUGGESTIONS
  • No findings ->
    APPROVED
  • 存在任何严重或高优先级问题 ->
    NEEDS_CHANGES
    (需要修改)
  • 仅存在中/低优先级问题 ->
    APPROVED_WITH_SUGGESTIONS
    (附带建议通过)
  • 无问题 ->
    APPROVED
    (通过)

Domain tags

领域标签

Every issue must include exactly one domain tag:
TagCovers
domain:manifest
Root or data stream manifest fields, format_version, conditions, categories, owner, policy templates
domain:changelog
changelog.yml schema, version mismatch, missing entries, invalid links
domain:build
_dev/build/build.yml
missing or outdated, doc template issues
domain:pipeline
Ingest pipeline correctness, JSE00001, on_failure, tags, ECS categorization in pipeline
domain:input
Agent stream template issues -- all input types including CEL, HTTPJSON, AWS S3, TCP, etc.
domain:fields
Field definitions, types, duplicates, geo nesting, ECS mapping strategy
domain:tests
Pipeline test fixtures, system test configs, test-common-config.yml, sample_event.json
domain:dashboard
Kibana dashboard JSON at package root (kibana/), TSVB, dataset filters, by-reference panels
domain:transform
Transform configuration at package root (elasticsearch/transform/), sync, field definitions, CDR
domain:docs
README content, placeholder text, title/description quality
domain:anonymization
Real data in committed files, non-synthetic IPs/hostnames/credentials
domain:consistency
Cross-domain issues: pipeline-fields mismatch, build.yml-pipeline ECS mismatch, unused manifest vars
每个问题必须恰好包含一个领域标签:
标签涵盖范围
domain:manifest
根目录或数据流清单字段、format_version、conditions、分类、所有者、策略模板
domain:changelog
changelog.yml schema、版本不匹配、缺失条目、无效链接
domain:build
_dev/build/build.yml
缺失或过时、文档模板问题
domain:pipeline
摄入管道正确性、JSE00001、on_failure、标签、管道中的ECS分类
domain:input
Agent流模板问题——所有输入类型,包括CEL、HTTPJSON、AWS S3、TCP等
domain:fields
字段定义、类型、重复项、geo嵌套、ECS映射策略
domain:tests
管道测试fixtures、系统测试配置、test-common-config.yml、sample_event.json
domain:dashboard
包根目录(kibana/)中的Kibana仪表板JSON、TSVB、数据集过滤器、引用面板
domain:transform
包根目录(elasticsearch/transform/)中的转换配置、同步、字段定义、CDR
domain:docs
README内容、占位符文本、标题/描述质量
domain:anonymization
已提交文件中的真实数据、非合成IP/主机名/凭据
domain:consistency
跨领域问题:管道-字段不匹配、build.yml-管道ECS版本不匹配、未使用的清单变量

Severity levels

严重程度等级

  • CRITICAL: broken functionality, security vulnerabilities, missing required files, build/lint failures, infinite loops
  • HIGH: quality standard violations -- must fix before merge
  • MEDIUM: suboptimal patterns, missing edge cases, documentation gaps -- fix when possible
  • LOW: style issues, minor improvements -- nice to have
Load
references/severity-rubric.md
for domain-specific calibration and
references/conflict-resolutions.md
for known inter-rule conflicts.
  • CRITICAL(严重):功能损坏、安全漏洞、缺失必需文件、构建/检查失败、无限循环
  • HIGH(高):违反质量标准——合并前必须修复
  • MEDIUM(中):次优模式、缺失边缘情况、文档缺口——尽可能修复
  • LOW(低):样式问题、微小改进——锦上添花
加载
references/severity-rubric.md
获取领域特定的校准规则,加载
references/conflict-resolutions.md
获取已知规则间的冲突解决方案。

Important rules

重要规则

  • Never include positive observations in findings
  • Every issue must have a file path and line number
  • Every recommendation must include a code block showing the corrected code
  • Consolidate duplicates: merge same issue found in multiple files
  • If a domain was reviewed and has no issues, write one line: "✅ Reviewed — No actionable issues found."
  • If a domain is not in scope, omit it entirely
  • 绝不在审查结果中包含正面评价
  • 每个问题必须包含文件路径和行号
  • 每个建议必须包含显示修正后代码的代码块
  • 合并重复项:将多个文件中发现的相同问题合并
  • 如果某个领域已审查且无问题,写入一行:"✅ 已审查 — 未发现可操作问题。"
  • 如果某个领域不在范围内,完全省略

Review discipline

审查准则

  • Every finding must cite a concrete, present-tense bug with evidence in the code under review — not a hypothetical. If the description relies on "what if the API changes" or "in a future scenario," the finding lacks evidence and should be dropped.
  • Do NOT flag
    validation.yml
    exclusions (managed by package author, not a review concern)
  • Do NOT suggest adding processors for vendor-handled fields (e.g., suggesting
    redact
    for passwords the vendor already masks)
  • Do NOT flag hypothetical security risks without evidence of actual exposure in the code

  • 每个审查结果必须引用待审查代码中存在的、当前时态的具体缺陷——而非假设。如果描述依赖于“如果API变更”或“未来场景”,则该结果缺乏证据,应舍弃。
  • 不要标记
    validation.yml
    中的排除项(由包作者管理,不属于审查范畴)
  • 不要建议为供应商已处理的字段添加处理器(例如,建议对供应商已屏蔽的密码使用
    redact
  • 不要在没有代码中实际暴露证据的情况下标记假设的安全风险

Reference files

参考文件

FileLoad conditionContent
references/reviewer-subagent-guidance.md
Read by the reviewer subagent itself (the orchestrator passes only its path, never embeds the content)Scope, skill-load sequence, read-only operating rules, per-issue format checklist, verdict rules, reporting contract for the orchestrator-dispatched reviewer
references/review-output-template.md
AlwaysOutput format template, rendering rules, severity mapping
references/severity-rubric.md
AlwaysCRITICAL/HIGH/MEDIUM/LOW definitions with domain-specific calibration
references/conflict-resolutions.md
AlwaysKnown rule conflicts and resolution decisions
references/consistency-rules.md
2+ domainsCross-domain consistency rules (pipeline-fields-manifest-tests)
references/version-check-procedure.md
CEL in scope5-step systematic version verification procedure
references/beats-mito-version-matrix.md
CEL in scopeFull beats-to-mito version mapping (160+ entries)
references/config-options-by-version.md
CEL in scopeCEL config option introduction by beats version
references/extensions-per-version.md
CEL in scopeRegistered mito extensions per beats version
references/cel-validator-procedure.md
CEL in scopecelfmt authority, type conversion audit, error shape validation
references/api-conformance-methodology.md
CEL/HTTPJSON + API docsCross-referencing implementation vs vendor API documentation
references/input-review-orchestration.md
Any input templatesReview depth routing by input type
references/transform-guide.md
Transform in scopeTransform types, config, fields, sync, review checklist
references/cdr-transform-requirements.md
CDR transformsCDR latest transform requirements, destination naming, keys, retention
checklists/pipeline-review-checklist.md
Pipeline in scopeSeverity-tagged pipeline review checklist
checklists/field-review-checklist.md
Fields in scopeSeverity-tagged field mapping review checklist
checklists/cel-review-checklist.md
CEL in scopeSeverity-tagged CEL review checklist
checklists/httpjson-review-checklist.md
HTTPJSON in scopeSeverity-tagged HTTPJSON review checklist
文件加载条件内容
references/reviewer-subagent-guidance.md
由审查子Agent自行读取(编排器仅传递其路径,从不嵌入内容)范围、技能加载顺序、只读操作规则、每个问题的格式检查清单、结论规则、编排器分派的审查员的报告约定
references/review-output-template.md
始终输出格式模板、渲染规则、严重程度映射
references/severity-rubric.md
始终CRITICAL/HIGH/MEDIUM/LOW的定义及领域特定校准
references/conflict-resolutions.md
始终已知规则冲突及解决方案
references/consistency-rules.md
涉及2个及以上领域跨领域一致性规则(管道-字段-清单-测试)
references/version-check-procedure.md
包含CEL5步系统化版本验证流程
references/beats-mito-version-matrix.md
包含CEL完整的beats到mito版本映射(160+条目)
references/config-options-by-version.md
包含CEL按beats版本划分的CEL配置选项引入情况
references/extensions-per-version.md
包含CEL按beats版本划分的已注册mito扩展
references/cel-validator-procedure.md
包含CELcelfmt权威性、类型转换审计、错误格式验证
references/api-conformance-methodology.md
包含CEL/HTTPJSON且有API文档实现与供应商API文档的交叉对比
references/input-review-orchestration.md
包含任何输入模板按输入类型确定审查深度
references/transform-guide.md
包含transform转换类型、配置、字段、同步、审查清单
references/cdr-transform-requirements.md
包含CDR转换CDR最新转换要求、目标命名、密钥、保留策略
checklists/pipeline-review-checklist.md
包含pipeline带严重程度标记的管道审查清单
checklists/field-review-checklist.md
包含fields带严重程度标记的字段映射审查清单
checklists/cel-review-checklist.md
包含CEL带严重程度标记的CEL审查清单
checklists/httpjson-review-checklist.md
包含HTTPJSON带严重程度标记的HTTPJSON审查清单