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

hcc-frontend-react-patternfly-code-quality-scanner is an agent for coding agents 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

Part of the frontend-plugin plugin — 16 agents 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 agents/redhatinsights/platform-frontend-ai-toolkit/hcc-frontend-react-patternfly-code-quality-scanner
Clone the repo
git clone --depth 1 https://github.com/RedHatInsights/platform-frontend-ai-toolkit

Or install frontend-plugin, the plugin that ships this one along with the rest of its 16 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.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.svg" alt="Measured on agentmods" 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. 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.00254 $0.01400
Opus 5 $0.00127 $0.00700
Sonnet 5 $0.00051 $0.00280
Haiku 4.5 $0.00025 $0.00140

Measured 5d ago against content hash 39538f274ee4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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. 5d 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 1mo ago), licensed Apache-2.0. It adds 254 tokens to every session and 1,400 once invoked, about $0.0013 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-31.

Related

Other agents, from other repositories

react18-class-surgeon

Class component migration specialist for React 16/17 → 18.3.1. Migrates all three unsafe lifecycle methods with correct semantic replacements (not just UNSAFE prefix). Migrates legacy context to createContext, string refs to React.createRef(), findDOMNode to direct refs, and ReactDOM.render to createRoot. Uses memory…

github/awesome-copilot · 81 tokens

react19-auditor

Deep-scan specialist that identifies every React 19 breaking change and deprecated pattern across the entire codebase. Produces a prioritized migration report at .github/react19-audit.md. Reads everything, touches nothing. Invoked as a subagent by react19-commander.

github/awesome-copilot · 61 tokens

ci-watcher

Polls Nx Cloud CI pipeline and self-healing status. Returns structured state when actionable. Spawned by /nx-cloud-ci-monitor command to monitor CI Attempt status.

nrwl/nx · 37 tokens

tauri-axum-parity-checker

Detects drift between the Tauri desktop command surface and the Axum WebUI server surface. Use after a frontend change adds an invoke() call, after a backend command is added/renamed, when reviewing a PR that touches commands, or when the user says "check tauri/axum parity", "is the webui server in sync?". A command…

jhlee0409/claude-code-history-viewer · 112 tokens

domain

How the engineering skills should consume this repo's domain documentation when exploring the codebase.

jhlee0409/claude-code-history-viewer · 0 tokens

genpage-edit-planner

Plans edits to an existing generative page. Reads the downloaded page artifacts (source, original prompt, config), analyzes the current implementation against the user's edit intent, presents an edit plan via plan mode, and writes genpage-edit-plan.md for the orchestrator to execute. Called by the genpage skill — not…

microsoft/power-platform-skills · 73 tokens