Use when repo-bug-finder discovery is complete and the user asks to package confirmed or probable findings into final Bug records, indexes, handoff materials, or an HTML report.
설치
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
Use when repo-bug-finder discovery is complete and the user asks to package confirmed or probable findings into final Bug records, indexes, handoff materials, or an HTML report.
Repo Bug Finder: Package
Purpose
Convert discovery readiness into a final handoff package. This subskill is packaging-only: it must not read new code facts, hunt for new Bugs, or promote scanner hits that were not triaged during discovery.
Boundary
Input:
work/discovery-readiness.json
work/discovery-readiness.md
work/architecture-signals.json and .md when present
triage/source-pack references produced during discovery
--workspace <workspace> is accepted as an agent-friendly alias for the positional workspace.
Convert only clean package-ready records into Bug Markdown files. When readiness provides summary.clean_package_ready_record_ids, export only those records; otherwise fall back to eligible confirmed/probable records from older readiness files.
Assign continuous IDs starting at BUG-0001 with no gaps.
Sort before assigning IDs: confidence high -> medium -> low, then priority P1 -> P2 -> P3 -> P4.
Put probable records in the final package only when the sole missing gate is trigger-path; label confidence: medium or low and state the trigger as a hypothesis.
Keep candidate, refuted, and merged records in candidate/quality coverage, not as final Bugs.
Do not pass --repo-root by default. In this workflow, work/discovery-readiness.json is the package source of truth. Use --repo-root only when the user explicitly asks for source-path existence validation against local checkouts.
Use --language en and English Bug headings only when the final deliverable is English.
⛔ BLOCKING GATES
No new code reading in packaging.
No new Bug facts in packaging.
No architecture findings invented during packaging; architecture review must come from readiness records or work/architecture-signals.json.
No dependence on untriaged pattern or scanner artifacts during packaging.
No non-contiguous Bug IDs.
No candidate-only records in submit/findings/.
No records blocked by unknown/missing source packs or schema/package-blocking debt in submit/findings/ when readiness exposes clean package-ready IDs.
No HTML report before indexes and validation receipts required by the generator are satisfied.
No final handoff claim until validation passes.
Evidence Contract
Final package completion must produce:
submit/findings/P*/BUG-*.md for promoted confirmed/probable records.
submit/indexes/findings.generated.json and submit/indexes/candidates.generated.json.
work/package-validation/prepackage-validation.passed.json before HTML generation.
submit/bug-audit-report.html when a final report is requested.
final validate_bug_package.py <workspace>/submit --require-html-report output when HTML is generated.
Output Contract
The package structure, Bug schema, index format, and HTML report style are part of this subskill's own contract. Keep them stable for downstream readers.