Skip to content

FAQ

Questions and answers

What is Rulemart?

Rulemart is a catalog of engineering rules for AI coding agents. Teams publish the practices they've figured out, like how to handle errors or test retries, and you can browse them, see who publishes them, and add the ones you want to your own codebase.

Think of it as shopping for best practices instead of writing every rule yourself. To learn more, see About Rulemart.

Can I use Rulemart with any project?

Yes, in any language, public or private, as long as it uses trailguide, Fabrica's open-source tool for managing agent rules. Rulemart is where you find rules, and trailguide adds them to your project and keeps them in sync.

If your project doesn't use trailguide yet, the checkout prompt has your agent set it up.

What is trailguide?

Rulemart uses trailguide to add the rules you pick to your project and keep them in sync.

trailguide is an open-source package manager for engineering rules. Rules are Markdown files that tell agents how to write and review code. A project keeps its rules in a .trailguide/ directory committed to version control, so the whole team and every agent work from the same rules.

Teams manage this guidance rule by rule, for a single repo or across their organization. They can share one library of rules between repos and still add or exclude rules where a project differs.

How do I use Rulemart?
  1. Browse rules by technology or practice, or search for what you need.
  2. Add to cart the rules you want.
  3. Check out to get one prompt for your coding agent, or the exact commands to run yourself.
What are rules, groups, and libraries?

A rule is a single instruction for your agents, like "Add operation and identifier context to errors at boundaries."

Rules are organized into groups, and every group is one of two kinds:

  • Techs cover a specific language, framework, or tool, like Go, React, or Playwright. Pick the techs your project is built with.
  • Practices cover concerns that apply whatever your stack, like testing, code design, or performance. Pick the practices you want your agents to follow.

For example, "Add operation and identifier context to errors at boundaries" is in the Go group because it's written for Go's errors, while "Keep tests independent" is in the Testing group because it applies in any language.

A library is a GitHub repo that publishes groups of rules.

Should I stay in sync with a rule or fork it?

When you check out, you choose this for each rule in your cart.

Stay in sync to let trailguide keep the rule current. When the library publishes a new version, trailguide project update, run by hand or in a scheduled CI job, previews the change with the author's summary and applies it once you confirm. To hold one rule back, pin it to its current version with a reason while the rest keep updating.

Fork to manage the rule yourself. It's copied into your project and credited to the original, and from then on you make any changes to it. Updates never change a forked rule.

How are rules versioned?

Each rule has its own version, using semantic versioning adapted for rules. A major version means code that complied with the previous version could fail the new one. A minor version adds guidance and a patch adds none; code that complied still complies.

Libraries publish new versions together in numbered library releases, such as release/4. When you update, trailguide previews every change, with each version's summary, and applies them once you confirm.

Who can publish a library?

Anyone with write access to a public trailguide library on GitHub can list it, signed in. Rulemart shows a library across the site, in its lists, groups, and search, once it has vetted it; until then, the library's pages show under unvetted libraries, with a warning, and the lists show it, tagged Unvetted, only to a visitor who chooses Include unvetted libraries. Every library shows its owner and repository, so you can judge who stands behind it. Private libraries can't be listed.

Do I need a Rulemart account?

No. You can browse, read rules, and check out without one.

A free account, using GitHub sign-in, adds:

  • Easier checkout, since Rulemart knows which of your GitHub projects use trailguide
  • Project tracking, so you see when rule updates are available for your projects that use trailguide
  • Stars to save rules and help others find good ones
  • Library listing, so you can list your own libraries on Rulemart
How do I give feedback?

For Rulemart or trailguide itself, use the feedback page. Pick a topic, and it opens an issue on GitHub where we track and reply to it.

For a specific rule, open an issue in the library's repository, which the rule's page links. It goes to the people who publish the rule, since they maintain it.

Still have a question? Ask us.