datit309/supergraph / plugins/supergraph/skills/execute
execute
UnverifiedDispatch and execute implementation plans with TDD and checkpoints. Use when plan is ready. Parallel by default for independent tasks.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 7.6 KB |
| scripts/review-packageexecutable | script | 1.9 KB |
| scripts/sdd-workspaceexecutable | script | 927 B |
| scripts/task-briefexecutable | script | 1.9 KB |
scripts/task-brief
View on GitHub#!/usr/bin/env bash
set -euo pipefail
fail() {
printf 'ERROR: %s\n' "$*" >&2
exit 1
}
case "$#" in
2|3) ;;
*) fail 'usage: task-brief PLAN_FILE TASK_NUMBER [OUTFILE]' ;;
esac
plan_file=$1
task_number=$2
[ -f "$plan_file" ] || fail "plan file not found: $plan_file"
case "$task_number" in
''|*[!0-9]*) fail "invalid task number: $task_number" ;;
esac
[ "$task_number" -gt 0 ] || fail "invalid task number: $task_number"
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
workspace=$("$script_dir/sdd-workspace" "$plan_file")
if [ "$#" -eq 3 ]; then
output_name=$3
case "$output_name" in
''|.|..|/*|../*|*/../*|*/..|*/*) fail 'OUTFILE must be a filename inside the plan workspace' ;;
esac
output="$workspace/$output_name"
else
output="$workspace/task-$task_number-brief.md"
fi
if [ -L "$output" ] || { [ -e "$output" ] && [ ! -f "$output" ]; }; then
fail "refusing non-regular output: $output"
fi
temporary=$(mktemp "$workspace/.task-brief.XXXXXX")
cleanup() { rm -f "$temporary"; }
trap cleanup EXIT
if ! awk -v requested="$task_number" '
BEGIN { found = 0; fence = "" }
{
line = $0
if (line ~ /^[[:space:]]*(```|~~~)/) {
marker = line
sub(/^[[:space:]]*/, "", marker)
delimiter = substr(marker, 1, 3)
if (found) print line
if (fence == "") {
fence = delimiter
} else if (delimiter == fence) {
fence = ""
}
next
}
if (fence == "" && line ~ /^## Task [0-9]+:/) {
task = line
sub(/^## Task /, "", task)
sub(/:.*/, "", task)
if (task == requested) {
if (found) exit
found = 1
print line
next
}
if (found) exit
}
if (found) print line
}
END { if (!found) exit 1 }
' "$plan_file" > "$temporary"; then
printf 'ERROR: task not found: %s\n' "$task_number" >&2
exit 3
fi
mv "$temporary" "$output"
trap - EXIT
printf '%s\n' "$output"
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |