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

@clubmatto/ai-kit

v0.0.11

Published

The AI configuration CLI from Club Matto

Downloads

214

Readme

ai-kit

CI npm version License: MIT

The AI configuration CLI from Club Matto. Sync rules, skills, and commands to power up your AI coding workflow.

Table of Contents

Install

npm install -g @clubmatto/ai-kit

Requires Node.js 18+.

Quick Start

# Sync AI configuration to your project
ai-kit sync

That's it. AI Kit detects your project's languages and installs the right rules, skills, and commands automatically.

# See what changed
ai-kit sync

# Example output:
#   ai-kit v0.0.9  The AI configuration CLI
#   from Club Matto
#
#     Syncing AI rules, skills, and commands to your project...
#
#     → Installing TypeScript rules
#       ✓ .agents/rules/typescript.md
#       ✓ .agents/rules/react.md
#     → Installing Go rules
#       ✓ .agents/rules/go.md
#
#     ✓ Done!
#     +5 added

Usage

# Initialize or update AI configuration
ai-kit sync

# Skip installing opencode.json
ai-kit sync --skip-opencode

# Language detection & filtering
ai-kit sync --all-rules              # Install all language rules
ai-kit sync --languages=go,kotlin    # Install specific language rules
ai-kit sync --monorepo               # Force monorepo AGENTS.md template
ai-kit sync --single-repo            # Force single-repo AGENTS.md template

Detected Languages

| Language | Detection File | | ----------------------- | ---------------------------------------------------------- | | TypeScript / JavaScript | package.json, .ts / .js files | | Go | go.mod, .go files | | Kotlin | build.gradle, build.gradle.kts, pom.xml, .kt files | | Spring Boot | application.properties / .yml + Kotlin / Java files | | Generic | Fallback when nothing matches |

Multiple languages trigger monorepo mode (all rules + monorepo AGENTS.md). Single language triggers single-repo mode (language-specific AGENTS.md).

Options Reference

| Option | Description | | --------------------- | -------------------------------------------------- | | --skip-opencode | Skip installing opencode.json to project root | | --all-rules | Install all language rules regardless of detection | | --languages=<langs> | Comma-separated language list (e.g. go,kotlin) | | --monorepo | Force monorepo AGENTS.md template | | --single-repo | Force single-repo AGENTS.md template |

Language Detection

AI Kit scans your project directory for language signatures:

  • TypeScript / JavaScript: Looks for package.json or .ts / .js files
  • Go: Looks for go.mod or .go files
  • Kotlin: Looks for build.gradle, build.gradle.kts, pom.xml or .kt files
  • Spring Boot: Looks for application.properties / .yml plus Kotlin / Java files

If no languages are detected, AI Kit installs all available rules (monorepo mode).

Rule Files

Each detected language gets its own rule file. Rules are self-contained markdown files under .agents/rules/.

Ordered Setup

When multiple languages are detected, the setup follows a deterministic order: rules for each language are installed in the order they were detected. The AGENTS.md template adapts to monorepo or single-repo mode automatically.

What's Installed

| Location | Description | | ----------------- | ------------------------------------------- | | .agents/rules/ | Language / framework rules (auto-detected) | | .agents/skills/ | Reusable AI capabilities | | opencode.json | Opencode configuration (optional) | | AGENTS.md | Agent instructions (monorepo / single-repo) |

File Details

Language Rules (.agents/rules/):

| Rule File | Description | | ---------------- | ------------------------------------------ | | typescript.md | TypeScript conventions, project structure | | go.md | Go conventions, project structure | | kotlin.md | Kotlin conventions, project structure | | spring-boot.md | Spring Boot conventions, project structure |

General Rules (always installed):

| Rule File | Description | | -------------- | ------------------------------------------------ | | plan-mode.md | Plan mode: concise plans, no time estimates | | unsure.md | When instructions are ambiguous, ask for clarity | | writing.md | Writing style: progressive disclosure, no dashes |

New rules are added over time. Run ai-kit sync --all-rules to install everything available.

Skills (.agents/skills/):

| Skill File | Description | | ---------------- | ------------------------------------------------- | | playwright-cli | Playwright CLI integration for browser automation |

Commands (configured in opencode.json):

| Command | Description | | ----------- | ------------------------------------- | | commit | Generate conventional commit messages | | pr-review | Review pull requests | | synth | Synthesize technical decisions |

Commands Reference

| Command | Description | | ------------- | ------------------------------------- | | ai-kit sync | Initialize or update AI configuration |

Local Development

# Build the CLI
npm run build

# Link for local testing
npm link

# Test in any directory
ai-kit sync

Project Structure

ai-kit/
├── src/
│   ├── index.ts              # CLI entry point (commander setup)
│   ├── cmd/
│   │   └── sync.ts           # sync command implementation
│   ├── commands/             # Agent command definitions
│   │   ├── commit.md
│   │   ├── interview.md
│   │   └── synth.md
│   ├── detection/            # Language detection
│   │   ├── detect.ts
│   │   └── language-detectors.ts
│   ├── rules/                # Language rule files
│   │   ├── go.md
│   │   ├── typescript.md
│   │   ├── kotlin.md
│   │   └── spring-boot.md
│   ├── skills/               # Skill files
│   │   └── playwright-cli/
│   ├── agents/               # AGENTS.md templates
│   ├── logger.ts
│   ├── manifest.ts
│   ├── output.ts
│   ├── plan.ts
│   ├── reader.ts
│   └── template.ts
├── package.json
└── tsconfig.json

Adding a Rule

  1. Add a markdown file to src/rules/<language>.md
  2. Add a corresponding detector in src/detection/language-detectors.ts
  3. The rule becomes available via ai-kit sync for matching projects

Adding a Command

  1. Add a markdown file to src/commands/<name>.md
  2. Run ai-kit sync — commands are automatically wired into opencode.json

Release

# Bump version in package.json first
git add ai-kit/package.json
git commit -m "release: bump version to <version>"

# Create git tag and push both (tag triggers automated release)
git tag -a ai-kit/v<version> -m "v<version>"
git push origin main --follow-tags

License

MIT — see LICENSE for details.