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/oakensoul/nextjs-cursor-promptsWrote 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/rules/oakensoul/nextjs-cursor-prompts/component-update-icon)<a href="https://agentmods.dev/rules/oakensoul/nextjs-cursor-prompts/component-update-icon"><img src="https://agentmods.dev/badge/rules/oakensoul/nextjs-cursor-prompts/component-update-icon.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.1 | $0.00000 | $0.05380 |
| Opus 5 | $0.00000 | $0.02690 |
| Sonnet 5 | $0.00000 | $0.01076 |
| Haiku 4.5 | $0.00000 | $0.00538 |
Grade A, and why
component-update-icon 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 7d 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 — 807 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Icon Component Update Request
Please enhance the existing icon component with performance optimizations, accessibility improvements, design system integration, and advanced icon management features.
🎯 ICON UPDATE OBJECTIVES:
- OPTIMIZE performance with improved SVG optimization, bundle efficiency, and rendering performance
- ENHANCE accessibility with better ARIA support, semantic usage, and screen reader compatibility
- INTEGRATE design system improvements with consistent theming, sizing, and visual harmony
- ADD advanced features like dynamic icon loading, sprite optimization, and caching strategies
- MAINTAIN backward compatibility while implementing modern icon management patterns
📋 ICON ENHANCEMENT METHODOLOGY:
STEP 1: Current Icon System Assessment
Performance Analysis:
- Bundle size impact: Analyze current icon library usage and bundle contribution
- Runtime performance: Review icon rendering efficiency and memory usage
- SVG optimization: Audit current SVG optimization levels and opportunities
- Loading strategy: Evaluate current icon loading patterns and caching
Accessibility Audit:
- ARIA compliance: Verify proper ARIA attribute usage and semantic structure
- Screen reader testing: Test icon announcements and navigation patterns
- Keyboard interaction: Review keyboard accessibility for interactive icons
- Color contrast: Ensure sufficient contrast across theme variations
Design System Review:
- Size consistency: Audit icon sizing across components and themes
- Visual alignment: Review icon alignment with text and other elements
- Theme compatibility: Test icons across light/dark themes and variants
- Brand consistency: Ensure icon style consistency with brand guidelines
STEP 2: Advanced SVG Optimization
Enhanced SVG Processing:
// Advanced SVG optimization with modern techniques
export class AdvancedSVGOptimizer {
private optimizationCache = new Map()
private performanceMetrics = new Map()
async optimizeSVG(svgContent: string, options?: OptimizationOptions): Promise<OptimizedSVG> {
const cacheKey = this.generateCacheKey(svgContent, options)
if (this.optimizationCache.has(cacheKey)) {
return this.optimizationCache.get(cacheKey)
}
const startTime = performance.now()
const optimized = await this.performOptimization(svgContent, {
removeComments: true,
removeMetadata: true,
removeEmptyElements: true,
convertPathData: true,
mergePaths: true,
removeUselessStrokeAndFill: true,
removeHiddenElements: true,
...options
})
const optimizationTime = performance.now() - startTime
this.performanceMetrics.set(cacheKey, {
originalSize: svgContent.length,
optimizedSize: optimized.content.length,
compressionRatio: optimized.content.length / svgContent.length,
optimizationTime
})
this.optimizationCache.set(cacheKey, optimized)
return optimized
}
private async performOptimization(svg: string, options: OptimizationOptions) {
// Multi-pass optimization for maximum compression
let content = svg
// Pass 1: Remove unnecessary elements
content = this.removeUnnecessaryElements(content)
// Pass 2: Optimize paths and shapes
content = this.optimizePaths(content)
// Pass 3: Minify and clean up
content = this.minifySVG(content)
return {
content,
viewBox: this.extractViewBox(content),
paths: this.extractPaths(content),
metadata: this.extractMetadata(content)
}
}
getPerformanceMetrics(cacheKey: string) {
return this.performanceMetrics.get(cacheKey)
}
}
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.
- 7d ago First seen · 807 lines · 0 tokens per session scan A f2a4b389ce56
component-update-icon is a cursor rule published in the GitHub repository oakensoul/nextjs-cursor-prompts (4 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 5,380 tokens. 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 cursor rules, from other repositories
codex-premium-website-skills
Apply Codex Skills standards to frontend, website, motion, accessibility, QA, agent reasoning, and handoff work.
react-prefer-shadcn-components
Preferir componentes shadcn/ui sobre alternativas custom o de terceros.
modal
A rule describing the inputs for a modal dialog component, which is a pop-up window. It specifies the title, HTML content, optional actions, open state, and supported sizes.
ant-design
A set of guidelines for using Ant Design, a collection of ready-made interface components, in React applications. It covers code organization, performance, security, testing, and common mistakes.
7-day-nextjs-web-design-cursor
A seven-day design workflow for web products that will be built in Next.js.
clone-ai
Site Clone AI — website klonlama pipeline kuralları.