From compliance-trestle
Executes full Trestle component definition authoring workflow: generate markdown skeleton from name, guide user edits, assemble definition, validate results.
How this command is triggered — by the user, by Claude, or both
Slash command
/compliance-trestle:component-roundtrip <compdef_name>workflow/This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
Execute the full component definition authoring roundtrip workflow. ## Steps 1. Verify we are in a trestle workspace. 2. Parse $ARGUMENTS for the component definition name. If not provided, list available component-definitions. 3. **Generate Phase**: 4. Show the structure: - Separate directories per component - One markdown file per control within each component - Rules and parameters in YAML header - Implementation prose sections 5. **Edit Phase**: Guide the user: - Show a sample control for one component - Explain rules (read-only, from JSON) - Explain how t...
Execute the full component definition authoring roundtrip workflow.
Verify we are in a trestle workspace.
Parse $ARGUMENTS for the component definition name. If not provided, list available component-definitions.
Generate Phase:
trestle author component-generate --name <compdef_name> --output <compdef_name>-markdown
Show the structure:
Edit Phase: Guide the user:
Assemble Phase:
trestle author component-assemble --markdown <compdef_name>-markdown --output <compdef_name>
Validate and report results.
Suggest: The component definition can now be used with ssp-generate --compdefs to create SSPs.
npx claudepluginhub ethanolivertroy/compliance-trestle-skills --plugin compliance-trestle/generate-claude-componentCreates Claude Code components interactively: commands, agents, skills, hooks, rules, plugins. Use ? for discovery mode with goal-based recommendations.
/create-componentGuides UI component creation: detects framework/styling, asks for name/purpose/complexity/props/state specs, generates code with best practices.