validate-workflow-pb
Validate XML workflow files for structural correctness, cross-reference integrity, and format compliance. Reports issues by severity (ERROR, WARNING, INFO).
What this skill does
<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 Files</description>
<if condition="--all">
<action>Glob `<home>/.things/playbook/workflows/*.md` and read all files.</action>
</if>
<if condition="filename">
<action>Read `<home>/.things/playbook/workflows/<filename>.md`. If not found, also check the current project's `.claude/workflows/` directory.</action>
</if>
<if condition="no files found">
<action>Tell the user no workflow files were found. Stop.</action>
<exit />
</if>
</step>
<step id="validate" number="4">
<description>Validate Workflow Files</description>
<action>For each workflow file, strip YAML frontmatter if present, then run all checks. Categorize findings by severity.</action>
<constraint>
**ERROR** (blocks pass):
- Missing `<steps>` element
- `<step>` missing `number` or `id` attribute
- `<step>` missing `<title>` or `<goal>`
- `<gate>` without `<condition>`
- Broken `<prerequisite ref="">` — ref value doesn't match any step id
- Broken `<on_fail goto="">` — goto value doesn't match any step id
- `<use ref="">` without matching `<ref id="">`
- Duplicate step ids
</constraint>
<constraint>
**WARNING** (should fix):
- Markdown inside `<steps>` zone (list items, bold, code fences, headings)
- Non-sequential step numbers (gaps or out of order)
</constraint>
<constraint>
**INFO** (suggestions):
- More than 2 `<critical>` elements in a single step (most should be boundaries)
- Steps with no children besides `<title>` and `<goal>` (possibly incomplete)
- Missing `<verification-commands>` (optional but recommended)
- Unexpected top-level elements (not steps, references, verification-commands, or principles)
</constraint>
</step>
<step id="report" number="5">
<description>Report Results</description>
<action>Format and display the validation report.</action>
<constraint>
Report format per file:
```
## <filename>
<ERROR/WARNING/INFO count summary>
### ERRORS
- [line] Description of the issue
### WARNINGS
- [line] Description of the issue
### INFO
- [line] Description of the issue
**Verdict: PASS** or **Verdict: FAIL (N errors)**
```
Omit empty severity sections. If validating multiple files, show a summary line at the end:
```
---
N files validated: X passed, Y failed
```
</constraint>
<constraint>A file PASSES only if it has zero ERRORs. Warnings and info items do not cause failure.</constraint>
</step>
</steps>
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.