Project guidelines generation and enforcement plugin
npx claudepluginhub xanderscannell/guidelinesGenerates and enforces project coding guidelines. Simple mode: flat rule list, direct review. Full mode: categorized guidelines with severity levels and structured reports.
An agent plugin that generates and enforces project coding guidelines. Write your rules, review your code against them.
Compatible with Claude Code, GitHub Copilot in VS Code, and Copilot CLI.
/guidelines-init
It asks one question: "What rules matter to you?" Write your rules, get a
PROJECT_GUIDELINES.md, and start reviewing:
/guidelines-review --pr
That's it. The rest of this README covers the details.
Marketplace (recommended)
# Add marketplace
/plugin marketplace add xanderscannell/guidelines
# Install plugin
/plugin install project-guidelines
Claude Code CLI:
claude --plugin-dir /path/to/Guidelines
VS Code:
Open the Command Palette (Ctrl+Shift+P) and run:
Chat: Install Plugin From Source
then point to this directory or its Git repository URL.
A flat list of rules in plain language. No categories, no severity levels, no ceremony. You write rules like:
## Rules
- Make sure everything has test cases
- Don't add any more code to `src/legacy/handler.ts`, refactor elsewhere
- Architectural logic belongs in `src/core/`, not in route handlers
- All API responses must use the `ApiResponse` wrapper
The review checks your code against these rules and tells you what's broken. A rule is a rule — if it's in the file, it matters.
Categorized guidelines with severity levels (error / warning / info), structured
interviews, per-category review heuristics, and detailed reports with summary tables.
Use this when you want comprehensive, team-wide coding standards.
/guidelines-init --full
See Full Mode Details below.
Start simple, go full when you need it:
/guidelines-init --upgrade
This reads your existing simple rules, maps them into categories, adds severity tags, and runs the full auto-detection and interview flow. Your original rules are preserved.
/guidelines-initGenerates a PROJECT_GUIDELINES.md file.
| Argument | Mode |
|---|---|
| (empty) | Simple — quick scan, one question, flat rule list |
--simple | Same as empty |
--full | Full — comprehensive scan, 8-category interview, severity tags |
--upgrade | Converts existing simple file to full mode |
Simple mode workflow:
PROJECT_GUIDELINES.md with a flat ## Rules listFull mode workflow:
Edge cases handled:
/guidelines-review [scope]Reviews code against your guidelines. Auto-detects simple or full mode from the file.
| Argument | What gets reviewed |
|---|---|
| (empty) | All source files in the project |
src/api/ | All files in that directory (recursive) |
src/api/handler.ts | Just that file |
--changed | Files changed since the last commit |
--staged | Git-staged files only |
--pr | Files changed in the current branch vs main/master |
Simple mode report:
# Guidelines Review
**Scope:** --pr | **Files scanned:** 8
## Issues Found
### Don't add any more code to `src/legacy/handler.ts`
- `src/legacy/handler.ts:142` — New function added — Move to `src/orders/`
### All API responses must use the `ApiResponse` wrapper
- `src/api/users.ts:38` — Returns raw object — Wrap with `ApiResponse.success(data)`
## Clean
All other rules passed.
Full mode report includes a summary table with pass/warn/fail counts per category, findings grouped by severity (violations, warnings, suggestions), and recommendations for new guidelines.
After the report, both modes offer:
docs/reviews/reviewerInternal subagent used by /guidelines-review for parallel processing of large
codebases (51+ files). Not invoked directly by users.
In full mode, every section of PROJECT_GUIDELINES.md has a severity tag:
Official prompts.chat marketplace - AI prompts, skills, and tools for Claude Code
Open Design — local-first design app exposed to coding agents over MCP. Install once with your agent's plugin command and projects/files/skills are reachable through stdio.
Behavioral guidelines to reduce common LLM coding mistakes, derived from Andrej Karpathy's observations