Skip to content

crustacean-dev/stack-guardrails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stack-guardrails

Claude Code plugin that enforces opinionated best practices per language. Automatically catches recurring AI coding mistakes in Rust, TypeScript, and Node.js.

Why

LLMs generate working code but repeat the same anti-patterns: unwrap() everywhere in Rust, any in TypeScript, readFileSync in Node.js. These guardrails catch those mistakes before they land in your codebase.

Skills

Skill Targets What it catches
rust .rs, Cargo.toml unwrap()/expect(), thiserror vs anyhow, ownership, pub(crate) by default, Entry API
typescript .ts, .tsx, tsconfig enumas const, anyunknown, default exports, barrel files, @ts-ignore, missing return types
nodejs Node.js scripts, servers, CLIs node: prefix, fs/promises vs sync, execFile vs exec, structuredClone, graceful shutdown

Installation

/plugin marketplace add crustacean-dev/stack-guardrails
/plugin install stack-guardrails@crustacean-dev

Skills trigger automatically based on code context. No configuration needed.

Structure

.claude-plugin/
  plugin.json          # Plugin metadata
skills/
  rust/SKILL.md        # Rust guardrails
  typescript/SKILL.md  # TypeScript guardrails
  nodejs/SKILL.md      # Node.js guardrails

License

MIT

About

Enforces opinionated best practices for Rust, TypeScript, and Node.js

Topics

Resources

License

Stars

Watchers

Forks

Contributors