validate-workflow-pblisted
Install: claude install-skill brennacodes/brenna-plugs
<purpose>
Validate XML workflow files for structural correctness and format compliance. Deeper checks than the PreToolUse hook, with severity-categorized reporting. See `../create-workflow-pb/references/workflow-format.md` for the complete format specification.
</purpose>
<steps>
<step id="load-config" number="1">
<description>Load Configuration</description>
<load-config>
<action>Resolve the user's home directory.</action>
<command language="bash" output="home" tool="Bash">echo $HOME</command>
<constraint>Never pass `~` to the Read tool.</constraint>
<read path="<home>/.things/config.json" output="config" />
<if condition="config-missing">Tell the user: "Run `/things:setup-things` first." Then stop.<exit /></if>
<read path="<home>/.things/playbook/preferences.json" output="preferences" />
<if condition="preferences-missing">Tell the user: "Run `/setup-pb` first." Then stop.<exit /></if>
</load-config>
</step>
<step id="parse-arguments" number="2">
<description>Parse Arguments</description>
<action>Parse `$ARGUMENTS` for:</action>
- **filename**: A specific workflow filename (with or without `.md` extension)
- **--all**: Validate all workflow files
<if condition="no arguments">
<action>List workflow files in `<home>/.things/playbook/workflows/` and let user select via AskUserQuestion.</action>
</if>
</step>
<step id="read-workflows" number="3">
<description>Read Workflow