Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
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
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

No Dead Ends

ASecurity

Recipe for THE DOOR LAW (every record the UI names opens; every detected problem ships its fix) and THE INVENTORY LAW. Use before building or fixing a surface that names a record or flags a problem (cell, row, dialog, badge, warning, id, count), or on 'no link to X', 'why can't I click this', 'dead end', EntityRef, peek. NOT for page chrome (use core-route-headers).

3 stars
0 votes
0 copies
0 views
Added 10/3/2026
developmentgoshellbashnodeawsdatabasefrontend

Works with

cli

Security Analysis

A100/100

Scanned 10/3/2026

$npx -y skills add armanisadeghi/ai-matrx --skill no-dead-ends --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of No Dead Ends?

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

Security grade badge for No Dead Ends
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/armanisadeghi-no-dead-ends/badge)](https://www.skillsdirectory.com/skills/armanisadeghi-no-dead-ends)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: no-dead-ends
description: "Recipe for THE DOOR LAW (every record the UI names opens; every detected problem ships its fix) and THE INVENTORY LAW. Use before building or fixing a surface that names a record or flags a problem (cell, row, dialog, badge, warning, id, count), or on 'no link to X', 'why can't I click this', 'dead end', EntityRef, peek. NOT for page chrome (use core-route-headers)."
---

# no-dead-ends — every identity is a door, every capability is on the table

**Read the doctrine first:** `../common-docs/policies/no-dead-ends.md`.
It is canonical and cross-repo. This skill is the *frontend mechanics*: which
primitive to reach for, how to wire it, and how to prove it. **Out of scope:**
page-level chrome (use the `core-route-headers` skill) and choosing WHAT data a
surface shows — this skill makes what is shown openable.

## The two laws, one paragraph

If the UI names a thing that has an id in our database, the user must be able to
reach it — **THE DOOR LAW**. And you may not build the surface before you know
what the platform already gives it — **THE INVENTORY LAW**. A surface that
prints "Deep Web Research Agent" as a `<span>` fails both: the agent has a
route, an icon, a peek, an action registry, a lineage index, and a sync window,
and the surface used none of them.

## Step 1 — the inventory pass (before the first line)

For every entity the surface names, run these and write the results into your
summary:

```bash
# Does it have a canonical route + icon?  → getEntityInfo(token).hrefFor
grep -n "hrefFor" features/scopes/registry/entityRegistry.ts

# Does it have a peek?
cat features/organizations/peek/kinds-list.ts

# Does it have an action registry / row-actions hook?
ls features/*/browse/*ActionRegistry.tsx components/official/item/

# Does it have an overlay opener or a window panel?
ls features/overlays/openers/ | grep -i <entity>
ls features/window-panels/windows/<entity>/
```

"Found nothing" is only acceptable when it names the queries you ran.

## Step 2 — put the doors on

**Use `EntityRef` (`components/official/entity-ref/EntityRef.tsx`).** It is the
Door Law made importable — name → route, plus new-tab, plus peek, all resolved
from the registries. Never hand-roll a name link.

```tsx
import { EntityRef } from "@/components/official/entity-ref/EntityRef";

<EntityRef token="agent" id={row.agentId} name={row.agentName} />

// Same record lives in two shells (system vs personal agents): override href.
<EntityRef token="agent" id={id} name={name} href={agentHref(id, agentType)} />

// Surface-specific extra doors go in `extraActions` — never forked into a copy.
<EntityRef token="note" id={id} name={title} extraActions={<OpenInWindowButton …/>} />
```

Safe inside clickable rows — every control stops propagation. Worked reference:
`features/mandates/admin/MandatesConsole.tsx` (Agent column, Pin column,
Health column, and the drawer's identity card).

**Missing a door?** Fix the *registry*, not the call site:

| Missing | Fix |
|---|---|
| Route | add `hrefFor` to the token in `features/scopes/registry/entityRegistry.ts` |
| Peek | add the kind to `features/organizations/peek/registry.ts` **and** `kinds-list.ts` (a dev-time guard screams if they drift) |
| Window | register an opener under `features/overlays/openers/` (see the `overlay-system` skill) |

**Never import `features/organizations/peek/registry.ts` for the availability
check** — it statically imports 19 peek components. Import `hasPeek` from
`kinds-list.ts` and render the one dynamic edge, `<ResourcePeekHost>`.

## Step 3 — the corollaries (where the real damage lives)

1. **Render every relationship you can resolve, with its own door.** For agents
   the lineage is free: `selectAgentLineageIndex` /
   `selectAgentLineage` (`packages/chat/src/agents/redux/agent-definition/selectors.ts`)
   derive parent / children / **systemTwin** from the slice — zero extra
   queries. The twin can be a PARENT (personal copy of a system agent) or a
   CHILD (system agent promoted from a personal one); handle both.
   Cold surface with no slice? `fetchLinkedCounterpart` (thunks.ts) round-trips.

2. **Ship the fix beside the complaint.** "NOT a system agent" must come with
   the rebind button and the twin's link, not a scolding badge.

3. **State the verdict, not the timestamp.** "Last synced Apr 29" is not an
   answer. Say identical / what differs / link to the diff.

4. **Never render an id you can't open**, and **never report green for data you
   couldn't read** — an unresolvable reference is its own loud state
   (`unresolved pin` in the mandates console), never `ok`.

5. **A count is a door.** `3 overrides` reaches those overrides.

6. **A SENTENCE is a door too.** Our servers write refusals and notes for
   people, and those sentences name records by raw id — "resolved system agent
   8f0bbfc2-… breaks the mandate contract". Printed as `{message}` that is a
   dead end with extra steps: the reader is told which record is wrong and then
   made to hand-copy a uuid into a URL bar. Print server prose through
   **`TextWithDoors`** (`components/official/entity-ref/TextWithDoors.tsx`)
   instead — it keeps every character verbatim and turns the ids into doors:

   ```tsx
   import { TextWithDoors } from "@/components/official/entity-ref/TextWithDoors";

   <p className="text-destructive">
     <TextWithDoors text={refusal} defaultToken="agent" />
   </p>
   ```

   The token comes from the sentence's own words ("… agent <id> …"); pass
   `defaultToken` only when the SURFACE knows what its sentences are about. An
   id whose type cannot be established stays plain text — a link to the wrong
   record reads as a fact and is a lie. `ServerNotes` already renders through
   it, so every door's notes block inherits this for free.

## Step 4 — prove it

- Browser: every named record shows Open / new-tab / peek. `read_page` and
  confirm the `link "Open X"` / `button "Quick look at X"` / `link "Open X in a
  new tab"` nodes exist per row.
- Data logic (lineage, twin resolution, health): a unit test, because the
  interesting rows are usually invisible to the test account under RLS —
  `packages/chat/src/agents/redux/agent-definition/__tests__/lineage-selectors.test.ts`
  is the pattern. Never claim a path works because it "should".
- Say plainly in your summary what you verified in a browser vs. by test.

## Anti-patterns — fix on sight

- `<span>{record.name}</span>` where `hrefFor` exists.
- A red badge naming a problem with no action next to it.
- A drawer that opens on a *picker* instead of showing what the user has.
- A local `<Dialog>` preview when a peek is registered for that kind.
- A hand-rolled row-action list beside an existing action registry.
- A bare UUID cell.

Attribution

armanisadeghiarmanisadeghi
View sourceSee grades on GitHubMore from armanisadeghi →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

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

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Clean Code

Pragmatic coding standards - concise, direct, no over-engineering, no unnecessary comments

304955 votes

Browser Extension Developer

Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.

286712 votes

Seo Optimizer

SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.

2222 votes

Google Official Seo Guide

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

1862 votes

Writing Plans

Use when you have a spec or requirements for a multi-step task, before touching code

2927051 votes
View all in development →