M64GitHub/tiger-style
M64GitHub/tiger-style · 26 stars · 1 plugin
Marketplace TigerStyle skill - Tigerbeetle style code for your coding agent
Install
/plugin marketplace add M64GitHub/tiger-styleRun inside Claude Code, then install plugins from it. Check the repo's README before you run it.
Plugins 1
After adding the marketplace, install one with /plugin install <name>@tiger-style.
- 1tiger-styleTigerBeetle-style coding discipline for safety-critical Zig projects
/plugin install tiger-style@tiger-style
Files
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)
| Rule | Requirement |
|---|---|
| Assertions | Minimum 2 per function (preconditions, postconditions, invariants) |
| Pair assertions | Assert the same property from two different code paths |
| No recursion | Use explicit loops with bounded iteration |
| Bounded loops | Every loop must have an explicit upper bound |
| Every if has else | Handle both branches explicitly |
| Braces on ifs | Always use braces (except single-line assertions) |
| Static memory | All allocation at init; no dynamic allocation during operation |
| Error handling | Every error must be handled; _ = x catch {} is forbidden |
| Explicit types | Use u32/u64, not usize |
| Function size | Maximum 70 lines per function |
| Control flow | Split compound conditions into nested if/else |
| External events | Buffer and process at the program's own pace |
See tiger-style/SAFETY.md for full rules with code examples.
Performance (Priority #2)
| Rule | Requirement |
|---|---|
| Design-time thinking | Sketch resource usage before writing code |
| Resource priority | Optimize network > disk > memory > CPU |
| Batching | Amortize syscall and I/O overhead |
| CPU predictability | Give the CPU large chunks of branch-free work |
| Hot loop extraction | Standalone functions with primitive arguments |
| Control/data plane | Separate setup paths from hot paths |
| No buffer bleeds | Zero partially filled buffers to prevent data leaks |
See tiger-style/PERFORMANCE.md for full rules with code examples.
Developer Experience (Priority #3)
| Rule | Requirement |
|---|---|
| Naming | snake_case for functions, variables, and file names |
| No abbreviations | message not msg, connection not conn |
| Units last | latency_ms_max not max_latency |
| Acronyms | Fully capitalized: VSRState not VsrState |
| Line length | 80-column hard limit |
| Indentation | 4 spaces |
| Comments | Full sentences explaining why, not what |
| Struct order | Fields, then types, then methods |
| No stored allocator/Io | Pass as parameters |
| Off-by-one prevention | Distinguish index, count, size as conceptual types |
| Explicit division | Use @divExact/@divFloor/std.math.divCeil |
| Options struct | Use named struct when parameters share a type |
| Large args by ref | Pass >16 byte arguments as *const |
| Commit messages | Store rationale in git history, not PR descriptions |
See tiger-style/DX.md for full rules with code examples.
Severity Levels
| Severity | Criteria | Examples |
|---|---|---|
| CRITICAL | Safety risk | Missing assertions, unbounded loops, dynamic allocation in hot path, ignored errors |
| MAJOR | Maintainability risk | Function over 70 lines, missing else branch, usize instead of explicit type, buffer bleeds |
| MINOR | Style deviation | Naming convention, line length, implicit division, missing units in variable name |
Fix CRITICAL violations immediately. Resolve MAJOR violations before merge. MINOR violations are worth fixing but should not block progress.
Customizations from TigerStyle
| Rule | TigerBeetle Standard | This Skill |
|---|---|---|
| Line length | 100 columns | 80 columns |
All other rules follow the original TigerStyle guide.
File Structure
tiger-style/
SKILL.md Skill definition: modes, behavioral instructions
REPORT_FORMAT.md Analysis report template (loaded on-demand)
SAFETY.md Assertions, control flow, memory, error handling
PERFORMANCE.md Design-time thinking, batching, CPU predictability
DX.md Naming, formatting, bug prevention, memory patterns
CHECKLIST.md Pre-submit checklist with severity guide
Credits
Based on TigerStyle by TigerBeetle.
{
"name": "tiger-style",
"owner": {
"name": "M64GitHub"
},
"metadata": {
"description": "TigerBeetle-style coding discipline for Zig projects"
},
"plugins": [
{
"name": "tiger-style",
"source": "./",
"description": "TigerBeetle-style coding discipline for safety-critical Zig projects"
}
]
}Facts
- Kind
- Marketplace
- Repo
- M64GitHub/tiger-style
- Group
- Uncategorized
- Stars
- 26
- Marketplace name
- tiger-style
- Owner
- M64GitHub
- Created
- 2026-02-05
- Last push
- 2026-02-05
- Plugins
- 1
Next on this shelf
- 729nguyenthienthanh/aura-frognguyenthienthanh/archon26
- 730yusuftayman/playwright-cli-agentsyusuftayman/playwright-cli-agents26
- 731miles990/claude-software-skillsmiles990/claude-software-skills26
- 732chouzz/minecraft-mod-devchouzz/minecraft-mod-dev26
- 733sgroy10/speclocksgroy10/speclock26
- 734nagisanzenin/idiolectnagisanzenin/idiolect26