551777b feat: add interface contract and data model baseline support to bootstrap-baseline f17e086 feat: add bootstrap seed file support to bootstrap-baseline skill be85338 feat: introduce lightweight change path, change-req skill, and release feedback loop 949bb40 docs(skill): new-discovery 병렬 Discovery 및 active-cycle 처리 규칙 강화 7f96130 docs: fix draft-req skill template paths 94b1445 diff --git a/.github/skills/draft-batch-design/SKILL.md b/.github/skills/draft-batch-design/SKILL.md index 5f87d00..944e075 100644 --- a/.github/skills/draft-batch-design/SKILL.md +++ b/.github/skills/draft-batch-design/SKILL.md @@ -1,6 +1,6 @@ --- name: draft-batch-design -description: "Use when: drafting the design document for an existing batch, running /draft-batch-design with a BAT ID, filling docs/batches/<BAT_ID>/design.md, or recording architecture and interface decisions before implementation." +description: "Use when: drafting the design document for an existing batch, running /draft-batch-design with a BAT ID, filling docs/batches/<BAT_ID>/design.md, recording architecture and interface decisions before implementation, or planning updates to docs/project-structure.md and docs/runtime-flows.md." argument-hint: "예: bat-001 또는 docs/batches/bat-001_20260424_scaffold" user-invocable: true --- @@ -9,27 +9,43 @@ user-invocable: true d1ce3ce 프로세스 완전 변경 git-subtree-dir: .vendor/stage-pilot git-subtree-split: 551777bc7009ee133fbaab1267ca324f1dc3c6bb
72 lines
1.7 KiB
Bash
72 lines
1.7 KiB
Bash
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
usage() {
|
|
cat <<'EOF'
|
|
Usage: stagepilot.sh <command> [args]
|
|
|
|
Commands:
|
|
bootstrap-seed [HOST_ROOT] [options]
|
|
Create .stagepilot/bootstrap/baseline.yaml from interactive answers
|
|
or explicit CLI arguments.
|
|
doctor [HOST_ROOT] [--strict-missing-docs] [--report <path>]
|
|
Run the StagePilot validation script against a workspace.
|
|
EOF
|
|
}
|
|
|
|
fail() {
|
|
printf '[stagepilot] ERROR: %s\n' "$*" >&2
|
|
exit 1
|
|
}
|
|
|
|
run_doctor() {
|
|
local script_dir package_root doctor_script
|
|
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
package_root="$(cd "${script_dir}/.." && pwd)"
|
|
doctor_script="${package_root}/.github/scripts/stagepilot-doctor.py"
|
|
|
|
[ -f "${doctor_script}" ] || fail "Doctor script not found: ${doctor_script}"
|
|
command -v python3 >/dev/null 2>&1 || fail "python3 is required to run doctor"
|
|
|
|
python3 "${doctor_script}" "$@"
|
|
}
|
|
|
|
run_bootstrap_seed() {
|
|
local script_dir package_root seed_script
|
|
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
package_root="$(cd "${script_dir}/.." && pwd)"
|
|
seed_script="${package_root}/.github/scripts/stagepilot-bootstrap-seed.py"
|
|
|
|
[ -f "${seed_script}" ] || fail "Bootstrap seed helper not found: ${seed_script}"
|
|
command -v python3 >/dev/null 2>&1 || fail "python3 is required to generate a bootstrap seed"
|
|
|
|
python3 "${seed_script}" "$@"
|
|
}
|
|
|
|
main() {
|
|
local command="${1:-}"
|
|
if [ -z "${command}" ]; then
|
|
usage
|
|
exit 1
|
|
fi
|
|
shift || true
|
|
|
|
case "${command}" in
|
|
bootstrap-seed)
|
|
run_bootstrap_seed "$@"
|
|
;;
|
|
doctor)
|
|
run_doctor "$@"
|
|
;;
|
|
-h|--help|help)
|
|
usage
|
|
;;
|
|
*)
|
|
usage
|
|
fail "Unknown command: ${command}"
|
|
;;
|
|
esac
|
|
}
|
|
|
|
main "$@" |