evo-nextjs-visual-stability

evo-nextjs-visual-stability is a skill for Claude Code, Codex from Zhang-Henry/CoEvoSkills. It costs 46 tokens per session (436 once invoked), scanned A, original, Apache-2.0.

A fixer for visual instability in Next.js online shops. Visual instability includes page flicker, invisible text while fonts load, and layout shifts when images or delayed content appear.

In plain words
What is it for?
Use it to fix theme flicker, font loading delays, missing image dimensions, empty loading states, and basic loading indicators. It also provides validation for the applied fixes.
Why use it?
It reserves space and loads themes, fonts, images, and asynchronous content in ways that reduce unexpected movement or flashes during page loading.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to fix theme flicker, font loading delays, missing image dimensions, empty loading states, and basic loading indicators. It also provides validation for the applied fixes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zhang-henry/coevoskills/evo-nextjs-visual-stability
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.

Any agent
npx skills add Zhang-Henry/CoEvoSkills --skill evo-nextjs-visual-stability
Clone the repo
git clone --depth 1 https://github.com/Zhang-Henry/CoEvoSkills

Made for: Claude Code, Codex.

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 evo-nextjs-visual-stability

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhang-henry/coevoskills/evo-nextjs-visual-stability/github.svg)](https://agentmods.dev/skills/zhang-henry/coevoskills/evo-nextjs-visual-stability)
Your own site
<a href="https://agentmods.dev/skills/zhang-henry/coevoskills/evo-nextjs-visual-stability"><img src="https://agentmods.dev/badge/skills/zhang-henry/coevoskills/evo-nextjs-visual-stability/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 evo-nextjs-visual-stability

Your own site · 80×15
<a href="https://agentmods.dev/skills/zhang-henry/coevoskills/evo-nextjs-visual-stability"><img src="https://agentmods.dev/badge/skills/zhang-henry/coevoskills/evo-nextjs-visual-stability.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 436 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00046 $0.00436
Opus 5 $0.00023 $0.00218
Sonnet 5 $0.00009 $0.00087
Haiku 4.5 $0.00005 $0.00044

Measured 12d ago against content hash 32d641123d70, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

evo-nextjs-visual-stability 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 12d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/fix_async_placeholders.py, scripts/fix_font_display.py, scripts/fix_image_dimensions.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

artifacts/skills/fix-visual-stability/evo-nextjs-visual-stability/SKILL.md · 52 lines

What it actually says

Next.js Visual Stability Fixer

This skill fixes common visual instability issues in Next.js apps:

  1. Theme flicker (FOUC): Adds blocking inline script to set theme before first paint
  2. Font FOIT: Adds font-display: swap to @font-face rules
  3. Image CLS: Adds width/height to images missing dimensions
  4. Async content CLS: Replaces return null loading states with space-reserving placeholders
  5. Skeleton loaders: Uses skeleton components instead of text loading indicators

Usage

import sys
sys.path.insert(0, '/app/environment/skills/evo-nextjs-visual-stability/scripts')
from run_all_fixes import run_all_fixes, validate_fixes

# Apply all fixes
results = run_all_fixes('/app')
print(results)

# Validate
validation = validate_fixes('/app')
assert validation['valid'], f"Validation failed: {validation['issues']}"

Individual Fix Functions

import sys
sys.path.insert(0, '/app/environment/skills/evo-nextjs-visual-stability/scripts')

from fix_theme_flicker import fix_theme_flicker
from fix_font_display import fix_font_display
from fix_image_dimensions import fix_image_dimensions
from fix_async_placeholders import fix_banner_placeholder, fix_sidepane_placeholder, fix_resultsbar_placeholder
from fix_product_skeleton import fix_product_list_skeleton

Key Principles

  • Never change existing class names, ids, or data-testid attributes
  • Placeholders must use the same classes and testid as the final content
  • Theme script must execute before first paint (in <head> or early <body>)
  • font-display: swap prevents FOIT
  • Images need both width and height for browser to reserve space
Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 52 lines · 46 tokens per session scan A 32d641123d70

Subscribe to this mod's changes

evo-nextjs-visual-stability is a skill published in the GitHub repository Zhang-Henry/CoEvoSkills (66 stars, last pushed 22d ago), licensed Apache-2.0. It adds 46 tokens to every session and 436 once invoked, about $0.0002 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-30.