codeassembly-guidance
v0.12.1
Published
The CodeAssembly library of agent guidance: rulebooks, skills, and subagents that the codeassembly CLI deploys
Maintainers
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-contextsetproject_slugto the working directory's name when the preferences set neitherproject.slugnorrepository.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.gitsuffix. (#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:
- recommendedThen 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:
- Project:
.agents/preferences.yamlin the repository root (committed, shared with team) - Global:
~/.agents/preferences.yamlin the user's home directory (personal defaults) - 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.yamlSkill 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
- Prose sweep helper: the sweep that the
revise-proseskill runs. - Backlog sweep helper: the helper that the
groom-backlogskill runs. - Next-ticket helper: the helper that the
pull-from-backlogskill runs. - Prototype index helper: the helper that the
index-prototypesskill runs. - Guidance streamlining helper: the helper that the
streamline-guidanceskill runs. - Findings triage helper: the helper that the
triage-spike-findingsskill runs. - Code-health helper: the helper that the
assess-code-healthskill runs. - Performance helper: the helper that the
analyze-performanceskill runs. - Feedback triage helpers: the helpers that the
triage-feedbackskill runs. - Feedback curation helper: the helper that the
curate-feedbackskill runs. - External-operation helper: the helper that the
record-external-operationskill runs.
