cmd/sgai/skel/.sgai/skills/product-design/goal-md-composer/SKILL.md
Interactive wizard to compose valid GOAL.md files for SGAI with step-by-step guidance through 7 phases. When your human partner wants to create a new GOAL.md file, start a new SGAI project, configure agents for a software factory, or asks "help me set up GOAL.md", "I want to configure agents", "let's start a new project with SGAI".
npx skillsauth add sandgardenhq/sgai goal-md-composerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
An interactive wizard that guides you through composing valid, well-structured GOAL.md files for SGAI (Software Generation AI). This skill walks through 7 phases to help configure agents, models, workflows, and project specifications.
Announce at start: "I'm using the GOAL.md Composer skill to help you create a valid GOAL.md file."
Before starting, load the REFERENCE.md companion document for the complete agent catalog and format specification:
skills/product-design/goal-md-composer/REFERENCE.mdUnderstand what the user is building.
Ask these questions (one at a time):
"What type of project are you building?"
"What programming language(s) will you use?"
"What's the scope of this project?"
"Are there any specific constraints?"
Log answers in: @.sgai/PROJECT_MANAGEMENT.md under "## GOAL.md Composer Session"
Hand control back to human after each question.
Based on project description, recommend appropriate agents.
CRITICAL - Mandatory Reviewer Pairing Rules: When selecting a development agent, you MUST automatically include its paired reviewer:
| Development Agent | Required Reviewer |
|-------------------|-------------------|
| backend-go-developer | go-readability-reviewer |
| htmx-picocss-frontend-developer | htmx-picocss-frontend-reviewer |
| react-developer | react-reviewer |
| shell-script-coder | shell-script-reviewer |
Process:
Example recommendation for Go Backend API:
Recommended agents for your Go Backend API:
- backend-go-developer (Go development)
- go-readability-reviewer (automatically paired)
- general-purpose (cross-domain tasks)
- stpa-analyst (safety analysis)
Do you want to add or remove any agents?
Hand control back to human for confirmation.
Generate the DOT syntax DAG defining agent execution order and dependencies.
Auto-generation rules:
Development agents always flow into their paired reviewers:
"backend-go-developer" -> "go-readability-reviewer"
Reviewers typically flow into terminal analysis agents:
"go-readability-reviewer" -> "stpa-analyst"
Standalone agents (no dependencies) are listed without arrows:
"general-purpose"
Present the generated flow:
flow: |
"backend-go-developer" -> "go-readability-reviewer"
"go-readability-reviewer" -> "stpa-analyst"
"general-purpose" -> "stpa-analyst"
Ask: "Does this workflow look correct? Would you like to add or modify any dependencies?"
Hand control back to human for adjustments.
Configure per-agent model assignments.
Available models (see REFERENCE.md for full list):
anthropic/claude-opus-4-6 - Most capable, highest cost ($$$$)anthropic/claude-opus-4-6 (max) - Extended thinking variantanthropic/claude-sonnet-4-5 - Balanced capability/cost ($$$)anthropic/claude-sonnet-4-5 (max) - Extended thinking variantgoogle/gemini-2.0-flash-001 - Fast, lower cost ($$)openai/gpt-4.1 - Alternative high-capability model ($$$)Default recommendations:
coordinator: anthropic/claude-opus-4-6 (max) (always use strongest for coordination)anthropic/claude-opus-4-6 (complex reasoning)anthropic/claude-opus-4-6 (thorough analysis)anthropic/claude-sonnet-4-5 (good balance)anthropic/claude-sonnet-4-5 (cost-effective)Present configuration:
models:
"coordinator": "anthropic/claude-opus-4-6 (max)"
"backend-go-developer": "anthropic/claude-opus-4-6"
"go-readability-reviewer": "anthropic/claude-opus-4-6"
"general-purpose": "anthropic/claude-opus-4-6"
Ask: "Do you want to adjust any model assignments? (e.g., use a faster/cheaper model for certain agents)"
Hand control back to human for adjustments.
Guide through writing the markdown body with Goal, Requirements, and Tasks.
Structure to generate:
# [Project Title]
[1-2 paragraph description of what to build, focusing on outcomes not implementation]
## Requirements
- [Behavioral requirement 1]
- [Behavioral requirement 2]
- [Constraint 1]
## Tasks
- [ ] Task 1
- [ ] Subtask 1.1
- [ ] Subtask 1.2
- [ ] Task 2
- [ ] Task 3
Guidance:
Tips to share:
- [ ]) for tasks - the coordinator manages theseHand control back to human after each section.
Configure optional settings.
Ask about each option:
Interactive mode: "How should agent questions be handled?"
yes - Questions appear in web UI; human responds interactively (RECOMMENDED)no - Workflow exits when an agent asks a questionauto - Self-driving mode; agents attempt to proceed without human inputCompletion gate script: "Should a command verify workflow completion?"
make test, go test ./..., npm run lint && npm testPresent configuration:
interactive: yes
completionGateScript: make test
Hand control back to human for confirmation.
Generate the complete GOAL.md and validate.
Generate the complete file:
---
flow: |
[generated flow from Phase 3]
models:
[generated models from Phase 4]
interactive: [from Phase 6]
completionGateScript: [from Phase 6, if set]
---
[generated specification from Phase 5]
Validation checklist (present to user):
- [ ])Ask: "I've generated the GOAL.md. Would you like me to:
Hand control back to human for final decision.
---
flow: |
"general-purpose"
interactive: yes
---
# Project Goal
[Description]
## Requirements
- [Requirement]
## Tasks
- [ ] Task
---
completionGateScript: make test
flow: |
"backend-go-developer" -> "go-readability-reviewer"
"go-readability-reviewer" -> "stpa-analyst"
"general-purpose" -> "stpa-analyst"
models:
"coordinator": "anthropic/claude-opus-4-6 (max)"
"backend-go-developer": "anthropic/claude-opus-4-6"
"go-readability-reviewer": "anthropic/claude-opus-4-6"
"general-purpose": "anthropic/claude-opus-4-6"
"stpa-analyst": "anthropic/claude-opus-4-6"
interactive: yes
---
# Project Goal
[Description]
## Requirements
- [Requirement 1]
- [Requirement 2]
## Tasks
- [ ] Task 1
- [ ] Subtask 1.1
- [ ] Task 2
@.sgai/PROJECT_MANAGEMENT.mdsgai_ask_user_question for structured questions:
sgai_ask_user_question({
questions: [{
question: "**Phase 1: Project Description**\n\nWhat type of project are you building?",
choices: ["API/Backend", "CLI Tool", "Web Application", "Full-Stack App", "Documentation", "Other"],
multiSelect: false
}]
})
documentation
Start, stop, and steer agentic sessions in sgai workspaces. Use when you need to launch AI agent sessions, halt running sessions, or inject steering instructions to guide the agent mid-execution without stopping it.
development
Monitor sgai workspace status, events, progress, diffs, and workflow diagrams. Use when you need to observe what agents are doing, track progress, get the current state of all workspaces, subscribe to real-time updates via SSE, or inspect code changes.
development
Access agents, skills, and code snippets available in sgai workspaces. Use when you need to discover what agents are defined in a workspace, browse available skills, get skill instructions, find code snippets by language, or retrieve snippet content for a specific task.
data-ai
Handle agent questions and work gates in sgai workspaces. Use when an agent is blocked waiting for human input, when you need to respond to multi-choice questions, approve work gates, or provide free-text answers to agent queries.