convez.ai
AgenteProdutividadeIntermediário
lirantal

Agent Rules

lirantal/agent-rules

Regras customizáveis para agentes de IA em desenvolvimento

Ver no GitHub
BomPluginScore · de 0 a 100

Gerador de regras e instruções para ferramentas de codificação agentica como Cursor, Claude CLI, GitHub Copilot e Gemini CLI. Permite configurar práticas seguras de código, detecção de vulnerabilidades e estratégias de teste de forma personalizada por ferramenta.

Instalação

$npx convez-ai lirantal/agent-rules

1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.

Métricas

Estrelas
66
Forks
5
Acompanhando
1
Saúde
100%
Último commit
há 3 dias
Versão
v1.4.2
Issues abertas
1
Contribuidores
4

Casos de uso

  • Configurar instruções de segurança para Cursor ou GitHub Copilot
  • Gerar regras de práticas de codificação segura por ferramenta de IA
  • Scaffoldar configurações MCP para agentes de desenvolvimento

Veredito

Ferramenta prática para padronizar comportamento de agentes de IA em desenvolvimento. Cobertura multi-plataforma (Cursor, Copilot, Claude, Gemini) é um diferencial, embora o escopo ainda seja focado em tópicos específicos (segurança, testes). Útil para equipes que querem gobernar o uso de copilots com guidelines estruturadas.

README

A tradução para o português deste README ainda está na fila.

Usage

Interactive Mode

npx agent-rules

This will start an interactive session where you can select the AI app and topics.

Supported AI Apps

AI AppSupported
GitHub Copilot✅
Cursor✅
Claude CLI✅
Gemini CLI✅

Command Line Interface

You can also use command line flags to skip the interactive prompts:

# Generate rules for a specific AI app and topic
npx agent-rules --app cursor --topics secure-code

# Generate rules for multiple topics
npx agent-rules --app github-copilot --topics secure-code --topics testing

# Include MCP (Model Context Protocol) configuration
npx agent-rules --app github-copilot --topics testing --mcp

# Include custom commands (prompts)
npx agent-rules --app github-copilot --topics secure-code --commands

# Combine multiple features
npx agent-rules --app github-copilot --topics secure-code --mcp --commands

# Use short flags
npx agent-rules -a claude-code -t security-vulnerabilities -m -c

# Show help
npx agent-rules --help

# Show version
npx agent-rules --version

Available Options

Flags:

  • -a, --app <app> - AI app to generate rules for
  • -t, --topics <topics> - Topics to generate rules for (can be specified multiple times)
  • -m, --mcp - Include MCP (Model Context Protocol) server configuration
  • -c, --commands - Include custom commands/prompts
  • -h, --help - Show help message
  • -v, --version - Show version number

AI Apps:

  • github-copilot - GitHub Copilot
  • cursor - Cursor
  • claude-code - Claude Code
  • gemini - Gemini CLI

Topics:

  • secure-code - Secure coding practices
  • security-vulnerabilities - Security vulnerability scanning and fixes
  • testing - Testing strategy and guidelines

Features

📋 Instructions & Rules

Scaffold AI-specific coding instructions and best practices rules into your project:

  • Security-focused coding practices
  • Vulnerability detection and remediation
  • Testing strategies and guidelines

🔌 MCP (Model Context Protocol) Configuration

Automatically configure MCP servers for enhanced agentic coding capabilities:

  • GitHub Copilot: Configures .vscode/mcp.json
  • Gemini CLI: Configures .gemini/settings.json
  • Non-destructive merging with existing configurations

Learn more in the MCP Feature Documentation.

⚡ Custom Commands & Prompts

Scaffold reusable commands and prompts for your AI coding assistant:

  • GitHub Copilot: Deploys to .github/prompts/ as prompt files
  • Pre-built commands for common workflows (e.g., implementing GitHub issues)
  • Easily extensible with your own custom commands

Learn more in the Commands Feature Documentation.

Rules

Current category of rules available:

Contributing

Please consult CONTRIBUTING for guidelines on contributing to this project.

Author

agent-rules © Liran Tal, Released under the Apache-2.0 License.

Ver o original no GitHub

Bom para

Relacionados