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

@notionx/skill

v0.2.1

Published

One-command installer for the official notionx AI agent skill (Claude Code, Trae IDE, OpenAI Codex).

Readme

@notionx/skill

One-command installer for the official notionx AI agent skill. Supports Claude Code, Trae IDE, and OpenAI Codex.

notionx is a Next.js App Router framework on Cloudflare Workers with Notion as the CMS. This package teaches any AI coding assistant how to work on a notionx project — see SKILL.md for the full description.

Install the skill

# User-scope for the primary editors (Claude Code, Codex, Trae):
npx @notionx/skill install --target all --scope user

# Project-scope shared skill for agents that read .agents/skills:
npx @notionx/skill install --target shared --scope project

Run npx @notionx/skill help to see the help text, or npx @notionx/skill info to see exactly where files would land for each target.

Commands

| Command | Description | |---|---| | install | Load the skill and write it to one or more targets | | uninstall | Remove files written by install | | info | Show the install plan without writing anything | | help | Show usage |

Flags

| Flag | Default | Notes | |---|---|---| | --target | all | claude, codex, trae, trae-cn, shared, codex-rules, or all (claude,codex,trae). Aliases: claude-code -> claude, agents/universal -> shared. | | --scope | user | user (editor global skills dir) or project (current repo) | | --source | npm | npm (bundled in this package), local (monorepo), github (raw from digwis/notionx) | | --ref | main | Git ref for --source=github | | --cwd | $PWD | Project root for --scope=project | | --force | false | Overwrite existing skill files (codex-rules: overwrite AGENTS.md) | | --dry-run | false | Print what would be written; don't touch disk | | --json | false | Machine-readable output |

Where files go

| Target | User-scope | Project-scope | |---|---|---| | claude | ~/.claude/skills/notionx/ | ./.claude/skills/notionx/ | | codex | ${CODEX_HOME:-~/.codex}/skills/notionx/ | ./.agents/skills/notionx/ | | trae | ~/.trae/skills/notionx/ | ./.trae/skills/notionx/ | | trae-cn | ~/.trae-cn/skills/notionx/ | ./.trae/skills/notionx/ | | shared | ~/.agents/skills/notionx/ | ./.agents/skills/notionx/ | | codex-rules | ${CODEX_HOME:-~/.codex}/AGENTS.md | ./AGENTS.md |

codex installs a real Codex skill directory with SKILL.md, references, and OpenAI metadata. codex-rules is a separate rule-only target for users who also want a ## notionx section appended to AGENTS.md.

Examples

# Try the latest unreleased skill from main:
npx @notionx/skill install --target claude --source github --ref main

# Dry-run: see what would be written for the primary editors, project-scope:
npx @notionx/skill install --target all --scope project --dry-run

# Install only Codex globally:
npx @notionx/skill install --target codex --scope user

# Add project-level Codex rules to AGENTS.md:
npx @notionx/skill install --target codex-rules --scope project

# Uninstall the Codex skill directory:
npx @notionx/skill uninstall --target codex

# Machine-readable install for CI:
npx @notionx/skill install --target all --scope project --json

How it works

The skill content lives at the top of the notionx monorepo: skills/notionx/. When this npm package is published, a prepublish script copies that folder into skill/ so it's bundled with the tarball. At runtime the CLI:

  1. Resolves the skill from one of --source=local|github|npm.
  2. Builds an in-memory SkillBundle (SKILL.md + references + metadata + target rules).
  3. For each target, runs a small installer that writes the right files into the right place.

The CLI has no third-party runtime dependencies — only Node ≥ 22.

Development

pnpm install
pnpm test          # vitest
pnpm build         # tsup → dist/cli.js
pnpm dev install --target codex --scope project --source local

The pretest and prebuild scripts run scripts/sync-bundled-skill.mjs, which copies ../../skills/notionx/ into this package's skill/ folder. That keeps the bundled content in sync with the source of truth.

License

MIT © zhaofilms — same as the rest of the notionx monorepo.