frontend-ai-guide

frontend-ai-guide is a skill for Claude Code, Codex from shinpr/claude-code-workflows. It costs 41 tokens per session (2,175 once invoked), scanned A, original, MIT.

A decision guide for building and reviewing React and TypeScript interfaces. TypeScript adds checks to JavaScript code, while React organizes interactive interface components.

In plain words
What is it for?
Use it to review components, hooks, state, props, abstractions, browser behavior, maintainability, and frontend implementation choices.
Why use it?
It helps distinguish real frontend problems from unnecessary complexity and checks whether behavior, browser handling, and implementation are complete.

Skill for Claude CodeCodex

Part of the dev-skills plugin — 12 skills shipped together

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.

agentmods
npx agentmods add skills/shinpr/claude-code-workflows/frontend-ai-guide
Any agent
npx skills add shinpr/claude-code-workflows --skill frontend-ai-guide
Clone the repo
git clone --depth 1 https://github.com/shinpr/claude-code-workflows

Made for: Claude Code, Codex.

Or install dev-skills, the plugin that ships this one along with the rest of its 12 skills.

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-ai-guide

README.md
[![agentmods](https://agentmods.dev/badge/skills/shinpr/claude-code-workflows/frontend-ai-guide.svg)](https://agentmods.dev/skills/shinpr/claude-code-workflows/frontend-ai-guide)
Your own site
<a href="https://agentmods.dev/skills/shinpr/claude-code-workflows/frontend-ai-guide"><img src="https://agentmods.dev/badge/skills/shinpr/claude-code-workflows/frontend-ai-guide.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,175 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00041 $0.02175
Opus 5 $0.00020 $0.01087
Sonnet 5 $0.00008 $0.00435
Haiku 4.5 $0.00004 $0.00217

Measured 4d ago against content hash b18e3cf4674a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

frontend-ai-guide 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 4d 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.

dev-skills/skills/frontend-ai-guide/SKILL.md · 186 lines

How it starts

The opening of the file, as written. The whole thing — 186 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AI Developer Guide - Technical Decision Criteria and Anti-pattern Collection (Frontend)

Value-First Engineering

Inspect until the evidence identifies the lowest-total-complexity solution that delivers the required user or maintainer value while keeping the UI correct and maintainable.

  • Resolve verified problems within confirmed scope or dependencies required for the outcome; report other findings with their owning boundary and evidence without expanding the active change.
  • Introduce state, props, variants, abstractions, or speculative edge-case handling when a current outcome, verified constraint, or evidence-backed material risk requires them.
  • Treat behavior-preserving maintenance inside the confirmed responsibility as current maintainer value when repository evidence shows it reduces change ambiguity, duplicate ownership, defect risk, or future implementation and verification cost without expanding observable product scope.

Judge total complexity across every activated user decision, prop, state, variant, concept, output, persistent state, and component or hook path, together with its UX, runtime, implementation, testing, documentation, and maintenance cost. Compare only dimensions that differ between viable approaches. Prefer reuse or no new mechanism when it delivers the same confirmed value and proof at lower total complexity.

Technical Anti-patterns (Red Flag Patterns)

Pause the affected decision and review the design when detecting the following patterns:

Code Quality Anti-patterns

  1. Duplicating one UI responsibility across independently maintained components - Review whether the duplicated behavior or contract should have one owner
  2. Multiple responsibilities mixed in a single component - Violates Single Responsibility Principle (SRP)
  3. Defining same content in multiple components - Violates DRY principle
  4. Making changes without checking dependencies - Potential for unexpected impacts
  5. Disabling code with comments - Should use version control
  6. Error suppression - Hiding problems creates technical debt
  7. Excessive use of type assertions (as) - Abandoning type safety
  8. Pass-through prop chains that obscure state ownership - Use composition, Context, or the project's state layer when intermediate components only forward values and a broader owner is clearer; retain explicit props when they preserve local ownership and broader state ownership would add coordination while responsibility remains local
  9. Components mixing independently changing responsibilities - Split when rendering, state/data ownership, or reusable/testable behavior forms an independent responsibility; retain cohesive components when splitting would add avoidable prop/state synchronization

Read the full file on GitHub · 186 lines

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. 4d ago First seen · 186 lines · 41 tokens per session scan A b18e3cf4674a

Subscribe to this mod's changes

frontend-ai-guide is a skill published in the GitHub repository shinpr/claude-code-workflows (675 stars, last pushed 6d ago), licensed MIT. It adds 41 tokens to every session and 2,175 once invoked, about $0.0002 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