# Add Oxlint Rule

> Create or revise a centrally maintained rule in @timmo001/oxlint-rules. Use for requests to add an Oxlint anti-slop rule, change an existing central rule, or promote a repository-specific lint preference into the shared package.

- Skill: `timmo001/add-oxlint-rule` (Agent Skill)
- Install (CLI): `npx skillmds@latest add timmo001/add-oxlint-rule`
- Raw SKILL.md: https://api.skillmd.com/api/skills/timmo001/add-oxlint-rule/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: Apache-2.0
- Author: timmo001 (https://skillmd.com/u/timmo001)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/timmo001/add-oxlint-rule

---


# Add An Oxlint Rule

1. Treat the current repository as fixture context, not automatically as the
   central package checkout.
2. Search available writable checkouts by their Git remote for
   `timmo001/oxlint-rules`. If none exists, ask where the user wants to clone or
   fork it. Do not assume the user can write to the upstream account.
3. Read the central repository guidance, relevant plugin registration, config,
   nearby rules, tests, and README rule list.
4. Define the narrow syntax contract. Add at least one failing fixture and one
   valid fixture before implementing the rule.
5. Put generic upstream-independent rules under the appropriate locally owned
   plugin. Never modify `vendor/anti-slop`; propose an upstream contribution
   separately when Dylan Mulroy's plugin should own the behaviour.
6. Register the rule in its plugin. Verify the matching config and copy command
   discover it from the plugin's `rules` map, then update the README rule list
   and behaviour description. Keep skills workflow-only; do not duplicate rule
   or plugin inventories or counts in them.
7. Run `mise run check`, `mise run build`, `npm pack --dry-run`, and
   `bunx jsr@0.14.3 publish --dry-run --allow-dirty` in the central checkout.
8. If the user also asks to publish the change, load `release-oxlint-rules` and
   hand off the release after the rule checks pass. Do not duplicate or bypass
   its release workflow.

Report the fixture contract, registration and docs changed, checks, and any
consumer rollout left for a separate stage. Do not publish or assume a local
machine path.

