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

@nolrm/contextkit

v0.11.0

Published

ContextKit - Context Engineering for AI Development. Provide rich context to AI through structured MD files with standards, code guides, and documentation. Works with Cursor, Claude, Aider, VS Code Copilot, and more.

Downloads

891

Readme

ContextKit

Context Engineering for AI Development

Give your AI assistants (Cursor, Claude, Copilot, Codex, Gemini, Aider, Continue, Windsurf) structured context through markdown files. ContextKit creates a knowledge base that ensures AI generates code matching your exact patterns, style, and architecture—no more hallucinated code or mismatched conventions.

ContextKit is a CLI tool that provides context-engineering capabilities by creating .contextkit/ directories with project standards, guidelines, and patterns that AI assistants read automatically.

Read the full documentation

Why ContextKit?

The problem: LLMs are great at syntax, not at your conventions. Generic AI output requires manual fixes for style, structure, and architecture.

The solution: ContextKit provides your AI with:

  • Glossary of project terminology and business terms (e.g., checkout, customer, order)
  • Standards for code style, testing patterns, and architecture
  • Templates with canonical component shapes

Update .md files as your project evolves; the AI follows.

Multi-Platform Support

Works with: CursorClaude CodeGitHub CopilotCodex CLIGemini CLIAiderContinueWindsurf

Each platform gets auto-loaded bridge files (CLAUDE.md, AGENTS.md, GEMINI.md, .windsurfrules, etc.) so your AI tools read project standards automatically. Claude Code uses @ imports in CLAUDE.md to load standards content directly into context — no extra token cost from manual file reads.


Quick Start (60s)

Requirements: Node.js 14.x+ (16.x+ recommended) and npm/yarn. Optional: Git for hooks, AI tools for usage.

# Step 1: Install globally (recommended)
npm i -g @nolrm/contextkit

# Step 2: Navigate to your project and install
cd your-project
contextkit install          # interactive — prompts "Which AI tool?"
contextkit install claude   # or specify your platform directly

This creates .contextkit/ with skeleton context files (blank templates to be filled by AI):

.contextkit/
  standards/       # Skeleton files: code-style.md, testing.md, architecture.md, ai-guidelines.md, workflows.md
                  # Real files: glossary.md (universal), README.md (overview)
  commands/        # analyze.md (project analysis & customization)
  templates/       # skeleton template files (component, test, story, hook, api)

Generate content with AI (recommended):

ck analyze
# AI scans your codebase and generates content for the skeleton files
# or in Cursor chat:  @.contextkit/commands/analyze.md

⚠️ Important: After running ck analyze, manually review and edit the generated content to match your exact needs. The AI provides a starting point, but you must customize it.


Multi-Team Workflow

Perfect for teams where members use different AI tools:

# First team member - sets up the project with their tool
contextkit install claude   # or: contextkit install (interactive picker)

# Each additional team member adds their platform
ck claude      # creates CLAUDE.md + .claude/rules/
ck cursor      # creates .cursor/rules/ (scoped .mdc files)
ck copilot     # creates .github/copilot-instructions.md
ck codex       # creates AGENTS.md
ck gemini      # creates GEMINI.md + .gemini/settings.json
ck aider       # creates CONVENTIONS.md + .aider/rules.md
ck continue    # creates .continue/rules/ + config.yaml
ck windsurf    # creates .windsurfrules + .windsurf/rules/
ck vscode      # alias for copilot

Each platform generates bridge files that the AI tool auto-reads. If a bridge file already exists (e.g., you have a custom CLAUDE.md), ContextKit appends its section below your content instead of overwriting. Share your .contextkit/standards/*.md files with the team and everyone gets the same context.


See the difference (before → after)

Prompt

"Add checkout flow for customer"

What the AI does with ContextKit

  • Reads glossary.mdcheckout = checkout process; customer = customer account
  • Applies code-style.md → strict TS, functional components
  • Follows testing.md → numbered test cases

Result (diff)

- const Checkout = () => <button>Buy</button>
+ export function CheckoutFlow({ customer }: { customer: string }) {
+   // Uses customer from glossary context
+   return <div>Checkout for {customer}</div>
+ }

Use it in your tool

Cursor — rules auto-load from .cursor/rules/, slash commands in .cursor/prompts/

/analyze    # scan codebase and generate standards
/review     # code review with checklist
/fix        # diagnose and fix bugs

Claude CodeCLAUDE.md uses @ imports to auto-load all standards into context every session (no manual reads needed, saves tokens). Slash commands in .claude/commands/.

/analyze    # scan codebase and generate standards
/review     # code review with checklist
claude "create checkout flow for customer"

GitHub Copilot — reads .github/copilot-instructions.md automatically

@.contextkit Create checkout flow for customer

Codex CLI — reads AGENTS.md automatically

codex "create checkout flow for customer"

CLI (Chat with AI)

ck ai "create a button"

Slash Commands

ContextKit installs reusable slash commands for supported platforms:

| Command | What it does | |---------|-------------| | /analyze | Scan codebase and generate standards content | | /review | Code review with checklist | | /fix | Diagnose and fix bugs | | /refactor | Refactor code with safety checks | | /test | Generate comprehensive tests | | /doc | Add documentation | | /squad | Kick off a squad task — write the PO spec | | /squad-architect | Design the technical plan from the PO spec | | /squad-dev | Implement code following the architect plan | | /squad-test | Write and run tests against acceptance criteria | | /squad-review | Review the full pipeline and give a verdict | | /squad-batch | Kick off multiple tasks at once (batch PO specs) | | /squad-run | Auto-run the remaining pipeline for batch tasks (sequential) | | /squad-run-agents | Auto-run the pipeline in parallel using Claude Code agents (Claude Code only) | | /ck | Health check — verify setup, standards, and integrations |

Claude Code — available as /analyze, /review, etc. in .claude/commands/ Cursor — available as slash commands in Chat via .cursor/prompts/

Both platforms delegate to the universal command files in .contextkit/commands/, so you maintain one set of workflows.


Squad Workflow

The squad workflow turns a single AI session into a structured multi-role pipeline. Each role has its own slash command that reads and writes to a shared handoff file (.contextkit/squad/handoff.md), simulating a team of specialists.

Pipeline Roles

| Step | Role | Command | What it does | |------|------|---------|-------------| | 1 | Product Owner | /squad | Writes a user story, acceptance criteria, edge cases, and scope | | 2 | Architect | /squad-architect | Designs the technical approach, files to change, and implementation steps | | 3 | Developer | /squad-dev | Implements the code following the architect's plan | | 4 | Tester | /squad-test | Writes and runs tests against the PO's acceptance criteria | | 5 | Reviewer | /squad-review | Reviews everything and gives a PASS or NEEDS-WORK verdict |

Single-Task Flow

/squad "add dark mode support"        # PO writes the spec
/squad-architect                       # Architect designs the plan
/squad-dev                             # Dev implements the code
/squad-test                            # Tester writes and runs tests
/squad-review                          # Reviewer gives the verdict

Batch Flow

For multiple tasks, use batch mode to spec them all up front, then run the full pipeline automatically:

/squad-batch "add dark mode" "fix login bug" "refactor checkout"
# PO writes specs for all three tasks

/squad-run
# Runs Architect → Dev → Test → Review for each task sequentially

Agent mode (Claude Code only): Use /squad-run-agents instead of /squad-run to spawn parallel subagents — one per task per phase — so all tasks progress simultaneously rather than one at a time.

/squad-batch "add dark mode" "fix login bug" "refactor checkout"

/squad-run-agents
# Phase 1: architect agents for all 3 tasks run in parallel
# Phase 2: dev→test→review pipeline runs in parallel per task

Feedback Loop

Any downstream role can raise questions for an upstream role. When this happens, the pipeline pauses and directs you to the right command:

Reviewer has questions for Dev → run /squad-dev to clarify
Tester has questions for Architect → run /squad-architect to clarify
Architect has questions for PO → run /squad to clarify

After clarifications are added, re-run the asking role's command to continue. This prevents misunderstandings from compounding through the pipeline.


Git Hooks & Quality Gates

ContextKit can optionally install Git hooks during ck install. Uses git config core.hooksPath to point Git at .contextkit/hooks/ — no external dependencies like Husky required. Works in any git repo, not just Node.js projects.

For Node.js projects, a prepare script is automatically added to package.json so hooks activate for all developers after npm install — no need for everyone to run ck install.

| Hook | What it does | |------|-------------| | pre-push | Quality Gates — auto-detects your project framework and runs the appropriate checks | | commit-msg | Enforces Conventional Commits format |

Framework-Aware Quality Gates

The pre-push hook detects your project type and runs the right quality checks automatically. All gates skip gracefully when tools aren't installed.

| Framework | Checks | |-----------|--------| | Node.js | TypeScript, ESLint, Prettier, build, test (auto-detects npm/yarn/pnpm/bun) | | Python | ruff/flake8, mypy, black/ruff format, pytest | | Rust | cargo check, clippy, cargo test | | Go | go vet, golangci-lint, go test | | PHP | PHPStan, PHPUnit | | Ruby | RuboCop, RSpec/rake test | | Java | Maven verify / Gradle check |

Commit Message Format

When the commit-msg hook is enabled, all commits must follow this format:

<type>(<scope>): <description>

Types: feat, fix, docs, style, refactor, test, chore

Examples:

git commit -m "feat(auth): add login page"
git commit -m "fix: resolve null pointer in checkout"
git commit -m "docs: update API reference"
git commit -m "test(cart): add edge case coverage"

Hooks are optional and can be skipped with ck install --no-hooks.


Key Features

  • 🧠 Context Engineering - Structured MD files your AI reads automatically
  • 🔍 Smart Analysis - AI generates standards content based on your codebase
  • 🌍 Project Agnostic - Works with React, Vue, Node.js, PHP, Python, Rust, monorepos—any project type
  • 🤖 Multi-Platform - Works with Cursor, Claude Code, Copilot, Codex, Gemini, Aider, Continue, Windsurf
  • 🛡️ Safe Install - Backs up existing files with rollback support
  • Zero Config - Auto-detects project type and package manager
  • Policy Enforcement - Configurable validation with ck check
  • 📝 Corrections Tracking - Track AI performance issues with corrections log
  • 🔄 Workflow Orchestration - Structured workflows with ck run
  • 📦 Registry System - Share standards across teams with ck publish/pull
  • 📊 Observability Dashboard - Visual metrics and compliance tracking

Commands

# Installation & Setup
ck install            # set up .contextkit + pick AI tool interactively
ck install claude     # set up .contextkit + Claude (no prompt)
ck claude      # add Claude Code integration (CLAUDE.md + rules)
ck cursor      # add Cursor integration (scoped .mdc rules)
ck copilot     # add GitHub Copilot integration
ck codex       # add Codex CLI integration (AGENTS.md)
ck gemini      # add Gemini CLI integration (GEMINI.md)
ck aider       # add Aider integration (CONVENTIONS.md)
ck continue    # add Continue integration
ck windsurf    # add Windsurf integration (.windsurfrules)
ck vscode      # alias for copilot

# Analysis & Updates
ck analyze     # customize standards to your project
ck update      # pull latest updates
ck status      # check install & integrations

# Validation & Compliance
ck check       # validate installation & policy compliance
ck check --strict  # treat warnings as errors

# Corrections Logging
ck note "message"  # add note to corrections log
ck note "AI issue" --category "AI Behavior" --priority HIGH

# Workflow Orchestration
ck run <workflow>  # run structured workflow
ck run create-component  # example workflow
ck run create-component --interactive  # interactive mode

# Registry & Versioning
ck publish --name @company/react-standards --version 1.0.0
ck pull @company/[email protected]
ck pull @company/react-standards@latest --backup

# Observability
ck dashboard   # start web dashboard
ck dashboard --no-server  # CLI metrics only

# AI Usage (loads .contextkit context automatically)
ck "create a button"  # quick AI chat with context
ck ai "create a button"  # explicit AI command

Links

• 🐛 Issues • 💬 Discussions


License

MIT

Author

Marlon Maniti
GitHub: @nolrm