specular-lite
FreeRuns bundled scriptsNot checkedFind bugs in concurrent or distributed code using TLA+ modeling, model checking, and code-level reproduction. Use for a focused investigation with one coding…
by specular-org★ 732 GitHub starsAbout this skill
Specular Lite
Investigate the user's code, model its behavior, check properties, attempt code-level reproduction, and deliver an evidence-backed report. This is a long task conducted by the current agent.
Start with the user
First ask which repository or code they want investigated and what problems they care about. Reflect any details already supplied in the question. Wait for their answer before investigating. A broad answer such as "concurrency bugs in this repository" is sufficient: scan the code, choose a coherent focus, explain the choice, and proceed without another approval round.
Prepare
Resolve this skill's installed directory as SKILL_DIR; it is not the target repository. Run:
python3 "$SKILL_DIR/scripts/prepare.py"
The helper unpacks the bundled Specular references and output reader, reuses Java 21+ when available, and downloads missing tools into the user's cache. It prints JSON with the guides directory and tool paths. No Specular installation, agent adapter, MCP registration, Maven, or Python packages are needed. Python 3.10+ is the bootstrap prerequisite; if unavailable, help prepare it using the user's existing environment tooling. Explain a failed prerequisite concretely rather than presenting an unexecuted check as a result.
Create a fresh investigation directory under the target's .specular-lite/, keeping models, logs, reproduction tests, and report.md together. Record the source revision and local changes relevant to the investigation. Preserve the user's existing work; use a separate source copy/worktree for reproduction changes when necessary. Keep brief progress notes so the same agent can continue after context compaction.
Rules for using the shared skills
Read the bundled guides as methodology, in the sequence below. guides is the directory returned by preparation; paths such as code_analysis/guide.md are relative to it. Relative links inside a guide resolve from that guide's directory. Read relevant supporting references as needed, not the entire bundle up front.
These Lite rules govern the workflow when a shared guide describes the standard pipeline:
- Use one agent throughout. Perform referenced subagent/Task work yourself, sequentially; do not launch other agents or Specular's pipeline/confirmation dispatchers. The only exception is delegated reproduction, when the user names a reproduction command.
- Skip trace-validation instrumentation, execution-trace collection, harness generation,
Trace.tla/Trace.cfg, and instrumentation specifications. Do not invokevalidation-workflowortla-trace-workflow. TLC counterexample traces remain essential evidence and are different from implementation traces. - Use the scripts below and the host's file/shell tools instead of MCP tools,
specularcommands, background-run wrappers, or agent-specific launchers. VAV is optional if already available; do not install the full CFA/Maven stack as a prerequisite for Lite. - Continue autonomously after the opening answer. Do not wait for the user between phases or stop at the first model counterexample. Investigate and reproduce candidates before completing the report.
- There is no default task deadline or fixed repair-round limit. The shared guides' fixed timeouts, giant simulation counts, and machine-sized resource examples are not Lite defaults. Choose finite model configurations and finite simulation campaigns appropriate to the question; record their bounds and coverage. Investigate hangs and resource failures without treating them as successful checks or confirmed bugs.
- Repair inaccurate models, fault assumptions, or properties in this same session, then recheck. Preserve valid requirements and source correspondence; never weaken a property merely to make TLC pass. No repair-request queue, CI baseline, persistent-finding registry, telemetry service, or external tracker is required. Use the local evidence and report to record dispositions.
- Do not repair the target implementation. Test fixtures and scheduling controls for reproduction must preserve the behavior under investigation. Keep unresolved candidates, including environmental limitations, clearly separate from reproduced bugs. Suggestions in a report are allowed; applying a fix requires the user's later request.
Investigation
- Analyze the code. Read
code_analysis/guide.md, then the references relevant to the target's distributed/concurrent/BFT category. Follow the user's scope, inspect relevant history and known reports, and writemodeling-brief.mdwith mechanisms, source locations, proposed properties, assumptions, and exclusions. Apply the guide's investigative methods to this scope; repository-wide issue quotas are not prerequisites. - Build the model. Read
spec_generation/guide.md, especiallyreferences/base-spec-methodology.md,mc-spec-pattern.md, andbrief-coverage-checklist.md. Produce the base and model-checking modu
Install specular-lite in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the specular-lite skill do?
Find bugs in concurrent or distributed code using TLA+ modeling, model checking, and code-level reproduction. Use for a focused investigation with one coding agent, without trace validation or the full Specular pipeline.
How do I install the specular-lite skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the specular-lite skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
by Anthropic