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

css-pro-tips

v1.0.1

Published

A validated, Baseline-aware modern CSS design-system skill for AI coding agents (Claude Code, Codex, Cursor, Pi, OpenCode, Kiro, and any SKILL.md-compatible agent).

Readme

CSS Pro-Tips

A validated, Baseline-aware modern CSS skill for AI coding agents.

Drop it into Claude Code, Codex, Cursor, Pi, OpenCode, Kiro — or any agent that reads SKILL.md — and your agent writes idiomatic, browser-safe CSS instead of copy-pasted hacks from 2015.

npm version License: MIT Baseline-aware Agent Skill PRs welcome Maintained by Pythoughts


Why this exists

Most CSS advice an agent has absorbed is a mix of timeless patterns and outdated hacks — float clearfixes, padding-bottom ratio boxes, 100vh mobile bugs, :focus rings on every mouse click. This skill gives the agent one curated file that:

  • Keeps the evergreen tips that still hold up (resets, :not(), aspect-ratio, logical properties).
  • Adds a Modern CSS section bucketed by MDN Baseline:has(), container queries, @layer, subgrid, color-mix(), light-dark(), @scope, anchor positioning, scroll-driven animations, and more.
  • Labels every modern feature as 🟢 Widely / 🟡 Newly / 🔴 Limited, with a graceful @supports fallback for anything not yet safe to ship unconditionally.

Every status claim was verified against MDN's per-feature Baseline data and the web-platform-dx/web-features dataset (last validated June 2026). Baseline is a browser-compatibility signal only — the skill still tells the agent to test accessibility, motion preferences, keyboard behavior, and contrast separately.

What's inside

A single self-contained skill: SKILL.md (skill name: css-protips).

| Section | Covers | |---------|--------| | Evergreen tips | Resets, box-sizing inheritance, :not() navigation, aspect-ratio, :is(), intrinsic sizing, focus styling, mobile form fixes | | Baseline 🟢 Widely | :has(), @container, native nesting, @layer, subgrid, color-mix(), logical properties, :focus-visible, clamp() | | Baseline 🟡 Newly | text-wrap, light-dark(), @scope, @starting-style, contrast-color() | | 🔴 Limited | accent-color, scroll-driven animations, field-sizing, anchor positioning — all with @supports gates | | Modernize older tips | When to retire the padding-hack ratio box, max-height sliders, * + * owl, local() fonts |


Install

The fastest path is npm — it fetches the skill into node_modules/css-pro-tips/, then you copy SKILL.md into your agent's skills directory.

npm install css-pro-tips

Then pick your agent below. (No npm? Just download SKILL.md directly and copy it into the same path.)

Claude Code

mkdir -p ~/.claude/skills/css-protips
cp node_modules/css-pro-tips/SKILL.md ~/.claude/skills/css-protips/

Project-scoped instead? Use .claude/skills/css-protips/SKILL.md in your repo. Restart Claude Code; it auto-discovers the skill by its frontmatter.

OpenAI Codex CLI

mkdir -p ~/.codex/skills/css-protips
cp node_modules/css-pro-tips/SKILL.md ~/.codex/skills/css-protips/

For a team repo, check it into .agents/skills/css-protips/SKILL.md instead. Codex recognizes any directory containing a file named exactly SKILL.md. (docs)

OpenCode

mkdir -p .opencode/skills/css-protips
cp node_modules/css-pro-tips/SKILL.md .opencode/skills/css-protips/

OpenCode also reads .claude/skills/ and .agents/skills/, so if you've already installed for Claude Code or Codex in the same repo, OpenCode picks it up with no extra step. (docs)

Pi (@earendil-works/pi-coding-agent)

mkdir -p ~/.pi/skills/css-protips
cp node_modules/css-pro-tips/SKILL.md ~/.pi/skills/css-protips/

Invoke it in a session with /skill:css-protips. (docs)

Cursor

Cursor uses rules (.mdc), not SKILL.md. Reference the skill from a rule so Cursor loads it on CSS work:

mkdir -p .cursor/rules
cp node_modules/css-pro-tips/SKILL.md .cursor/rules/css-protips.mdc

Then add this frontmatter to the top of .cursor/rules/css-protips.mdc:

---
description: Modern, Baseline-aware CSS patterns and pro-tips
globs: ["**/*.css", "**/*.scss", "**/*.{tsx,jsx,vue,svelte,astro}"]
alwaysApply: false
---

Kiro

Kiro uses steering files (plain markdown):

mkdir -p .kiro/steering
cp node_modules/css-pro-tips/SKILL.md .kiro/steering/css-protips.md

Use ~/.kiro/steering/ for a global, all-workspace install. (docs)

Any other agent

The skill is plain Markdown with YAML frontmatter. Point your agent's instruction file (AGENTS.md, a system prompt, a rules file) at SKILL.md, or paste its contents in. The .agents/skills/ and .claude/skills/ conventions are honored by a growing set of agents.


Updating

npm update css-pro-tips
# then re-copy SKILL.md into your agent's skills dir

On a Mac/Linux box, symlink instead of copy to stay current automatically:

ln -sf "$(pwd)/node_modules/css-pro-tips/SKILL.md" ~/.claude/skills/css-protips/SKILL.md

Credits

This skill is original work: a Baseline-validated, agent-oriented reimagining with a curated Modern CSS section and modernization guidance not present upstream. See SOURCE.txt for the full provenance trail.

Contributing

PRs welcome. When adding or changing a modern-CSS claim, cite the Baseline status (with a source) so the file stays verifiable. Keep the evergreen tips evergreen — if a tip is superseded by a native feature, add it to the "Modernize older tips" section rather than deleting the original.

Author & maintainer

Created by Mohamed Elkholy@mohamed-elkholy95. Maintained under Pythoughts.

License

MIT © 2026 Mohamed Elkholy