Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Umbrella Blazor Register Nav Item

ASecurity

Add a nav item to the Blazor NavMenu.razor for a new feature, inside the correct AuthorizeView policy block and section, following the existing nav structure.

8 stars
0 votes
0 copies
0 views
Added 9/22/2026
toolsgo

Works with

cli

Security Analysis

A100/100

Scanned 9/22/2026

Install to Claude Code

$npx -y skills add umbrella-libraries/Umbrella --skill umbrella-blazor-register-nav-item --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Umbrella Blazor Register Nav Item?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Umbrella Blazor Register Nav Item
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/umbrella-libraries-umbrella-blazor-register-nav-item-33532f96/badge)](https://www.skillsdirectory.com/skills/umbrella-libraries-umbrella-blazor-register-nav-item-33532f96)

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---
name: umbrella-blazor-register-nav-item
description: 'Add a nav item to the Blazor NavMenu.razor for a new feature, inside the correct AuthorizeView policy block and section, following the existing nav structure.'
---

# Register Blazor Nav Item

## Purpose

Add a navigation link for a new feature to `NavMenu.razor`, placed inside the correct `<AuthorizeView>` policy block and logical section group. Nav items are always controlled by `<AuthorizeView>` — they are only rendered for users who satisfy the policy, matching the `[Authorize]` policy applied to the index and manage pages.

## Discovery (read these before writing anything)

1. Read `Web\<AppName>.Web.Client\Layout\Shared\NavMenu.razor` in full to understand the existing structure — how sections are grouped with `<div class="nav-header">`, how `<AuthorizeView>` blocks are arranged by policy, and the naming/icon conventions.
2. Identify which `<AuthorizeView>` block matches the policy used by the new feature's index page. If no matching block exists, a new one must be added.
3. Note the icon library in use (typically FontAwesome) and choose an appropriate icon for the feature.

---

## Step 1 -- Locate the correct AuthorizeView block

Find the `<AuthorizeView Policy="@<AppName>PolicyNames.<Policy>">` block that matches the policy on the new feature's pages. The nav item goes inside this block.

```razor
<AuthorizeView Policy="@SharedPolicyNames.<Policy>" Context="<contextVarName>">
    <div class="nav-header">Section Name</div>
    <!-- existing items -->

    <!-- ADD HERE, in alphabetical order by label -->
    <div class="nav-item">
        <NavLink class="nav-link" href="/admin/<route-plural>">
            <i class="fas fa-<icon-name>" aria-hidden="true"></i>
            <span><Label></span>
        </NavLink>
    </div>
</AuthorizeView>
```

**Rules:**
- Place the new `<div class="nav-item">` in alphabetical order by label within the same contiguous group and authorization block. Preserve nested policy blocks and established section structure; do not globally reorder unrelated navigation while adding one item.
- The `href` must match the index page route exactly (e.g. `/admin/industries`).
- The `<span>` label is the human-readable plural name of the feature (e.g. `Industries`, `Career Quiz Questions`).
- `aria-hidden="true"` on the icon element is required for accessibility.
- Do not add a `<div class="nav-header">` unless creating an entirely new section — use the existing section header.

### If no matching AuthorizeView block exists

Add a new block at the appropriate position in the nav hierarchy:

```razor
<AuthorizeView Policy="@SharedPolicyNames.<Policy>" Context="<policy>Context">
    <div class="nav-header"><Section Name></div>
    <div class="nav-item">
        <NavLink class="nav-link" href="/admin/<route-plural>">
            <i class="fas fa-<icon-name>" aria-hidden="true"></i>
            <span><Label></span>
        </NavLink>
    </div>
</AuthorizeView>
```

The `Context` attribute value must be unique within the file — use a descriptive name (e.g. `siteSettingsContext`, `adminContext`).

---

## Step 2 -- Choose an icon

Use a FontAwesome Free icon that relates to the feature's subject matter. Browse at fontawesome.com/icons (free filter). Common examples from the codebase:

| Feature type | Icon |
|---|---|
| Industry / sector | `fa-industry` |
| People / users | `fa-users` |
| Documents | `fa-file-alt` |
| Settings | `fa-cog` |
| Education | `fa-graduation-cap` |
| Messages | `fa-envelope` |
| Charts / analytics | `fa-chart-bar` |
| Questions / quiz | `fa-question-circle` |

If unsure, check what icon an analogous existing feature uses.

---

## Analyzer compatibility

Before finishing, read `.ai-shared\bundles\umbrella\analyzer-compatibility.md` and build the affected projects with their installed analyzers enabled. Treat diagnostics introduced by the generated or changed code as defects in this workflow.

## Verification

1. The new `<div class="nav-item">` is inside a `<AuthorizeView>` block whose policy matches the `[Authorize]` attribute on the index and manage pages.
2. The `href` on the `<NavLink>` matches the index page route.
3. The item is in alphabetical order by label within its section.
4. The icon has `aria-hidden="true"`.
5. No new `<div class="nav-header">` was added unless the feature genuinely belongs to a new section that didn't previously exist.
6. Existing nested authorization blocks and unrelated navigation order were preserved; ordering was evaluated within the new item's actual contiguous peer group.

Attribution

umbrella-librariesumbrella-libraries
View sourceMore from umbrella-libraries →
SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Related Skills

ucoz-landing-skill

Playbook for creating and editing uCoz landing pages via MCP tools (`templates_tool`, `ftp_tool`, `modules_tool`). Use for tasks such as: "build a landing page", "update the homepage as a landing page", "create a promo page on the homepage", "add a lead form / menu / SEO to the homepage". Homepage: `page_list`, `page_get`; first publish — `page_update` with full `page_tmpl`; HTML edits after generation — `patch_template` (module_id=2, template_id=1), not `update_template`. Activate the mail f...

107 votes

Paperclip

Interact with the Paperclip control plane API for task coordination and governance. Use when checking assignments, updating issue status, posting comments, delegating work, managing routines, or calling Paperclip API endpoints.

813271 votes

Daw Music

Digital Audio Workstation usage, music composition, interactive music systems, and game audio implementation for immersive soundscapes.

761 votes

Instantly Rdsthomas Mission Control

Instantly.ai cold email outreach API - manage campaigns, leads, accounts, and analytics. Use for cold email automation, lead management, campaign creation/monitoring, and email account warmup.

761 votes

Caveman Compress

Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens. Preserves all technical substance, code, URLs, and structure. Compressed version overwrites the original file. Human-readable backup saved as FILE.original.md. Trigger: /caveman-compress FILEPATH or "compress memory file"

1066600 votes
View all in tools →