본문으로 건너뛰기
cccskills
무료GitHub에 공개

forensics-report

Use when a release review needs machine-derived evidence from git history — hotspot risk and change-coupling analyzers. Triggers on 'hotspot', 'what changes together', 'release forensics'.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(2)

  • SKILL.md4.9 KB
  • evals/triggers.json1.3 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

forensics-report

When to use

  • Before or during a release review, when machine-derived evidence is wanted alongside the human review: "which files are the risk hotspots in this release", "what changes together", "release forensics".
  • When intended module boundaries should be checked against what the git history actually shows (change-coupling across module lines).
  • The output is advisory, never a gate — it points reviewers at places worth attention; it never passes or fails anything.
  • NOT for IT-security incident forensics (route to incident-commander) and NOT for runtime performance hotspots (route to performance-analysis).

Procedure

  1. Pick the range — the previous release tag to HEAD (vPREV..HEAD) or a released pair (vPREV..vNEW). Pin the range explicitly; a floating range breaks determinism.

  2. Run the report:

    npx tsx node_modules/@event4u/agent-config/src/scripts/forensics_report.ts --range vPREV..vNEW --out report.json
    

    Two deterministic, git-log-based analyzers run, read-only and offline:

    • Hotspot risk = normalized change frequency x normalized complexity per file over the range.
    • Change-coupling = co_changes(A,B) / min(changes(A), changes(B)) per file pair.
  3. Optionally feed the release findings ledger: add --findings-out findings.json, then ingest via

    npx tsx node_modules/@event4u/agent-config/src/scripts/check_finding_dispositions.ts --ingest findings.json --release X.Y.Z
    

    which appends to the existing ledger at agents/evidence/release-findings/<version>.json. Emitted findings are kind: correctness with severity: low|medium — non-blocking for the release gate by construction.

  4. Read the results:

    • hotspots[] — a hotspot is a place for reviewer attention, NEVER a quality verdict. A frequently changed complex file can be exactly right as it is; the score says "look here", not "this is bad".
    • coupling[] — file pairs that habitually change together.
    • boundary_contradictions[] — cross-module coupling above the threshold, i.e. a contradiction between intended and actual boundaries. This is a finding CLASS to discuss, not a failure.

Output format

  1. Lead with the scanned denominator (scanned.commits / scanned.files, including skipped bulk commits) — a reader must be able to judge the sample before the findings.
  2. Present hotspots and coupling as ranked tables with the score interpretation line ("a place to look, not a quality verdict") attached.
  3. When --findings-out was used, state the ingest command and the ledger path the findings landed in.

Deterministic JSON with these fields:

FieldMeaning
modeanalyzer mode the run used
rangethe pinned rev-range analyzed
scannedcommit/file counts, including skipped bulk commits
paramsthresholds and normalization parameters in effect
hotspots[]per-file hotspot entries (path, frequency, complexity, score)
coupling[]file-pair coupling entries (paths, co-change ratio)
boundary_contradictions[]cross-module coupling hits above threshold

Findings emitted via --findings-out conform to review-findings.schema.json (shipped with the package; kind: correctness, severity: low|medium).

Gotchas

  • Bulk commits are coupling noise — commits touching more than max_commit_files files (default 50) are skipped by the coupling analyzer and counted in the report's scanned section.
  • Only git log + working-tree file metrics are read — renamed files appear as two separate paths, splitting their history across both.
  • Deterministic only with a pinned range — vPREV..vNEW reproduces; "since today" or a date-relative range does not.

Do NOT

  • Do NOT build a gate out of this report — the pre-registered value question in docs/CLAIMS.md (forensics-pack-value) decides promotion or closure; until then the output stays advisory.
  • Do NOT sell hotspot scores as a code-quality proxy — they measure change frequency and complexity, not correctness or craftsmanship.
  • Do NOT emit findings with severity: high|critical or kind: security|claim — that would block the release gate, which this analyzer must never do.

See also

  • forensics_report.ts (this package's scripts tree; consumer path node_modules/@event4u/agent-config/src/scripts/forensics_report.ts) — the analyzer implementation.
  • docs/CLAIMS.md — the pre-registered forensics-pack-value question.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Use when reviewing UI for accessibility — WCAG 2.2 AA, keyboard nav, focus, ARIA, contrast, screen-reader semantics — even on 'is this a11y-OK?' or 'mach das barrierefrei'.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

event4u-app/agent-config122026년 10월 19일 업데이트

Use when defining or auditing the activation event — aha-moment selection, retention correlation, falsifiable definition. Triggers on 'what is our aha moment', 'redefine activation'.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

event4u-app/agent-config122026년 10월 19일 업데이트

Use when capturing an architectural decision — file naming, next ADR number, Status / Context / Decision / Consequences, index regen; fires even without saying 'ADR'.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

event4u-app/agent-config122026년 10월 19일 업데이트

Adversarial critique — devil's advocate, stress-test, honest teardown ('poke holes', 'be brutal', 'was hältst du davon'); explicit request only. Routine code or design review → code-review.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

event4u-app/agent-config122026년 10월 19일 업데이트

Use when reading, creating, or updating agent documentation, module docs, roadmaps, or AGENTS.md. Understands the full .augment/, agents/, and copilot-instructions structure.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

event4u-app/agent-config122026년 10월 19일 업데이트

Use for an adversarial red-team / blue-team / auditor review of an AI agent's CONFIG + behaviour (rules, skills, MCP, hooks, permissions) — attack-chain → defensive-gap list, not a code audit.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

event4u-app/agent-config122026년 10월 19일 업데이트

event4u-app의 스킬 모두 보기

이 스킬의 문제 신고