一键导入
upload
Pre-upload gate for track handoff. Verifies review status, HLD approvals, deploy checklist, and validator chain before git upload or PR submission.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Pre-upload gate for track handoff. Verifies review status, HLD approvals, deploy checklist, and validator chain before git upload or PR submission.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create and manage Architecture Decision Records. Documents significant technical decisions with context, alternatives, and consequences. Also supports evaluate (assess proposals) and design (system design) modes.
Performs an exhaustive 14-dimension bug hunt across the codebase using Draft context (architecture, tech-stack, product) for false-positive elimination. Generates a severity-ranked report with code evidence, data flow traces, and suggested fixes. Optionally writes regression tests. Use when the user asks to find bugs, audit code for defects, scan for vulnerabilities, or says 'hunt bugs', 'find bugs', or 'code audit'.
Compute code coverage for active track or module. Targets 95%+ coverage with report and justification for uncovered lines. Complements TDD workflow.
Structured debugging session. Reproduce, isolate, diagnose, and fix bugs using systematic investigation. Invoked by /draft:new-track for bug tracks or directly for ad-hoc debugging.
Decompose project or track into modules with dependency mapping. Project scope updates architecture.md and derives .ai-context.md. Track scope generates hld.md (always) and lld.md (when --lld or High-complexity module triggers it) — design-mandated artifacts that drive implement, deploy-checklist, and upload sign-off.
Single-module production readiness audit (ACID, resilience, observability). Use to audit one service/module end-to-end — NOT for diff/PR review (use review / quick-review) or bug-finding sweeps (use bughunt).
| name | upload |
| description | Pre-upload gate for track handoff. Verifies review status, HLD approvals, deploy checklist, and validator chain before git upload or PR submission. |
Gate track completion before git upload, git push, or opening a PR for human review.
See shared red flags.
Skill-specific:
/draft:review on the trackcriticality ∈ {high, mission-critical} tracksstatus: BLOCKED as passingUpload is a gate, not a shortcut around review.
track <id|name> from arguments, or auto-detect the active [~] track from draft/tracks.md.draft/tracks/<id>/spec.md, plan.md, metadata.json, and hld.md when present.track <id> or activate a track."review-report-latest.md on the track with verdict PASS or PASS WITH NOTES.FAIL, stop and instruct: run /draft:review track <id> first.Run /draft:deploy-checklist track <id> when no fresh passing checklist exists.
draft/tracks/<id>/deploy-checklist-latest.md (or timestamped sibling).status: BLOCKED, stop — checklist is not a passing gate.Run the WS-9 chain from verification-gates.md against the track directory. Any non-zero exit aborts upload.
TRACK_DIR="draft/tracks/<id>"
DRAFT_TOOLS="${DRAFT_PLUGIN_ROOT:-$(cat ~/.cache/draft/plugin-root 2>/dev/null)}/scripts/tools"
[ -d "$DRAFT_TOOLS" ] || DRAFT_TOOLS="$(ls -d ~/.claude/plugins/cache/*/draft/*/scripts/tools 2>/dev/null | sort -V | tail -1)"
[ -d "$DRAFT_TOOLS" ] || DRAFT_TOOLS="$(ls -d ~/.claude/plugins/marketplaces/*draft*/scripts/tools 2>/dev/null | tail -1)"
[ -d "$DRAFT_TOOLS" ] || DRAFT_TOOLS="$PWD/scripts/tools"
"$DRAFT_TOOLS/check-track-hygiene.sh" "$TRACK_DIR"
"$DRAFT_TOOLS/verify-citations.sh" "$TRACK_DIR"
"$DRAFT_TOOLS/verify-doc-anchors.sh" "$TRACK_DIR"
"$DRAFT_TOOLS/diff-templates-vs-tracks.sh" "$TRACK_DIR"
When spec.md frontmatter classification.criticality is high or mission-critical:
hld.md §Approvals must have a populated Date column.low / unset criticality, warn if approvers are placeholders but do not block.When LLD was generated for the track, ensure Team Lead / QA approval rows are populated before upload (same Date rule as HLD).
After all gates pass:
git upload, git push, or gh pr create per draft/workflow.md).Update draft/tracks/<id>/metadata.json:
{
"lastUploaded": "<ISO-8601>",
"uploadCount": <N+1>
}
/draft:documentation api./draft:deploy-checklist/draft:review PASS (or PASS WITH NOTES)/draft:implement (track completion), /draft:documentation (pre-upload API docs)Emit the canonical footer from graph-usage-report.md when graph queries were used during validation.