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

agent-installer

v0.5.2

Published

Install Codex skills and Claude Code skills and commands from a local repository.

Downloads

240

Readme

agent-installer

agent-installer is a local TypeScript CLI for installing agent artifacts from a repository into Codex and Claude Code.

It is built for repositories that keep:

  • skills in skills/
  • reusable prompt or command files in prompts/ or commands/

The CLI scans that repository, shows what is available, and installs the selected items into the expected local directories.

What It Supports

  • Codex skills
  • Claude Code skills
  • Claude Code command-style prompts

Current scope:

  • local directories or HTTPS Git repositories
  • convention-based scanning
  • no manifest file

Expected Repository Layout

my-agent-repo/
  skills/
    review/
      SKILL.md
    engineering/
      code-review/
        SKILL.md
  prompts/
    commit-message.md
  commands/
    release-notes.md

Rules:

  • a skill is valid only if its directory contains SKILL.md
  • skill directories may be nested below skills/; the default scan depth is 3 directory levels below skills/
  • a skill's install name is the basename of the directory containing SKILL.md
  • duplicate skill names are rejected, even if they appear in different nested categories
  • prompt and command files must be Markdown files
  • prompts/foo.md and commands/foo.md cannot both exist

Cross-Runtime Invocation Policy

A skill that declares the Claude Code frontmatter setting disable-model-invocation: true is meant to be invoked explicitly rather than selected by the model. agent-installer translates that intent for Codex:

| Claude Code source frontmatter | Codex metadata in the managed copy | | ----------------------------------- | ------------------------------------------ | | disable-model-invocation: true | agents/openai.yaml with policy.allow_implicit_invocation: false |

---
name: review
disable-model-invocation: true
---

# Review

Behavior:

  • the translation is automatic in every install mode: interactive, scan, install --all, and remote Git sources
  • only a literal boolean true translates; "true", 1, yes, false, and a missing setting change nothing
  • the agents/openai.yaml it writes is a detail of the managed copy under ~/.agents; the source repository is never modified
  • Codex still runs the skill when it is invoked explicitly; only implicit selection is disabled
  • there is no CLI flag for the translation, and none is required
  • removing the setting from the source removes the generated file on the next update, and uninstalling removes it with the skill

Skills that already ship Codex metadata

A skill may ship its own agents/openai.yaml. When the Claude setting enables the translation, the managed copy is that authored file with the invocation policy applied on top:

# skills/review/agents/openai.yaml in the source repository
interface:
  arguments:
    - name: path
dependencies:
  - jq
policy:
  allow_implicit_invocation: true
# ~/.agents/skills/review/agents/openai.yaml after installation
interface:
  arguments:
    - name: path
dependencies:
  - jq
policy:
  allow_implicit_invocation: false

Rules:

  • authored interface, dependency, and other metadata is retained, including sibling keys under policy and comments; the file is re-serialized, so its formatting may be normalized even though its content is not
  • precedence: when the authored Codex policy and the Claude setting disagree, disable-model-invocation: true wins, because it is the cross-runtime declaration being translated; only the managed copy changes
  • an authored policy that already disables implicit invocation is kept as is, and a rescan reports installed-same
  • an empty policy: key carries no authored intent, so the translation fills it in
  • if the translation applies but the authored metadata cannot be parsed as a YAML mapping, the run fails with a source-configuration error and the managed copy is neither created nor changed; because reconciliation resolves the translation up front, this aborts scan as well as an install
  • when the Claude setting does not enable the translation, authored metadata is copied verbatim and never validated

Installation

Install directly from GitHub:

pnpm add -g github:lbacik/agent-installer

Or with npm:

npm install -g github:lbacik/agent-installer

For local development, install dependencies:

pnpm install

Build the CLI:

pnpm build

Run it during development:

pnpm dev

Usage

From inside a source repository:

agent-installer

Or point it at a repository explicitly:

agent-installer /path/to/repo

Or point it at an HTTPS Git repository:

agent-installer https://github.com/org/agents.git

Commands

Interactive install:

agent-installer [path]

Install interactively from a remote ref:

agent-installer https://github.com/org/agents.git --ref main

Limit the visible interactive list length:

agent-installer [path] --list-length 12

Show scan results only:

agent-installer scan [path]

Show scan results for a remote tag, branch, or commit:

agent-installer scan https://github.com/org/agents.git --ref v1.2.0

Scan deeper nested skill catalogs:

agent-installer scan [path] --skill-max-depth 5

Install or update everything found:

agent-installer install [path] --all

By default, install --all aborts with a non-zero exit and installs nothing if any discovered artifact is a conflict (a target path exists but is not managed by this installer). Pass --allow-conflicts to install the remaining eligible artifacts anyway; skipped conflicts are still reported on stderr.

agent-installer install [path] --all --allow-conflicts

Install or update everything found from a remote ref:

agent-installer install https://github.com/org/agents.git --ref main --all

Remove managed entries by id:

agent-installer uninstall skill:review prompt:commit-message

Interactively list installed managed entries. Unselect entries to uninstall them:

agent-installer list

Limit the visible interactive list length:

agent-installer list --list-length 12

Typical Workflow

  1. Change into a repository that contains skills/, prompts/, or commands/.
  2. Run agent-installer.
  3. Review the discovered items and their statuses.
  4. Keep selected items installed, update changed ones, or remove managed items that should no longer remain installed.

For remote HTTPS Git repositories, the CLI uses the installed git command and the user's existing HTTPS credential helpers. Remote checkouts are temporary and are removed after the command completes.

Development

Useful commands:

pnpm typecheck
pnpm test
pnpm build

AGENTS.md is the maintainer and agent-facing document for repository rules, internal structure, and implementation invariants.