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.
git 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/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.
<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>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.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 |
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.
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.
- 3mo 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 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.
hcc-frontend-react-patternfly-code-quality-scanner compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| hcc-frontend-react-patternfly-code-quality-scannerRedHatInsights/platform-frontend-ai-toolkit | Agent | 5 | 4mo ago | Apache-2.0 | A | 254 | Claude Code |
| pr-reviewerHoangNguyen0403/agent-skills-standard | Agent | 597 | yesterday | MIT | A | 44 | Claude Code |
| test-gap-finderHoangNguyen0403/agent-skills-standard | Agent | 597 | yesterday | MIT | A | 37 | Claude Code |
| architecture-guardHoangNguyen0403/agent-skills-standard | Agent | 597 | yesterday | MIT | A | 42 | Claude Code |
| checkyuqie6/ProductFlow | Agent | 313 | 1mo ago | MIT | A | 34 | Claude Code |
| react-software-architect-reviewgiuseppe-trisciuoglio/developer-kit | Agent | 374 | 2mo ago | MIT | A | 79 | Claude Code |
| code-reviewerkrivoox/agent-stack-template | Agent | 30 | 2mo ago | MIT | A | 33 | Claude Code, Cursor |