/britts-agent-skills:sgai-goalfrom Britt's Agent Skills
Composes GOAL.md files for SGAI workspaces by interactively detecting tech stack, setting agent flow graphs, model preferences, and success criteria.
Ships in Britt's Agent Skills. 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.
Read when SKILL.md points to them.
Compose GOAL.md files for SGAI workspaces through interactive conversation.
Check for an .sgai/ directory or other SGAI configuration in the repository. If absent, stop and ask the user whether this repo actually uses SGAI before proceeding.
Scan the repository for files and choose appropriate agents:
| Detection | Stack | Developer Agent | Reviewer Agent |
|---|---|---|---|
go.mod | Go backend | backend-go-developer | go-readability-reviewer |
package.json + react deps | React | react-developer | react-reviewer |
package.json + htmx deps | HTMX | htmx-picocss-frontend-developer | htmx-picocss-frontend-reviewer |
*.sh, Makefile, or CLI tool | Shell | shell-script-coder | shell-script-reviewer |
wrangler.toml | Cloudflare Worker | general-purpose | cloudflare-worker-deployer |
vercel.json or Next.js | Vercel | react-developer | vercel-deployer |
| Python + Claude SDK | Agent SDK | general-purpose | agent-sdk-verifier-py |
| TypeScript + Claude SDK | Agent SDK | general-purpose | agent-sdk-verifier-ts |
| Python + OpenAI SDK | OpenAI Agent | general-purpose | openai-sdk-verifier-py |
| TypeScript + OpenAI SDK | OpenAI Agent | general-purpose | openai-sdk-verifier-ts |
| None detected | General | general-purpose | — |
Multiple stacks combine (e.g., Go + React = both agent chains). See agents-reference.md for the full agent catalog and additional flow-graph variants.
Check .sgai/preferences.json for saved preferences:
{
"models": {
"coordinator": "anthropic/claude-opus-4-6 (max)",
"default": "anthropic/claude-opus-4-6"
}
}
If no preferences exist, ask:
"What model should I use for SGAI agents? (e.g., anthropic/claude-opus-4-6)"
Save response to .sgai/preferences.json for future use.
Ask conversationally:
"What do you want to accomplish?"
Listen for:
If unclear, ask:
"Is this a new feature, a bug fix, or a new project?"
Transform the description into outcome-based success criteria:
User says: "Add user authentication with OAuth"
Draft as:
- [ ] Users can sign in with OAuth providers
- [ ] Authenticated sessions persist across browser restarts
- [ ] Unauthenticated users are redirected to login
Do NOT write implementation steps like Install passport.js, Create auth middleware, Add login route.
Ask: "Does this capture what success looks like?"
Compose flow based on detected stack. Core pattern: developer -> reviewer -> stpa-analyst
Go + React (full stack) example:
flow: |
"backend-go-developer" -> "go-readability-reviewer"
"go-readability-reviewer" -> "stpa-analyst"
"react-developer" -> "react-reviewer"
"react-reviewer" -> "stpa-analyst"
More flow variants (single-stack, shell/CLI, architecture documentation, general) are in agents-reference.md.
Always include stpa-analyst as terminal node for safety analysis (except pure documentation flows).
| File | Gate Script |
|---|---|
go.mod | go test ./... |
package.json with test script | npm test |
Makefile with test target | make test |
| None | Omit completionGateScript |
Display the complete GOAL.md and ask:
"Here's the goal file. Ready to write it?"
If GOAL.md exists:
GOAL.md.YYYY-MM-DD-HHMMSS.bakWrite new GOAL.md to repository root.
---
flow: |
"agent-a" -> "agent-b"
"agent-b" -> "stpa-analyst"
models:
"coordinator": "anthropic/claude-opus-4-6 (max)"
"agent-a": "anthropic/claude-opus-4-6"
"agent-b": "anthropic/claude-opus-4-6"
"stpa-analyst": "anthropic/claude-opus-4-6"
interactive: yes
completionGateScript: go test ./...
---
Brief description of the goal in 1-2 sentences.
## Success Criteria
- [ ] Outcome-based criterion 1
- [ ] Outcome-based criterion 2
- [ ] Outcome-based criterion 3
To include context like screenshots or specs, add files to the repo and reference them:
See `docs/mockup.png` for the desired layout.
Refer to `specs/api.md` for endpoint requirements.
GOAL.md.YYYY-MM-DD-HHMMSS.bak firstyes (agents ask clarifying questions).sgai/preferences.json in projectGOAL.md.YYYY-MM-DD-HHMMSS.bakWhat SKILL.md sets; muted values are Claude Code's defaults
32 skills in this plugin
/architecture-diagrammingUse when the user asks for an architecture diagram, says 'show me the system architecture' or 'diagram the components', or during project planning - generates GitHub-compatible Mermaid flowcharts showing components, layers, subgraph boundaries, and data flows/at-risk-detectionUse when asked about project health, stale or blocked issues, deadline risk, or scope creep - scans GitHub issues and PRs with heuristics (staleness, blocked labels, milestone dates, size, unassigned high-priority) and produces a severity-ranked at-risk report/build-faq-from-issuesUse when building or updating an FAQ from closed GitHub issues, documenting recurring support questions, or reducing repeat questions - extracts common questions from resolved issues and generates a categorized FAQ document with synthesized answers and source linksnpx claudepluginhub britt/agent-skills --plugin britts-agent-skillsOther plugins' skills for the same job