mirror of
https://github.com/garrytan/gstack.git
synced 2026-09-21 12:20:48 +02:00
73 lines
6.3 KiB
Markdown
73 lines
6.3 KiB
Markdown
<!-- GENERATED by scripts/gstack2/generate-skill-tree.ts; do not edit. -->
|
|
<!-- GSTACK2_PROVENANCE source=SKILL.md.tmpl base=bb57306d98c97011b0919c6132705a15b1579781 blob=402bd0d7b0f2bf02f6c9e4754e0e2a655f5f4057 baseline_render_sha256=16050d719e57e10d11a18c7bb94853f535f315cb73500872f4ec2309c7b96d04 ported_render_sha256=daa2b069d1945c1e1bf8eef23417899b4eacb98087f6c146c0b726eb21fd2776 disposition=BUG_FIX -->
|
|
<!-- GSTACK2_ROUTING replacement=$plan --mode Discovery --module gstack visibility=internal depth=standard mutation=source-defined web=none -->
|
|
|
|
<!-- GSTACK2_LEGACY_BODY_START source=gstack -->
|
|
## Route first
|
|
|
|
This is the gstack router. Its one job is to send the request to the right skill.
|
|
|
|
1. If the request is about a browser, QA, dogfooding, screenshots, or inspecting a page
|
|
(open a site, test a deploy, take a screenshot, check a flow visually) → invoke `$qa --mode Report --module browse`.
|
|
2. Otherwise, route by the rules below. If nothing matches, answer directly.
|
|
|
|
Best-effort, record which way you routed (never block on it). Set `ROUTE_OUTCOME` to
|
|
`browse` (sent to $qa --mode Report --module browse), `routed` (sent to another skill), or `direct` (answered
|
|
directly, no skill matched):
|
|
```bash
|
|
```
|
|
|
|
**Routing rules — when you see these patterns, INVOKE the skill via the Skill tool:**
|
|
- User describes a new idea, asks "is this worth building", brainstorms, pitches a concept → invoke `$plan --mode Discovery --module office-hours`
|
|
- User asks to spec something out, file an issue, write up a ticket, "turn this into a GitHub issue", "backlog item" → invoke `$plan --mode Specification --module spec`
|
|
- User asks about strategy, scope, ambition, "think bigger", "what should we build" → invoke `$plan --mode Product --module plan-ceo-review`
|
|
- User asks to review architecture, lock in the plan, "does this design make sense" → invoke `$plan --mode Engineering --module plan-eng-review`
|
|
- User asks about design system, brand, visual identity, "how should this look" → invoke `$design --mode Generate --module design-consultation`
|
|
- User asks to review design of a plan → invoke `$design --mode Critique --module plan-design-review`
|
|
- User asks about developer experience of a plan, API/CLI/SDK design → invoke `$plan --mode DX --module plan-devex-review`
|
|
- User wants all reviews done automatically, "review everything" → invoke `$plan --mode Full chain --module autoplan`
|
|
- User reports a bug, error, broken behavior, "why is this broken", "this doesn't work", "wtf", "something's wrong" → invoke `$debug --mode Diagnose-only --module investigate`
|
|
- User asks to test the site, find bugs, QA, "does this work", "check the deploy" → invoke `/qa`
|
|
- User asks to just report bugs without fixing → invoke `$qa --mode Report --module qa-only`
|
|
- User asks to review code, check the diff, pre-landing review, "look at my changes" → invoke `/review`
|
|
- User asks about visual polish, design audit of a live site, "this looks off" → invoke `$design --mode Implement --module design-review`
|
|
- User asks to audit the live developer experience, time-to-hello-world → invoke `$qa --mode Report --module devex-review`
|
|
- User asks to ship, deploy, push, create a PR, "let's land this", "send it" → invoke `/ship`
|
|
- User asks to merge + deploy + verify as one flow → invoke `$ship --mode Land --module land-and-deploy`
|
|
- User asks to configure deployment for the project → invoke `$ship --mode Deploy --module setup-deploy`
|
|
- User asks to monitor prod after shipping, post-deploy checks → invoke `$qa --mode Report --module canary`
|
|
- User asks to update docs after shipping → invoke `$ship --mode Prepare --module document-release`
|
|
- User asks to write docs from scratch, generate documentation, "document this feature/module" → invoke `$ship --mode Prepare --module document-generate`
|
|
- User asks for a weekly retro, what did we ship, "how'd we do" → invoke `$plan --mode Discovery --module retro`
|
|
- User asks for a second opinion, codex review → invoke `$review --mode Deep --module codex`
|
|
- User asks for safety mode, careful mode → invoke `$debug --mode Diagnose-only --module careful` or `$debug --mode Diagnose-only --module guard`
|
|
- User asks to restrict edits to a directory → invoke `$debug --mode Diagnose-only --module freeze` or `$debug --mode Diagnose-only --module unfreeze`
|
|
- User asks to upgrade gstack → invoke `$ship --mode Prepare --module gstack-upgrade`
|
|
- User asks to save progress, checkpoint, "save my work" → invoke `$plan --mode Discovery --module context-save`
|
|
- User asks to resume, restore, "where was I" → invoke `$plan --mode Discovery --module context-restore`
|
|
- User asks about security, OWASP, vulnerabilities, "is this secure" → invoke `$review --mode Security --module cso`
|
|
- User asks to make a PDF, document, publication → invoke `$design --mode Generate --module make-pdf`
|
|
- User asks to launch a real browser for QA, "open the browser" → invoke `$qa --mode Report --module open-gstack-browser`
|
|
- User asks to import cookies for authenticated testing → invoke `$qa --mode Report --module setup-browser-cookies`
|
|
- User asks about page speed, performance regression, benchmarks → invoke `$qa --mode Report --module benchmark`
|
|
- User asks what gstack has learned, "show learnings" → invoke `$plan --mode Discovery --module learn`
|
|
- User asks to tune question sensitivity, "stop asking me that" → invoke `$plan --mode Discovery --module plan-tune`
|
|
- User asks for code quality dashboard, "health check" → invoke `$review --mode Deep --module health`
|
|
|
|
**When in doubt, invoke the skill.** A false positive (invoking a skill that wasn't
|
|
needed) is cheaper than a false negative (answering ad-hoc when a structured workflow
|
|
exists). The skill provides multi-step workflows, checklists, and quality gates that
|
|
always produce better results than an ad-hoc answer. If no skill matches, answer
|
|
directly as usual.
|
|
<!-- GSTACK2_LEGACY_BODY_END source=gstack -->
|
|
|
|
<!-- GSTACK2_BUG_FIX_START pr=679 anchor=GSTACK2_FIX_679_MATCH_USER_LANGUAGE -->
|
|
## Upstream judgment port: PR #679
|
|
|
|
[Match the user language](https://github.com/garrytan/gstack/pull/679)
|
|
|
|
### User-language rule
|
|
|
|
Write questions, progress updates, reports, and artifacts in the language used by the user. Source material, code identifiers, commands, and quotations may remain in their original language when translating them would reduce accuracy.
|
|
<!-- GSTACK2_BUG_FIX_END pr=679 -->
|