wess

Stim — Documentation skill for Claude Code

Documentation community

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.

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](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 — command for interactive slash commands, agent for system prompts with metadata, harness for 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, dynamic fanout/gather, content routeing, and parameterized harnesses you run
  • Variables and imports — strings, booleans, arrays; share definitions across files
  • Subagent tasks — spawn bash, explore, plan, or `gene