Esta página se muestra en inglés. Una traducción al español está en curso.
SkillsMay 11, 2026·2 min de lectura

RuleForge — Generate AI Assistant Rules from Repo

RuleForge is a CLI that scans a repo and generates rule files (CLAUDE.md, .cursorrules, Copilot instructions) so agents follow consistent boundaries.

Listo para agents

Este activo puede ser leído e instalado directamente por agents

TokRepo expone un comando CLI universal, contrato de instalación, metadata JSON, plan según adaptador y contenido raw para que los agents evalúen compatibilidad, riesgo y próximos pasos.

Needs Confirmation · 66/100Política: confirmar
Superficie agent
Cualquier agent MCP/CLI
Tipo
Skill
Instalación
Single
Confianza
Confianza: Community
Entrada
Asset
Comando CLI universal
npx tokrepo install df9b812d-1db1-437b-a9ec-8aed4c8c12a9
Introducción

RuleForge is a CLI that scans a repo and generates rule files (CLAUDE.md, .cursorrules, Copilot instructions) so agents follow consistent boundaries.

  • Best for: Teams who want repo-specific agent rules that stay fresh as the codebase evolves
  • Works with: Any repo with a detectable structure; integrates well with CI via ruleforge audit --min-score ...
  • Setup time: 15 minutes

Practical Notes

  • Setup time ~15 minutes (install + scan + preview)
  • Quantitative gate from README: ruleforge audit . --min-score 80 can fail CI when rules are too thin
  • GitHub stars + forks (verified): see Source & Thanks

Rule files only work when they reflect reality. The best pattern is to regenerate rules on every meaningful repo change (new framework, new folder layout, new CI pipeline), then review the diff like code.

Suggested routine:

  1. Run ruleforge generate . (without overwrite) and review the output.
  2. Add ruleforge audit . --min-score 80 to CI to prevent regressions in guidance quality.
  3. Keep “forbidden actions” and “review-required operations” explicit in the rule text so agents don’t guess.

FAQ

Q: Will this overwrite my files? A: Only if you pass --overwrite. Use preview/audit first to validate output.

Q: What formats does it generate? A: The README lists CLAUDE.md, .cursorrules, and copilot instructions as primary outputs.

Q: How do I keep rules up to date? A: Regenerate on changes and review diffs; add CI audits so guidance doesn’t drift.

🙏

Fuente y agradecimientos

Source: https://github.com/he-yufeng/RuleForge > License: MIT > GitHub stars: 53 · forks: 13

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados