nexus-gateway: Skill for Claude Code

.claude/skills/frontend-bug-trace/SKILL.md

frontend-bug-trace is a skill for Claude Code from AlphaBitCore/nexus-gateway. It costs 44 tokens per session (2,124 once invoked), scanned A, original, Apache-2.0.

A full-stack debugging process for frontend problems that follows the issue from the page and component through API calls, backend handlers, and database records.

In plain words
What is it for?
Use it to diagnose UI crashes and incorrect data, fix related frontend and backend code, then verify the build, API response, and database state.
Why use it?
It helps locate mismatches such as incorrect field names, response types, or missing null handling instead of treating only the visible browser error.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is AlphaBitCore/nexus-gateway's own configuration. It tells Claude Code how to work on nexus-gateway itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything nexus-gateway configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is → lazyPages.tsx: LazyProxyStatusCompliancePage → import('../pages/proxy/ProxyStatusCompliancePage').

Reuse

Borrowing it

Nothing to install: this file belongs to AlphaBitCore/nexus-gateway. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/AlphaBitCore/nexus-gateway/main/.claude/skills/frontend-bug-trace/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/AlphaBitCore/nexus-gateway

Made for: Claude Code.

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 frontend-bug-trace

README.md
[![agentmods](https://agentmods.dev/badge/skills/alphabitcore/nexus-gateway/frontend-bug-trace.svg)](https://agentmods.dev/skills/alphabitcore/nexus-gateway/frontend-bug-trace)
Your own site
<a href="https://agentmods.dev/skills/alphabitcore/nexus-gateway/frontend-bug-trace"><img src="https://agentmods.dev/badge/skills/alphabitcore/nexus-gateway/frontend-bug-trace.svg" alt="Measured on agentmods" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,124 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00044 $0.02124
Opus 5 $0.00022 $0.01062
Sonnet 5 $0.00009 $0.00425
Haiku 4.5 $0.00004 $0.00212

Measured 6d ago against content hash 6db46fd67a5b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

frontend-bug-trace scanned grade A with 1 finding 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 6d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

description: Use when fixing frontend bugs, UI errors, runtime crashes, or data display issues — traces page to API to backend to database, fixes mismatches, then verifies via curl login + DB queries
.claude/skills/frontend-bug-trace/SKILL.md · 206 lines

How it starts

The opening of the file, as written. The whole thing — 206 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Frontend Bug Trace

Full-stack bug tracing: Page -> Component -> API call -> Backend handler -> Database. Fix mismatches at every layer, then verify with real requests and DB queries.

Workflow

digraph trace {
  rankdir=TB;
  node [shape=box];

  identify [label="1. Identify Page & Component\n(URL + error stack trace)"];
  trace_api [label="2. Trace API Calls\n(find service file + useApi hooks)"];
  compare [label="3. Compare Frontend Types vs Backend Response\n(field names, types, nullability)"];
  check_backend [label="4. Check Backend Handler\n(SQL, field mapping, JSON tags)"];
  fix [label="5. Fix All Mismatches\n(backend fields, frontend types, null guards)"];
  build [label="6. Build Verification\n(go build + tsc)"];
  verify_api [label="7. Verify: curl login + call API\n(check response shape)"];
  verify_db [label="8. Verify: DB query via Docker\n(cross-check data)"];
  done [label="9. Report to user"];

  identify -> trace_api -> compare -> check_backend -> fix -> build -> verify_api -> verify_db -> done;
}

Step 1: Identify Page & Component

From the URL or error stack trace, locate the page component using route files first (not global search):

URL: /proxy/status
→ shellRouteConfig.tsx: path: 'proxy/status' → LazyPage: L.LazyProxyStatusCompliancePage
→ lazyPages.tsx: LazyProxyStatusCompliancePage → import('../pages/proxy/ProxyStatusCompliancePage')
→ Target: src/pages/proxy/ProxyStatusCompliancePage.tsx

Actions (in order — stop at first hit):

  1. Route config lookupGrep for the URL path segment (e.g. proxy/status) in src/routes/shellRouteConfig.tsx. This gives you the LazyPage component name.
  2. Lazy page mappingGrep for that LazyPage name in src/routes/lazyPages.tsx. This gives you the exact import path to the page component file.
  3. Read the page component — follow the import path. If it's a wrapper (e.g. a tab container), read it to find the actual sub-component that renders the buggy UI.
  4. Stack trace shortcut — if the user provided an error stack trace with a file:line, go directly to that file instead. Vite stack traces use src/ paths directly.

Read the full file on GitHub · 206 lines

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. 6d ago First seen · 206 lines · 44 tokens per session scan A 6db46fd67a5b

Subscribe to this mod's changes

frontend-bug-trace is a skill published in the GitHub repository AlphaBitCore/nexus-gateway (23 stars, last pushed 4d ago), licensed Apache-2.0. It adds 44 tokens to every session and 2,124 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

inspecting-hermes-desktop-dom

Read the live Hermes desktop DOM/CSS over CDP.

NousResearch/hermes-agent · 20 tokens

defenseclaw-ops

Manage DefenseClaw enterprise security - scan components, manage tool permissions, view alerts, configure guardrails.

automateyournetwork/netclaw · 27 tokens

memstack-development-performance-audit

Use this skill when the user says 'performance audit', 'why is it slow', 'optimize performance', 'page speed', 'Core Web Vitals', 'lighthouse', 'load time', or needs to diagnose and fix frontend or backend performance issues. Do NOT use for code reviews or security audits.

cwinvestments/memstack · 69 tokens

performance-profiler

Profile and optimize application performance including load times, memory usage, and rendering. Use when debugging slow performance, memory leaks, or optimizing app speed.

OneWave-AI/claude-skills · 33 tokens

soc2-expert

Expert in SOC 2 compliance, trust service criteria, audit preparation, controls implementation, and security frameworks. Use when the user mentions compliance, audit, trust services, AICPA, controls, or security framework, or when the task involves Trust Service Criteria, SOC 2 Types, Security Common Criteria, or…

personamanagmentlayer/pcl · 71 tokens

audit-expert

Expert-level security auditing, compliance, code review, and vulnerability assessment. Use when the user mentions compliance, security review, code review, vulnerability assessment, SOC 2, or GDPR, or when the task involves Audit Types, Audit Frameworks, Audit Process, or Authentication Review.

personamanagmentlayer/pcl · 60 tokens