/super-gsd:sg-quick <task description> [--discuss] [--research] [--validate] [--full]from super-gsd
Use this when a small ad-hoc task needs to be done without a full phase plan — runs gsd-planner then superpowers:executing-plans with atomic commits and STATE.md tracking.
Ships in super-gsd. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Flags:
<execution_context> Self-contained. Combines gsd-sdk initialization, gsd-planner Agent, and superpowers:executing-plans Skill directly — no external workflow files imported. </execution_context>
1. **Parse arguments.** Extract DESCRIPTION and flags from `$ARGUMENTS`: ```bash ARGS="$ARGUMENTS" DISCUSS_FLAG="" RESEARCH_FLAG="" VALIDATE_FLAG="" FULL_FLAG="" IFS=' ' read -ra ARGS_ARRAY <<< "$ARGS" for arg in "${ARGS_ARRAY[@]}"; do case "$arg" in --discuss) DISCUSS_FLAG="--discuss" ;; --research) RESEARCH_FLAG="--research" ;; --validate) VALIDATE_FLAG="--validate" ;; --full) FULL_FLAG="--full" ;; esac done # Strip flags — remaining text is the task description DESCRIPTION=$(node -e " const a = process.argv[2] || ''; process.stdout.write(a.replace(/--discuss|--research|--validate|--full/g,'').trim()); " -- "$ARGUMENTS" 2>/dev/null) ``` If DESCRIPTION is empty, print exactly: `Usage: /super-gsd:sg-quick [--discuss] [--research] [--validate] [--full]` and exit.If any flag is set, delegate to the full gsd-quick Skill — session control transfers to the skill; no further steps execute:
if [ -n "$DISCUSS_FLAG" ] || [ -n "$RESEARCH_FLAG" ] || [ -n "$VALIDATE_FLAG" ] || [ -n "$FULL_FLAG" ]; then
Skill(skill="gsd-quick", args="$ARGUMENTS")
fi
Initialize quick task. Obtain quick_id, slug, and task_dir from gsd-sdk:
INIT_JSON=$(gsd-sdk query init.quick "$DESCRIPTION")
QUICK_ID=$(echo "$INIT_JSON" | node -e 'let s="";process.stdin.on("data",d=>s+=d).on("end",()=>{try{const j=JSON.parse(s);process.stdout.write(j.quick_id||j.id||"")}catch(e){}})')
TASK_DIR=$(echo "$INIT_JSON" | node -e 'let s="";process.stdin.on("data",d=>s+=d).on("end",()=>{try{const j=JSON.parse(s);process.stdout.write(j.task_dir||j.dir||"")}catch(e){}})')
If QUICK_ID or TASK_DIR is empty, print exactly:
gsd-sdk init.quick failed — check gsd-sdk installation
and exit.
Create task directory.
mkdir -p "$TASK_DIR"
Spawn gsd-planner Agent. Use Agent() to spawn a planning agent that writes PLAN.md into task_dir:
Agent(
description="You are a GSD quick planner. Write a PLAN.md for the following quick task.
Task description: <DESCRIPTION>
Flags: <list any of --discuss --research --validate --full that are set; omit line if none>
Output path: <TASK_DIR>/<QUICK_ID>-PLAN.md
Create a single focused PLAN.md with 1-2 tasks. Target ~30% context usage. Follow the GSD PLAN.md format (frontmatter + objective + tasks with action/verify/done + success_criteria). Write the file to the exact output path above.",
subagent_type="gsd-planner"
)
Substitute <DESCRIPTION>, <TASK_DIR>, and <QUICK_ID> with actual variable values before invoking the Agent.
Wait for the agent to complete before proceeding.
Read PLAN.md. Load the file the agent created:
PLAN_PATH="$TASK_DIR/${QUICK_ID}-PLAN.md"
PLAN_CONTENT=$(cat "$PLAN_PATH" 2>/dev/null)
If PLAN_CONTENT is empty, print exactly:
Planner agent did not create PLAN.md at $PLAN_PATH
and exit.
Build Superpowers handoff prompt. Assemble the prompt by substituting actual variable values and store it in HANDOFF_PROMPT:
HANDOFF_PROMPT="# Quick Task Execution Handoff — $QUICK_ID
## Goal
$DESCRIPTION
## Plan
$PLAN_CONTENT
## Instruction to Superpowers
Execute the plan above using the superpowers:executing-plans skill. Treat the PLAN.md as the authoritative source of tasks and acceptance criteria. Complete all tasks and verify success criteria before finishing."
Display $HANDOFF_PROMPT to the user.
Update STATE.md Quick Tasks Completed. Append a new row after the last existing row in the ### Quick Tasks Completed table:
DIR_NAME=$(basename "$TASK_DIR")
SAFE_DESCRIPTION=$(echo "$DESCRIPTION" | tr -d '\n' | tr '|\&' '---')
NEW_ROW="| $QUICK_ID | $SAFE_DESCRIPTION | $(date +%Y-%m-%d) | (pending) | [$DIR_NAME](./quick/$DIR_NAME/) |"
Read .planning/STATE.md.
Find the ### Quick Tasks Completed table section.
Append NEW_ROW after the last data row in that section (the last line starting with "|" that is NOT the header or `| --- |` separator row). If no data rows exist yet, insert after the `| --- |` separator row.
Write the updated content back using the Edit tool.
If the section is not found, print exactly: `ERROR: ### Quick Tasks Completed section not found in STATE.md` and exit.
Commit PLAN.md and STATE.md together.
# Commit PLAN.md and STATE.md (with (pending) SHA) before handing off to Superpowers.
# STATE.md keeps (pending) because implementation happens inside Superpowers — the real
# implementation commit SHA is not yet known. Superpowers is responsible for the final commit.
git add "$PLAN_PATH" .planning/STATE.md
git commit -m "quick($QUICK_ID): $DESCRIPTION" || { echo "git commit failed"; exit 1; }
Invoke Superpowers. Before invoking, verify HANDOFF_PROMPT is non-empty (it must contain the full plan assembled in step 6). If it is empty, print exactly:
HANDOFF_PROMPT assembly failed — PLAN_CONTENT may have been empty
and exit.
Otherwise invoke in the same turn — no confirmation prompt. Session control transfers to the skill; no steps execute after this point:
Skill(skill="superpowers:executing-plans", args="$HANDOFF_PROMPT")
<success_criteria>
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
25 skills in this plugin
/sg-cleanupUse this to archive accumulated phase directories from completed milestones — delegates to gsd-cleanup, then displays a table of what was archived./sg-completeComplete a phase (bare number → delegates to sg-phase) or close a milestone (vX.Y, or the current milestone when no argument) via gsd-complete-milestone./sg-executeUse this when the phase plan is ready and implementation should begin — packages PLAN/REQ/SC and hands off to Superpowers via superpowers:executing-plans./sg-exploreUse this when you need a map of the current codebase structure — invokes gsd-map-codebase to analyse and document the project layout./sg-healthUse this when something feels broken or before onboarding — diagnoses GSD, Superpowers, hooks, HANDOFF.md, and STATE.md installation line by line./sg-learnUse this when a phase is complete and you want to extract patterns and lessons from the session — delegates to sg-retro for structured retrospective.npx claudepluginhub gyuha/super-gsd --plugin super-gsd