tiger-style
A Claude Code skill that brings TigerBeetle's TigerStyle coding discipline to your Zig projects. Get real-time guidance, analysis reports, and violation checks for safety-critical code - all from a /tiger-style slash command. Code examples and stdlib references are verified against Zig 0.16.
Why
TigerBeetle's engineering style guide is one of the most rigorous approaches to writing reliable systems software. But style guides only work when they're actively applied during development, not reviewed after the fact.
This skill embeds TigerStyle rules directly into your coding workflow. Claude applies them as you write, catches violations before they reach review, and produces structured reports when you need a full audit.
Priority hierarchy: Safety > Performance > Developer Experience
What You Get
- Writing guidance - TigerStyle rules applied as you write new Zig code
- Full analysis reports - structured breakdown of aligned patterns, violations, and gray areas
- Quick violation checks - fast pass to catch problems before commit
- Severity classification - CRITICAL / MAJOR / MINOR for prioritized fixes
- Pre-submit checklist - built-in validation covering safety, naming, formatting, and memory
Install as Plugin
/plugin marketplace add M64GitHub/tiger-style
/plugin install tiger-style@tiger-style
Restart Claude Code to take effect.
The skill is then available as /tiger-style.
Usage
Write new code with TigerStyle guidance
/tiger-style
Loads the full rule set into context. Claude will apply safety, performance, and DX rules as you write code in the current session.
Analyze an existing file
/tiger-style analyze path/to/file.zig
Produces a structured report:
## TigerStyle Analysis Report
**File**: `path/to/file.zig`
### Summary
| Category | Count |
|------------|-------|
| Aligned | 12 |
| Violations | 3 |
| Gray Areas | 1 |
### Aligned (What's Good)
- `process_message():14` - precondition and postcondition assertions present
- `init():5` - static allocation only, no stored allocator
### Violations
#### CRITICAL
| Location | Rule | Issue |
|----------|------|-------|
| `handle_request():42` | Missing assertions | No assertions in function body |
#### MAJOR
| Location | Rule | Issue |
|----------|------|-------|
| `parse_header():89` | Function too long | 87 lines, limit is 70 |
#### MINOR
| Location | Rule | Issue |
|----------|------|-------|
| `server.zig:3` | Naming | camelCase variable name |
### Gray Areas
| Location | Concern | Notes |
|----------|---------|-------|
| `dispatch():55` | Stored Io | Lifetime-scoped and documented - may be justified |
### Recommendations
1. Add precondition and postcondition assertions to `handle_request()`
2. Split `parse_header()` into `parse_header_validate()` and `parse_header_decode()`
Quick violations-only check
/tiger-style check
Runs a fast scan and reports only violations, skipping aligned patterns and gray areas. Useful as a pre-commit sanity check.
Manual Installation
Clone or download this repository, then copy the tiger-style/ skill directory to one of the locations below.
Project-scoped (shared with your team)
Place the skill inside your project's .claude/skills/ directory:
your-project/
.claude/
skills/
tiger-style/
SKILL.md
REPORT_FORMAT.md
SAFETY.md
PERFORMANCE.md
DX.md
CHECKLIST.md
# From your project root
mkdir -p .claude/skills
cp -r /path/to/tiger-style/tiger-style .claude/skills/tiger-style
Commit .claude/skills/tiger-style/ to version control so the entire team gets the skill.
User-scoped (available in all your projects)
Place the skill in your home directory:
mkdir -p ~/.claude/skills
cp -r /path/to/tiger-style/tiger-style ~/.claude/skills/tiger-style
This makes /tiger-style available in every project you open with Claude Code.
Rule Overview
Rules are organized by priority. When rules conflict, higher-priority rules win.
Safety (Priority #1)