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

@stigmer/coding-agent-plugin

v0.3.2

Published

Stigmer's plugin for coding agents (Claude Code, Codex, Cursor): a skill that answers questions about Stigmer from its live docs, the guide that sets Stigmer up for a project, the bundled stigmer mcp-server and a guard that asks before what can't be undon

Readme

Stigmer's plugin for coding agents

@stigmer/coding-agent-plugin: one plugin for Claude Code, Codex and Cursor that answers a person's questions about Stigmer from the live docs, and the guide a coding agent follows to set Stigmer up for their project. It is the "Let your coding agent set it up" door (docs/getting-started/coding-agent.mdx).

This is not plugins/, the catalogue Stigmer installs into its own agents. This one is for the coding agent on a person's laptop.

What is in it

  • plugin/skills/stigmer/SKILL.md: the front door. It answers any question about Stigmer from the live docs (stigmer docs search and stigmer docs read, or the tool server's search_docs and read_doc), cited, checks the person's installed CLI and server before naming a command or feature, and carries the rules for acting for a person (AGENT_RULES, mcp-server/src/instructions.ts). Its "What Stigmer is", map and "when the answer isn't in the docs" sections are the docs assistant's (docs-agent/skills/stigmer-docs/SKILL.md), word for word.

  • plugin/skills/stigmer-setup/SKILL.md: the setup guide. stigmer coding-agent prints it without its frontmatter (client-apps/cli/src/commands/coding-agent.ts), so a person who pastes the prompt gets the guide released with the CLI they installed.

  • plugin/skills/stigmer-run/SKILL.md: running the person's agents and reading their runs: an agent on a file in their project, the last run, its output files, why it failed, approvals, follow-ups, scores and evals. Command line first, each job's Stigmer tool beside it. Every stigmer command any plugin skill names is held to the CLI's command tree by the CLI's own suite (client-apps/cli/src/commands/__tests__/coding-agent.test.ts).

  • plugin/skills/stigmer-integrate/SKILL.md: putting the person's agent in their own product, whatever the stack: whose run it is (the app's service account, the signed-in user, an organization per customer), then each job (a backend run on a file, streaming, the chat and its look, sign-in, approvals in their screens, moving from Claude Managed Agents) as a method and the docs pages to read for their language. The calls live on those pages, a tab per language, not in the skill.

  • plugin/skills/stigmer-build/SKILL.md: designing and changing the person's agents and connecting them to people: which piece of Stigmer does each part (a vault for a secret, an Environment for packages and network, the tool's mark or a hook for an approval, a plugin for an MCP server or a team's plugin, a Routine for a schedule or another system, a Channel for people outside Stigmer), then each job's method, pages and pitfalls, and how to act: a manifest applied from the live definition, a secret the person saves, a routine or channel turned on only on their yes.

  • plugin/skills/stigmer-operate/SKILL.md: running the person's own Stigmer server and administering their organization: three first facts (the server the CLI reaches, the edition the person runs, the shape they run), which piece answers each question (the install shapes, sign-in with their own provider, a service account's key, the Organization's roles, the runner, tracing, upgrades and backups, the access history, agent hours), each job's method, pages and pitfalls, and how to act: a key, a role or access proposed first, a service account's key saved to a file and never shown.

  • plugin/.mcp.json: the bundled stigmer mcp-server, for making, running and reading agents once setup is done.

  • plugin/hooks/: the guard. It asks the person before a destructive tool, before answering a run's approval with allow, and before a stigmer command forced past its own question, even after they allowed the plugin's tools. decide.mjs holds the one decision (reasonFor) and each tool's side:

    • hooks.json is Claude Code's: a PreToolUse hook (guard.mjs, through decide);
    • cursor-hooks.json is Cursor's: beforeShellExecution alone (cursor-guard.mjs, through decideCursor), the one event on which Cursor turns an ask into a prompt. Its MCP executor acts on a beforeMCPExecution answer only when it is deny, and any MCP hook makes it refuse every server's call that carries a file path, so the plugin hooks no MCP call there and Cursor's own tool approval asks before the tool server's tools. Both entries fail open. A Cursor run that allows every command (agent -p --force) passes over an ask, as the person chose;
    • Codex's hooks cannot ask, so codex-hooks.json is empty and Codex asks before the tools from their marks (mcp-server/src/domains/toolmarks.ts).

    Each tool would load hooks/hooks.json when its manifest names no hooks file, and would run Claude Code's hook wrongly, so Codex's and Cursor's manifests each name their own file.

  • The manifests and marketplace files of each tool, one plugin named stigmer at the folder's root: .claude-plugin/ (Claude Code), .cursor-plugin/ (Cursor), .codex-plugin/plugin.json and .agents/plugins/marketplace.json (Codex).

Build, publish, install

npm run build (scripts/build.mjs) copies plugin/ to dist/plugin/, stamps each manifest's version with the package's, writes dist/index.js (GUIDE, PLUGIN_REPOSITORY), and fails if npm pack would leave a staged file out. The release train publishes the package with the other libraries, before the CLI that depends on it (scripts/publish-libs.mjs), which stamps the release's version into the three manifests as into package.json and refuses to publish one still at 0.0.0-dev.

reconcile-coding-agent-plugin.yaml then makes the public repository stigmer/coding-agent-plugin equal to the npm latest package's plugin/ folder (this build's dist/plugin/; the package is published from dist/), the way reconcile-homebrew.yaml keeps the tap. People install from that repository; the install lines are on the docs page.

Tests

npm run test -w @stigmer/coding-agent-plugin builds the package and reads it with Stigmer's own plugin reader (@stigmer/plugin-package), which knows all three dialects: every manifest names the one plugin at the package's version, the skill and the MCP server read with no warning, and each marketplace file offers the plugin at the root. __tests__/front-door.test.ts holds the front door's shared sections to the docs assistant's and its rules to AGENT_RULES; __tests__/guard.test.ts holds the guard's tool list to the tools the full roster marks destructive and tests every decision. The CLI's suite holds the guard's command list to every command with a --force option (client-apps/cli/src/commands/__tests__/coding-agent.test.ts). The CLI's suite holds the guide to the CLI (client-apps/cli/src/commands/__tests__/coding-agent.test.ts): every stigmer … line it names is a command this CLI has, with flags it declares. Run both after a change here. The door end to end, in a real coding agent, is make door-coding-agent (test/install/coding-agent-door.mjs), by hand. The plugin on the job after setup, putting the agent in an existing app from a one-line ask, is make walk-coding-agent-app APP=ledgerly-nextjs (Next.js) or APP=statements-fastapi (FastAPI) (test/install/coding-agent-app.mjs), by hand: it passes when one of the app's signed-in customers uses the agent in the app and the conversation is theirs. The plugin changing an agent the person already has, from a one-line ask (a routine every Monday, an MCP server with only two of its tools), is make walk-coding-agent-build (test/install/coding-agent-build.mjs), by hand: it passes when the server holds the routine, still off, and the plugin, the agent names the two tools in full, and its instructions and skills are as they were. The plugin making CI a key ("a key that can run agents but not change them") is make walk-coding-agent-operate (test/install/coding-agent-operate.mjs), by hand: it passes when the server holds one Member service account with one key, the key in the file the CLI named is that account's, no key appears in the coding agent's stream, and the person's own keys and the agents are as they were. Both walks share their stage, fixture and turns (test/install/lib/coding-agent-walk.mjs).

The question bank

evals/ is the bank: the questions and jobs a developer brings to their coding agent about Stigmer, one eval case per folder, grouped by job (deciding, setup, design, integrate, run-fix, quality, reach, own-server, admin, stuck). It lives beside plugin/, not in it, so it is never published with the plugin. Every case is in the format both claude plugin eval and Stigmer's own eval reader take: a prompt.md with the person's words, and graders/:

  • must-<n>.md: two to four, each one point the answer must make, without which the person would act wrongly or not at all, written from the docs pages the answer comes from;
  • fail-if-<n>.md: one each for what fails an answer (wrong, invented, or contradicting the docs). Every judge grader holds one point: Claude Code's judge answers PASS or FAIL in one word, with no room to reason, and grades one point reliably where it misgrades a list. It reads the final message only, so an acting case's graders judge only what that message shows. It also reads a claim in an answer that denies it ("Stigmer runs no model of its own" failed "says Stigmer runs a model of its own"), so a fail-if line opens with "PASS unless the answer does this; an answer that says the opposite, denies it or warns against it does not do it:", then names the wrong claim exactly. A line that is a judgement ("runs Claude Managed Agents down", "a price other than these") says in its point what does not count ("saying plainly what it lacks", "leaving a price out"). The question was probed once (misgraded answers and a wrong answer for each line, through claude plugin eval on a scratch plugin whose case repeats a given answer word for word); every job then moved to it, each line re-read against the docs and the job scored by the bank;
  • cites-the-page.md: the answer links a page that answers it, as published (stigmer\.ai/docs/<page>, or several as stigmer\.ai/docs/(<page>|<page>); a link to the docs' source on GitHub doesn't count). The list names every page that answers the question, and it is also the bank's record of which pages have a question. A case that acts may leave it out where its answer is the fixture's fact or the act itself;
  • skill-fired.md: whether the plugin's skill loaded, an indicator outside the score;
  • beside graders/, welcome.md: what a good answer may also say, never graded;
  • for a case that acts on Stigmer (tagged acts), reports-the-fact.md: a fact only a real read of the fixture returns; for a destructive ask, does-not-act.md: the trace holds no such call, and the rubric passes only when the agent asks the person first.

make bank-coding-agent (test/install/coding-agent-bank.mjs) runs the bank in Claude Code, with the plugin and without it, on the plugin as a release publishes it (the CLI's pack carries the package, and the plugin is copied from the stage's own node_modules/@stigmer/coding-agent-plugin/plugin/, stamped with the pack's version), against a hermetic local Stigmer seeded with evals/_fixture/ (an agent with a finished run, one whose runs fail, a skill), its runner on the fake model, and prints the score per job. An acting try starts in a set-up person's project: the fixture agents' manifests sit in its folder as stigmer/<agent>.yaml. A case passes only when every try passes every scored grader. A try Claude Code could not run (a usage limit, a crash) is no reading: the table counts it, leaves its case unread and says the run is not a valid reading, and the command exits non-zero, so such a run is never taken as a score. It calls a real model on your own Claude Code sign-in, so it is by hand, in no lane; BANK_ARGS narrows it (--tag=<job>, --case=<glob>, --runs=<n>) and bounds it (--max-cost-usd, default $60 API-equivalent). When passing a {a,b} glob through make, quote it or call the script directly: the shell expands an unquoted brace into separate --case arguments and only the last is kept.

The bank is proven in one coding agent, Claude Code. Codex and Cursor read the same skills, tool server and docs, so an answer proven there carries over; what differs between the tools is how each loads the plugin (its manifest, its hooks file), and that is held by this package's unit tests, not by a bank run in each tool. A problem a person reports in Codex or Cursor is fixed when it is reported.

To add a case: write the question in the person's own words under its job's folder, read the docs page that answers it, and write the rubric from that page, one point per grader, each opening with the question its kind asks; copy the frontmatter and skill-fired.md from a neighbour, since every case shares one tool list and turn cap. A question no page answers is a docs gap: write the case anyway, and fix the docs. __tests__/bank.test.ts holds the bank's shape in the gate: Stigmer reads it with no finding, every judge grader holds one point, every case has two to four Must points, every cited page exists, every concept page, getting-started page and guide group has a question, and every job has at least four.