Skip to content
Back to skills

Ng Point

ASecurity

Set up and use ng-point in an Angular app — the dev-mode provider that turns Alt+Click into LLM-ready context blocks (component, file:line, cleaned HTML) for AI coding agents. Load this skill when installing or configuring @abiramcodes/ng-point, using its pick/add/retarget keyboard flow or ngPointIgnore, or troubleshooting the overlay in a running dev app.

  • 11 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 22, 2026
developmentbashangulargitapi

Works with

  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned November 25, 2026

npx -y skills add abiramcodes/ng-point --skill ng-point --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ng Point?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ng Point
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/abiramcodes-ng-point/badge)](https://www.skillsdirectory.com/skills/abiramcodes-ng-point)

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

Download with Pro
SKILL.md
---
name: ng-point
description: Set up and use ng-point in an Angular app — the dev-mode provider that turns Alt+Click into LLM-ready context blocks (component, file:line, cleaned HTML) for AI coding agents. Load this skill when installing or configuring @abiramcodes/ng-point, using its pick/add/retarget keyboard flow or ngPointIgnore, or troubleshooting the overlay in a running dev app.
---

# ng-point — agent skill

Dev-mode-only Angular package: Alt+Click any element in your running app to capture an
LLM-ready context block — component, `file:line`, template, cleaned HTML, directives,
parent — copied to the clipboard with an optional instruction, ready for an AI coding agent.

If you are an AI agent working in a project that has ng-point installed (or should have it),
this file tells you everything you need to set it up, use it, and configure it.

Hosted docs & landing: <https://abiramcodes.github.io/ng-point/>

## Install

```bash
# npm
npm install -D @abiramcodes/ng-point

# pnpm
pnpm add -D @abiramcodes/ng-point
```

DevDependency — the provider is constant-folded out of production builds.

## Setup (30 seconds)

```ts
// app.config.ts
import { provideNgPoint } from '@abiramcodes/ng-point';

export const appConfig: ApplicationConfig = {
  providers: [provideRouter(routes), provideNgPoint()],
};
```

That is the entire setup. `ng serve` → Alt+Click any element (macOS: Option+Click) → the overlay opens.

## What you get

```
Component: SubmitButtonComponent
File: src/app/orders/submit-button.component.ts:19
Template: src/app/orders/submit-button.component.ts:16
Element: <button class="btn btn-primary">Approve selected</button>
Directives: RouterLink
Parent: OrdersPage (src/app/pages/orders-page.ts:110)
Instruction: disable this while orders are loading
```

Lines are omitted when empty or unavailable — no invented data.

## Keyboard

| Action | Effect |
|---|---|
| `Alt+Click` (macOS: `Option+Click`) | Pick (or re-pick the active selection while the panel is open) |
| `Alt+Shift+Click` (macOS: `Option+Shift+Click`) | Add another element (up to 5 per session) |
| `Alt+↑` / `Alt+↓` (macOS: `Option+↑/↓`) | Retarget to parent / first-child |
| `Enter` | Copy all blocks (joined by `---`), queue, close (a `copied` toast confirms) |
| `Ctrl+Enter` (macOS: `⌘+Enter`) | Copy one block without queueing |
| `Esc` | Close without queueing |

`Enter` works from anywhere on the panel — no instruction typed, nothing focused.

**Same key on every platform.** On a MacBook the pick modifier is the keycap labeled
**option ⌥**; on Windows and Linux it is **Alt**. Both set the browser's `altKey` event
property, so picking, adding, and retargeting behave identically everywhere — the panel's
hints print the label your platform uses (`Option+Click` on a Mac, `Alt+Click` elsewhere).
`Ctrl+Shift+Click` activation (`activationModifier: 'ctrl-shift'`) works unchanged on all
platforms; its add-click is `Ctrl+Shift+Option+Click` on a Mac.

## Configuration

```ts
provideNgPoint({
  activationModifier: 'alt',          // or 'ctrl-shift'
  maxSelections: 5,
  maxQueueEntries: 6,
  sensitiveSelectors: ['input[autocomplete="cc-number"]'],
  extraRedactionPatterns: [/TICKET-\d+/],
  includeTemplateLine: true,
  resolveFilePath: (filePath, element) => `remotes/checkout/${filePath}`,
})
```

All fields are optional; the values above are the defaults.

## Opt out per element

```ts
import { NgPointIgnoreDirective } from '@abiramcodes/ng-point';

@Component({
  imports: [NgPointIgnoreDirective],
  template: `<div ngPointIgnore>Alt+Click inside me does nothing.</div>`,
})
```

Alt+Clicks inside an ignored subtree pass straight through to the app — no capture,
no overlay, no `preventDefault()`. Retargeting skips ignored zones too.

## Kill-switch

```js
localStorage.ngPointDisabled = '1';  // disables picking without a rebuild
```

## How it works (no build plugin)

- `provideNgPoint()` registers a `provideEnvironmentInitializer()` that checks
  `ngDevMode` — constant-folded `false` in production, so the overlay chunk is never emitted.
- The overlay attaches a non-modal `<dialog>` to `<body>` and a capture-phase
  `click` listener on `document`.
- On Alt+Click it reads `window.ng` (Angular's dev-mode devtools API) to resolve
  the component, and `ctor.ɵcmp.debugInfo` (the compiler's dev-only metadata)
  for the exact `file:line`.
- The element's HTML is rebuilt through an attribute allowlist; `input.value`
  is never read; secret-shaped content (JWTs, API keys, tokens) is replaced with
  `«redacted»` before anything reaches the clipboard.

## Template `file:line` (Angular 22.1.4+ only)

Enable it in the existing `tsconfig.base.json` (or `tsconfig.app.json`) —
no separate dev tsconfig needed:

```json
// tsconfig.base.json (or tsconfig.app.json)
{
  "angularCompilerOptions": {
    "enableTemplateSourceLocations": true
  }
}
```

On Angular 21 or 22.0-22.1.3, the `Template:` line is simply omitted.

## Module federation

Works when `@angular/core` is a shared singleton (every standard MF setup) —
picks inside remote-rendered DOM resolve via the same `window.ng` surface.
Share `ng-point` as a singleton too: one copy, one config source, one panel.

## Version compatibility

Works with Angular **21 and 22** (`@angular/core`/`@angular/common` `^21.0.0 || ^22.0.0`).
Install and `provideNgPoint()` are identical on every supported version. The only differences:

| | Angular 21.x | Angular 22.0–22.1.3 | Angular 22.1.4+ |
| --- | --- | --- | --- |
| `Component:` / `File:` lines (compiler `debugInfo`) | ✔ | ✔ | ✔ |
| `Template:` line | — (line omitted) | — (line omitted) | ✔ with the tsconfig option above |
| `enableTemplateSourceLocations` in tsconfig | Silently ignored — safe to leave in | Silently ignored — safe to leave in | Required for `Template:` |
| Change detection | Zone or zoneless — inherited from your app | Same | Same |

Attribution

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

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.