1---2name: task-final-report-23description: Apply the final report and PR publication procedure for a Hyper-Waterfall task. Write the final report (`_report.md`), mark the daily task board complete, create the final commit, push the remote publish/task{N} branch, and create an Open PR to {BASE_BRANCH}. Invoke only immediately before PR publication after all stages are complete.4---56# Hyper-Waterfall Final Report and PR Publication78## Trigger910- The task requester explicitly says "write final report" or "prepare PR."11- This SKILL is invoked directly.1213## Preconditions1415- All implementation plan stages are complete and each stage report has been committed.16- Integrated verification for acceptance criteria has passed.17- `local/task{N}` has no uncommitted changes, or only changes that this procedure will commit.1819## Procedure20211. Run integrated verification: use the implementation plan's acceptance criteria or the last Stage verification section commands.222. Write final report: `mydocs/report/task_m{milestone}_{N}_report.md`.23 - Use central template `mydocs/_templates/final_report.md`.24 - Only if the template cannot be read, use these fallback sections:25 - Work summary: Issue link, milestone, Stage count26 - Changed files and impact area27 - Quantitative before/after comparison when applicable, such as line count, token count, or verification pass count28 - Verification results by acceptance criterion29 - Residual risks and follow-up work30 - Approval request to task requester313. Update daily task board: #{N} row in `mydocs/orders/{yyyymmdd}.md`.32 - Use output format from `mydocs/_templates/orders.md`.33 - Set status to `Done` and include `Done: HH:mm` in notes.344. Check changes.35 ```bash36 git status --short37 git diff --check38 git log --oneline {BASE_BRANCH}..local/task{N}39 ```405. Create the final commit. It may bundle the last Stage and final report, or only the report.41 ```bash42 git add mydocs/report/task_m{milestone}_{N}_report.md mydocs/orders/{yyyymmdd}.md43 git commit -m "Task #{N} Stage {last} + final report: {summary}"44 # or45 git commit -m "Task #{N}: final report and daily task board completion"46 ```476. Push the remote publication branch.48 ```bash49 git push origin local/task{N}:publish/task{N}50 ```517. Create an Open PR to `{BASE_BRANCH}`.52 ```bash53 HEAD_SHA=$(git rev-parse HEAD)54 PR_BODY=/tmp/task{N}-pr-body.md55 # Start from {PR_TEMPLATE_PATH} and write "$PR_BODY" from the final report and stage reports.56 gh pr create --base {BASE_BRANCH} --head publish/task{N} \57 --title "Task #{N}: {title}" \58 --body-file "$PR_BODY"59 ```60 - The PR body uses `{PR_TEMPLATE_PATH}`.61 - Include at most 4 summary bullets: target task, why, what, review focus.62 - Include one line per Stage, verification summary, and remaining risks.63 - Link each Stage title to the stage report URL and each short commit SHA to the commit URL.64 - Link work documents with `HEAD_SHA` pinned URLs: `https://github.com/{REPO_SLUG}/blob/{HEAD_SHA}/mydocs/...`.65 - Use `[filename](URL)` instead of raw links.66 - Do not use relative links or `blob/publish/task{N}/...` links.67 - Use the PR body verification subsections `Automated Verification`, `Manual/Scenario Verification`, `CI/Remote Verification`, and `Verification Limitations`.68 - Automated verification uses a `Topic / Method / Result / Evidence` table, summarizing what acceptance criterion was checked and the key output or pass count.69 - Manual/scenario verification uses a `Scenario / Check Procedure / Result / Evidence` table.70 - CI/remote verification uses an `Item / Result / Evidence` table with GitHub Check names, run links, or check time.71 - Do not leave unperformed verification in tables. Move it to `Verification Limitations` or `Remaining Risks`.72 - Do not paste long logs into the PR body; link the final report or stage reports.73 - Keep `Screenshots` only for visual changes.74 - `Related Issues` is for prerequisite, follow-up, Epic, upstream, or reference Issues, not the target task.758. Send the PR URL to the task requester and request review/merge approval.7677## Verification7879- All stage reports and the final report exist.80- The final report fills required sections from `mydocs/_templates/final_report.md`.81- `git status --short` is empty.82- `gh pr view` shows a non-draft PR with the correct base/head.83- The PR body `Changes` Stage summaries link to stage reports and short commit SHA links.84- Work document links use commit SHA-pinned URLs and `[filename](URL)` format.85- Work document links do not contain raw GitHub blob URLs, relative links, or `blob/publish/task{N}`.86- The PR body `Verification` section follows `Automated Verification`, `Manual/Scenario Verification`, `CI/Remote Verification`, and `Verification Limitations`.87- The PR body does not keep unperformed verification checklists in tables.88- The daily task board #{N} row is `Done` with `Done: HH:mm`.8990## Never Do9192- Create a PR when integrated verification is failing.93- Push `local/task{N}` directly to remote; always publish as `publish/task{N}`.94- Force squash merge options; Stage commit meaning must be preserved.95- Create a Draft PR or self-merge without explicit task requester instruction.9697## Invocation9899- Codex: `$task-final-report` or the `/skills` menu100- Claude Code: `/task-final-report`