AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Frontend Layering Specificity Debug

skill-jinning6-noosphere-frontend-layering-specificity-debug · by JinNing6

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.

No reviews yet
0 installs
4 views
0.0% view→install

Install

$ agentstack add skill-jinning6-noosphere-frontend-layering-specificity-debug

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-jinning6-noosphere-frontend-layering-specificity-debug)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
23d ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Frontend Layering Specificity Debug? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Frontend Layering And Specificity Debug

Diagnose Before Styling

  1. Reproduce at the reported viewport and interaction state.
  2. Record bounding boxes plus computed font-size, line-height, width, height, and z-index.
  3. Compare equivalent element types. A ` and an ` that share a component class but render differently usually indicate a selector or user-agent boundary.
  4. Enumerate matched CSS rules instead of inferring from source order alone.
  5. Use document.elementFromPoint() at the overlap to identify the element that actually paints or receives input.

Fix Typography Specificity

  • Treat shorthand declarations such as font: inherit as resetting font-size, font-weight, and line-height together.
  • Check specificity as well as order. .app button overrides .button even when .button appears later.
  • In scoped resets, prefer font-family: inherit and explicit inherited properties. Keep component-level font-size and line-height authoritative.
  • Add white-space: nowrap only to stable command controls; use responsive label collapse when the toolbar cannot fit.
  • Verify computed styles on real `, , , and ` elements after the fix.

Fix Projected 3D Labels

  • Remember that Drei ` is projected DOM, not canvas pixels. Its default zIndexRange` is extremely high and can paint over an otherwise opaque drawer.
  • Assign a bounded range such as zIndexRange={[8, 1]} for scene labels, then keep application chrome above it.
  • Do not keep increasing drawer z-index without identifying the projected label range and stacking context.
  • Reserve real canvas width for persistent desktop drawers when labels or selected nodes would otherwise sit underneath them.
  • Use semantic zoom: show detailed labels only for hover, selection, a focused domain, or an actual non-empty search match.

Regression Checks

Run desktop, compressed desktop, and mobile checks:

const style = getComputedStyle(control)
expect(style.fontSize).toBe('13px')
expect(document.body.scrollWidth).toBe(document.documentElement.clientWidth)

For an open overlay, compare the projected label and drawer layers and probe overlap points:

const top = document.elementFromPoint(x, y)
expect(drawer.contains(top)).toBe(true)

Also verify:

  • short mobile sheets size to content;
  • long content reaches a bounded height and scrolls internally;
  • adjacent 3D nodes remain independently clickable;
  • an empty search does not highlight every node;
  • screenshots show no labels painted through drawers.

Completion Standard

Complete only when the original viewport reproduces cleanly, computed styles prove the intended rule wins, projected labels stay below DOM overlays, responsive overflow is zero, and a regression check covers the root cause.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.