Getting Started
Five minutes from install to blocking a bad AI change on your own code. Everything here is deterministic and runs with no AI.
Want to learn the language itself first? Take the 10-minute tutorial, then the full ThunderLang course on Skills Tech Talk.
Install#
npm install -g @skillstech/thunderlang
thunder # the main things to do, with examples
thunder doctor # is everything ready?
thunder help --all # every commandIn a terminal, Thunder uses a little color to make screens easy to scan: green ✓ for what worked, red ✗ only for
real problems, yellow for warnings, and commands to type in cyan. Every mark also has its words, so nothing depends
on color. Output to a file, a pipe, a script, or --json has no color; set NO_COLOR=1 to turn it off everywhere, or
FORCE_COLOR=1 to keep it when piping.
No install needed to try it: prefix any command with npx -y @skillstech/thunderlang (for
example npx -y @skillstech/thunderlang help).
Gate your first AI change#
This is why ThunderLang exists: prove that an AI-written change still upholds what your code is supposed to do, before it merges. You can run this on code you already have.
1. Bootstrap a contract from your code (14 languages supported):
npx -y @skillstech/thunderlang lift src/resetPassword.ts --out intent/lift writes a humble draft and tells you, honestly, what a human still has to decide:
[warning] INTENT_LIFT_NEEDS_HUMAN_REVIEW: This intent was inferred from code. A human must review goal, why, never rules, and verification.
[warning] INTENT_LIFT_SECURITY_REVIEW_NEEDED: Sensitive field names detected. Mark them Secret/Token/PII and add never-log rules.Review the draft, add the rules that matter (for a reset flow, never log the new password), and
save it as intent/ResetPassword.thunder.
2. Approve the reviewed intent as the contract (the drift baseline):
npx -y @skillstech/thunderlang approve intent/ResetPassword.thunder --by "you"3. An AI proposes a change. Gate it before you ship:
npx -y @skillstech/thunderlang verify-diff intent/ResetPassword.thunder \
--before src/resetPassword.ts --after ai-change.tsIf the AI's change adds a line that logs the new password, the gate refuses it:
thunder verify-diff ResetPassword.thunder vs ai-change.ts: BLOCK (1 blocking, 1 regression(s))
[VIOLATION] Added code may violate never-rule "log the new password": console.log("resetting password", { email, newPassword }); (line 2)Exit code is 1. That non-zero exit is the whole point: drop verify-diff into CI or an agent loop
and a change that breaks the contract cannot merge. No AI ran; the verdict is deterministic. To wire
the same gate directly into your coding agent, see ThunderLang for AI agents (MCP).
Author intent from scratch#
The gate is most powerful over intent you wrote deliberately. The rest of the toolchain builds that intent up and proves it, all deterministically.
Scaffold a real starter mission:
thunder init EligibilityThat writes Eligibility.thunder with a goal, a guarantee, a never rule, an executable
decision, and in-file test cases. It is valid and runnable out of the box.
Run it (no code, no AI)#
A decision is a program. Try it with your own values, and it tells you the answer and why:
$ thunder try Eligibility.thunder --with "age=20"
Answer: Allowed
Why:
✓ age is at least 18 (age is 20)
→ so: AllowedWithout --with, Thunder asks for each value. (Scripts can give all values as JSON:
thunder run Eligibility.thunder --inputs '{"age":20}'.) Change the input and the result changes, deterministically, before
any implementation exists.
Test it, in the same file#
The test blocks assert behavior through the same runtime:
thunder test Eligibility.thunder
# thunder test Eligibility.thunder: 2/2 passedThe .thunder file is now self-verifying. No test framework, no code.
Format and check#
thunder fmt Eligibility.thunder --write # canonical whitespace, comments preserved
thunder check . # recurses every .thunder, exits non-zero on any errorGate a whole repo in CI with the GitHub Action:
- uses: SkillsTechTalk/thunderlang/check@main
with:
paths: ./intent@main follows the latest code; for production CI, pin a commit SHA instead
(SkillsTechTalk/thunderlang/check@<full commit SHA>).
To see what each pull request does in plain sentences, as one comment, add the Thunder review action: Thunder review on every pull request.
Edit with intelligence#
Install the editor support: the Language Server (thunder lsp) gives live
diagnostics, go to definition, find references, rename, completion, and hover in VS Code, Neovim, and any
LSP editor, plus syntax highlighting
via the shipped grammar.
Go further#
- Gate AI changes in depth, plus CI recipes: Verifying AI code changes.
- Drive the loop from your agent: ThunderLang for AI agents (MCP).
- Executable intent: the Intent Runtime and first-class tests.
- Interop: export to DMN/BPMN/JSON-Schema/OpenAPI and import back.
- The whole language: the syntax overview and the specification.
- Already have a codebase? Adopt ThunderLang on it: lift, review, check, gate, and keep in sync, one mission at a time.
The whole loop, author, run, test, gate, in one deterministic toolchain. That is what beyond prompt engineering looks like in practice.