SkillsMay 11, 2026·2 min read

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.

Agent ready

This asset can be read and installed directly by agents

TokRepo exposes a universal CLI command, install contract, metadata JSON, adapter-aware plan, and raw content links so agents can judge fit, risk, and next actions.

Needs Confirmation · 66/100Policy: confirm
Agent surface
Any MCP/CLI agent
Kind
Skill
Install
Single
Trust
Trust: Community
Entrypoint
Asset
Universal CLI install command
npx tokrepo install df9b812d-1db1-437b-a9ec-8aed4c8c12a9
Intro

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 & Thanks

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

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets