solo-sgr

Solid

Use when "design schemas", "structured output", "agent loop", "SGR", "constrained decoding", "tool dispatch", "Pydantic schema for LLM", or need to design a schema-guided reasoning pipeline for an agent or API. Do NOT use for general code review (/review) or planning (/plan).

AI & Automation 18 stars 2 forks Updated today MIT

Install

View on GitHub

Quality Score: 87/100

Stars 20%
43
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# /sgr Design and implement Schema-Guided Reasoning (SGR) pipelines. Translate domain expert mental checklists into structured reasoning schemas for LLMs. **Source:** [Rinat Abdullin — Schema-Guided Reasoning](https://abdullin.com/schema-guided-reasoning/) ## Core Principle SGR = guide LLM reasoning through predefined steps via constrained decoding. Instead of free-form text → enforce a schema that defines what steps, in which order, where to focus attention. ``` Domain expert mental checklist → Pydantic/Zod schema → Constrained decoding → Deterministic dispatch ``` ## When to Use - Designing agent tool dispatch (NextStep pattern) - Building structured analysis pipelines (compliance, code review, evaluation) - Replacing prompt chains with single structured call - Any place where LLM output must be parseable and actionable ## Steps 1. **Parse task** from `$ARGUMENTS`: - If "audit": scan project for existing Pydantic/Zod schemas, evaluate against SGR patterns - If task description: design SGR pipeline from scratch - If empty: ask "What domain/task should the SGR pipeline handle?" 2. **Identify the reasoning cascade** — interview the domain: - What decisions does a human expert make? In what order? - What information does each step need from previous steps? - Where does the expert need to "look before deciding"? - What are the possible actions at the end? This is the critical step. SGR quality = how well you translate the expert's mental checkl...

Details

Author
fortunto2
Repository
fortunto2/solo-factory
Created
7 months ago
Last Updated
today
Language
Shell
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

gsd-ralph-context-loop

Orchestrate coding work with GSD (Capture→Clarify→Organize→Execute→Review) and Ralph Loop (Observe→Act→Feedback→Promote→Enforce). Use parallel agents/workflows for multi-faceted tasks. Auto-invoke when user says GSD, Ralph Loop, get shit done, work in parallel agents, context course, or all of it for context engineering. Slash: /gsd-ralph-context-loop.

26 Updated today
IgorGanapolsky
AI & Automation Listed

sdlc

Orchestrates an end-to-end, plan-gated software build pipeline: routes each stage to the right skill while enforcing human approval gates. Covers discovery, PRD, stress-test, architecture, API contracts, decomposition, implementation, QA, review, landing, and retro. The single entry point for the workflow. Use when the user wants to build a feature or product the disciplined way, start or resume structured development, asks "what stage are we at" / "what's next", or says "start the sdlc" / "run the pipeline".

1 Updated today
enocgit
API & Backend Listed

graphql-schema-designer

Design a clean, evolvable GraphQL schema (SDL) that won't paint you into a corner — model the graph around domain types and their relationships rather than as RPC-over-GraphQL, set nullability deliberately, standardize lists with Relay connections, plan DataLoader batching for per-parent fields, and evolve by adding + @deprecated instead of versioning. Use when designing a new GraphQL API, reviewing an SDL, or migrating REST endpoints to a graph.

1 Updated today
imtiazrayhan