Agent skill

Frontend AI Guide

by shinpr in shinpr/claude-code-workflows

Applies React/TypeScript-specific technical decision criteria, anti-pattern detection, debugging, and frontend quality gates.

MITAuto-check passedDevelopment

Install Frontend AI Guide

skills CLI
$ npx skills add shinpr/claude-code-workflows --skill frontend-ai-guide -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install shinpr/claude-code-workflows frontend-ai-guide --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/shinpr/claude-code-workflows.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/frontend-ai-guide .claude/skills/frontend-ai-guide && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
frontend-ai-guide
GitHub stars
694
Token cost
~3k tokens
SKILL.md length
1,384 words
Files
1
Skills in repo
30
Repo updated
First seen
Licence
MIT

At a glance

Applies React/TypeScript-specific technical decision criteria, anti-pattern detection, debugging, and frontend quality gates.

  • Works in 3 steps: Discovery → Understanding → Identification
  • Reviewing components
  • SKILL.md covers Value-First Engineering, Technical Anti-patterns (Red…, Fallback Design Principles and Criteria for Code Duplication, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Frontend AI Guide is an agent skill from shinpr/claude-code-workflows. Applies React/TypeScript-specific technical decision criteria, anti-pattern detection, debugging, and frontend quality gates. Use when reviewing components, hooks, browser behavior, or frontend implementation completeness.

Its SKILL.md is about 3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Quality gates. It works with React and TypeScript. The repository describes itself as: Development workflows for Claude Code that keep broad exploration focused on the outcome you approved. The licence is MIT.

When your agent uses it

  • Reviewing components
  • Browser behavior
  • Frontend implementation completeness

Example prompts

  • “Use the frontend-ai-guide skill to apply React/TypeScript-specific technical decision criteria, anti-pattern detection, debugging, and frontend…”
  • “/frontend-ai-guide”

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Discovery
  2. Understanding
  3. Identification

What it can do on your machine

Read from SKILL.md and the folder at commit a4ecd62. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Frontend AI Guide loads about 3k tokens when it runs. Until then it costs about 60 tokens; SKILL.md has 1,384 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~60
When it runs · the whole SKILL.md, loaded when a task matches
~3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from shinpr/claude-code-workflows at commit a4ecd62, republished under its MIT licence (© shinpr). 1,384 words, ~2,986 tokens.

Download SKILL.mdSave it as .claude/skills/frontend-ai-guide/SKILL.md (or your agent's skills folder).
name
frontend-ai-guide
description
Applies React/TypeScript-specific technical decision criteria, anti-pattern detection, debugging, and frontend quality gates. Use when reviewing components, hooks, browser behavior, or frontend implementation completeness.

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. Type assertions standing in for a guarantee - Declaring a type established by neither a check nor an existing contract
  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
Design Anti-patterns
  • "Make it work for now" thinking - Accumulation of technical debt
  • Patchwork implementation - Unplanned additions to existing components
  • Optimistic implementation of uncertain technology - Designing unknown elements assuming "it'll probably work"
  • Symptomatic fixes - Surface-level fixes that don't solve root causes
  • Unplanned large-scale changes - Lack of incremental approach

Fallback Design Principles

Core Principle: Fail-Fast

Design philosophy that prioritizes improving primary code reliability over fallback implementations.

Criteria for Fallback Implementation
  • Fallback rule: Implement a fallback when an accepted requirement, boundary contract, project policy, or Design Doc defines the degraded outcome and recovery owner
  • Layer Responsibilities:
    • Rendering failure in a child component subtree, including a hook that throws during render: Use the project's Error Boundary
    • Event handlers, ordinary async callbacks, SSR, and hook/API operations outside rendering: Handle them at the owning event, hook, API, or server boundary using its error contract
Detection of Excessive Fallbacks
  • Require design review when adding a catch that duplicates or fragments an existing recovery responsibility; retain it for a distinct failure mode with a documented recovery owner and visible UI outcome
  • Require design review when the same failure is caught at multiple component/hook/API layers without one recovery owner, or when nested handlers obscure the visible UI state
  • Identify the accepted recovery contract before implementing a fallback
  • Make fallback activation observable through one existing UI, log, or metric channel at the boundary that owns diagnosis or recovery; add a new channel only when an operational requirement or project policy requires it

Criteria for Code Duplication

Keep concrete implementations separate while their similarity is accidental or their UI ownership differs. Consolidate when repository evidence shows one shared interaction, validation rule, visual contract, or coordinated change responsibility.

Criteria for Commonalization

Cases for Commonalization

  • Business logic duplication
  • Complex processing algorithms
  • Component patterns (form fields, cards, etc.)
  • Custom hooks
  • Validation rules

Cases to Avoid Commonalization

  • Accidental matches (coincidentally same code)
  • Possibility of evolving in different directions
  • Significant readability decrease from commonalization
  • Simple helpers in test code

Common Failure Patterns and Avoidance Methods

Pattern 1: Error Fix Chain

Symptom: Fixing one error causes new errors Cause: Surface-level fixes without understanding root cause Avoidance: Identify root cause with 5 Whys before fixing

Pattern 2: Circumventing Type Guarantees

Symptom: any or as declares a type that no check or contract establishes Cause: Impulse to avoid type errors Avoidance: Back the declared type with a check or an existing contract that guarantees it, at the boundary where that guarantee holds

Pattern 3: Implementation Without Sufficient Testing

Symptom: Many bugs after implementation Cause: Ignoring Red-Green-Refactor process Avoidance: Start new or changed behavior and reproducible bug fixes with a failing test. For behavior-preserving refactors, confirm existing or characterization tests pass before and after the change

Pattern 4: Ignoring Technical Uncertainty

Symptom: Frequent unexpected errors when introducing new technology Cause: Assuming "it should work according to official documentation" without prior investigation Avoidance:

  • Record certainty where it controls implementation or verification decisions
    Certainty: low (Reason: new experimental feature with limited production examples)
    Exploratory implementation: true
    Fallback: use established patterns
  • For low certainty cases, create minimal verification code first
Show full SKILL.md (534 more words)Show less
Pattern 5: Insufficient Existing Code Investigation

Symptom: Duplicate implementations, architecture inconsistency, integration failures Cause: Insufficient understanding of existing code before implementation Avoidance Methods:

  • Before implementation, always search for similar functionality (using domain, responsibility, component patterns as keywords)
  • Similar functionality found → Verify that its props, lifecycle, design-system role, and repository usage are representative; reuse or extend it when compatible, otherwise record why it is not a valid model
  • Similar functionality is technical debt → Repair it when it blocks the current outcome, was caused by the current change, or lies in confirmed scope; otherwise report it separately. Create an ADR when the repair requires an architectural decision
  • No similar functionality exists → Implement new functionality following existing design philosophy
  • Preserve the evidence for each reuse, extend, separate, or repair decision in the applicable implementation or design record

Quality Check Workflow

Discover the repository's configured quality entry points and the categories they cover. Use the repository's declared package tooling and conventions and the categories below as the applicable evidence checklist.

Applicable Check Categories
  • Lint/format — the project's configured formatter and linter
  • Type check — the project's configured type validation
  • Build — the configured production or package build
  • Behavior checks — the smallest configured tests that exercise the changed behavior, plus integration or E2E suites when the change crosses their boundary, a generated skeleton requires them, or the repository gate includes them

Follow repository-declared command composition or ordering when it exists. Otherwise choose an order that respects command dependencies and provides useful feedback. Completion requires every applicable configured check to pass.

Troubleshooting
  • Port already in use — stop the stale dev/preview/test process holding the port
  • Stale cache — re-run with the project's fresh/clean-cache option
  • Dependency errors — clean reinstall dependencies

Situations Requiring Technical Decisions

Timing of Abstraction
  • Extract a shared abstraction after repository evidence establishes a shared UI responsibility and coordinated change pattern
  • Be conscious of YAGNI, implement only currently needed features
  • Prioritize current simplicity over future extensibility
Performance vs Readability
  • Prioritize readability unless the project's performance budget or a React DevTools Profiler comparison identifies a meaningful bottleneck in the affected interaction
  • Measure before optimizing with React DevTools Profiler
  • Document reason with comments when optimizing
Granularity of Component/Type Definitions
  • Overly detailed components/types reduce maintainability
  • Design components that appropriately express UI patterns
  • Use composition over inheritance

Implementation Completeness Assurance

Risk-Scaled Procedure for Impact Analysis

Completion Criteria: Complete all 3 stages. Concise search/inspection notes are sufficient for an isolated component change with no shared contract, routing, state-ownership, or build/config impact; use the structured report for cross-component or high-risk changes.

1. Discovery

Search the repository for every reference to the changed component or hook, its imported functions, and its Props/State types.

2. Understanding

Read the discovered files needed to establish:

  • Caller's purpose and context
  • Component hierarchy
  • Data flow: Props → State → Event handlers → Callbacks
3. Identification

For cross-component or high-risk changes, produce a structured impact report:

## Impact Analysis
### Direct Impact: ComponentA, ComponentB (with reasons)
### Indirect Impact: FeatureX, PageY (with integration paths)
### Processing Flow: Props → Render → Events → Callbacks

Proceed when the accepted scope, consumers, state flow, required adjacent changes, and applicable checks are identified.

Unused Code Deletion Rule

When the requested change makes a component, hook, utility, document, or configuration entry obsolete, delete it after checking its consumers and generated/operational use. Preserve and report uncertain or out-of-scope cleanup, and keep unrelated dormant code outside the implementation scope.

Existing Code Deletion Decision Flow
Required by the requested change? No → Preserve unless the change proves it obsolete
                               Yes → Working and compatible? Yes → Fix/extend
                                                             No → Repair or replace with migration/rollback evidence

© shinpr, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/frontend-ai-guide of shinpr/claude-code-workflows.

Open the folder on GitHubat commit a4ecd62

Compare with similar skills

Frontend AI Guide next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Frontend AI Guide compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Frontend AI Guide this skillshinpr/claude-code-workflows694—~3kAutomated safety check: PassMIT
OpenTUI Terminal Interfacescline/cline70k—~1.9kAutomated safety check: PassApache-2.0
Wagmi Feature Developmentwevm/wagmi6.8k—~3.8kAutomated safety check: PassMIT
Bit CLIteambit/bit18k—~2kAutomated safety check: WarnCustom licence
Sonarcloud Reviewlucasvieirasilva/nx-plugins153—~2.7kAutomated safety check: NotesMIT
Menu Migrationasmyshlyaev177/react-horizontal-scrolling-menu790—~4kAutomated safety check: PassMIT

Similar skills

  • Helps build terminal user interfaces with OpenTUI using its core imperative API or its React and Solid reconcilers, with references for layout, keyboard, animation and testing.

    70k GitHub stars~1.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Walks through adding a Wagmi feature across its layers: a Viem-based core action, TanStack Query options, and React and Vue bindings.

    6.8k GitHub stars~3.8k tokensUpdated 8 days ago
    DevelopmentAuto-check passed
  • Bit CLI

    teambit/bit

    MUST consult before running ANY bit command. An agent skill from teambit/bit.

    18k GitHub stars~2k tokensUpdated today
    DevelopmentAuto-check: warnings
  • Sonarcloud Review

    lucasvieirasilva/nx-plugins

    Fetches and triages SonarCloud findings (issues, security hotspots, quality gate) for the current pull request or branch of this repository via the SonarCloud Web API, summarizes them in a markdown…

    153 GitHub stars~2.7k tokensUpdated 11 days ago
    DevelopmentAuto-check: notes
  • Menu Migration

    asmyshlyaev177/react-horizontal-scrolling-menu

    Detect and upgrade pre-v8 react-horizontal-scrolling-menu patterns that agents trained on older data still generate: destructured visibleElements/isFirstItemVisible/isLastItemVisible/initComplete…

    790 GitHub stars~4k tokensUpdated 8 days ago
    DevelopmentAuto-check passed
  • Fe Tools Template Recommender

    MichealWayne/fe-tools

    Recommend the most suitable project template or initialization path from fe-tools project-templates based on product, framework, runtime, and delivery constraints.

    207 GitHub stars~1k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed

More from shinpr/claude-code-workflows

All 30 skills in this repo
  • Integration E2E Testing

    shinpr/claude-code-workflows

    Integration and E2E test design principles, ROI calculation, test skeleton specification, and review criteria.

    694 GitHub stars~3.5k tokensUpdated 8 days ago
    Auto-check passed
  • AI Development Guide

    shinpr/claude-code-workflows

    Applies language-agnostic and backend technical decision criteria, anti-pattern detection, debugging, and quality gates.

    694 GitHub stars~3.9k tokensUpdated 8 days ago
    Auto-check passed
  • Implementation Approach

    shinpr/claude-code-workflows

    Implementation strategy selection framework. An agent skill from shinpr/claude-code-workflows.

    694 GitHub stars~2.6k tokensUpdated 8 days ago
    Auto-check passed
  • Recipe Quality Profile

    shinpr/claude-code-workflows

    Proposes repository-specific quality policy for implementation and review and, after confirmation, creates or updates docs/project-context/quality.yaml.

    694 GitHub stars~1.1k tokensUpdated 8 days ago
    Auto-check passed
  • Subagents Orchestration Guide

    shinpr/claude-code-workflows

    Guides subagent coordination through implementation workflows.

    694 GitHub stars~9.3k tokensUpdated 8 days ago
    Auto-check passed
  • Coding Principles

    shinpr/claude-code-workflows

    Language-agnostic coding principles for maintainability, readability, and quality.

    694 GitHub stars~2.4k tokensUpdated 8 days ago
    Auto-check passed

Works with

Questions about Frontend AI Guide

What does Frontend AI Guide do?

Applies React/TypeScript-specific technical decision criteria, anti-pattern detection, debugging, and frontend quality gates. Frontend AI Guide is an agent skill from shinpr/claude-code-workflows. Applies React/TypeScript-specific technical decision criteria, anti-pattern detection, debugging, and frontend quality gates.

When should I use Frontend AI Guide?

Frontend AI Guide fits situations like: reviewing components; browser behavior; frontend implementation completeness.

How do I install Frontend AI Guide in Claude Code?

Run `npx skills add shinpr/claude-code-workflows --skill frontend-ai-guide -a claude-code`. Or copy the skill folder (skills/frontend-ai-guide in shinpr/claude-code-workflows) into .claude/skills/frontend-ai-guide in your project. Claude Code loads it when a task matches its description.

How do I install Frontend AI Guide in Codex?

Run `npx skills add shinpr/claude-code-workflows --skill frontend-ai-guide -a codex`. Or copy the skill folder (skills/frontend-ai-guide in shinpr/claude-code-workflows) into .agents/skills/frontend-ai-guide in your project. Codex loads it when a task matches its description.

Can I use Frontend AI Guide in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add shinpr/claude-code-workflows --skill frontend-ai-guide -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/frontend-ai-guide, .gemini/skills/frontend-ai-guide, .github/skills/frontend-ai-guide and .opencode/skills/frontend-ai-guide in your project.

What does Frontend AI Guide need to run?

SKILL.md names no scripts, command-line tools or credentials: Frontend AI Guide is instructions for the agent only.

Does Frontend AI Guide access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Frontend AI Guide safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Frontend AI Guide use?

Frontend AI Guide is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Frontend AI Guide use?

About 3k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Frontend AI Guide?

Skills that share tags, products or a category with Frontend AI Guide: OpenTUI Terminal Interfaces (cline/cline, 70k stars), Wagmi Feature Development (wevm/wagmi, 6.8k stars), Bit CLI (teambit/bit, 18k stars) and Sonarcloud Review (lucasvieirasilva/nx-plugins, 153 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Frontend AI Guide?

shinpr (a GitHub user) maintains it in shinpr/claude-code-workflows, which has 694 GitHub stars. The repository holds 30 skills in this directory. The repository was last updated on October 1, 2026.

Source: shinpr/claude-code-workflows on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.