SKILL.md
Using Sphere Workflow
This skill is the bootstrap entrypoint for the sphere-workflow plugin.
Use it to classify the request first, then invoke only the next needed go-sphere skill. Do not load every bundled skill preemptively.
Routing Rules
- If the user explicitly names a skill, use that skill.
- If the request spans multiple lifecycle stages, start at the earliest missing artifact.
- If the request is already narrowed to a single stage, invoke only that stage skill.
- If the task will modify go-sphere scaffold contracts, schemas, services, or generation commands, route into
sphere-feature-workflow. - If the task is about pulling upstream layout changes into an existing project, or adopting a pre-contract project, route into
sphere-layout-sync— notsphere-feature-workflow. - If the task is about the
protoc-gen-*plugins themselves rather than the.protocontracts they consume, route intoprotoc-plugin-engineering— notproto-api-generator.
Workflow Map
Discovery and Requirement Shaping
interview-me
- Use for step-by-step interactive interviews to resolve design decisions before drafting specs or code.
project-intake
- Use for new project kickoff, scattered requirements, demos, screenshots, or rough drafts.
prd
- Use when the user wants a PRD or when intake is complete and product requirements need to be formalized.
ux-analyst
- Use when visual prototypes or demos need to be translated into user flows and behavior semantics.
Specification and Planning
spec-writer
- Use to create or refine an implementation-ready specification.
spec-diff-pipeline
- Use when a spec changed and downstream proto/schema/task impact needs to be analyzed.
Data and Contract Design
db-schema-designer
- Use to design entities, fields, relationships, and indexes before coding.
ent-schema-implementer
- Use to turn an approved schema design into Go Ent schema files.
ent-seed-sql-generator
- Use for deterministic development, test, or demo seed SQL.
proto-api-generator
- Use to define or revise proto3 and HTTP API contracts.
proto-service-generator
- Use to generate or complete service skeletons from generated interfaces.
Implementation and Surfaces
sphere-feature-workflow
- Use for end-to-end go-sphere scaffold implementation, especially when proto, schema, service, bind/map, or generation commands are involved.
pure-admin-crud-generator
- Use to scaffold pure-admin-thin CRUD views and router modules from swagger-generated client methods.
Layout and Toolchain Maintenance
sphere-layout-sync
- Use to update a generated project to a newer layout revision, resolve layout drift, or adopt a legacy project into the .sphere/layout.lock.json contract.
protoc-plugin-engineering
- Use to write, refactor, or review the protoc-gen-* plugins themselves, including config, templates, generated-output stability, and golden tests.
Quality and Verification
go-test-engineering
- Use to audit, repair, or write Go tests, including reusable interface contract suites and justified golden tests.
go-sphere-makefiles
- Use to standardize or repair repository Make targets, root batch orchestration, and Make-driven CI while preserving multi-module, generator, and layout behavior.
Common Starting Points
- Rough feature idea with mixed notes:
- Start with project-intake.
- Need a PRD from agreed business direction:
- Start with prd.
- Need a SPEC from PRD or requirement text:
- Start with spec-writer.
- Need review-ready schema design:
- Start with db-schema-designer.
- Need contract-first API definition:
- Start with proto-api-generator.
- Need a merge-ready scaffold feature touching generated boundaries:
- Start with sphere-feature-workflow.
- Need to audit AI-generated tests or add trustworthy Go tests:
- Start with go-test-engineering.
- Need consistent Makefiles or Make-driven CI across repositories:
- Start with go-sphere-makefiles.
- Need to upgrade a project to a newer layout revision or fix layout drift:
- Start with sphere-layout-sync.
- Need to change or review a
protoc-gen-*plugin:
- Start with protoc-plugin-engineering.
Operating Constraints
- Prefer go-sphere repository conventions over generic engineering defaults.
- Inside a generated project, the project's own
.sphere/layout.json,AGENTS.md, anddocs/LAYOUT_CONTRACT.mdoutrank any bundled skill where they disagree. Read them before editing. - There are four official layouts (
standard,simple,bun,telegram) with different capabilities. Do not assume the standard layout. - Keep stage boundaries clear: requirements first, then spec, then schema/contract design, then implementation.
- When multiple skills are needed, progress forward one stage at a time instead of blending outputs.
- Reuse the existing bundled skill outputs and default artifact locations unless the user specifies otherwise.
Plugin Bootstrap Note
When this skill is injected by the sphere-workflow plugin, treat it as already loaded bootstrap context. Use the native skill mechanism only for the relevant follow-up skill, such as project-intake, spec-writer, db-schema-designer, proto-api-generator, sphere-feature-workflow, sphere-layout-sync, protoc-plugin-engineering, go-test-engineering, or go-sphere-makefiles.