Cette page est affichée en anglais. Une traduction française est en cours.
SkillsMay 11, 2026·2 min de lecture

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.

Prêt pour agents

Cet actif peut être lu et installé directement par les agents

TokRepo expose une commande CLI universelle, un contrat d'installation, le metadata JSON, un plan selon l'adaptateur et le contenu raw pour aider les agents à juger l'adaptation, le risque et les prochaines actions.

Needs Confirmation · 66/100Policy : confirmer
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Single
Confiance
Confiance : Community
Point d'entrée
Asset
Commande CLI universelle
npx tokrepo install df9b812d-1db1-437b-a9ec-8aed4c8c12a9
Introduction

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.

🙏

Source et remerciements

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

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires