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

deweyou-cli

v1.0.1

Published

Dewey's personal agent workflow bootstrapper

Readme

deweyou-cli

deweyou-cli bootstraps reusable agent workflows into any local repository. It manages the repo-level wiring for selected skills, rules, and design contracts while keeping the source assets in the central deweyou/agents hub.

The v0 scope is intentionally small:

  • cache skills, rules, and design contracts from a local deweyou/agents checkout
  • initialize a repository with selected skills, rules, and an optional DESIGN.md
  • render the active agent context for the current repository
  • diagnose whether the current repository is wired correctly

Install

From npm:

npm install -g deweyou-cli

Then refresh the local asset cache:

deweyou-cli agent update

By default, agent update clones or pulls https://github.com/deweyou/agents.git into ~/.deweyou/agents/source. For local development, set DEWEYOU_AGENTS_SOURCE=/path/to/deweyou/agents to use a specific checkout instead.

Quick Start

cd /path/to/your/repo
deweyou-cli agent init
deweyou-cli agent doctor
deweyou-cli agent context --format markdown
deweyou-cli agent -h
deweyou-cli -v

For a non-interactive setup that selects everything:

deweyou-cli agent init --all --mode link --yes

Mental Model

deweyou/agents is the asset hub. It owns skills/, rules/, and design/.

deweyou-cli is the workflow manager. It scans the hub assets, generates a cache registry under your home directory, then writes a small .agents/manifest.json into each repository so the repository knows which assets are active.

Each repository chooses its own asset set. A coding repo can select coding skills and rules; a writing or design repo can select different ones and install a design contract as root DESIGN.md.

Commands

General options:

| Option | Meaning | |--------|---------| | -h, --help | Show help. Supports nested help such as deweyou-cli agent -h and deweyou-cli agent init -h. | | -v, --version | Show the installed CLI version. |

deweyou-cli agent update

Refreshes the local agent asset cache from the default deweyou/agents source checkout.

deweyou-cli agent update

This command writes the global cache at:

~/.deweyou/agents/

Run this after changing or pulling updates in the asset hub.

Source selection:

  • Default: clone or pull https://github.com/deweyou/agents.git under ~/.deweyou/agents/source.
  • Override: set DEWEYOU_AGENTS_SOURCE=/path/to/deweyou/agents to scan a local checkout.

deweyou-cli agent init

Initializes the current repository with selected skills, rules, and an optional design contract.

deweyou-cli agent init

Usage:

deweyou-cli agent init [--all] [--skills a,b] [--rules a,b] [--design name] [--mode link|copy|pointer] [--global|--scope project|global] [--tools codex,claude|all] [--rule-wiring reference|inline] [--yes] [--dry-run] [--force]

Without selection flags, this opens an interactive setup where you choose:

  • install mode
  • skills
  • rules
  • design contract

Scripted examples:

deweyou-cli agent init --all --mode link --yes
deweyou-cli agent init --skills repo-memory,spec-driven-coding,git-delivery --rules code-style
deweyou-cli agent init --skills ui-design --design dewey-interface --mode link
deweyou-cli agent init --global --tools codex --skills repo-memory,git-delivery --yes
deweyou-cli agent init --scope project --tools codex,claude --rules code-style --mode link
deweyou-cli agent init --scope global --tools codex,claude --skills repo-memory,git-delivery --yes
deweyou-cli agent init --scope global --tools all --rules code-style --rule-wiring reference --yes
deweyou-cli agent init --dry-run

Flags:

| Flag | Meaning | |------|---------| | --all | Select every skill and rule from the cached registry. Design contracts are explicit via --design. | | --skills a,b | Select only the listed skill ids. Values are comma-separated. | | --rules a,b | Select only the listed rule ids. Values are comma-separated. | | --design name | Install the selected design contract as root DESIGN.md. Project scope only. | | --mode link\|copy\|pointer | Choose how project repositories reference selected assets. Global skill installs always use symlinks. | | --global | Shortcut for --scope global; installs selected skills into tool-native user skill directories. | | --scope project\|global | Choose project-level or user-level installation. | | --tools codex,claude\|all | Choose target agent tools for global installs and instruction wiring. | | --rule-wiring reference\|inline | Choose whether selected rules are referenced by path or inlined into instruction files. | | --yes | Run without prompts. Requires --all, --skills, --rules, or --design. | | --dry-run | Print the planned files without writing them. | | --force | Replace existing managed asset destinations when needed. |

--yes does not guess a default asset set. It only confirms a scripted selection you already provided.

deweyou-cli agent context

Prints the active agent context for the current repository.

deweyou-cli agent context --format markdown
deweyou-cli agent context --format json

Formats:

| Format | Meaning | |--------|---------| | markdown | Human-readable instructions and asset paths. This is the default. | | json | Structured context for tooling or future integrations. |

The context output tells an agent which skills, rules, and design contracts are active, where their files live, whether the hub commit changed, and whether any selected asset hash changed in the local cache.

deweyou-cli agent doctor

Checks whether the current repository and local cache are healthy.

deweyou-cli agent doctor

It verifies:

  • local cache registry exists and is valid
  • repository .agents/manifest.json exists and is valid
  • AGENTS.md exists when selected rules or a design contract require repository instructions
  • selected skills, rules, and design contracts still exist in the registry
  • selected asset hashes match the repository's initialized snapshot
  • selected asset files are present
  • symlinks are valid when using link mode

The command exits with a non-zero status when a check fails.

Install Modes

| Mode | Repository Writes | Best For | |------|-------------------|----------| | link | Installs selected skills through npx skills; symlinks selected rules and optionally root DESIGN.md. | Daily local work where updates should be immediately visible after cache refresh. | | copy | Installs selected skills through npx skills --copy; copies selected rules and optionally root DESIGN.md. | Repositories that should keep a snapshot of the selected assets. | | pointer | Writes .agents/manifest.json; selected assets stay in the global cache. AGENTS.md is updated only when selected rules or a design contract require repository instructions. | Minimal repo footprint and tooling that can follow absolute cache paths. |

Files Created

Depending on the selected mode, deweyou-cli agent init may create or update:

AGENTS.md
.agents/manifest.json
.agents/skills/<skill>/SKILL.md
.agents/rules/<rule>.md
DESIGN.md

AGENTS.md receives managed sections only when selected rules or a design contract require repository instructions. Existing content outside those managed sections is preserved.

Project installs write repository instruction files such as AGENTS.md and CLAUDE.md. Skill installs are delegated to npx skills add, which writes the selected skill package into agent-native skill directories such as .agents/skills/<skill> or .claude/skills/<skill> for project installs and ~/.agents/skills/<skill> or ~/.claude/skills/<skill> for global installs. Global rule installs write user-level instruction files such as ~/.codex/AGENTS.md and ~/.claude/CLAUDE.md.

Safety Notes

  • Run deweyou-cli agent update before deweyou-cli agent init.
  • Asset ids must be kebab-case and must exist in the cached registry.
  • --force only replaces destinations that are already managed by this CLI. It refuses to overwrite unrelated user-created files or directories.
  • --dry-run is the safest way to preview what init would write.
  • Set DEWEYOU_AGENTS_SOURCE only when you want to override the default source checkout, usually while developing this asset hub locally.

Development

The CLI source and tests are written in TypeScript. Vite+ builds the published JavaScript files into dist/.

npm run typecheck
npm test
npm run test:coverage
npm run build
npm pack --dry-run

Release

Merging CLI package changes into main runs the release workflow. It typechecks, runs tests, verifies the package with npm pack --dry-run, infers the next version from conventional commit messages, prepends CHANGELOG.md, tags cli-vX.Y.Z, and publishes deweyou-cli to npm.

Release commit rules:

  • feat: creates a minor release.
  • fix:, perf:, and refactor: create a patch release.
  • ! or BREAKING CHANGE creates a major release.
  • docs: entries are included in the changelog only when another releasable CLI commit is present.
  • test: and chore: do not publish by themselves.

Relationship To deweyou/agents

deweyou/agents continues to provide the actual skills, rules, design contracts, and asset validation workflow. The CLI generates the cache registry during deweyou-cli agent update.

deweyou-cli does not replace those assets. It gives every repository a repeatable way to choose and wire the assets it wants, without manually copying or linking the same files again and again.