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

@agentyx/adapters

v0.5.0

Published

Provider adapters, MCP rendering and safe install planning for Agentyx.

Downloads

1,148

Readme

@agentyx/adapters

Provider adapters for Agentyx: the layer that turns an already-resolved Agentyx environment into the files a specific coding agent expects.

Agentyx packs, skills, MCP definitions, and tool checks describe development environments, never providers, so everything a provider knows lives here rather than in @agentyx/core. This package depends on core; core never depends on it.

Targets

| Id | Agent | Project skill destination | | -------- | ----------- | ------------------------- | | codex | Codex | .agents/skills | | claude | Claude Code | .claude/skills | | kimi | Kimi Code | .agents/skills |

Both destinations are the providers' documented project-local conventions: Codex reads repository skills from the vendor-neutral .agents/skills, Claude Code from .claude/skills, and Kimi Code also scans project .agents/skills. Installation is project-local — nothing is written to $HOME.

Plan first, then write

import { applyInstallPlans, planInstall } from "@agentyx/adapters";
import { builtInSkillRegistry } from "@agentyx/core";

const skills = ["planning", "angular-modern"].map((name) => builtInSkillRegistry.get(name));

// Reads the destinations to classify each file, and writes nothing.
const plans = await planInstall({ targets: ["codex", "claude", "kimi"], projectDir, skills });

// The only code in Agentyx that mutates a project. Skipping it is a dry run.
await applyInstallPlans(plans);

A plan is a list of write-file operations, each with a create / update / unchanged status, an absolute path and the project-relative path used for output. Parent directories are created by the executor, so there is no directory operation; there is no operation that runs a command.

Every target is handed the same SkillDefinition objects and the canonical SKILL.md that @agentyx/core renders, so providers can only ever receive identical instructions. Providers that share the same destination and content, such as Codex and Kimi Code, collapse to one physical write with shared usedBy metadata.

Writing an adapter

An adapter is a plain object satisfying AgentAdapter: an id, a name, the directory it owns, detect, and a pure planFiles that maps resolved skills to desired files. Comparing them with what is installed and writing them is shared machinery.

import { createAdapterRegistry, createSkillDirectoryAdapter } from "@agentyx/adapters";

const acme = createSkillDirectoryAdapter({
  id: "acme",
  name: "Acme Agent",
  skillsDir: [".acme", "skills"],
  reference: "https://example.invalid/skills",
});

const registry = createAdapterRegistry([acme]);

createSkillDirectoryAdapter covers any agent that reads <directory>/<skill>/SKILL.md; a genuinely different layout implements AgentAdapter directly. There is no dynamic package loading and no remote registry — an adapter is a value you pass in.

Safety

Agentyx only manages <destination>/<skill>/SKILL.md for skills it resolved, plus the MCP server keys it added to a provider project config. A plan that would write outside the directory or project file a target owns is refused with InstallPathError, including project-local paths redirected through symlinks. Unchanged files are not rewritten, writes are UTF-8, and nothing is executed, fetched, or installed globally.

Project MCP configuration is planned and written through the same plan-first machinery. Adapters receive only active MCP definitions; pack and optional-capability resolution stays in core. Hooks, permissions and user-global configuration are not part of the contract yet.

Prune and uninstall act only on paths and MCP server keys recorded in .agentyx.lock.json. A file whose current content no longer matches the manifest hash is reported as a conflict and left alone unless the caller explicitly chooses --force.

MIT © Andersseen