Skip to content
Skill

Frontend layering specificity debug

Diagnoses CSS specificity and z-index bugs in frontend controls and 3D labels

Frontend layering specificity debug is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
18
Last commit
License
Apache-2.0
Listing updated

Similar skills

About Frontend layering specificity debug

This skill guides an agent through debugging frontend layout problems where buttons or controls ignore their component styles, or where React Three Fiber and Drei projected HTML labels paint above drawers, dialogs and navigation. It starts by reproducing the issue at the reported viewport, recording bounding boxes and computed font, size and z-index values, and comparing equivalent element types to locate the selector or user-agent boundary responsible.

The fix guidance covers shorthand resets such as font inheritance, specificity conflicts between scoped and global selectors, and white-space handling for command controls. For projected 3D labels it recommends bounding the Drei zIndexRange, reserving canvas width for persistent drawers, and limiting label detail with semantic zoom. The skill also includes regression checks written as browser test snippets that compare computed styles, probe overlap points with elementFromPoint, and confirm no horizontal overflow on desktop and mobile.

It expects a web project that uses CSS and, for the 3D part, React Three Fiber with Drei. No scripts are bundled; the work is done through the agent's own inspection and test tooling.

When your agent uses it

Diagnose and fix frontend controls whose typography or dimensions ignore component CSS, and React Three Fiber/Drei projected HTML labels that paint above opaque drawers, dialogs, or navigation. Use for inconsistent button sizes, element-type-dependent styling, unexpected wrapping, z-index escalation failures, or WebGL labels leaking through DOM overlays.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (3 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

Copy the skill folder to ~/.claude/skills/frontend-layering-specificity-debug to use it in all your projects:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JinNing6/Noosphere.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/frontend-layering-specificity-debug &&
cp -R "$tmp/shared_skills/active/frontend-layering-specificity-debug" ~/.claude/skills/frontend-layering-specificity-debug &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/frontend-layering-specificity-debug inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/frontend-layering-specificity-debug to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JinNing6/Noosphere.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/frontend-layering-specificity-debug &&
cp -R "$tmp/shared_skills/active/frontend-layering-specificity-debug" ~/.agents/skills/frontend-layering-specificity-debug &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/frontend-layering-specificity-debug inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/frontend-layering-specificity-debug to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JinNing6/Noosphere.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/frontend-layering-specificity-debug &&
cp -R "$tmp/shared_skills/active/frontend-layering-specificity-debug" ~/.cursor/skills/frontend-layering-specificity-debug &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/frontend-layering-specificity-debug inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/JinNing6/Noosphere.git --path shared_skills/active/frontend-layering-specificity-debug

Or copy the folder to ~/.gemini/skills/frontend-layering-specificity-debug yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/frontend-layering-specificity-debug:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JinNing6/Noosphere.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/frontend-layering-specificity-debug &&
cp -R "$tmp/shared_skills/active/frontend-layering-specificity-debug" ~/.copilot/skills/frontend-layering-specificity-debug &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/frontend-layering-specificity-debug inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/JinNing6/Noosphere.git

Then copy Noosphere/shared_skills/active/frontend-layering-specificity-debug into your agent's skills folder as frontend-layering-specificity-debug. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Reproduce and measure
Captures bounding boxes and computed font, size and z-index values at the reported viewport.
Typography specificity fixes
Explains how shorthand resets and selector specificity override component styles.
Projected label layering
Bounds Drei label z-index ranges so DOM overlays stay above 3D labels.
Overlap probing
Uses elementFromPoint to identify which element actually paints or receives input.
Responsive overflow checks
Verifies desktop, compressed and mobile layouts have no horizontal overflow.
Semantic label zoom
Shows detailed 3D labels only on hover, selection, focus or a real search match.

Good for

  • Fix buttons that render at different sizes than their component class sets
  • Stop WebGL labels from showing through an open drawer or dialog
  • Debug z-index escalation that no longer lifts a panel above the page
  • Find why a control's font changes depending on whether it is a button or input
  • Add browser regression tests for computed styles and overlay stacking

Frontend layering specificity debug FAQ

What does Frontend layering specificity debug need to run?

It has no scripts. It is a set of debugging steps and browser test snippets that an agent applies to a frontend project, and it targets React Three Fiber and Drei for the 3D label part.

When does Frontend layering specificity debug trigger?

The description says to use it for inconsistent button sizes, element-type-dependent styling, unexpected wrapping, z-index escalation failures, or WebGL labels leaking through DOM overlays.

What does Frontend layering specificity debug change in my code?

The skill itself does not edit files. It guides the agent's diagnosis and suggests fixes such as scoped font inheritance and a bounded zIndexRange like [8, 1] for Drei Html labels.

How do I install Frontend layering specificity debug in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/frontend-layering-specificity-debug to use it in all your projects, or to .claude/skills/frontend-layering-specificity-debug in one project.

Does Frontend layering specificity debug run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Frontend layering specificity debug?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Frontend layering specificity debug?

The closest alternatives to Frontend layering specificity debug are Debug async UI, Premium frontend UI, Vue debug, Frontend design and Frontend security.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from JinNing6/Noosphere

  1. Checks a shared Noosphere skill registry before debugging a concrete software failure

    • Open source
    • 18 GitHub stars
    • Developer tools
  2. Has the agent check Noosphere shared debugging memory before fixing bugs and upload

    • Open source
    • 18 GitHub stars
    • Knowledge and memory
  3. Diagnoses browser clicks, hover and focus that fail though elements look visible

    • Open source
    • 18 GitHub stars
    • Browser automation
  4. Diagnoses why a Cloudflare Pages site still serves old assets after a deploy

    • Open source
    • 18 GitHub stars
    • Cloud and infrastructure