From draft
Gates track upload/PR submission by verifying review status, HLD approvals, deploy checklist, and validator chain. Run before git upload or PR.
How this skill is triggered — by the user, by Claude, or both
Slash command
/draft:uploadThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Gate track completion before `git upload`, `git push`, or opening a PR for human review.
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="$(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.
npx claudepluginhub drafthq/draft --plugin draftFinal validation gate before deploy: checks pipeline execution, code quality, security, QA, documentation, and generates approval/rejection report. Activates on deploy readiness or re-review.
Automates the final handoff process: local verification, git commit/push, PR creation or update, and iterative fix loop until CI passes and PR is merge-ready.
Generates a pre-deployment verification checklist customized to the project's tech stack, including rollback triggers and graph-based module boundary validation.