groupln

Implements correctly wired CPMCore breadcrumb navigation for ASP.NET Core controller actions.

Updated May 21, 2025
One-click install
npx skills add https://github.com/nielslataire/Group-LN --skill groupln-nielslataire
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: groupln
Source: https://github.com/nielslataire/Group-LN/tree/main/.claude/skills/groupln
Command: npx skills add https://github.com/nielslataire/Group-LN --skill groupln-nielslataire

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? CPMCore contains two parallel breadcrumb systems, and only the one driven by ViewData["BreadcrumbNode"] actually renders on screen. This Skill encodes that hard-won knowledge so you wire up breadcrumbs correctly the first time instead of re-deriving the mechanism from the codebase. ## Core Features & Use Cases - Breadcrumb scaffolding: Adds a correctly wired breadcrumb chain to any CPMCore controller action using SmartBreadcrumbs MvcBreadcrumbNode instances rooted at Dashboard. - Dead-code awareness: Explains why the custom [Breadcrumb("Title")] attribute and BreadcrumbActionFilter never render, while still applying the attribute for cosmetic consistency with existing controllers. - Convention matching: Defaults to the common two-level Dashboard → Instellingen → Feature chain, adding a section-label segment only when explicitly requested. - Use Case: You add a new settings page under Instellingen and need its breadcrumb to match sibling pages like MarketDataStatus without digging through _Layout.cshtml and the view component yourself. ## Quick Start Ask the assistant to add a breadcrumb to a controller action, for example: run groupln breadcrumb CookieConsentStats/Index with the label path Instellingen/Website/Cookiebanner.

Frequently Asked Questions about groupln

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a breadcrumb to an ASP.NET Core controller action?▼

Build a chain of SmartBreadcrumbs MvcBreadcrumbNode objects rooted at Dashboard, link each node's Parent to the previous node, and assign the leaf to ViewData["BreadcrumbNode"] at the top of the action before any early return.

Why is my SmartBreadcrumbs breadcrumb not rendering in CPMCore?▼

The BreadcrumbsViewComponent only renders the node stored in ViewData["BreadcrumbNode"]. The library's attribute-based auto-scan finds nothing in this codebase, so an action that never sets that ViewData key renders no breadcrumb at all.

Does the custom Breadcrumb attribute render breadcrumbs in ASP.NET MVC?▼

No. The CPMCore BreadcrumbAttribute only carries a Title string that nothing reads, and BreadcrumbActionFilter fails silently due to a hardcoded test.Controllers namespace. It is applied purely for cosmetic consistency with existing controllers.

How do I handle a breadcrumb segment that has no page of its own?▼

Point the segment's MvcBreadcrumbNode at an existing valid action and controller pair, such as Index on Instellingen, while giving it the section's own label as the title. The node stays clickable and honest without a dedicated route.

When should a breadcrumb chain include a section-label segment?▼

Only when explicitly requested. The prevailing convention is the two-level Dashboard → Instellingen → Feature chain, so adding a section segment makes that page's breadcrumb one level deeper than its siblings.