Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

angular-hotkeys

Skill by TanStack

Adds and fixes keyboard shortcuts in Angular apps using the @tanstack/angular-hotkeys package. Covers inject functions, signal-driven options, provider scopes, and replacing @HostListener keydown handlers.

  • Score 75
  • 765 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install angular-hotkeys

Built from the published package, never by AI.

git clone --depth 1 https://github.com/TanStack/hotkeys /tmp/hotkeys && mkdir -p ~/.claude/skills && cp -r /tmp/hotkeys/packages/angular-hotkeys/skills/angular-hotkeys ~/.claude/skills/angular-hotkeys

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install angular-hotkeys in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill guides an AI assistant through adding or fixing keyboard shortcuts in an Angular app with @tanstack/angular-hotkeys. It covers injectHotkey and injectHotkeys in an injection context, signal-driven options, viewChild targets, and provideHotkeys defaults and component scopes. It also covers app hotkey injectors, recorders, held-key and hint injectors, and replacing @HostListener keydown handlers.

The skill lists the package's inject functions and includes a dialog example that uses a per-instance exclusive scope. It warns about common mistakes, such as reading signals once instead of passing options as a function, and passing a viewChild value instead of the signal. It is for Angular developers who use TanStack Hotkeys and names the hotkeys-core skill as a prerequisite.

Written from the project's SKILL.md and checked against it.

What it can do

  • injectHotkeyRegisters one chord, sequence, or app hotkey for a component's or service's lifetime.
  • injectHotkeysRegisters several hotkeys in one call, including a list built from data.
  • provideHotkeysSets default options, a scope, enabled state, and app hotkeys in config or component providers.
  • injectHotkeyRecorderRecords a chord or sequence the user presses, for a settings screen.
  • injectAppHotkeysReturns a signal of declared app hotkeys with the user's custom hotkeys applied.
  • injectCustomHotkeysReads, changes, and resets custom hotkeys and checks new ones for conflicts.
  • injectHotkeyHintReturns a signal of whether held modifiers should reveal a shortcut's hint.
  • injectHeldKeysReturns a signal of every key that is held down right now.
  • injectFormatForDisplayGets formatForDisplay with the provider's platform filled in, for labels.

What you need

  • An Angular app
  • The @tanstack/angular-hotkeys package
  • The @tanstack/hotkeys#hotkeys-core skill loaded before starting

Try asking

  • Add a Mod+S shortcut to my Angular component using injectHotkey.
  • Replace my @HostListener keydown handler with TanStack Hotkeys.
  • Make an Angular dialog own the keyboard with an exclusive hotkey scope.

Good to know

  • An exclusive provider with no hotkeys never activates unless injectHotkeysContext is called in the constructor.
  • On the server, formatForDisplay cannot see the user's OS and can cause label mismatches after hydration.
  • Devtools support requires Angular 21 or later.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to angular-hotkeys

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

angular-hotkeys: common questions

Does angular-hotkeys need a provider to start?

No. The source says no provider is required, and the inject functions are called in a constructor or field initializer.

Can it replace @HostListener keydown handlers in Angular?

The source says to replace @HostListener('document:keydown') and keydown bindings with injectHotkey.

How do I show correct shortcut labels during server rendering?

The source says to pass the user's platform through provideHotkeys defaultOptions and format labels with injectFormatForDisplay. Plain formatForDisplay suits labels rendered only in the browser.

How do I install angular-hotkeys?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is angular-hotkeys free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is angular-hotkeys safe to use?

It scores 75 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to angular-hotkeys?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

angular-hotkeys Install

Add to stack

Loading.