context rules
The rules command lists every lint rule ContextKit ships, with metadata about which tier it belongs to, its severity, and whether it can be auto-fixed.
context rulesOptions
Section titled “Options”| Option | Description | Default |
|---|---|---|
--tier <tier> | Filter by tier: bronze, silver, gold | All tiers |
--fixable | Show only auto-fixable rules | All rules |
--format <type> | Output format: pretty or json | pretty |
Examples
Section titled “Examples”List all rules
Section titled “List all rules”context rulesFilter to Gold-tier rules only
Section titled “Filter to Gold-tier rules only”context rules --tier goldShow only fixable rules
Section titled “Show only fixable rules”context rules --fixableJSON output for tooling
Section titled “JSON output for tooling”context rules --format jsonRule categories
Section titled “Rule categories”| Tier | Count | Focus |
|---|---|---|
| Bronze | 12 | Descriptions, ownership, grain, security, valid schema |
| Silver | 3 | Trust status, refresh cadence, upstream lineage |
| Gold | 14 | Semantic roles, aggregation rules, golden queries, relationships |
| Data | 9 | Source tables exist, fields exist, types compatible, queries execute |
Next steps
Section titled “Next steps”- Run rules against your files with
context lint - Auto-fix violations with
context fix - See the full rule reference at Lint Rules