/subagent-system:consolidate-findingsfrom subagent-system
Merges and deduplicates findings from parallel audit agents into a sorted FINDINGS_REPORT.md (CRITICAL→LOW).
Ships in subagent-system. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Input: List of agent outputs (injected directly) OR paths to progress files.
Step 1 — Parse findings from each agent output.
Two formats are supported — detect per-agent which applies:
Format A (security-auditor, quick-audit style):
[severity emoji] [file:line] — [description]
Format B (pipeline-reviewer style — block format):
Finding: [description]
File: [path]
Line: [N]
Evidence: "[quote]"
Severity: CRITICAL | HIGH | MEDIUM | LOW
Confidence: HIGH | MEDIUM | LOW
For Format B, map severity text to emoji: CRITICAL→🔴, HIGH→🟠, MEDIUM→🟡, LOW→🟢.
Confidence: is optional (only pipeline-reviewer emits it). When present, carry it through to the merged finding and surface it in FINDINGS_REPORT.md; when absent (e.g. Format A), omit the confidence line for that finding.
If an agent's output contains Finding: / Severity: blocks, use Format B. Otherwise use Format A.
Severity mapping:
Step 2 — Deduplicate.
Two findings are duplicates if they reference the same file:line AND describe the same issue category (e.g., both flag "missing rate limit" at same location). When duplicating:
Step 3 — Sort by severity, then by file path. Order: CRITICAL → HIGH → MEDIUM → LOW. Within same severity, group by file path alphabetically.
Step 4 — Count totals.
CRITICAL: N | HIGH: N | MEDIUM: N | LOW: N | TOTAL: N
Duplicates removed: N
Agents consolidated: N
Step 5 — Write FINDINGS_REPORT.md. PROJECT_ROOT must be injected in the input or auto-detected. Resolve it first (the return value is the path):
Bash("git rev-parse --show-toplevel 2>/dev/null || echo '.'") # → ROOT
Bash("mkdir -p \"[ROOT]/.claude\"")
Write("[ROOT]/.claude/FINDINGS_REPORT.md", [report content])
Use absolute path to avoid writing to session cwd instead of the project directory.
After writing, verify the file is non-empty:
Bash("wc -c < \"[ROOT]/.claude/FINDINGS_REPORT.md\" | tr -d ' '")
If result is 0: output CONSOLIDATION_FAILED: FINDINGS_REPORT.md was written but is empty — report content was not rendered. Do NOT proceed to severity-gate. and stop.
Output format:
# Security Audit Findings Report
Generated: [ISO timestamp]
Agents: [list]
## Summary
| Severity | Count |
|----------|-------|
| 🔴 CRITICAL | N |
| 🟠 HIGH | N |
| 🟡 MEDIUM | N |
| 🟢 LOW | N |
| **TOTAL** | **N** |
Duplicates removed: N
## Critical Findings (fix immediately)
### [file:line]
**Severity:** 🔴 CRITICAL
**Confidence:** HIGH (omit if not reported by the agent)
**Agent(s):** T1, T3
**Issue:** [description]
**Fix:** [specific fix]
[additional findings...]
## High Findings
[...]
## Medium Findings
[...]
## Low Findings
[...]
Step 6 — Report.
CONSOLIDATION_COMPLETE:
Report: .claude/FINDINGS_REPORT.md
Total: [N] findings ([C] CRITICAL, [H] HIGH, [M] MEDIUM, [L] LOW)
Duplicates removed: [N]
Proceed to: /severity-gate or finding-validator for top findings verification
What SKILL.md sets; muted values are Claude Code's defaults
21 skills in this plugin
/apply-improvementsThis skill should be used when the user asks to apply improvement proposals ('apply improvements', 'ap dung improvement proposals') from .claude/improvement-proposals.md (written by pipeline-retrospective) to the plugin files./audit-outputThis skill should be used after a pipeline run completes, when the user asks to audit the pipeline output ('audit output', 'audit the run', '4-level audit'). Requires the project's test command as argument - without it Level 4 regression tests are skipped and the report is marked incomplete./chain-verifierThis skill should be used at the final step of any multi-phase pipeline to verify the complete working-tree state satisfies the original requirements. Trigger after all fix agents and pipeline-reviewer have completed. Also invoke when user asks to "run chain-verifier", "verify the pipeline output", or "confirm requirements are met"./checkpoint-writerThis skill should be used when saving current pipeline phase state to disk and creating a recovery commit. Trigger at the end of every implementation phase, when the user asks to "save a checkpoint", "commit this phase", or before any /compact or session end. Enables resume-from-checkpoint to reconstruct pipeline state after interruption./completion-checkerThis skill should be used after receiving output from a subagent that was assigned an explicit numbered task list and is expected to have produced a COMPLETION_CHECKLIST block. Do not invoke if the subagent was not given a task list — there will be no checklist to parse. Uses grep counts, not LLM estimation, to detect premature termination. Also trigger when user asks to "verify completion checklist", "check if agent finished all tasks", or "detect premature termination"./context-packagerThis skill should be used before spawning a dependent agent when the previous phase produced interface changes, breaking changes, new constraints, or key file modifications the next agent must not violate. Extracts only the minimum necessary context — not the full prior output. Uses character count to decide INJECT (≤4,000 chars) vs USE_FORK (>4,000 chars). Also trigger when user asks to "package context for next phase", "prepare agent handoff", or "extract phase context".npx claudepluginhub minhthang1009/dotclaude --plugin subagent-systemOther plugins' skills for the same job