frontend-only-lint

frontend-only-lint is a skill for Claude Code from davila7/claude-with-skills. It costs 26 tokens per session (503 once invoked), scanned A, original, MIT.

A set of code-quality rules for React and TypeScript components, pages, and hooks. React is a way to build user interfaces, and TypeScript adds type checking to JavaScript.

In plain words
What is it for?
Use it when modifying files in the project's components, pages, or hooks directories, especially to check component structure, hooks, exports, and styling.
Why use it?
It keeps frontend code consistent and helps prevent avoidable maintainability problems while components are edited.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it when modifying files in the project's components, pages, or hooks directories, especially to check component structure, hooks, exports, and styling.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/davila7/claude-with-skills/frontend-only-lint
About the project

Claude With Skills is a progressive course that teaches developers to create reusable, portable Agent Skills for Claude Code, from basic SKILL.md files to advanced automation and plugin packaging. It is intended for developers who want repeatable instructions and workflows instead of repeatedly pasting the same guidance. The catalogue contains the course's skills, agents, and instruction.

davila7/claude-with-skills · 12 stars · on GitHub · claude-with-skills.vercel.app

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add davila7/claude-with-skills --skill frontend-only-lint
Clone the repo
git clone --depth 1 https://github.com/davila7/claude-with-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for frontend-only-lint

README.md
[![agentmods](https://agentmods.dev/badge/skills/davila7/claude-with-skills/frontend-only-lint/github.svg)](https://agentmods.dev/skills/davila7/claude-with-skills/frontend-only-lint)
Your own site
<a href="https://agentmods.dev/skills/davila7/claude-with-skills/frontend-only-lint"><img src="https://agentmods.dev/badge/skills/davila7/claude-with-skills/frontend-only-lint/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for frontend-only-lint

Your own site · 80×15
<a href="https://agentmods.dev/skills/davila7/claude-with-skills/frontend-only-lint"><img src="https://agentmods.dev/badge/skills/davila7/claude-with-skills/frontend-only-lint.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 503 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00026 $0.00503
Opus 5 $0.00013 $0.00251
Sonnet 5 $0.00005 $0.00101
Haiku 4.5 $0.00003 $0.00050

Measured 12d ago against content hash 7f25fe052694, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

frontend-only-lint scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/content/docs/02-intermediate/lesson-06-paths-and-shell/examples/frontend-only-lint/SKILL.md · 66 lines

What it actually says

Frontend code quality rules

These rules apply whenever you write or modify code in src/components/, src/pages/, or src/hooks/.

Component rules

  1. Components must be functional. Do not write class components. If you encounter an existing class component during a task, note it but do not refactor it unless the task specifically asks for that.

  2. Hooks must follow the use prefix convention. A function that calls other hooks must start with use. A function that does not call hooks must not start with use.

  3. The props interface must be defined directly above the component function, not inside it and not in a separate file. Name it <ComponentName>Props:

    interface ButtonProps {
      label: string;
      onClick: () => void;
      disabled?: boolean;
    }
    
    export function Button({ label, onClick, disabled = false }: ButtonProps) {
    
  4. No inline styles except for values that are computed at runtime and cannot be expressed as a static class. Use CSS modules, Tailwind, or the project's existing styling system for static styles.

  5. Export components as named exports, not default exports:

    // Correct
    export function Button() { ... }
    
    // Avoid
    export default function Button() { ... }
    

After editing

After making changes to any component file, apply formatting and linting:

Run prettier on the edited file:

npx prettier --write <edited-file>

Run eslint on the edited file:

npx eslint <edited-file>

If eslint reports errors that --fix can safely resolve, run:

npx eslint --fix <edited-file>

Report any remaining eslint errors that require manual attention. Do not hide them or continue without noting them.

If npx, eslint, or prettier is not installed or not configured in this project, skip the tool and note its absence. Do not fail the task because of a missing linter.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 66 lines · 26 tokens per session scan A 7f25fe052694

Subscribe to this mod's changes

frontend-only-lint is a skill published in the GitHub repository davila7/claude-with-skills (12 stars, last pushed 3mo ago), licensed MIT. It adds 26 tokens to every session and 503 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

custom-features

Author a TanStack Table v9 feature plugin across every FeatureMap and API installation surface: state, options, column definitions, table, column, row, cell, header, row-model functions/caches, defaults, prototypes, and table/row/column instance data lifecycles. Load for initTableInstanceData, resetTableInstanceData…

TanStack/table · 93 tokens

frontend-conventions

Coding conventions, architecture patterns, and testing rules for the SkillHub React frontend. Ensures agents follow Feature-Sliced Design and use the generated OpenAPI types.

iflytek/skillhub · 36 tokens

fast-typescript-check

Keep www-sacred's TypeScript fast to type-check and fast to run. Use when touching the ASCII/canvas animation components (the only real per-frame code here), tightening type-check wall-clock, or auditing a change for runtime or compiler regressions. Scoped to this repo — a React 19 / Next.js 16 component library plus…

internet-development/www-sacred · 84 tokens

typescript-react

Apply, review, and explain React conventions from the TypeScript Style Guide. Use automatically for TypeScript and TSX tasks involving prop-derived state, prop typing, component responsibilities, data flow, compound components, or client and server state.

mkosir/typescript-style-guide · 50 tokens

typescript-rules

React/TypeScript frontend development rules including type safety, component design, state management, and error handling. Use when implementing React components, TypeScript code, or frontend features.

shinpr/claude-code-workflows · 39 tokens

coding-standards

A set of general coding standards and practical patterns for TypeScript, JavaScript, React, and Node.js. It covers readable naming, simple designs, avoiding repetition, and delaying unnecessary features.

loulanyue/awesome-claude-notes · 41 tokens