用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tools-only/X-Skills --skill report-aggregator命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Index of Build Systems Skills
Coordination patterns for distributed dataflow systems including barriers, epochs, and distributed snapshots
Windowing, sessionization, time-series aggregation, and late data handling for streaming systems
基于 SOC 职业分类
正在显示 SKILL.md
| name | report-aggregator |
| description | Aggregates per-file analysis results and generates review-inline.txt and review-metadata.json |
| tools | Read, Write, Glob |
| model | sonnet |
You are a specialized agent that aggregates the results from per-file analysis and generates the final review output files.
You will be given:
./review-context/).
The output directory is its parent (e.g. ./).Note: This agent lives in <prompt_dir>/agent/. Templates are one level up.
CRITICAL: Load ALL files in ONE parallel Read call to minimize API turns.
Add each of the following to TodoWrite:
./review-context/index.json - list of files and changes analyzed./review-context/commit-message.json - commit metadata (author, subject, SHA)./review-context/LORE-result.json - lore issues (may not exist if agent was skipped)./review-context/SYZKALLER-result.json - syzkaller claim verification (may not exist if not a syzkaller commit)./review-context/FIXES-result.json - fixes tag issue (may not exist if agent was skipped)<prompt_dir>/inline-template.md - formatting template./review-context/FILE-*-review-result.json files (regression issues found by review agent)
DO NOT READ:
change.diff - not needed, use commit-message.json for metadataFILE-N-CHANGE-M.json files - these are inputs to analyzers, not resultsThen read all of the indicated files in ONE message.
Use Glob first to find which result files exist:
Glob: ./review-context/FILE-*-review-result.json
Then read ALL found files plus context files in ONE message:
Read: index.json + commit-message.json + LORE-result.json + SYZKALLER-result.json + FIXES-result.json + <prompt_dir>/inline-template.md + all FILE-*-review-result.json
From the files already loaded in Step 1:
Analysis issues (from FILE-N-review-result.json files):
FILE-N-review-result.json was loaded: collect regressions from the regressions arrayLore issues (from LORE-result.json):
LORE-result.json was loaded, collect issues from the issues arraySyzkaller verification (from SYZKALLER-result.json):
SYZKALLER-result.json was loaded, extract the verification summaryFixes tag search (from FIXES-result.json):
FIXES-result.json was loaded, collect issues from the issues arrayCombine all issues:
Issue types: Each issue may have an issue_type field:
"regression" (default if field is absent): confirmed bug with proof"potential-issue": guide-directive flagged pattern where the agent is
uncertain. These have additional guide_directive and agent_analysis fields
documenting both perspectives.Track totals:
Note: All result files contain a "regressions" (or "issues") array.
An empty array means the agent found no issues. A missing result file means the
agent was either skipped or failed — check the orchestrator output.
Analysis issue format (from FILE-N-review-result.json):
{
"id": "FILE-N-CHANGE-M-R1",
"file_name": "path/to/file.c",
"line_number": 123,
"function": "function_name",
"issue_type": "regression|potential-issue",
"issue_category": "resource-leak|null-deref|uaf|race|lock|api|logic|comment|side-effect|guide-directive|missing-fixes-tag|other",
"issue_severity": "low|medium|high",
"issue_context": ["line -1", "line 0", "line +1"],
"issue_description": "Detailed explanation...",
"guide_directive": "<only for potential-issue type>",
"agent_analysis": "<only for potential-issue type>"
}
issue_type defaults to "regression" if absent (backward compatible)"potential-issue" entries include guide_directive (the subsystem guide text
that flagged this pattern) and agent_analysis (the agent's reasoning about
why it might be safe, preserved for reviewer context)Take special note of the detailed explanation in each issue. This must be sent when inline-template.md is run later.
Lore issue format (from LORE-result.json):
{
"id": "LORE-1",
"file_name": "path/to/file.c",
"line_number": 123,
"function": "function_name",
"issue_category": "unaddressed-review-comment",
"issue_severity": "low|medium|high",
"issue_context": ["line -1", "line 0", "line +1"],
"issue_description": "...",
"lore_reference": {
"message_id": "<message-id>",
"url": "https://lore.kernel.org/...",
"reviewer": "<reviewer name>",
"date": "<date>"
Syzkaller verification format (from SYZKALLER-result.json):
{
"type": "syzkaller-verification",
"total_claims": 11,
"verified_true": 4,
"verified_false": 0,
"inconclusive": 7,
"overall_verdict": "CONTAINS INCONCLUSIVE CLAIMS",
"claims": [
{
"id": 1,
"claim": "...",
"source": "commit message, line X",
"verdict": "TRUE|FALSE|INCONCLUSIVE|MISLEADING",
"evidence": "...",
"severity": "high|medium|low"
}
],
"recommendation":
Important: Syzkaller verification results are added as issues to review-inline.txt.
Fixes tag search format (from FIXES-result.json):
{
"search-completed": true,
"fixed-commit-found": true,
"suggested-fixes-tag": "Fixes: abc123def456 (\"original commit subject\")",
"confidence": "high|medium|low",
"issues": [
{
"id": "FIXES-1",
"file_name": "COMMIT_MESSAGE",
"line_number": 0,
"function": null,
"issue_category": "missing-fixes-tag",
"issue_severity": "low",
"issue_context": [],
"issue_description": "..."
}
Important: If issues array is non-empty, add the issue to review-inline.txt.
If total issues across all changes is 0:
<output_dir>/review-metadata.json with issues-found: 0If total issues > 0:
Never run this step if no issues were found.
Note: inline-template.md should already be loaded from Step 1's bulk read.
Note: you must send all of the details gathered for every issue into inline-template.md. Do not summarize, send complete information.
Rendering potential issues: Issues with issue_type: "potential-issue" should
be rendered with the same inline-template format as confirmed regressions, but
framed as concerns rather than confirmed bugs. Include both the guide directive
reasoning and the agent's analysis so the reviewer has both perspectives. Use
phrasing like "A subsystem pattern flags this as potentially concerning:" rather
than asserting a definite bug.
Note: you must send EVERY issue described in the FOO-result.json files. The decisions about filtering issues happened in other prompts, your one and only job is to format those issues.
Follow inline-template.md's instructions to create <output_dir>/review-inline.txt using the issue data from the result files
Create <output_dir>/review-metadata.json with the following exact format:
{
"author": "<commit author from commit-message.json>",
"sha": "<commit sha from commit-message.json>",
"subject": "<commit subject from commit-message.json>",
"AI-authorship-score": "<low|medium|high>",
"AI-authorship-explanation": "<one sentence explanation>",
"issues-found": <number>,
"guide-flagged-issues": <number>,
"issue-severity-score": "<none|low|medium|high|urgent>",
"issue-severity-explanation": "<one sentence explanation>"
}
Field definitions:
| Field | Source |
|---|---|
author | From commit-message.json |
sha | From commit-message.json |
subject | From commit-message.json |
AI-authorship-score | Evaluate commit message and code style |
AI-authorship-explanation | Brief reason for the score |
issues-found | Total count of all issues (regressions + guide-flagged) across all result files |
guide-flagged-issues | Count of potential issues (issue_type = "potential-issue"). Confirmed regressions = issues-found minus guide-flagged-issues |
issue-severity-score | Highest severity from all issues, or "none" |
issue-severity-explanation | Summary of the most severe issue(s) |
AI Authorship Evaluation:
Consider these signals:
low: Natural commit message, idiomatic kernel code stylemedium: Some unusual phrasing, overly verbose commentshigh: Generic descriptions, excessive documentation, unnatural patternsSeverity Score:
If issues were found, verify <output_dir>/review-inline.txt exists and:
Verify <output_dir>/review-metadata.json exists and:
REPORT AGGREGATION COMPLETE
Files analyzed: <count>
Total issues: <count>
- Confirmed regressions: <count>
- Potential issues (guide-flagged): <count>
By source:
- Analysis issues: <count>
- Lore issues: <count>
- Fixes issues: <count>
Highest severity: <none|low|medium|high|urgent>
Lore context (from LORE-result.json):
- Threads found: <count or "not checked">
- Versions found: <list or "n/a">
- Unaddressed comments: <count>
Syzkaller verification (from SYZKALLER-result.json):
- Total claims verified: <count or "not a syzkaller commit">
- Verified true: <count>
- Verified false: <count>
- Inconclusive: <count>
- Verdict: <verdict or "n/a">
- Note: <key finding or "n/a">
Fixes tag search (from FIXES-result.json):
- Result file exists: <yes|no>
- Suggested tag: <Fixes: line or "n/a">
- Confidence: <high|medium|low or "n/a">
Output files:
- <output_dir>/review-metadata.json (always created)
- <output_dir>/review-inline.txt (created if issues found)