plugins/process-siren/skills/improve-processes/SKILL.md
Process quality methodology for the process-siren agent — use before or during Mermaid conversion when the source process shows ambiguity, missing decisions, undefined actors, vague conditions, or structural weakness. Provides triage sequence, excellence criteria, and an improvement framework drawn from Lean, Six Sigma, BPR, Design Thinking, Systems Thinking, and Theory of Constraints. Activates when source content is poorly structured enough that converting it as-is would encode wrong behavior for AI readers.
npx skillsauth add jamie-bitflight/claude_skills improve-processesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Process-siren's job is semantic fidelity. Faithful conversion of a flawed process encodes the flaws with false precision. Use this skill when the source process needs improvement before — or alongside — Mermaid conversion.
Apply before converting when the source shows ANY of:
These frameworks share one principle — a process must be deterministic, auditable, and actor-owned.
Lean (Ohno) — eliminate steps that produce no state change; apply 5 Whys to trace ambiguity to its root
Six Sigma / DMAIC (Smith) — Define outcome, Measure current state, Analyze gap, Improve, Control recurrence
BPR (Hammer) — radical question: "If we started from scratch, what would this look like?"
Design Thinking (IDEO/Brown) — Empathize with the agent executing the process; design for their decision points
Systems Thinking (Senge) — identify feedback loops and side effects before encoding structure
Theory of Constraints (Goldratt) — find the bottleneck step; simplify around it before adding branches
Antifragility (Taleb) — prefer processes that improve under stress over processes that merely tolerate it
Before converting, verify the source process satisfies:
After reading the process-under-review and all linked or referencing files, evaluate this gate before any Mermaid conversion begins.
Question: Are all branches, conditions, and terminal states derivable from what has been read — with no unbound unknowns?
flowchart TD
Read["Read process-under-review<br>and all linked/referencing files"] --> Inventory["Inventory all steps, conditions,<br>branches, and terminal states<br>found in the source material"]
Inventory --> Gate{"Are all branches, conditions,<br>and terminal states derivable<br>from the source — with no<br>unbound unknowns?"}
Gate -->|"Yes — all structure is derivable"| Triage["Proceed to Triage Protocol<br>then Mermaid conversion"]
Gate -->|"No — unknowns remain"| Coach["Enter coach-mode<br>Stop conversion entirely"]
Coach --> Report["Produce BLOCKED report<br>(see Coach-Mode Report Format below)"]
Report --> Done(["Return report to process author<br>Await answers before any conversion"])
Converting an incomplete process produces a diagram that looks authoritative but encodes ambiguity as if it were resolved. An AI agent reading that diagram will follow the false structure and behave incorrectly. Coach-mode surfaces the incompleteness instead of hiding it.
When the gate returns NO, produce this report — do not produce any Mermaid:
CONVERSION ASSESSMENT
Goal:
- [One sentence stating what the process is intended to accomplish]
Source material read:
- [List each file or section examined, with path or reference]
What is known (derivable from source):
- [Fact 1 — cite the source section]
- [Fact 2 — cite the source section]
- ...
What is unknown or unbound:
- [Missing branch] | Gap: [what is undefined] | Source: [which file/section is silent on this]
- [Ambiguous condition] | Gap: [what observable fact is missing] | Source: [which file/section]
- [Undefined terminal state] | Gap: [what success/failure looks like] | Source: [absent from all files]
- [Step referencing undefined thing] | Gap: [the undefined reference] | Source: [where the reference appears]
Questions the process author must answer before conversion can proceed:
[Category — e.g., Branching Conditions]:
- [Question 1] (needed because: [why this blocks a specific diagram node or edge])
- [Question 2] (needed because: ...)
[Category — e.g., Terminal States]:
- [Question] (needed because: ...)
Decision:
- BLOCKED
Conversion will proceed once all questions above are answered.
Report field rules:
flowchart TD
Start(["Source process received"]) --> O{"Is the intended outcome<br>stated in one measurable sentence?"}
O -->|"No"| FixO["Rewrite outcome statement<br>before proceeding"]
O -->|"Yes"| A{"Is the actor named<br>for every step?"}
FixO --> A
A -->|"No — actor undefined"| FixA["Name actor per step;<br>ask user if ambiguous"]
A -->|"Yes"| B{"Do all steps change observable state?"}
FixA --> B
B -->|"No — some steps are pure description"| FixB["Remove or rewrite no-op steps<br>as concrete actions"]
B -->|"Yes"| C{"Are all decision conditions<br>evaluable without interpretation?"}
FixB --> C
C -->|"No — vague conditions remain"| FixC["Replace with observable facts:<br>exit code, file existence, string match"]
C -->|"Yes"| D{"Are entry and exit<br>conditions explicit?"}
FixC --> D
D -->|"No"| FixD["Add entry precondition<br>and exit terminal state"]
D -->|"Yes"| Convert(["Process is ready for Mermaid conversion"])
FixD --> Convert
Apply in sequence when rebuilding a weak process:
flowchart TD
S1["1. Rewrite outcome as one measurable sentence"] --> S2
S2["2. Replace abstract verbs with concrete actions"] --> S3
S3["3. Add decision gates — If X, then Y"] --> S4
S4["4. Define inputs and outputs for each step"] --> S5
S5["5. Remove steps that do not change state"] --> S6
S6["6. Add at least one correct execution example"] --> S7
S7["7. Add at least one failure example"] --> S8
S8["8. Stress-test: what happens at each edge case?"] --> S9
S9["9. Time the walkthrough — can a novice follow in 5 minutes?"] --> S10
S10["10. Confirm auditable — can execution be traced after the fact?"] --> Done(["Improved process ready"])
SOURCE: Synthesized from user-provided source material (2026-02-26) drawing on Lean, Six Sigma/DMAIC, BPR, Design Thinking, Systems Thinking, Theory of Constraints, and process design literature including Deming, Drucker, Gawande (The Checklist Manifesto), Meadows (Thinking in Systems), Norman (The Design of Everyday Things), Allen (Getting Things Done), Clear (Atomic Habits), and Taleb.
development
When an application needs to store config, data, cache, or state files. When designing where user-specific files should live. When code writes to ~/.appname or hardcoded home paths. When implementing cross-platform file storage with platformdirs.
testing
Enforce mandatory pre-action verification checkpoints to prevent pattern-matching from overriding explicit reasoning. Use this skill when about to execute implementation actions (Bash, Write, Edit) to verify hypothesis-action alignment. Blocks execution when hypothesis unverified or action targets different system than hypothesis identified. Critical for preventing cognitive dissonance where correct diagnosis leads to wrong implementation.
tools
Reference guide for the Twelve-Factor App methodology — 15 principles (12 original + 3 modern extensions) for building portable, resilient, cloud-native applications. Use when evaluating application architecture, designing cloud-native services, reviewing codebases for methodology compliance, advising on configuration, scaling, observability, security, and deployment patterns. Incorporates the 2025 open-source community evolution and cloud-native reinterpretations of each factor.
tools
Converts user-facing documentation (how-to guides, tutorials, API references, examples) in any format — Markdown, PDF, DOCX, PPTX, XLSX, AsciiDoc, RST, HTML, Jupyter notebooks, man pages, TOML/YAML/JSON configs, and plain text — into Claude Code skill directories with SKILL.md plus thematically grouped references/*.md files. Use when given a docs directory or mixed-format documentation to transform into an AI skill. Uses MCP file-reader server for binary formats.