Enhance spec-driven coding workflow

This commit is contained in:
lpf
2026-03-09 13:24:55 +08:00
parent d1abd73e63
commit 6089f4e7c4
26 changed files with 1388 additions and 717 deletions

View File

@@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -euo pipefail
target_dir="${1:-$(pwd)}"
skill_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
templates_dir="$skill_dir/templates"
mkdir -p "$target_dir"
copy_template_if_missing() {
local target_path="$1"
local template_name="$2"
if [[ -f "$target_path" ]]; then
echo "exists: $target_path"
return
fi
cp "$templates_dir/$template_name" "$target_path"
echo "created: $target_path"
}
copy_template_if_missing "$target_dir/spec.md" "spec.md"
copy_template_if_missing "$target_dir/tasks.md" "tasks.md"
copy_template_if_missing "$target_dir/checklist.md" "checklist.md"