OpenParable
Skip to content
← Back to skills

Goal Md Composer

Agent Building
goal-md-composer

Goal Md Composer is an Agent Skill for agent building published in the sandgardenhq/sgai repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Interactive wizard to compose valid GOAL.md files for SGAI with step-by-step guidance through 7 phases. Use when creating GOAL.md, configuring agents and model, safety-analysis guidance, or starting an SGAI project. Safety Analysis must use coordinator/reviewer stpa-overview skill guidance.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/sandgardenhq/sgai/blob/HEAD/cmd/sgai/skel/.sgai/skills/product-design/goal-md-composer/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/goal-md-composer, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

GOAL.md Composer

Guide the user through a complete GOAL.md using seven phases: purpose, agents, model configuration, specification writing, options, and validation.

Phase 4: Model Configuration

Configure the shared model and list available delegate agents.

Default GPT-5.5 recommendation:

  • A single model is used for all agents. The coordinator runs with openai/gpt-5.5 (xhigh) for orchestration quality; the OpenCode runtime handles model propagation to subagents.
  • The agents list enumerates non-coordinator delegate agents available for OpenCode subagent delegation.

Do not add safety-analysis-only entries to the agents list; safety analysis is handled through stpa-overview guidance.

Example:

agents:
  - "go"
  - "react"
  - "general-purpose"
model: "openai/gpt-5.5 (xhigh)"

Ask: "Which delegate agents should be available, and what model should be used?"

Safety Analysis Guidance

Safety analysis is coordinator/reviewer skill guidance, not a routable flow node.

## Safety Analysis

- The coordinator must load/use `stpa-overview` when safety, hazard, risk, external input, filesystem, concurrency, or unsafe state-transition concerns are relevant.
- `*-reviewer` agents may load/use `stpa-overview` when circumstances warrant hazard or safety analysis.

Validation Checklist

  • Safety analysis is not represented as a separate delegate agent
  • Safety Analysis, if selected, appears as coordinator/reviewer stpa-overview guidance
  • Agent names are valid OpenCode subagent identifiers
  • Interactive mode is set
  • Specification has clear requirements and checkbox tasks

Full-Featured Template with Safety Analysis

---
agents:
  - "go"
  - "react"
  - "general-purpose"
model: "openai/gpt-5.5 (xhigh)"
completionGateScript: make test
interactive: yes
---

# Project Goal

[Description]

## Requirements

- [Requirement]

## Safety Analysis

- The coordinator must load/use `stpa-overview` when safety, hazard, risk, external input, filesystem, concurrency, or unsafe state-transition concerns are relevant.
- `*-reviewer` agents may load/use `stpa-overview` when circumstances warrant hazard or safety analysis.

## Tasks

- [ ] Task