Skip to main content

Rules

A Rule is a standard the code should meet, with instructions for finding places that break it, fixing them and reviewing the change. A Rule is not a test command and not a Skill. A Rule without scan guidance is still a draft and cannot be scanned.

Add Rules to a Project​

Open Maintain, then Create rule. You can:

  • Pick from Ready-made Rules, a library of common standards such as security, correctness or accessibility checks.
  • Add from your Rule Library, the personal library of Rules you have saved.
  • Create custom Rule from Markdown by writing the Rule yourself.
  • Import Rules from an existing Project you have access to.

You can also describe the Rule you want to the Maintain agent in the chat, for example Draft a new Rule or Find gaps in my Rules. The agent may ask clarifying questions and then writes the Rule.

Rules copied from a library are copies. Editing the copy in your Project does not change the library, and the reverse is also true.

The Rule page​

Open a Rule to see its name, what it looks for, and its Markdown definition, along with the Issues it has found and their history. From the Rule page you can:

  • Scan for this Rule to run a Scan with just this Rule.
  • Explain Rule to have the agent explain what it checks and why.
  • Edit the name or definition, or ask the Maintain agent to change it.
  • Save to Library to reuse the Rule in other Projects.
  • Delete the Rule, which also deletes its Issues, Scans and notes.
  • View open Issues to jump to its findings on the board.

The Rule Library​

Rule Library in the main sidebar holds the Rules you have saved, so you can bring the same standards into every Project.

Next step​

Run a Scan and work through the Issues it finds.