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

ngx-page-object-model

Skill by azerothcore

Enforces the Page Object Model pattern for Angular component spec files. It has tests drive components through the rendered DOM instead of their class internals, for developers using the ngx-page-object-model library.

  • Score 74
  • 468 stars
  • AGPL-3.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install ngx-page-object-model

Built from the published package, never by AI.

git clone --depth 1 https://github.com/azerothcore/Keira3 /tmp/Keira3 && mkdir -p ~/.claude/skills && cp -r /tmp/Keira3/.agents/skills/ngx-page-object-model ~/.claude/skills/ngx-page-object-model

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

Step-by-step: install ngx-page-object-model in Claude Code

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

About

The ngx-page-object-model skill tells an AI assistant how to write Angular component tests using the Page Object Model pattern from the ngx-page-object-model library. Tests drive a component through its rendered DOM, which the skill describes as the component's public contract, and assert on what a user would see. It forbids calling or reading component methods, signals and properties, including through casts such as `as any`.

The skill shows a canonical Page class and setup() structure, prefers test-id lookups, and passes inputs through componentRef.setInput(). It points the assistant to library docs for forms, absent elements, Spectator use and customization, and names form extractors such as getFormControlOfDebugElement for bound controls. It is for developers working on Angular projects that use this library for component tests.

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

What it can do

  • Page Object classesWrites a Page class whose element-access and action methods wrap the component's DOM.
  • DOM-only assertionsAsserts on text content, attributes and element existence rather than component properties.
  • Forbidden pattern checksBlocks direct calls, property access and `as any` casts on component internals in tests.
  • Test-id lookupsUses getDebugElementByTestId as the default element lookup, with CSS selectors as a fallback.
  • Form control extractionUses getFormControlOfDebugElement and getFormGroupOfDebugElement to read bound forms through the DOM.
  • Input setupSets component inputs with componentRef.setInput() and keeps mutable state inside setup().
  • Library doc routingDirects the assistant to specific bundled docs for forms, absent elements, Spectator and customization.

What you need

  • An Angular project
  • The ngx-page-object-model library installed in the project

Try asking

  • Write a Page Object spec for my Angular login component using test ids.
  • Test my Angular form component through the DOM without using component internals.
  • Refactor this spec file so it no longer calls methods on the component instance.

Security check

A

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

Checked automatically: .agents/skills/ngx-page-object-model/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to ngx-page-object-model

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

ngx-page-object-model: common questions

What does this skill forbid in Angular tests?

It forbids calling or reading component methods, signals and properties, and using type casts like `as any` to bypass access modifiers. The source says these rules apply regardless of private, protected or public.

How does it handle forms in component tests?

The skill says to use the library's DOM-based extractors, such as getFormControlOfDebugElement, instead of reading the FormGroup from the class. The source says this also verifies that the binding works.

Does it require the library docs to be installed?

The skill says the library docs ship inside the package under node_modules/ngx-page-object-model/docs/. The assistant reads only the docs relevant to the current task.

How do I install ngx-page-object-model?

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

Is ngx-page-object-model free?

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

Is ngx-page-object-model safe to use?

It scores 74 of 100. Grades: maintenance A, licence C, quality B. 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 ngx-page-object-model?

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

ngx-page-object-model Install

Add to stack

Loading.