/vibe:universal-rules-enginefrom vibe
Loads and follows project-specific coding standards, workflows, and best practices across multiple AI platforms (Amazon Q, Claude Code, Copilot, Gemini, Aider, Codex).
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Transform ANY AI coding assistant into a context-aware, standards-following development partner through a universal rules system. This mode implements the Amazon Q Developer rules pattern but extends it to work universally across all AI platforms.
Eliminate repetitive explanations of coding standards, workflow preferences, and established patterns. Define once, enforce everywhere, maintain consistency across all AI interactions.
Rules are loaded and applied at these critical moments:
This mode automatically scans for rules in multiple locations (priority order):
1. .amazonq/rules/ (Amazon Q Developer)
2. .claude/rules/ (Claude Code)
3. .copilot/rules/ (GitHub Copilot)
4. .gemini/rules/ (Google Gemini)
5. .ai/rules/ (Universal AI rules)
6. .aider/rules/ (Aider)
7. .rules/ (Generic fallback)
RULE: ALWAYS check ALL rule directories and merge applicable rules, with earlier directories taking precedence for conflicts.
Every rule file MUST follow this format:
# Rule Name
## Purpose
Clear explanation of why this rule exists
## Instructions
- Specific directives with unique identifiers (ID: RULE_ID)
- Additional instructions (ID: ANOTHER_ID)
- Conditions and context (ID: CONTEXT_ID)
## Priority
Critical/High/Medium/Low
## Error Handling
- Fallback strategies
- Exception handling
ALWAYS announce which rules are being followed at the start of every response:
📋 Rules applied: `monitoring.rule.md` (CHECK_MONITORING_PLAN), `git.rule.md` (GIT_COMMIT_STYLE)
📋 Rules applied: filename (ID1, ID2, ...)📋 Rules applied: file1.md (ID1), file2.md (ID2, ID3)📋 Rules applied: None (using defaults)ON STARTUP (before first response):
.md and .rule.md files found🔍 Loaded rules: [count] rules from [directory count] directoriesBEFORE EVERY RESPONSE:
DURING SESSION:
🔄 Rules updated: [filename] reloaded# Git Workflow
## Purpose
Enforce consistent git operations and commit message standards
## Instructions
- ALWAYS ask confirmation before pushing to remote (ID: GIT_PUSH_CONFIRM)
- Commit messages MUST be detailed and meaningful (ID: GIT_COMMIT_QUALITY)
- Include files modified and impact in commits (ID: GIT_COMMIT_DETAILS)
- Follow conventional commits format when applicable (ID: GIT_CONVENTIONAL)
## Priority
High
## Error Handling
- If git command fails, report error and suggest fixes
- If commit message too short, prompt for more details
# Monitoring
## Purpose
Ensure monitoring coverage for all major features
## Instructions
- When implementing major features, check MONITORING_PLAN.md (ID: CHECK_MONITORING)
- Major features include: services, APIs, integrations, core functionality (ID: MAJOR_FEATURE_DEF)
- Update monitoring plan with metrics, dashboards, alerts (ID: UPDATE_MONITORING)
- Output confirmation: "📊 Updated monitoring plan for: [feature]" (ID: MONITORING_CONFIRM)
## Priority
High
## Error Handling
- If MONITORING_PLAN.md missing, create with basic structure
- If unclear if feature is "major", err on side of caution
# Code Quality - [Language]
## Purpose
Maintain consistent code quality and architectural patterns
## Instructions
- Follow SOLID principles (ID: SOLID_PRINCIPLES)
- Prefer composition over inheritance (ID: COMPOSITION_PATTERN)
- Include JSDoc/docstrings for public APIs (ID: DOCUMENTATION)
- Evaluate reusability before creating components (ID: DRY_PRINCIPLE)
- Use consistent naming conventions (ID: NAMING_CONVENTIONS)
## Priority
Medium
## Error Handling
- If existing code violates standards, note and offer refactoring
- If conventions unclear, ask user for clarification
# Security Standards
## Purpose
Enforce security best practices and prevent vulnerabilities
## Instructions
- NEVER commit secrets or credentials (ID: NO_SECRETS)
- Validate and sanitize all user inputs (ID: INPUT_VALIDATION)
- Use parameterized queries for SQL (ID: SQL_INJECTION_PREVENTION)
- Implement proper authentication/authorization (ID: AUTH_REQUIRED)
- Follow OWASP Top 10 guidelines (ID: OWASP_COMPLIANCE)
## Priority
Critical
## Error Handling
- If security issue detected, HALT and warn user
- Suggest secure alternatives
# Time Operations
## Purpose
Handle time-related operations consistently
## Instructions
- Determine current time using system commands (ID: GET_TIME)
- Use ISO 8601 format for timestamps (ID: ISO_FORMAT)
- Specify timezone explicitly in all time operations (ID: TIMEZONE_EXPLICIT)
- For time-sensitive operations, verify current time first (ID: VERIFY_TIME)
## Priority
Medium
## Error Handling
- If timezone unavailable, use UTC as default
- If date command fails, note and continue with available info
Amazon Q Developer:
.amazonq/rules/Claude Code:
.claude/rules/GitHub Copilot:
.copilot/rules/Google Gemini CLI:
.gemini/rules/Aider:
.aider/rules/Universal AI Rules:
.ai/rules/BEST PRACTICE: Use .ai/rules/ for universal standards that apply across all platforms:
.ai/rules/
├── core/
│ ├── git-workflow.rule.md
│ ├── code-quality.rule.md
│ └── security-standards.rule.md
├── languages/
│ ├── typescript.rule.md
│ ├── python.rule.md
│ └── rust.rule.md
└── workflows/
├── testing.rule.md
├── documentation.rule.md
└── monitoring.rule.md
Then symlink or reference from platform-specific directories:
# Amazon Q
ln -s ../.ai/rules/core .amazonq/rules/core
# Claude Code
ln -s ../.ai/rules/core .claude/rules/core
[rule-directory]/
├── conversation/ # How AI should communicate
│ └── conversation.rule.md
├── workflows/ # Development workflows
│ ├── git-workflow.rule.md
│ ├── testing-workflow.rule.md
│ └── deployment-workflow.rule.md
├── quality/ # Code quality standards
│ ├── architecture.rule.md
│ ├── documentation.rule.md
│ └── review-checklist.rule.md
├── security/ # Security standards
│ ├── authentication.rule.md
│ ├── data-protection.rule.md
│ └── owasp-compliance.rule.md
├── languages/ # Language-specific rules
│ ├── typescript/
│ ├── python/
│ └── rust/
└── domain/ # Domain-specific rules
├── frontend/
├── backend/
└── infrastructure/
Rules can reference other rules:
# Frontend - React
## Purpose
React component development standards
## Instructions
- Apply Code Quality rules (ID: INHERIT_CODE_QUALITY)
- Apply Security Standards for input handling (ID: INHERIT_SECURITY)
- Evaluate reusability (2+ uses, configurable props) (ID: REUSABILITY_CHECK)
- Create in components/ with JSDoc (ID: COMPONENT_LOCATION)
## Priority
Medium
Rules can include conditions:
# Performance Optimization
## Purpose
Apply performance optimizations appropriately
## Instructions
- IF file size > 50KB, suggest code splitting (ID: CODE_SPLIT_LARGE)
- IF list > 100 items, implement virtualization (ID: VIRTUAL_SCROLL)
- IF bundle > 1MB, analyze and optimize (ID: BUNDLE_OPTIMIZE)
- IF API response > 2s, add caching strategy (ID: CACHE_SLOW_API)
## Priority
Medium
Track rule usage (optional enhancement):
# Rule Analytics
## Purpose
Track which rules are most frequently applied
## Instructions
- Log rule usage with timestamps (ID: LOG_USAGE)
- Generate weekly rule usage report (ID: WEEKLY_REPORT)
- Identify unused rules for review (ID: IDENTIFY_UNUSED)
## Priority
Low
When using this mode, ensure:
mkdir -p .ai/rules/{core,languages,workflows,security}
cat > .ai/rules/core/conversation.rule.md << 'EOF'
# Conversation
## Purpose
Define how AI assistant behaves in conversations
## Instructions
- ALWAYS check rules before responding (ID: CHECK_RULES)
- ALWAYS announce rules applied: "📋 Rules applied: filename (ID1, ID2)" (ID: ANNOUNCE_RULES)
- If multiple rules match, list all (ID: LIST_ALL_RULES)
- If no rules match, state: "📋 Rules applied: None (using defaults)" (ID: NO_RULES_DEFAULT)
## Priority
Critical
## Error Handling
- If rules unreadable, continue and note issue
- If conflicting rules, follow highest priority
EOF
# Git workflow
cat > .ai/rules/workflows/git-workflow.rule.md << 'EOF'
[Use Git Workflow template above]
EOF
# Code quality
cat > .ai/rules/core/code-quality.rule.md << 'EOF'
[Use Code Quality template above]
EOF
# Security
cat > .ai/rules/security/security-standards.rule.md << 'EOF'
[Use Security template above]
EOF
When starting any AI session, the assistant will:
Whether using Amazon Q, Claude Code, Copilot, or Gemini, your team gets:
Rules capture institutional knowledge:
Developers focus on problems, not process:
New team members benefit immediately:
As team grows, standards scale:
Begin with 3-5 core rules:
Expand based on pain points:
Each rule should:
# Track rule changes
git log --follow .ai/rules/core/git-workflow.rule.md
# See rule evolution
git diff HEAD~5:.ai/rules/core/git-workflow.rule.md
Check:
.md or .rule.md extension?Resolution:
Fix:
Optimize:
This Universal Rules Engine mode works alongside other Vibe modes:
Combine with:
software-engineer-agent-mode: Rules guide autonomous executionblueprint-mode-v39: Rules enhance workflow decisionsson-of-anubhav-mode: Rules define review criteriaclaude-code-best-practices-mode: Rules formalize best practicesplan-mode: Rules shape planning approachUsage Pattern:
.amazonq/rules/.claude/rules/ or .ai/rules/.copilot/rules/ or .ai/rules/.gemini/rules/ or .ai/rules/.aider/rules/ or .ai/rules/# Startup Monitoring
## Purpose
Ensure all services have health checks and graceful shutdown
## Instructions
- Every service MUST have /health endpoint (ID: HEALTH_ENDPOINT)
- Every service MUST have /readiness endpoint (ID: READINESS_ENDPOINT)
- Implement graceful shutdown on SIGTERM (ID: GRACEFUL_SHUTDOWN)
- Log startup time and ready state (ID: STARTUP_LOGGING)
## Priority
High
## Error Handling
- If health check missing, create standard implementation
- If shutdown handler missing, add with connection draining
# API Design Standards
## Purpose
Maintain consistent RESTful API design
## Instructions
- Use plural nouns for collections (ID: PLURAL_COLLECTIONS)
- Use proper HTTP methods (GET/POST/PUT/DELETE/PATCH) (ID: HTTP_METHODS)
- Return proper status codes (ID: STATUS_CODES)
- Include pagination for lists (ID: PAGINATION)
- Version APIs in URL: /v1/resource (ID: API_VERSIONING)
- Include rate limiting headers (ID: RATE_LIMIT_HEADERS)
## Priority
High
## Error Handling
- If endpoint doesn't follow REST, suggest refactoring
- If missing pagination, add with sensible defaults
Track these to measure rule system effectiveness:
The Universal Rules Engine transforms any AI coding assistant into a context-aware development partner that automatically follows your team's standards, workflows, and best practices. By defining rules once and applying them everywhere, you achieve consistency, preserve knowledge, reduce cognitive load, and scale your development practices across the entire team.
Remember: Rules aren't constraints—they're freedom. Freedom from repetitive explanations. Freedom from inconsistency. Freedom to focus on solving interesting problems instead of remembering process details.
Start small, iterate fast, and watch your AI assistance transform from generic helper to expert team member.
Universal Rules Engine Mode | Cross-platform standards automation | Define once, enforce everywhere
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job