Biome grit rules
the harness rebuilds itself — agents rewrite agents, skills replace skills.
npx -y skills add theseus-run/theseus --skill biome-grit-rulesAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Use when creating, reviewing, or modifying custom Biome Grit plugins in plugins/*.grit, especially deterministic agent-correction rules for stale Effect v3 patterns, local style hazards, and diagnostic messages that tell agents what to do next.
SKILL.md
2.5 KB, as published. Nobody here has run it
Biome Grit Rules
Use this skill for repo custom lint rules under plugins/*.grit.
Purpose
Custom rules turn repeated agent mistakes into deterministic feedback. In this repo, Effect v3 patterns are a primary target because they are common in model training data while Theseus uses Effect v4 patterns.
Before Adding A Rule
Add or tighten a rule only when:
- the bad pattern is syntactically recognizable
- the desired replacement is deterministic or clearly explainable
- false positives are low
- the pattern has appeared more than once, is high-risk, or reflects stale API training data
- the rule can produce a useful diagnostic at the exact bad span
Propose first instead of editing when the rule could affect many files or needs semantic judgment.
Diagnostic Messages
Every diagnostic message should act as a small prompt:
- name the repo rule or API generation, such as
Effect v4 - say what is wrong
- say what to do instead
- mention the relevant skill when the mistake implies a stale mental model
Example shape:
Effect v4: Effect.catchAll was renamed to Effect.catch. Use Effect.catch for all typed errors, Effect.catchTag/Effect.catchTags for specific tags, or Effect.catchCause for cause-level handling. Load skill: effect-v4.
Do not hard-code exact dependency versions unless the version itself is the rule.
Severity
- Use
errorfor stale APIs, known unsafe patterns, and hard repo invariants. - Use
warningfor style guidance or patterns with legitimate exceptions. - Avoid broad rules that force taste when the repo does not have a stable invariant.
Verification
After changing a rule:
- Run
bunx biome check <target>against a file that should trigger or currently triggered the rule. - Confirm the diagnostic span and message are clear.
- Run the focused check against at least one nearby clean file when false positives are plausible.
- Run
bun run lintwhen the rule is broad or touches shared config.
Maintenance
- Keep plugin filenames specific and negative:
no-effect-v3-catchall.grit. - Keep messages short enough to read in terminal output.
- Prefer rules that remove a whole class of future fixes.
- If a rule fires too broadly, narrow the pattern before lowering severity.