# Frontend layering specificity debug

> Frontend layering specificity debug is an open-source agent skill for developer tools. Diagnoses CSS specificity and z-index bugs in frontend controls and 3D labels. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/JinNing6/Noosphere/tree/main/shared_skills/active/frontend-layering-specificity-debug
- **Repository:** https://github.com/jinning6/noosphere
- **GitHub stars:** 18
- **License:** Apache-2.0
- **Skill name:** frontend-layering-specificity-debug
- **Collection:** https://github.com/JinNing6/Noosphere
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/JinNing6/Noosphere/tree/HEAD/shared_skills/active/frontend-layering-specificity-debug)
- [License: Apache-2.0](https://github.com/JinNing6/Noosphere/tree/HEAD/shared_skills/active/frontend-layering-specificity-debug)

## Features

- **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

## Install

### Claude Code

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Debug async UI](https://ai-powered.com/skills/debug-async-ui): Debug async UI is an open-source agent skill for developer tools.
- [Premium frontend UI](https://ai-powered.com/skills/premium-frontend-ui): Premium frontend UI is an open-source agent skill for design and media.
- [Vue debug](https://ai-powered.com/skills/vue-debug): Vue debug is an open-source agent skill for developer tools.
- [Frontend design](https://ai-powered.com/skills/frontend-design-lichamnesia): Frontend design is an open-source agent skill for design and media.
- [Frontend security](https://ai-powered.com/skills/frontend-security): Frontend security is an open-source agent skill for security.
- [Frontend design](https://ai-powered.com/skills/frontend-design-melandlabs): Frontend design is an open-source agent skill for design and media.
- [Design taste frontend](https://ai-powered.com/skills/design-taste-frontend): Design taste frontend is an open-source agent skill for developer tools.
- [Browser actionability debug](https://ai-powered.com/skills/browser-actionability-debug): Browser actionability debug is an open-source agent skill for browser automation.

---
Source: https://ai-powered.com/skills/frontend-layering-specificity-debug
