Let me start with the honest part: I didn't write the code of ngx-command-palette, a ⌘K / Ctrl+K command palette for Angular. An AI coding agent (Claude Code) did. I didn't write the first draft of this post either.
What I did was decide what to build, set the rules, check the results and push back when something wasn't right. The library went from 0.1.0 to 1.0.0 in four days, it has no dependencies besides Angular, and its demo passes axe-core with zero violations in both themes.
This post is about what that role actually looks like, because "the AI wrote it" makes it sound easier than it was, and "I built it" would be a lie.
The goal was simple: a command palette for Angular that feels native to the framework, with nothing else to install, and that works for keyboard and screen reader users from the start.
The rules mattered more than the prompts
A few requirements shaped the library more than any single prompt. Some were there from the first day, others were added as soon as something went wrong without them:
- No runtime dependencies besides Angular. Not even RxJS.
- Signals and standalone only. No
NgModule, no subjects in the public API. - SSR-safe and zoneless-ready. No
windowordocumentat import time. - Accessible by default. Not "accessible if you configure it right".
- Everything in English, comments included.
Rules like these work well with an agent because they are checkable. "No dependencies" is a line in package.json. "Accessible" is an axe-core run in CI. "Make it good" is not checkable, so I tried never to rely on it.
What the agent was good at
Honestly, a lot.
The API it designed feels like modern Angular. Commands are registered with an inject*() function and removed automatically when the component that registered them is destroyed, through DestroyRef:
export class ProjectsPage { projects = signal<Project[]>([]); constructor() { injectCommands( computed(() => [ { id: 'project-new', label: 'New project', group: 'Projects', run: () => this.create() }, ...this.projects().map((p) => ({ id: `project-${p.id}`, label: `Open ${p.name}`, group: 'Projects', route: ['/projects', p.id], })), ]), ); } } The "no RxJS" rule produced a nice trick: async providers can return a Promise or anything with a subscribe method. An RxJS Observable fits that shape, so HttpClient works, but the library never imports RxJS. Stale requests are cancelled with an AbortSignal.
It also wrote the parts I would probably have skipped: the WAI-ARIA combobox/listbox pattern with aria-activedescendant, focus trap and focus restore, a live region for the result count, prefers-reduced-motion and Windows high contrast mode.
Where I had to step in
This is the part I think matters most.
"It works" is not "it's done". The first versions were fine with a few hundred commands and sluggish beyond about 2,000. Nobody would notice in a demo, but that limit had to be measured, not guessed, and then fixed. The result was a fuzzy search about 9 times faster, checked against the old one on 400,000 cases to make sure the results didn't change, plus a performance test that fails if it gets slow again.
Small things slip through. Before 1.0.0, a review found missing license headers in the demo and test labels that weren't in English, even though the rule existed from day one. An agent follows rules most of the time, which is exactly why you need checks for the rest.
Some decisions are judgment calls. Just before 1.0.0, the supported Angular range was narrowed to 22 only. But version 21 was tested in CI on every push, so that change would have dropped working support for no reason. It went back to 21–22 before the release.
I kept the irreversible step for myself. Publishing to npm can't be undone: a version, once published, stays. The release workflow uses npm Trusted Publishing, and every release waits for my manual approval on GitHub before it goes out. The agent can prepare a release; only I can ship it.
Checks I couldn't do by eye
Since I wasn't reading every line, I leaned on things that check for me. All of these run in CI:
- unit tests (Vitest), lint and typecheck;
- axe-core on the demo, light and dark;
- server-side rendering in plain Node;
- Firefox, a touch phone, and 200% / 400% zoom;
- build and tests against Angular 21 as well as 22.
What's still not covered, honestly: real screen readers and real Safari on iOS. If you use either and try the demo, I'd love to know how it goes.
What I'd tell someone doing the same
- Write the rules before the first prompt. Make them checkable.
- Measure, don't eyeball. Performance, accessibility and compatibility problems don't show up in a quick demo.
- Keep the irreversible steps for yourself. Publishing, deleting, anything you can't take back.
- Be honest about who wrote what. That's why this post exists.
ngx-command-palette is MIT licensed and works with Angular 21 and 22:
npm install @rrstudioapps/ngx-command-palette - Demo: https://rrstudio.app/command-palette/
- GitHub: https://github.com/rrstudioapps/ngx-command-palette
I also make free Angular admin templates and small open-source tools, all on rrstudio.app, built the same way.