feat(grill): native sin-code grill CLI (issue #141 fusion)#220
Merged
Conversation
What ships:
- cmd/sin-code/internal/grill/ — 4 source files (types, catalog,
manager, grill_test) + 14 race-clean unit tests
- cmd/sin-code/grill_cmd.go — 5 subcommands:
- 'grill start <topic>' — begin a session
- 'grill next <id>' — ask the next adversarial question
- 'grill answer <id> <d-id> <text>' — record response
(use 'done' to resolve)
- 'grill status <id>' — show decisions
- 'grill synthesize <id> [--json]' — summary
- Question catalog — 8 anti-patterns with 2-3 example
questions each (Hidden Assumptions, Rollback Plan, etc.)
- JSON file storage at $SIN_CODE_HOME/grill/<id>.json,
atomic writes (temp + rename)
- main.go registration (additive, no breaking change)
- CHANGELOG entry
Replaces the external SIN-Code-Grill-Me-Skill Python MCP server
(38 KB). The bundled SKILL.md in skills/process-skills/skill-
process-grill/ documents the native command. v1 follow-up:
migrate the JSON storage to SQLite via internal/session/store.
Hard mandates honored:
- M2: no new deps (stdlib + gopkg.in/yaml.v3 already in go.sum)
- M5: cmd/sin-code/internal/grill/
- M7: 14/14 tests pass under go test -race -count=1
Live smoke test:
$ sin-code grill start 'ship a binary'
started session grill-3cba08636002cb98
topic: ship a binary
seed question: What is the core decision...
$ sin-code grill next grill-3cba08636002cb98
sub-question under d0:
d1: [Rollback Plan] Can the operator undo step 1 cleanly...
$ sin-code grill answer grill-3cba08636002cb98 d1 'I assume...'
answered decision d1 in session grill-3cba08636002cb98
$ sin-code grill synthesize grill-3cba08636002cb98
# Grilling Synthesis
## Assumptions
- [Rollback Plan] Can the operator... (assumed: I assume...)
Refs: #141
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🏆 CEO Audit — A+ (100.0/100)
📥 Download full report (Markdown)
|
🏆 CEO Audit — A+ (100.0/100)
📥 Download full report (Markdown) Run ID:
|
| // NewManager opens (or creates) the grill directory. Sessions are | ||
| // loaded lazily on first access; the manager is cheap to construct. | ||
| func NewManager(dir string) (*Manager, error) { | ||
| if err := os.MkdirAll(dir, 0o755); err != nil { |
| return err | ||
| } | ||
| tmp := path + ".tmp" | ||
| if err := os.WriteFile(tmp, b, 0o644); err != nil { |
|
|
||
| func (m *Manager) load(id string) (*Session, error) { | ||
| path := m.path(id) | ||
| b, err := os.ReadFile(path) |
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the native Go replacement for the external
SIN-Code-Grill-Me-SkillPython MCP server. The bundledSKILL.mddoc becomes a documentation pointer to the newsin-code grillsubcommand.What ships
cmd/sin-code/internal/grill/— 4 source files + 14 race-clean testscmd/sin-code/grill_cmd.go— 5 subcommands (start/next/answer/status/synthesize)main.goregistration (additive)Live smoke test
Hard mandates honored
cmd/sin-code/internal/grill/go test -race -count=1What does NOT ship (deferred to v1)
internal/session/store.Diffstat
Closes