CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

statechart

Model a flow that moves between states in TLA+, check the rules its reader agrees to with the everystate model checker over every order of events, and chart it in the reader's words with the shortest path to each rule that breaks. Use when a flow, protocol, retry loop or state machine needs its rules checked, a bug shown as a path through states, or formal verification is asked for.

Quality

94%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

SKILL.md
Quality
Evals
Security

Quality

Content

92%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

An unusually tight, high-signal skill body: a clearly sequenced workflow with genuine validation checkpoints (falsification before trusting a pass, replay of bug paths, re-sync procedure) and concrete TLA+ syntax throughout. The one improvement opportunity is a minimal complete example of the view module, which is currently specified only as an API contract with fragments.

Suggestions

Add a 5-10 line example view.ts (state, step, title for a tiny two-state spec) so the view module's API contract is copy-paste ready, not just described.

Show a minimal SPEC.tla/SPEC.cfg pair for the same tiny example so the 'Write the model' rules (covers/synced headers, named actions, Done step) appear as one concrete artifact instead of separate rules.

DimensionReasoningScore

Conciseness

The body is lean and dense: every line instructs ('Point each action at the code a reviewer can open, in a `\* path:line` comment', 'A correct end state still breaks deadlock: give it a step that changes nothing') and nothing explains concepts Claude already knows. There is no padding; even the opening line defines the skill's framing in one sentence. This matches the 'every token earns its place' anchor.

5 / 5

Actionability

Mostly executable guidance: the run command 'bun ${CLAUDE_SKILL_DIR}/scripts/statechart.ts SPEC.tla --view view.ts --out <folder>' is copy-paste ready, exit codes 0/1/2 are specified, and concrete TLA+ patterns are given inline (`Done == phase \in {"paid", "failed"} /\ UNCHANGED vars`, `Pay \/ Decline`). The minor gap is the view module: 'state(vars)', 'step(action, from, to)', 'title' are described as an API contract with fragments ('you press play [while the file loads]') but no complete example view.ts, so it sits just below the fully copy-paste-ready anchor of 5 and well above the pseudocode level of 3.

4 / 5

Workflow Clarity

The sequence is explicit and ordered (pick target → write model → write view → run → prove it can fail → when the covered code moved → hand off) with strong validation checkpoints: the 'Prove it can fail' section is a negative control ('break the promise in the real code on a scratch change... a rule must break. Drop the change and rerun: the verdicts are back where they started'), plus rerun-after-sync and 'A path that does not replay means the model is wrong until shown otherwise'. This matches the anchor with explicit validation steps and feedback loops.

5 / 5

Progressive Disclosure

The body is a compact, well-sectioned overview (~68 lines) that keeps all instruction inline and appropriately invokes the bundle rather than inlining it: the single referenced path, 'scripts/statechart.ts', exists in the bundle and is one level deep, clearly signaled by the run command. No content that belongs in separate files is inlined and there are no nested references, matching the well-organized-structure standard for a self-contained skill.

5 / 5

Total

19

/

20

Passed

Description

92%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description: three concrete third-person capabilities followed by an explicit 'Use when' clause with natural, domain-appropriate trigger phrases. The only gap is a handful of missing synonyms (model checking, invariants, deadlock) that would make trigger coverage fully comprehensive.

DimensionReasoningScore

Specificity

The description lists three concrete, comprehensive actions in third person: 'Model a flow that moves between states in TLA+', 'check the rules its reader agrees to with the everystate model checker over every order of events', and 'chart it in the reader's words with the shortest path to each rule that breaks'. These cover the skill's full capability set with no vague filler, matching the anchor for multiple specific concrete actions with comprehensive coverage; nothing is generic enough to warrant 4.

5 / 5

Completeness

Both halves are explicit: the 'what' is the three concrete actions (model in TLA+, check rules with the model checker, chart with shortest breaking paths), and the 'when' opens with 'Use when a flow, protocol, retry loop or state machine needs its rules checked, a bug shown as a path through states, or formal verification is asked for'. This matches the anchor for clearly and explicitly answering both what and when with concrete trigger phrases; the 4 anchor's 'could be more explicit' caveat does not apply.

5 / 5

Trigger Term Quality

Natural trigger phrases are present: 'flow, protocol, retry loop or state machine needs its rules checked', 'a bug shown as a path through states', 'formal verification is asked for', plus the domain term TLA+. This is good keyword coverage a user would plausibly say, but a few natural synonyms are missing (e.g., 'model checking', 'invariants', 'deadlock', 'liveness'), which keeps it below the comprehensive-synonyms anchor of 5 and clearly above the sparse coverage of 3.

4 / 5

Distinctiveness Conflict Risk

The niche is distinct: formal verification via TLA+/everystate model checking with a state-chart artifact and 'shortest path to each rule that breaks'. Triggers like 'formal verification', 'state machine', 'rules checked over every order of events' are unlikely to fire for generic diagramming or testing skills, giving minimal conflict risk as the 5 anchor requires.

5 / 5

Total

19

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

saadshahd/moo.md

Path

hunch/skills/statechart/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.