fec-route-protection

Use for implementing or reviewing frontend route protection, including authentication guards, role-based access control (RBAC), permission routes, login state handling, redirects, middleware, and React Router routing control logic.

Installation

Review the source and dependencies with a prompt.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "fec-route-protection" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-fe04ba2fb754ac35916418cf76a3e043f5c16538ee4b486c7267eba3bb7277b9. Verify the upstream source and version against https://clawhub.ai/bovinphang/fec-route-protection before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

A complete, approved package is not available yet.

Source and setup

clawhub.ai

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Use for implementing or reviewing frontend route protection, including authentication guards, role-based access control (RBAC), permission routes, login state handling, redirects, middleware, and React Router routing control logic.

0 Downloads 0 Share clicks

Introduction source: third_party · bovinphang · 2.5.0 Reference

SkillPi interpretation

Tasks
Use when implementing or reviewing frontend route protection, auth guards, RBAC, permission routes, login state handling, redirects, middleware, React Router, Next.js, Vue Router, or Nuxt route middleware; Chinese triggers include route protection, permission routing, login state.
Audience
The page needs to be logged in to access, or different roles can see different routes. Requires implementing route guards for React Router, Next.js, Nuxt or Vue Router. Login expiration, insufficient permissions, and organization/tenant switching need to be handled uniformly. Not used to replace server-side authorization; front-end routing protection can only improve the experience and cannot be used as the only security boundary.
Inputs and outputs
Produce a set of routing guard implementations, covering loading, not logged in, insufficient permissions, bounce after login and session expiration. During verification, directly access the private URL, refresh the page, switch roles, and tamper with redirect parameters to confirm that the behavior is stable and the API still has server authorization.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Front-end routing protection is not a security boundary; API, SSR loader, and server actions must undergo repeated authorization verification. Do not use `useEffect` to jump to the private page after the component is rendered, otherwise sensitive content will flicker. The redirect parameter must be restricted to within-site paths and URL input cannot be trusted directly. Permission information should come from a trusted session or backend response, don't rely solely on role fields in localStorage. Multi-tenant applications must incorporate the tenant/org context into permission determinations. Menu hiding is not considered authorization completion; users must authenticate when accessing the
Testing
Not tested

Browse files

A verified file list is not available on Skillπ yet.

Browse files at the source ↗

Original SKILL.md

Open original ↗

Skillπ does not display the original SKILL.md on this page. View the original source ↗ The source site governs the file contents, license, and use terms.

Current listing version

2.5.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value88/100

Highlights

  • 提供多框架路由保护完整实现
  • 覆盖认证、授权、重定向等核心场景
  • 强调前端不能替代服务端授权的安全边界
Trigger Precision95/100

Highlights

  • 中英文触发词覆盖全面
  • 边界清晰不易误触
Structure and Standards92/100

Highlights

  • 步骤清晰,含端到端代码示例
  • frontmatter 完整
Execution Reliability90/100

Highlights

  • 异常处理覆盖全面
  • 跳转机制安全可靠
Evidence Verifiability (mean of the first four)91/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

No text check results available.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

The main document is unavailable or exceeds this check’s scope; permissions are unknown.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

risk · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.