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

codeassembly-guidance

v0.12.1

Published

The CodeAssembly library of agent guidance: rulebooks, skills, and subagents that the codeassembly CLI deploys

Readme

codeassembly-guidance

The CodeAssembly library of agent guidance: rulebooks, skills, and subagents for coding harnesses, which the codeassembly CLI deploys into Claude Code and Rovo Dev.

Release notes — v0.12.1 (2026-12-04)

🐛 Bug fixes

  • Fixes the issue that derive-session-context set project_slug to the working directory's name when the preferences set neither project.slug nor repository.slug, so that a linked worktree named after its ticket filed artifacts under the ticket number; the fallback is now the name of the repository's main checkout, a submodule's own checkout, or a bare repository's directory without its .git suffix. (#302)

Using the library

A declaration names the library as a source and selects artifacts from it, usually through a collection. For the home harness directories, clone the repository and declare its content directory in ~/.agents/codeassembly.yaml:

sources:
  - name: codeassembly-guidance
    path: ~/repos/codeassembly-guidance/packages/guidance/content
collections:
  use:
    - recommended

Then run codeassembly install and codeassembly sync --global. A project declares the same in its own .agents/codeassembly.yaml and runs codeassembly sync. Project declaration documents the declaration format.

Developer profile

The shared agent instructions ("Facts about the developer") direct an agent to treat a developer-profile rulebook as the premises of its evaluations. The library does not ship one: Each user writes their own at guidance/rulebooks/developer-profile.md in a private content source that their ~/.agents/codeassembly.yaml declares, and selects it under rulebooks.use. Ambient delivery describes how sync --global delivers such a source's rulebooks.

---
slug: developer-profile
description: Facts about the developer that change an evaluation.
delivery: ambient
---

# Developer profile

- Employer: ...
- Role and team: ...

Give the profile only facts about who the developer is that change an evaluation, such as the employer, the role and team, first-party access to systems, and constraints such as confidentiality and side-project IP. How the developer wants an agent to work belongs in a preference rulebook instead. Every session loads the profile, so each line in it costs context in every session.

What the content contains

content/ is a content root, laid out as the codeassembly tool expects:

| Directory | Contains | | -------------- | ----------------------------------------------------------------------------------------------------------- | | collections/ | Named sets of artifacts: recommended is vetted and generally applicable, and triage is not yet examined | | guidance/ | Rulebooks, and the harness guidance templates that install deploys | | skills/ | Skills, and the support files under skills/_data/ that they read at runtime | | subagents/ | Subagent definitions | | scripts/ | Shell scripts and helper bundles that install deploys into each harness's scripts/ directory | | _partials/ | Text that the expander inlines into several artifacts at deploy time |

Adding or changing content

The codeassembly-content-specification rulebook (content/guidance/rulebooks/codeassembly-content-specification.md) is the authoring contract: frontmatter fields, dependencies, invocation tokens, and naming. _partials/README.md covers shared text.

A skill that needs more than a few lines of shell runs a TypeScript helper. Its source lives under src/, content/codeassembly-content.yaml declares it, and codeassembly bundle-helpers builds it into a tracked .mjs bundle beside the skill. Commit a helper's source change together with its rebuilt bundle.

The package's check runs the tests, then codeassembly validate and codeassembly bundle-helpers --check, which fail on content that would be deployed to a consumer broken and on a bundle that is stale.

Preferences

Agent behavior is configured through .agents/preferences.yaml files. The resolution cascade is:

  1. Project: .agents/preferences.yaml in the repository root (committed, shared with team)
  2. Global: ~/.agents/preferences.yaml in the user's home directory (personal defaults)
  3. Default: built-in fallback (documented per key in Preferences)

Project-level values take precedence over global, key by key within each section: A project ticket section that sets only title_format keeps the global ticket.base_url. A map-valued key inside a section, such as artifacts.paths or repository.default_remote, is one value, which a project value replaces whole. An explicitly empty value at the project level (e.g., title_format: '') overrides a non-empty global value.

The package publishes a JSON Schema for the file; Schemas gives its identifier and versioning. To validate preferences files in a repository's own checks, install this package and run its bin on them; Validation states its options and rules.

codeassembly-validate-preferences --strict .agents/preferences.yaml

Skill files

The package exports one skill's SKILL.md, which is self-contained and can be served as a download:

import skill from 'codeassembly-guidance/skills/convert-agent-prompt/SKILL.md?raw';

The ?raw query is Vite's; under Node, resolve the specifier to a path and read the file. Nothing else under content/ is exported.

Helper reference