Stim — Documentation skill for Claude Code
Basically a DSL that make writing Claude Code commands more "code" and less Markdown.
How to install Stim
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open wess/stim and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Stim does
Basically a DSL that make writing Claude Code commands more "code" and less Markdown...
Alternatives in Documentation
- 会话管理(Session Manager)需求文档(PRD / Markdown) — 目标:对 Codex / Claude Code 的本地会话记录进行可视化管理,并提供“一键复制 / 一键终端恢复”能力 31.7k ★
- Repo Recap — Generate a structured recap of the repository state: open PRs, open issues, recent releases, and executive sum 11.9k ★
- Ars Format Convert — ARS academic-paper format-convert mode — convert to LaTeX / DOCX / PDF / Markdown 4.5k ★
README
Stim
**A DSL for writing AI prompts — commands, agents, and rules — that compiles to whatever tool you use.**
Write one `.stim` file. Target Claude Code, ChatGPT, Cursor, or any future AI tool by switching a flag.
[](https://opensource.org/licenses/MIT)
Why Stim?
AI prompts have become software. Slash commands, system prompts, agent definitions, rule files — they're all code now, but most of us write them as raw markdown that breaks the moment the logic gets complex or the tool changes. Stim treats prompts as source code: parse, validate, compile.
**Three declarators, three targets:**
command deploy {
ask("Which environment?")
wait_for_response()
for service in services {
task bash "deploy " + service { ... }
}
}
agent reviewer {
description "Reviews PRs for security and correctness"
tools [Read, Grep, Bash]
model "sonnet"
"You are a senior code reviewer. Cite specific files and line numbers."
"Prioritize by severity: must change, should change, could improve."
}
One source, many outputs:
stim install reviewer.stim # → ~/.claude/agents/reviewer.md
stim install reviewer.stim --target cursor # → .cursor/rules/reviewer.mdc
stim compile reviewer.stim --target chatgpt # → dist/chatgpt/reviewer.md
What You Get
- Three declarators —
commandfor interactive slash commands,agentfor system prompts with metadata,harnessfor reusable orchestration templates - Three targets —
claude,chatgpt,cursor(more to come; targets are pluggable adapters) - Real control flow —
if/else,while,for,break - Orchestration — bounded agentic
loops, dynamicfanout/gather, contentrouteing, and parameterized harnesses yourun - Variables and imports — strings, booleans, arrays; share definitions across files
- Subagent tasks — spawn
bash,explore,plan, or `gene
Related Skills
Pretty
Knowledge for writing Pretty typeclass instances using paiges Doc DSL
Chro
Chro is basically Codex / Claude Code x Obsidian: a local-first markdown workspace with parallel agents, workt
Novel Outline
Convert a raw outline or source material (PDF, text, markdown) into a structured OUTLINE.md optimized for chap
Compile Main System
You are the knowledge-base compiler for a personal markdown wiki. Use Read, Glob, and Grep to inspect existing
De AI Ify
Remove AI writing patterns from content
Cchooks
by GowayLee - A lightweight Python SDK with a clean API and good documentation; simplifies the process of writ
Related Agents
Readme Writer
Use when writing or cleaning up a README or developer-facing project docs. Also call it to make docs clearer,
Light Md DelphiIdiom
Use this agent to fix Delphi vocabulary and writing-clarity issues in Markdown documentation files. This agent
Voice Reviewer
Proactively reviews markdown content for AI writing patterns after edits. Also triggers on explicit requests t