AI coding tool configurations (Claude, Cursor, Copilot, Windsurf) for Angular, Next.js, NestJS, .NET, Python and more
Package Exports
@malamute/ai-rules
@malamute/ai-rules/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@malamute/ai-rules) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
AI Rules
Supercharge your AI coding tools with framework-specific rules, skills, and best practices.
AI Rules installs curated configuration boilerplates that teach your AI tools your stack's conventions, patterns, and guardrails. Works with Claude Code, Cursor, GitHub Copilot, and Windsurf. Stop explaining the same things over and over — let your AI understand your architecture from the start.
Why Use This?
Without AI Rules
With AI Rules
You repeat the same conventions to each tool
Configure once, apply to Claude, Cursor, Copilot, Windsurf
That's it. Your AI tools now understand your stack.
Installation
# Global installnpminstall-g @malamute/ai-rules
# Or use with npx (no install needed)
npx @malamute/ai-rules <command>
Supported AI Tools
Tool
Output Directory
Rules
Skills
Settings
Claude Code
.claude/rules/
yes
yes
yes
Cursor
.cursor/rules/
yes
-
-
GitHub Copilot
.github/instructions/
yes
-
-
Windsurf
.windsurf/rules/
yes
workflows
-
Supported Technologies
Technology
Stack
Version
Angular
Nx + NgRx + Signals + Vitest
21+
React
Vite + Vitest + Testing Library
19+
Next.js
App Router + React 19 + Server Components
15+
NestJS
Prisma/TypeORM + Passport + Vitest
11+
AdonisJS
Lucid ORM + VineJS + Japa
6+
.NET
Clean Architecture + MediatR + EF Core
9+
FastAPI
Pydantic v2 + SQLAlchemy 2.0 + pytest
0.115+
Flask
Marshmallow + SQLAlchemy 2.0 + pytest
3.0+
Commands
ai-rules init [tech...]# Install configs (interactive if no tech)
ai-rules add<tech># Add technology to existing installation
ai-rules update # Update to latest rules
ai-rules status # Show installation info
ai-rules list # List available technologies
Options
Option
Description
--targets <t1,t2>
AI tools to target (default: claude)
--minimal
Skip skills and shared rules (only tech rules + settings)
--dry-run
Preview changes without writing files
--dir <directory>
Install to a specific directory
--force
Overwrite without creating backups
By default, init installs everything (skills + shared rules) for Claude Code. Use --targets to install for multiple AI tools, and --minimal to skip extras.
Note: Your project's CLAUDE.md is never modified. Use it for project-specific context (business domain, team conventions, etc.).
Rules
Context-aware rules that activate based on file paths:
---
paths:
- '**/*.component.ts'
---
# Angular Component Rules
- Use `ChangeDetectionStrategy.OnPush`
- Use `input()`, `output()`, not decorators
- Template in separate `.html` file
Skills
Interactive workflows invoked with /skill-name:
Skill
Description
/learning
Pedagogical mode — explains before coding
/review
Code review with security/perf checklist
/debug
Structured debugging workflow
/spec
Write technical spec before implementing
/sudden-death
Kill indecision with rapid-fire questions
/fix-issue
Analyze GitHub issue and implement fix
/generate-tests
Generate comprehensive tests
See all 16 skills
Skill
Usage
Description
/learning
/learning nextjs
Explains concepts before implementing
/review
/review src/users/
Code review with checklist
/spec
/spec add auth
Technical specification
/sudden-death
/sudden-death backend
Kill indecision, get a verdict
/debug
/debug TypeError...
Systematic debugging
/fix-issue
/fix-issue 123
Fix GitHub issue
/review-pr
/review-pr 456
Review pull request
/generate-tests
/generate-tests src/user.ts
Generate tests
/api-endpoint
/api-endpoint POST /users
Generate API endpoint
/migration
/migration add users
Database migration
/security-audit
/security-audit
Security analysis
/docker
/docker
Dockerfile generation
/deploy
/deploy
Deployment config
/explore
/explore
Repository analysis
/nx-affected
/nx-affected
Run affected commands on changes
/nx-lib
/nx-lib users-feature
Generate Nx library
Shared Rules
Cross-framework rules included by default (use --minimal to skip):
Language-specific patterns (auto-selected by tech)
Recommended MCP Servers
MCP (Model Context Protocol) servers extend your AI tool's capabilities with framework-specific context. These are not installed by AI Rules — set them up manually via claude mcp add or ~/.claude/settings.json.
DRY RUN - No files will be modified
ℹ Would install to: /your/project
ℹ Targets: claude, cursor
ℹ Would install for Claude Code...
○ settings.json (create)
○ rules/angular/ (13 files)
ℹ Would install for Cursor...
○ rules/angular/ (13 files)
○ .cursorrules (aggregated global rules)
Summary:
27 file(s) would be created
0 file(s) would be modified
Update Configs
# Check current version
ai-rules status
# Preview updates
ai-rules update --dry-run
# Apply updates (auto-backup enabled, reinstalls all targets)
ai-rules update
Your project's CLAUDE.md stays clean for project-specific context, while framework conventions live in rules.
Contributing
# Clone and installgit clone https://github.com/malamute/ai-rules.git
cd ai-rules
npminstall# Run testsnpmtest# Add a new technologymkdir-p configs/your-tech/rules
# Add rules/core.md and other rules
Adding a Technology
Create configs/[tech]/rules/core.md with framework conventions