Tooling
Skill Syo-M/codex-frontend-skills/plugins/codex-frontend-skills/skills/tooling
ESLint, Stylelint, TypeScript config, environment validation, dead-code checks, and automated convention enforcement. 日本語の依頼例:「Lint設定」「tsconfig」「Stylelint」「ルールをCIで強制」。From its SKILL.md
npx -y skills add Syo-M/codex-frontend-skills --skill toolingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 28 days oldThe repository was created 28 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
- 0 stars0 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.
SKILL.md
3.8 KB, 907 tokens by cl100k_base, as published. Nobody here has run it
Tooling — enforce rules with machines, not memory
Every mechanical rule in this rule-set should be backed by a tool so lint/CI catches violations regardless of who (or what) wrote the code. When setting up or auditing a project, wire these:
tsconfig
strict: true, plusnoUncheckedIndexedAccess,noImplicitOverride,verbatimModuleSyntax.
ESLint — rule → enforcement map
| Convention (source) | ESLint rule / plugin |
|---|---|
No any (AGENTS.md) | @typescript-eslint/no-explicit-any |
@ts-expect-error needs reason, @ts-ignore banned (AGENTS.md) | @typescript-eslint/ban-ts-comment with ts-expect-error: 'allow-with-description' |
| Hooks rules + complete effect deps (react-patterns) | eslint-plugin-react-hooks (rules-of-hooks, exhaustive-deps) — suppression comments banned |
| No array-index keys (react-patterns) | react/no-array-index-key |
| Named exports only, with exceptions (react-patterns) | import/no-default-export + overrides allowing app/**, pages/**, src/pages/**, *.stories.*, *.config.*, .storybook/** |
| No inline styles (AGENTS.md) | react/forbid-dom-props (style) |
No dangerouslySetInnerHTML / eval family (frontend-security) | react/no-danger, no-eval, no-implied-eval, no-new-func |
| Semantic HTML, labels, keyboard, no positive tabindex (a11y) | eslint-plugin-jsx-a11y (recommended config, as errors) |
| Testing Library discipline (testing-vitest) | eslint-plugin-testing-library (prefer-user-event, prefer-find-by, no-container, no-node-access, no-wait-for-side-effects) |
| Playwright bans (testing-playwright) | eslint-plugin-playwright (no-wait-for-timeout, no-networkidle, missing-playwright-await, no-element-handle) |
| Awaited play interactions (storybook) | eslint-plugin-storybook (await-interactions, use-storybook-expect) |
| Server-only module isolation (nextjs) | server-only package + import/no-restricted-paths |
| Feature-boundary imports (vite-react) | eslint-plugin-boundaries or dependency-cruiser in CI |
Stylelint (CSS Modules profile only)
stylelint-declaration-strict-value: requirevar()forcolor,background-color,z-index,transition-duration, spacing properties — enforces the CSS Modules profile's token rule.declaration-property-value-disallowed-list: ban rawz-indexintegers outsidetokens.css.
Type-safe CSS Modules (CSS Modules profile only)
- Editor:
typescript-plugin-css-modules. CI: generated.d.ts(typed-css-modulesor the bundler's typegen) so a renamed class fails typecheck, not production.
Env validation
- Use an already-installed, framework-appropriate env schema helper when present.
@t3-oss/env-nextjs/@t3-oss/env-coreare options to vet, not automatic dependencies; a small zod schema at the boundary is sufficient for many projects.
Dead code & deps
- If
knipis already installed, run it in CI for unused files, exports, and dependencies. Otherwise vet it before adoption; do not fetch it ad hoc withnpx.
Honor-system rules — cannot be tool-enforced, review for these explicitly
zod at every boundary, per-resource authorization (IDOR), webhook signature verification, mock-at-the-boundary policy, "measure before optimizing", small focused diffs, manual keyboard walks (a11y). Lint cannot catch these. The shipped templates/.semgrep/ heuristics backstop webhook-missing-verification, SSRF, secret exposure, and unsanitized HTML (flags for review, not proof); zod-at-boundary and IDOR have no reliable static rule and stay review-only. All of them still require human/AI code review.
What ships with it: 1 file
189 B alongside SKILL.md
agents/
- openai.yaml189 B