/skills:oxlint-maintainabilityfrom skills
Installs and configures Oxlint rules for TypeScript maintainability, covering re-exports, type safety, internal mocks, forwarding wrappers, and shape churn. Includes Vite+ support.
Ships in skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Install the bundled plugin and presets. Use coverage.md to check each rule's scope and exceptions.
Read the repository's instructions. Check Git status, the toolchain, lint config, path aliases, and workspace names. Preserve existing config and unrelated edits.
Copy the assets from the target repository root:
node <skill-directory>/scripts/install.mjs
For Vite+, add --vite. This generates typed object presets from the bundled JSON. The default destination is tools/oxlint/maintainable/; pass another path to change it. The installer refuses existing paths and removes partial copies on failure. Compare the installed copy before upgrading.
Check installed versions. Tested: Node 22/24 on macOS/Linux, Vite+ 1.2.0, Oxlint and @oxlint/plugins 1.88.0, oxlint-tsgolint 7.0.2004.
For standalone Oxlint, use the repository's package manager to add compatible oxlint and matching @oxlint/plugins dev dependencies. For Vite+, use bundled Oxlint and add a compatible plugin dependency. Upgrade Vite+ if its Oxlint is too old.
Merge the preset into the existing configuration. For .oxlintrc.json:
{
"extends": ["./tools/oxlint/maintainable/config.json"],
"ignorePatterns": ["tools/oxlint/maintainable/**"]
}
For Vite+, merge into the root vite.config.ts:
import { defineConfig } from 'vite-plus';
import maintainable from './tools/oxlint/maintainable/vite.ts';
export default defineConfig({
lint: {
extends: [maintainable],
ignorePatterns: ['tools/oxlint/maintainable/**'],
},
fmt: { ignorePatterns: ['tools/oxlint/maintainable/**'] },
});
Keep existing entries and adjust paths for a custom destination. Vite+ uses object presets in lint.extends. Apply the repository's ignore policy to agent assets and generated code. Plugin paths resolve from the installed preset.
Set maintainable/no-internal-module-mocking prefixes for internal packages. Defaults cover relative and absolute paths, @/, ~/, #, and @repo/. Add other workspace packages:
{
"rules": {
"maintainable/no-internal-module-mocking": ["error", {
"internalModulePrefixes": ["@/", "~/", "#", "@repo/", "@workspace/", "shared-contracts"]
}]
}
}
This list replaces the default prefixes; relative and absolute paths stay internal. Package names match themselves and their subpaths. A trailing slash matches a scope or alias prefix.
Run vp lint or the repository's Oxlint command. Fix errors and review wrapper and shape warnings against their linked rules.
For the house SPA stack, append stack.json to extends. In Vite+, import the generated vite-stack.ts object and append it to lint.extends. It restricts Next.js, simulated DOM imports, and state mirroring in effects; console calls and numeric literals produce warnings. Merge existing no-restricted-imports options: later options replace earlier ones.
For type-aware checks, append type-aware.json. Standalone Oxlint needs compatible oxlint-tsgolint and root options: { typeAware: true } or --type-aware. In Vite+, import vite-type-aware.ts, append it to lint.extends, and set lint.options.typeAware: true. Use strict TypeScript settings and resolve workspace declarations first.
Keep the base preset enabled with either add-on. Enable type analysis separately from its rule list.
Use path overrides for boundaries or generated code. Explain individual review exceptions:
// oxlint-disable-next-line maintainable/no-trivial-forwarding-wrapper -- framework requires this named loader entrypoint
export async function loader(args: LoaderArgs) {
return loadRepositoryPage(args);
}
Review warnings before removing code. Keep layers that own validation, authorization, lifecycle, transformation, or a public contract. Check property-presence semantics before changing objects. These rules have no autofixes. Review findings and configure boundaries before promoting warnings to errors.
Use anti-slop as a reference for rule structure and RuleTester usage.
Start with a real violation. Write one failing RuleTester or CLI test, then implement the check. Add allowed and ambiguous cases one at a time. Resolve lexical scope for shadowable names. Test multiple files in one lint run if the rule stores per-file state.
Edit assets/maintainable/ directly; it is the shipped source. Keep tests outside that directory. Run pnpm check for tests, TypeScript, self-lint, and docs; pnpm check:vite tests an isolated Vite+ consumer. Rebuild the ZIP after changes.
Sources: Oxlint JS plugins, writing rules and RuleTester, type-aware configuration, Vite+ lint configuration.
assets/maintainable/LICENSE (opens in a new tab)assets/maintainable/UPSTREAM.md (opens in a new tab)assets/maintainable/config.json (opens in a new tab)assets/maintainable/index.ts (opens in a new tab)assets/maintainable/rules/no-internal-module-mocking.ts (opens in a new tab)assets/maintainable/rules/no-internal-shape-churn.ts (opens in a new tab)assets/maintainable/rules/no-re-exports.ts (opens in a new tab)assets/maintainable/rules/no-trivial-forwarding-wrapper.ts (opens in a new tab)assets/maintainable/stack.json (opens in a new tab)assets/maintainable/type-aware.json (opens in a new tab)references/coverage.md (opens in a new tab)scripts/install.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub miguelspizza/skills --plugin skills5 skills in this plugin
/flatten-fake-layersFind and flatten "fake layer" indirection in a TypeScript codebase — functions with exactly one caller that only forward, reshape, or inject dependencies and add no fact. Runs a deterministic AST detector that flags candidates, then uses agent judgment to inline the real slop while keeping functions that do real work (type narrowing, throwing, validation, lifecycle). Use when asked to reduce over-abstraction, "un-slop" or simplify code, flatten dependency-injection ceremony, delete single-use wrappers, or clean up AI-generated indirection. Pairs with a goal/loop prompt to run iteratively across a codebase until clean./maintainable-typescriptClean up, refactor, and review strict TypeScript repos and monorepos. Use for dead code, duplication, module ownership, and package boundaries./webmcp-designerDesigns and reviews WebMCP instrumentation for existing web apps, especially SPAs. Use when adding agent-accessible tools, route maps, prompts, or WebMCP workflows to a React, Vue, Angular, or vanilla browser app, or when deciding whether WebMCP is the right fit./write-good-docsWrite, review, and restructure useful documentation with Diataxis, audience-specific README patterns, and AI-writing trope cleanup. Use when creating docs, improving READMEs, reorganizing documentation, or editing prose for clarity.Other plugins' skills for the same job