Issue 482/sdui json scaffolding workflow#485
Merged
Merged
Conversation
…arning - Add "Creating sdui.json for a new playbook" section to the authoring guide with a 4-step workflow and a copy-paste AI drafting prompt that references the schema, authoring guide, and all 8 existing sdui.json files as few-shot examples - Add checkPlaybookSduiJson() to verify-playbooks.mjs that warns (never hard-fails) when a playbook has PROMPT-3-FRAMEWORKS.md but no sdui.json, pointing contributors directly to the new authoring guide section
- Add v2/scripts/draft-sdui-json.mjs: extracts real component names from the npx agnosticui-cli add commands in PROMPT-3-FRAMEWORKS.md, writes a structurally valid sdui.json scaffold with Ag-prefixed component entries and TODO placeholders for the semantic fields (layout, roles, triggers, description) the human must author - Add checkPlaybookSduiJson() to verify-playbooks.mjs (warns, never hard-fails) when a playbook has PROMPT-3-FRAMEWORKS.md but no sdui.json; points directly to the draft script with the exact command to run - Add "Creating sdui.json for a new playbook" section to the authoring guide explaining the 4-step workflow, what the script generates, and a table of every TODO field with guidance on what to write
- Add v2/scripts/draft-sdui-json.mjs: extracts real Ag-prefixed component names from PROMPT-3-FRAMEWORKS.md ag-add commands and writes a structurally valid sdui.json scaffold with TODO placeholders for the semantic fields the human must author (layout, roles, triggers, etc.) - Add checkPlaybookSduiJson() to verify-playbooks.mjs: hard-fails (not just warns) when a playbook has PROMPT-3-FRAMEWORKS.md but no sdui.json, pointing directly to the draft script with the exact command to run - Update v2/playbooks/README.md: add sdui.json to the per-playbook directory structure diagram and insert step 4 "Generate the sdui.json scaffold" in the Creating a New Playbook walkthrough - Update authoring guide: replace the AI-prompt-only approach with the script-based workflow, add a table of every TODO field with guidance, note that CI hard-fails on missing sdui.json
✅ Deploy Preview for agnosticui-demo-lit ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for agnosticui-demo-vue ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for agnosticui-demo-react ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.
Deliverables: ┌────────────────────────────────────────────────────────────────────┬──────────────────────────────────────────────────────────────────┐ │ Deliverable │ Status │ ├────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────┤ │ Reusable mechanism for drafting sdui.json from a PROMPT file │ ✅ draft-sdui-json.mjs (deterministic script, no AI call needed) │ ├────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────┤ │ Warning in verify-playbooks.mjs for missing sdui.json │ ✅ │ ├────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────┤ │ "Creating sdui.json for a new playbook" section in authoring guide │ ✅ │ ├────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────┤ │ playbooks/README.md updated with requirement and step │ ✅ (bonus, beyond issue scope) │ └────────────────────────────────────────────────────────────────────┴──────────────────────────────────────────────────────────────────┘