Minimal fix (if within scope) + verification notes
Updated workdocs with repro steps and resolution
Safety Notes
Do not weaken auth/permission checks without explicit human approval.
Avoid adding 鈥渢emporary bypass鈥?flags unless explicitly required and gated to non-production.
Related
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: willyu1007-ai-first-template-auth-route-debugger3description: Auth Route Debugger4---5# Auth Route Debugger67This workflow diagnoses authentication/authorization and route registration issues that commonly appear as 401/403/404.89---1011## Purpose & Scope1213Use this workflow when:14- A route returns 401/403 unexpectedly15- A route returns 404 even though it appears to exist16- Auth cookies/headers are not being accepted1718Out of scope:19- Deep security redesign (requires explicit human approval)2021---2223## Inputs & Preconditions2425Inputs:26- Route method + URL27- Observed status code and error response28- Client environment (browser vs server-to-server)2930Preconditions:31- Confirm the route you are hitting is the correct service.32- Record repro steps in workdocs.3334---3536## Steps37381. **Confirm route registration**39 - Verify the route is mounted under the expected prefix.40 - Check ordering: a catch-all or dynamic route can shadow more specific routes.412. **Reproduce with a minimal request**42 - Remove optional headers/body fields to isolate the failure.433. **Test with and without auth**44 - If a 鈥渘o-auth鈥?request yields the same failure, it may not be an auth issue.454. **Inspect auth middleware/guard**46 - Identify where identity is parsed (cookie/header/session).47 - Identify where permissions are enforced (roles/scopes/policies).485. **Check configuration mismatches**49 - Environment-specific cookie settings (domain, secure, sameSite)50 - CORS and credentials settings (if browser client)516. **Fix and verify**52 - Apply minimal changes.53 - Re-test with the same reproducible request.5455---5657## Outputs5859- Root cause summary60- Minimal fix (if within scope) + verification notes61- Updated workdocs with repro steps and resolution6263---6465## Safety Notes6667- Do not weaken auth/permission checks without explicit human approval.68- Avoid adding 鈥渢emporary bypass鈥?flags unless explicitly required and gated to non-production.6970---7172## Related7374---75> Converted and distributed by [TomeVault](https://tomevault.io/claim/willyu1007) — claim your Tome and manage your conversions.76<!-- tomevault:4.0:skill_md:2026-04-14 -->
Run npx skillmds@latest add tomevault-io/willyu1007-ai-first-template-auth-route-debugger in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Auth Route Debugger It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.