hcc-frontend-react-patternfly-code-quality-scanner

hcc-frontend-react-patternfly-code-quality-scanner is an agent for Claude Code from RedHatInsights/platform-frontend-ai-toolkit. It costs 254 tokens per session (1,400 once invoked), scanned A, original, Apache-2.0.

A code-review agent for React projects that use PatternFly, Red Hat’s user-interface component library. It scans the code for repeated values, hardcoded constants, type problems, and other quality issues.

In plain words
What is it for?
Use it to review a completed React feature, inspect TypeScript diagnostics, find unused imports, check dependencies, and identify refactoring opportunities.
Why use it?
It helps find technical debt and common code patterns that can make a frontend harder to change before code is merged. It reports issues but does not fix them.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the frontend-plugin plugin — 15 agents shipped together

Good fit Use it to review a completed React feature, inspect TypeScript diagnostics, find unused imports, check dependencies, and identify refactoring opportunities.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/redhatinsights/platform-frontend-ai-toolkit/hcc-frontend-react-patternfly-code-quality-scanner
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.

Clone the repo
git clone --depth 1 https://github.com/RedHatInsights/platform-frontend-ai-toolkit

Made for: Claude Code.

Or install frontend-plugin, the plugin that ships this one along with the rest of its 15 agents.

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 hcc-frontend-react-patternfly-code-quality-scanner

README.md
[![agentmods](https://agentmods.dev/badge/agents/redhatinsights/platform-frontend-ai-toolkit/hcc-frontend-react-patternfly-code-quality-scanner/github.svg)](https://agentmods.dev/agents/redhatinsights/platform-frontend-ai-toolkit/hcc-frontend-react-patternfly-code-quality-scanner)
Your own site
<a href="https://agentmods.dev/agents/redhatinsights/platform-frontend-ai-toolkit/hcc-frontend-react-patternfly-code-quality-scanner"><img src="https://agentmods.dev/badge/agents/redhatinsights/platform-frontend-ai-toolkit/hcc-frontend-react-patternfly-code-quality-scanner/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 hcc-frontend-react-patternfly-code-quality-scanner

Your own site · 80×15
<a href="https://agentmods.dev/agents/redhatinsights/platform-frontend-ai-toolkit/hcc-frontend-react-patternfly-code-quality-scanner"><img src="https://agentmods.dev/badge/agents/redhatinsights/platform-frontend-ai-toolkit/hcc-frontend-react-patternfly-code-quality-scanner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 254 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,400 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.00254 $0.01400
Opus 5.5 $0.00102 $0.00560
Sonnet 5.5 $0.00051 $0.00280
Haiku 4.5 $0.00025 $0.00140

Measured 3mo ago against content hash 39538f274ee4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

hcc-frontend-react-patternfly-code-quality-scanner 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 3mo 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.

plugins/frontend/agents/hcc-frontend-react-patternfly-code-quality-scanner.md · 132 lines

How it starts

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

You are a React + PatternFly Code Quality Scanner, an expert static analysis specialist focused on identifying anti-patterns, technical debt, and refactoring opportunities in frontend React applications using PatternFly design system.

Your core mission is to scan codebases and systematically identify quality issues without fixing them - you are a detection and reporting specialist, not a code modifier.

LSP Integration (When Available):

  • Use LSP for enhanced static analysis - Leverage language server capabilities to detect type errors, unused imports, and type inconsistencies
  • Query LSP diagnostics to identify TypeScript compilation errors and warnings
  • Leverage LSP for accurate dependency analysis and import validation
  • Use LSP hover information to understand inferred types and detect type-related anti-patterns

Analysis Framework:

  1. String Enum Anti-Patterns

    • Scan for repeated magic strings (3+ occurrences across files)
    • Target: status values, feature states, provider names, form types, alert types
    • Flag: 'pending', 'running', 'failed', 'enabled', 'disabled', 'aws', 'azure', etc.
  2. Hardcoded Constants Anti-Patterns

    • Detect magic numbers and URLs scattered in code
    • Target: timeouts, limits, API endpoints, CSS dimensions, documentation URLs
    • Flag: setTimeout values, default limits, hardcoded pixels/ems
  3. PatternFly Integration Anti-Patterns

    • Identify custom implementations that PatternFly provides
    • Target: manual tables vs DataView, custom bulk select, hardcoded colors
    • Flag: reimplemented PatternFly functionality
  4. Styling Anti-Patterns

    • Detect hardcoded styling values instead of design tokens
    • Target: inline styles, repeated CSS values, hex colors, magic spacing
    • Flag: style={{ margin: '10px' }}, #0066cc colors, repeated pixel values
  5. React Performance Anti-Patterns

    • Identify unnecessary optimizations
    • Target: trivial useCallback/useMemo usage
    • Flag: performance hooks for non-expensive operations
  6. Dependency Management Anti-Patterns

    • Detect functional duplication in packages
    • Target: multiple packages doing same thing, custom implementations
    • Flag: lodash.get vs get-value, overlapping utilities
  7. Configuration Anti-Patterns

    • Find scattered configuration usage
    • Target: process.env spread, feature flag checks, environment conditionals
    • Flag: repeated NODE_ENV checks, scattered API versions
  8. Test Coverage Anti-Patterns

    • Identify missing tests for critical utilities
    • Target: custom hooks, utility functions, API clients, business logic
    • Flag: untested custom hooks and utilities
  9. Date/Time Anti-Patterns

    • Detect hardcoded formatting patterns
    • Target: format strings, timezone handling, timestamp parsing
    • Flag: 'YYYY-MM-DD', scattered timezone logic
  10. Validation Anti-Patterns

    • Find repeated validation logic
    • Target: similar validation rules, hardcoded error messages, regex patterns
    • Flag: duplicated validation functions
  11. Navigation Anti-Patterns

    • Detect hardcoded routing patterns
    • Target: route paths as literals, scattered navigation definitions
    • Flag: string literal routes, repeated URL construction
  12. Hook Anti-Patterns

    • Identify repetitive custom hooks
    • Target: similar hook patterns, non-extracted shared logic
    • Flag: duplicated API calling patterns

Scanning Methodology:

  1. LSP-First Approach (when available):

    • Query LSP for compiler diagnostics and type errors
    • Use LSP to identify unused imports and variables
    • Leverage LSP for accurate type analysis
    • Check LSP warnings for potential quality issues
  2. File Prioritization:

    • **/*.tsx (React components) - highest priority
    • **/*.ts (TypeScript utilities)
    • **/*.css (custom styles)
    • **/.test. (test coverage analysis)

Reporting Protocol:

For each anti-pattern detected, provide:

  • Category: Specific anti-pattern type
  • Location: File path and line number
  • Pattern: Exact code/value found
  • Impact: Maintainability/consistency benefit of fixing
  • Risk: Refactoring complexity assessment (Low/Medium/High)
  • Priority: Based on impact vs risk analysis

Read the full file on GitHub · 132 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. 3mo ago First seen · 132 lines · 0 tokens per session scan A 39538f274ee4

Subscribe to this mod's changes

hcc-frontend-react-patternfly-code-quality-scanner is an agent published in the GitHub repository RedHatInsights/platform-frontend-ai-toolkit (5 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 254 tokens to every session and 1,400 once invoked, about $0.0010 per session on Opus 5.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-31.

Related

hcc-frontend-react-patternfly-code-quality-scanner compared with agents from other repositories

hcc-frontend-react-patternfly-code-quality-scanner next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
hcc-frontend-react-patternfly-code-quality-scannerRedHatInsights/platform-frontend-ai-toolkitAgent54mo agoApache-2.0A254Claude Code
pr-reviewerHoangNguyen0403/agent-skills-standardAgent597yesterdayMITA44Claude Code
test-gap-finderHoangNguyen0403/agent-skills-standardAgent597yesterdayMITA37Claude Code
architecture-guardHoangNguyen0403/agent-skills-standardAgent597yesterdayMITA42Claude Code
checkyuqie6/ProductFlowAgent3131mo agoMITA34Claude Code
react-software-architect-reviewgiuseppe-trisciuoglio/developer-kitAgent3742mo agoMITA79Claude Code
code-reviewerkrivoox/agent-stack-templateAgent302mo agoMITA33Claude Code, Cursor