Groundrule
v0.23.1Your repository's engineering standards for coding agents: rules per file, CI check, rule proposals.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_standards List engineering standards
List the engineering standards in effect in this repository: ID, title, severity, rollout stage for organization rules, and what each requires. Follow every rule listed; at advise, checks report findings as warnings, and at enforce they fail at the rule's severity. Also use it to check whether a rule already exists before proposing one.
| Parameter | Type | Description |
|---|---|---|
query | string | Only standards whose ID, title, or requirement contain these words. |
rules_for Rules for the files you're about to change
The engineering standards that name the given files (by path or language), blocking first, each with what it requires and how to comply. Call it with the repository-relative paths you are about to create or edit, before editing. Rules that apply everywhere are not repeated here; they are in the agent file.
| Parameter | Type | Description |
|---|---|---|
files * | array | Repository-relative paths, e.g. src/payments/refund.ts. |
check Check changes against the standards
Run the team's Groundrule checks on your changes, the same checks CI runs. By default it checks uncommitted changes (staged, unstaged and new files). Call it before you finish a change and fix every blocking finding; warnings don't fail the check, but fix the ones in code you wrote. Only findings the change introduced are reported. In a repository connected to its workspace, the counts per rule go to the workspace (never paths, lines or code).
| Parameter | Type | Description |
|---|---|---|
all | boolean | Check every file, not only changes. Slower; reports existing problems too. |
base | string | Check everything changed since this git ref instead, e.g. origin/main for a whole branch. |
propose_rule Propose a rule to the team
Propose an engineering rule for this team's Groundrule rulebook, for reviewers to accept or reject. Use it when the developer corrects how code here should be written and says, or confirms when you ask, that it should apply to everyone from now on (for example: "we never call Stripe directly, use PaymentsGateway"). Do not use it for one-off preferences, for rules list_standards already shows, or without the developer's agreement. Write the rule as one clear sentence. Tell the developer you proposed it and that a reviewer decides.
| Parameter | Type | Description |
|---|---|---|
rule * | string | The rule, as one clear sentence: what to do or never do. |
example | string | A short code example of the right or wrong way, if helpful. |
file | string | Repository-relative path where it came up, if any. |
line | integer | Line in that file, if any. |
why | string | Why, in the developer's words, if they said. |