CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

verify-session-lifecycle

TLA+ model check of the agent-tty session lifecycle when several agent-tty processes use one Home at the same time - create, the session host (start-up, resize, destroy, SIGTERM shutdown, exit), reconcileSession (list, inspect, destroy, gc), gc and destroy (with and without --force). Use it before you change src/host/lifecycle.ts, src/host/programGroup.ts, the start-up, shutdown or exit path of src/host/hostMain.ts, src/host/manifestWriter.ts, src/cli/commands/gc.ts, src/cli/commands/create.ts, src/cli/commands/destroy.ts, src/storage/manifests.ts or src/protocol/sessionStatusPolicy.ts, before you add a new writer of session.json, and when you must know whether a race can delete a session, corrupt its status, leave its program running or kill a process group that is not the session's.

Quality

87%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

70%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.

The operational core - trigger conditions, how to run the check, read results, classify a counterexample, and update the model on purpose - is superbly actionable with explicit validation loops. The body's fatal flaw is scale: ~29k tokens of race histories, expected-result tables and scope assumptions are inlined where a well-signaled references/ layer should hold them, making the skill expensive to load for its common case.

Suggestions

Move the 'Races the guards prevent' section (~300 lines of per-guard history and replay scripts) into a references/races.md file, keeping in SKILL.md only a one-line-per-guard index with a pointer, so the ~29k-token body drops to a fraction of its size.

Externalize the expected-results table and the Scope assumptions into references/expected-results.md and references/scope.md, and have the 'Read the result' and 'Scope' sections link to them - the run/verify workflow itself needs only the exit-code semantics and the 'read current first' rule.

Tighten the 'Does your change touch this?' file list by collapsing the per-function enumerations into the file-level list plus one line pointing to coverage.json as the authoritative, machine-checked record of covered functions.

DimensionReasoningScore

Conciseness

The body runs ~631 lines (~29k tokens): the 'Races the guards prevent' section alone is roughly 300 lines of per-guard case histories, and the Scope and expected-results tables are similarly exhaustive catalogs. The content is accurate and non-obvious (not concepts Claude already knows), but far more than the working workflow needs in context, matching anchor 2 ('noticeably verbose; several... padded sections') rather than anchor 3 ('mostly efficient but includes some unnecessary explanation').

2 / 5

Actionability

Every procedure is copy-paste ready: the run command with env knobs ('CHECK_JOBS', 'JAVA', 'TLA2TOOLS_JAR'), a numbered 4-step explanation of what the check does, exact exit-code semantics (0/1/2/3), and complete replay scripts with REPLAY_HOLD values and expected output comments ('# prints nothing: the group is gone'). This matches the anchor for fully executable, copy-paste-ready commands covering the common cases.

5 / 5

Workflow Clarity

The multi-step process is clearly sequenced - 'Does your change touch this?' (with a STALE drift check), 'Run it', 'Read the result' (expected-result table, UNEXPECTED handling), 'Bug or modeling error' (map steps to code, replay, report or fix the model), and a 5-step 'When you change covered code on purpose' procedure. Validation checkpoints and feedback loops are explicit throughout, including breaking a guard in a scratch edit to confirm a run turns UNEXPECTED before committing.

5 / 5

Progressive Disclosure

Structure exists - clear section headers, a Files section, and one-level-deep references to scripts/check.sh, scripts/facts.mjs, scripts/replay-hold.mjs and the model/ files - but the bulk of the material (the ~300-line race catalog, the 20-rule table, the long Scope assumptions) is inlined in SKILL.md when it clearly belongs in separate reference files. This matches anchor 3 ('some structure... content that should be separate is inline') better than anchor 4, where most content would be appropriately placed in separate files.

3 / 5

Total

15

/

20

Passed

Description

100%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.

An exemplary description: third-person, dense with concrete actions, an explicit multi-clause 'Use it when...' trigger section naming exact source files and race conditions, and a niche so specific that mis-triggering is essentially impossible. Its only cost is length, but every clause is trigger-relevant rather than padded.

DimensionReasoningScore

Specificity

The description lists multiple concrete actions - 'create, the session host (start-up, resize, destroy, SIGTERM shutdown, exit), reconcileSession (list, inspect, destroy, gc), gc and destroy (with and without --force)' - plus the concrete question it answers ('whether a race can delete a session, corrupt its status, leave its program running or kill a process group that is not the session's'). This matches the anchor for comprehensive, specific concrete actions; it is not merely a domain name with 1-2 actions (anchor 3) nor minor gaps (anchor 4).

5 / 5

Completeness

It explicitly answers both parts: what it does ('TLA+ model check of the agent-tty session lifecycle...') and when to use it ('Use it before you change src/host/lifecycle.ts... before you add a new writer of session.json, and when you must know whether a race can...'). The 'when' clause contains concrete, specific triggers, matching the anchor-5 example structure exactly; anchor 4 ('when could be more explicit') clearly undersells it.

5 / 5

Trigger Term Quality

Natural trigger terms cover the niche comprehensively: 'TLA+ model check', 'session lifecycle', 'race', 'gc', 'destroy', 'SIGTERM shutdown', 'session.json', plus the exact source-file paths a developer would be editing when they need this skill. It reads between anchor 4 ('a few natural terms missing') and 5, but the file-path list, command names and race vocabulary exhaust what a user of this codebase would naturally say, so 5 fits best.

5 / 5

Distinctiveness Conflict Risk

It claims a clear niche - TLA+ model checking of the agent-tty session lifecycle - with tool, product and file-specific triggers no other skill would share. Conflict risk with generic verification or testing skills is minimal, matching anchor 5 ('clear niche with distinct triggers').

5 / 5

Total

20

/

20

Passed

Validation

93%

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

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

skill_md_line_count

SKILL.md is long (631 lines); consider splitting into references/ and linking

Warning

Total

15

/

16

Passed

Repository

coder/agent-tty

Path

.agents/skills/verify-session-lifecycle/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.