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.
npx agentmods add agents/redhatinsights/platform-frontend-ai-toolkit/hcc-frontend-react-patternfly-code-quality-scannergit clone --depth 1 https://github.com/RedHatInsights/platform-frontend-ai-toolkitWrote 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.
[](https://agentmods.dev/agents/redhatinsights/platform-frontend-ai-toolkit/hcc-frontend-react-patternfly-code-quality-scanner)<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>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.
| Model | Per session | Once 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 |
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.
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:
-
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.
-
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
-
PatternFly Integration Anti-Patterns
- Identify custom implementations that PatternFly provides
- Target: manual tables vs DataView, custom bulk select, hardcoded colors
- Flag: reimplemented PatternFly functionality
-
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
-
React Performance Anti-Patterns
- Identify unnecessary optimizations
- Target: trivial useCallback/useMemo usage
- Flag: performance hooks for non-expensive operations
-
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
-
Configuration Anti-Patterns
- Find scattered configuration usage
- Target: process.env spread, feature flag checks, environment conditionals
- Flag: repeated NODE_ENV checks, scattered API versions
-
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
-
Date/Time Anti-Patterns
- Detect hardcoded formatting patterns
- Target: format strings, timezone handling, timestamp parsing
- Flag: 'YYYY-MM-DD', scattered timezone logic
-
Validation Anti-Patterns
- Find repeated validation logic
- Target: similar validation rules, hardcoded error messages, regex patterns
- Flag: duplicated validation functions
-
Navigation Anti-Patterns
- Detect hardcoded routing patterns
- Target: route paths as literals, scattered navigation definitions
- Flag: string literal routes, repeated URL construction
-
Hook Anti-Patterns
- Identify repetitive custom hooks
- Target: similar hook patterns, non-extracted shared logic
- Flag: duplicated API calling patterns
Scanning Methodology:
-
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
-
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
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.
- 5d ago First seen · 132 lines · 0 tokens per session scan A 39538f274ee4
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.
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…
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.
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.
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…
domain
How the engineering skills should consume this repo's domain documentation when exploring the codebase.
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…