npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@uicontract/skill

v0.3.0

Published

Agent skill files for UI Contracts - makes web app UIs machine-readable for AI coding agents

Downloads

464

Readme

@uicontract/skill

Agent skill files for UI Contracts.

Gives AI coding agents a structured way to discover, target, and interact with UI elements using stable data-agent-id selectors instead of fragile CSS classes or text matches.


What's Included

| File | Purpose | |------|---------| | SKILL.md | Full skill definition - commands, patterns, rules | | references/manifest-schema.md | manifest.json structure and field reference | | references/browser-tool-bridge.md | Targeting syntax for Playwright, Cypress, agent-browser, Chrome MCP | | references/workflow-patterns.md | Multi-step automation recipes |


Installation by Agent Type

Claude (claude.ai / Claude Code)

Add to your project's CLAUDE.md or global agent instructions:

@uicontract/skill

Or copy SKILL.md into your project root and reference it:

npx --yes @uicontract/skill install

For Claude Code, add to .claude/skills/:

npm install -g @uicontract/skill
# Then in your project:
cp $(npm root -g)/@uicontract/skill/SKILL.md .claude/skills/uic.md

Cursor

Add to .cursor/rules/uic.mdc:

npm install @uicontract/skill
cp node_modules/@uicontract/skill/SKILL.md .cursor/rules/uic.mdc

GitHub Copilot / VS Code

Add to .github/copilot-instructions.md:

npm install @uicontract/skill
cat node_modules/@uicontract/skill/SKILL.md >> .github/copilot-instructions.md

Any AI coding tool

The skill is plain Markdown. Copy SKILL.md wherever your tool reads agent instructions:

npm install @uicontract/skill
cat node_modules/@uicontract/skill/SKILL.md

How It Works

Once loaded, the skill teaches the agent to:

  1. Check for an existing manifest.json before scanning
  2. Use npx uicontract find to locate elements by label or purpose
  3. Target elements by data-agent-id instead of CSS selectors or text
  4. Run npx uicontract diff to detect breaking UI changes
# Agent finds the element:
npx uicontract find "pause subscription" --json
# => { "agentId": "settings.billing.pause-subscription.button", ... }

# Agent targets it:
[data-agent-id="settings.billing.pause-subscription.button"]

See SKILL.md for the full command reference and workflow patterns.


License

MIT