diff --git a/.agents/commands/code/lint-fix.md b/.agents/commands/code/lint-fix.md index c5829ad17..441060c7d 100644 --- a/.agents/commands/code/lint-fix.md +++ b/.agents/commands/code/lint-fix.md @@ -1,2 +1,10 @@ -Use the lint-fixer agent to run `npm run lint` and fix any errors that occur. +Run `npm run lint` and fix any errors. +## Lint Tools (in order) +1. Biome (`biome check --write`) - Formatter + linter, auto-fixes +2. oxlint (`oxlint --fix`) - Fast linter, auto-fixes +3. tsgo (`--noEmit`) - Type checking (manual fix required) +4. secretlint - Secret detection + +## Config Files +- `biome.json`, `.oxlintrc.json`, `.secretlintrc.json` diff --git a/.claude/skills/lint-fixer/SKILL.md b/.claude/skills/lint-fixer/SKILL.md deleted file mode 100644 index cd26e82eb..000000000 --- a/.claude/skills/lint-fixer/SKILL.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -name: lint-fixer -description: "Use this skill to run npm run lint and fix linting issues. Triggers on fixing lint errors after code changes or validating code against project style guidelines." ---- - -# Lint Fixer - -Fix linting issues while preserving code functionality. - -## Lint Tools - -`npm run lint` runs 4 tools in sequence: - -1. **Biome** (`biome check --write`) - Formatter + linter, auto-fixes -2. **oxlint** (`oxlint --fix`) - Fast JS/TS linter, auto-fixes -3. **tsgo** (`tsgo --noEmit`) - TypeScript type checking -4. **secretlint** - Detects secrets/credentials - -## Workflow - -1. Run `npm run lint` to identify issues -2. Review errors by category (type errors vs style vs secrets) -3. Fix issues - Biome/oxlint auto-fix most style issues -4. Run `npm run lint` again to verify -5. Run `npm run test` to ensure no breakage - -## Config Files - -- `biome.json` - Formatting rules (2 spaces, 120 chars, single quotes) -- `.oxlintrc.json` - JS/TS lint rules -- `.secretlintrc.json` - Secret detection rules - -## Key Points - -- Biome/oxlint auto-fix most issues; review changes -- Type errors (tsgo) require manual fixes -- Never change code behavior when fixing lint -- Keep files under 250 lines diff --git a/.claude/skills/browser-extension-developer/SKILL.md b/browser/.claude/skills/browser-extension-developer/SKILL.md similarity index 100% rename from .claude/skills/browser-extension-developer/SKILL.md rename to browser/.claude/skills/browser-extension-developer/SKILL.md diff --git a/.claude/skills/website-maintainer/SKILL.md b/website/.claude/skills/website-maintainer/SKILL.md similarity index 100% rename from .claude/skills/website-maintainer/SKILL.md rename to website/.claude/skills/website-maintainer/SKILL.md