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

style-alignment

v2.0.0

Published

A multi-platform AI agent skill for pixel-level frontend design alignment with boundary enforcement and feedback-driven methodology evolution. Supports Claude Code, Codex, Cursor, TRAE, and AGENTS.md.

Downloads

342

Readme

Style Alignment

A multi-platform AI agent skill for pixel-level frontend design alignment with boundary-driven methodology evolution.

Supports Claude Code, OpenAI Codex, Cursor, TRAE, and any agent that reads AGENTS.md.

What It Does

This skill aligns frontend pages to a unified, pixel-level design specification. It extracts design rules from reference pages or uses an existing design document, creates a living methodology document with strict boundaries (what NOT to do), and aligns pages one by one with user review after each.

Core principle: The skill's power is NOT in what it does — it's in what it forbids. Boundaries create consistency. Freedom within those boundaries creates flexibility.

Quick Install

Via npx (recommended)

# Install for a specific platform
npx style-alignment install claude-code /path/to/project
npx style-alignment install cursor /path/to/project
npx style-alignment install codex /path/to/project
npx style-alignment install trae /path/to/project
npx style-alignment install agents-md /path/to/project

# Install for all platforms
npx style-alignment install all /path/to/project

Via clone

git clone https://github.com/Xstly1014/style-alignment.git
cd style-alignment

# macOS/Linux
./install.sh claude-code /path/to/project

# Windows PowerShell
.\install.ps1 -Platform claude-code -ProjectPath C:\path\to\project

Platform-Specific Installation

Claude Code

# The skill auto-loads when relevant. Place in project:
.claude/skills/style-alignment/SKILL.md
.claude/skills/style-alignment/template/design-spec-template.md

# Or install globally (all projects):
~/.claude/skills/style-alignment/SKILL.md

Invoke via /style-alignment or let Claude auto-detect when you mention aligning UI styles.

OpenAI Codex

# Project-level (auto-discovered):
.codex/skills/style-alignment/SKILL.md
.codex/skills/style-alignment/template/design-spec-template.md

# Global (all projects):
~/.codex/skills/style-alignment/SKILL.md

Codex follows the same Agent Skills standard — the skill auto-activates when your task matches the description.

Cursor

# Place the .mdc rule file in:
.cursor/rules/style-alignment.mdc

The rule auto-activates when editing .vue, .tsx, .jsx, .html, .css, .scss, .less files. You can also @style-alignment to manually invoke it.

TRAE

.trae/skills/style-alignment/SKILL.md
.trae/skills/style-alignment/template/design-spec-template.md

AGENTS.md (Universal)

For agents that support AGENTS.md (Codex, Cursor, Gemini CLI, Windsurf, GitHub Copilot, etc.):

# Place in project root:
AGENTS.md

No frontmatter, no config — just plain markdown instructions.

Invoke

When you need to align frontend pages to a consistent design, simply ask:

"Align my frontend pages to a consistent design" / "帮我对齐前端页面样式"

The skill activates and guides you through the process.

Workflow

Phase 0: Load existing methodology document (if any)
Phase 1: Determine input type (reference pages vs. design doc)
Phase 2: Extract spec from pages OR load design doc
Phase 3: Create/update methodology document → User review
Phase 4: Align pages one by one → User review after each
Phase 5: Feedback loop — update methodology after every review

Key Features

  • Pixel-level precision: Exact hex colors, px/rem sizes, transition timings — no approximations
  • Boundary enforcement: Every dimension has "Must Follow", "Must NOT", and "Freedom Zone" rules
  • Data flywheel: Every user review feeds back into the methodology document, making it sharper with each iteration
  • 12 extraction dimensions: Page frame, typography, color, buttons, forms, tables, cards, navigation, spacing, icons, interactions, sub-interfaces
  • One page at a time: Never batch-align without review
  • Multi-platform: Works across Claude Code, Codex, Cursor, TRAE, and any AGENTS.md-compatible agent

Repository Structure

style-alignment/
├── SKILL.md                              # Core skill (TRAE + Agent Skills standard)
├── adapters/
│   ├── claude-code/
│   │   └── SKILL.md                      # Claude Code adapter (with allowed-tools)
│   ├── codex/
│   │   └── SKILL.md                      # Codex adapter
│   ├── cursor/
│   │   └── style-alignment.mdc           # Cursor MDC rule
│   └── agents-md/
│       └── AGENTS.md                     # Universal AGENTS.md (no frontmatter)
├── template/
│   └── design-spec-template.md           # Methodology document template
├── install.sh                            # Installer (macOS/Linux)
├── install.ps1                           # Installer (Windows)
├── package.json
├── LICENSE
└── README.md

Methodology Document

The skill creates and maintains a design-spec.md document in your project. This document is the single source of truth — it grows stronger with every page aligned and every review cycle.

See template/design-spec-template.md for the document structure.

License

MIT