/model-citizen:harness-authoringfrom Model Citizen
Routes instructions to their correct location in an agent-harness repository: rules, skills, hooks, stances, settings, or memories. Use when asked to persist behavior changes across sessions.
Ships in Model Citizen. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Every instruction has exactly one right home. This skill finds it, writes there, and keeps the harness checkout as the source of truth for everything generic.
python3 - <<'EOF'
import json, pathlib
m = json.load(open(pathlib.Path.home() / ".local/state/agent-harness/manifest.json"))
print(m["repo"])
EOF
git -C "$(…)" remote -v
If the manifest is missing, locate or install the harness before editing managed content.
Do not create a second authority in a runtime configuration directory. If origin is a fork and upstream is the
harness, you are a fork user. Otherwise, if origin is <owner>/model-citizen, or <owner>/agent-harness from
before the rename, and you are that owner, you are the maintainer.
policy/hooks/, dispatched by
lib/harness_core/lifecycle.py; native registrations belong in runtime adapters.docs/primitive-authoring.md; other personal guidance stays in the runtime personal file.
A fact about one repo goes in that repo's AGENTS.md.primitives/stances/<pref>/<variant>.md, and a line in config.example.json and
docs/preferences.md. Never a core rule.primitives/skills/<name>/SKILL.md, with a description that says when to use it.paths: frontmatter, in the repo it
applies to.primitives/rules/<topic>.md. Check every existing
rule first; the usual outcome is one sentence folded into an existing file, not a new one.A "remember this" request runs the same ladder from the top. A fact about one project or one machine is auto memory for that project, never the harness. A correction to how the agent should behave anywhere is a rule or a stance, and you say so before writing it. A fact about the user is a personal file, outside the repo.
primitives/rules/ and primitives/stances/ for the
topic. Do not restate a policy that lives in a global rule inside a project rule; link it.bin/harness generate for native views and bin/harness generate --check to verify them.
See docs/primitive-authoring.md for custom dimensions and native bindings.
Verify sync in a disposable home with HARNESS_HOME, CLAUDE_CONFIG_DIR, and CODEX_HOME
redirected. Sync normal installations from the reviewed release, not the development worktree.bin/harness lint — fails on personal strings and secret patterns.main
ruleset requires green checks and a squash merge. Code changes (bin/harness, shared policy,
tests) carry a test; content changes are gated by the lint and review.main, which is your live harness. If the change is
worth sharing, git fetch upstream && git rebase upstream/main, push a branch to the fork,
and gh pr create --repo <owner>/<name>, naming the repository your upstream remote points at.conciseness.md was cut to its operative lines when the always-loaded context was capped. Its
worked examples live here.
Explain a decision once. Pick the single most natural home for a design rationale — usually the module or class docstring where the thing is defined, or the user-facing doc page for anything a user needs. Every other file that touches the concept gets a short pointer back, not a restatement.
# Bad — restates the full rationale in a consuming file
# We chunk at 999 rather than the documented 10,000 limit because early testing
# suggested the endpoint became unreliable above 1,000 records, and because ...
# Good — one line, points at the canonical explanation
# Chunked per `batch_size`; see the class docstring for the API's limits.
If a second doc explains the same concept as a first, it links to it.
Don't narrate what the code already says. Comments explain a non-obvious why. If a comment would be an accurate one-line summary of the next line of code, delete it.
Docstrings follow the house pattern. Match the surrounding style exactly. Read a neighbouring function before writing a new one. Do not add docstrings purely to satisfy a linter that isn't running; add them where a user of the public API needs them.
No private-context references in shipped code. Code, tests, and docs must stand on their own to a stranger. No references to planning docs, other repos, internal ticket numbers, or evaluation notes. Public issue and PR numbers are fine and useful — they are resolvable by any reader.
PR descriptions. Lead with what and why in a few bullets, plus a link to the issue. Fill in
the template's sections and delete none, but keep each short. A long PR description with heavy
heading and bold formatting is harder to review, not more informative. Long explanatory content
belongs in the issue or in docs/, referenced from the PR body.
primitives/instructions.md, every file in primitives/rules/, and the longest variant of each
stance dimension are loaded on every turn of every session. citizen lint fails when their combined
size exceeds ALWAYS_LOADED_TOKEN_CAP in bin/harness — a third of the 12,607-token standing
context measured in issue #430, and the binding limit — or the secondary ALWAYS_LOADED_CAP in
lines. Both are printed on every lint run. A rule that needs more room than the
cap allows is telling you it wanted to be a skill: keep the operative line resident, move the
rationale, examples and evidence into the skill the rule points at, and leave a one-line pointer
behind. The stance count uses the longest variant per dimension, so no configuration a user
can select is ever over the cap.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
harness, instruction-routing, claude-md, agent-configuration
npx claudepluginhub jakeselby/model-citizen --plugin model-citizen15 skills in this plugin
/api-verificationProve a search, filter or API answer is real before relying on it, and budget web search across a fan-out. Use when querying an unfamiliar API, a filter returns suspiciously clean results, a per-item error may have been swallowed, or briefing research agents./architecture-viewerOpen or update an architecture diagram with the selected builtin or custom viewer, preserving a neutral session handoff. Use when asked to inspect architecture interactively or continue an existing diagram session./code-quality-instrumentsMeasure whether a test suite is any good, not only that it passes — branch coverage, mutation score, complexity-times-coverage risk, duplication. Use when adding or reviewing tests on a change that matters, a suite passes but a bug still shipped, coverage is high and confidence is not, or before promising a module is well tested./delegation-tieringDecide whether to spawn a subagent, and on which model tier and reasoning effort. Use when planning a fan-out, choosing a subagent model, writing a workflow script's opts.model, authoring an agent definition, setting a repo's cost posture, or when a delegation decision is non-obvious./design-loopRaise the visual quality of something that renders through a build, screenshot, independent scored critique and fix loop, against rubrics with hard accessibility, design-token, runtime and asset-licensing gates. Use when asked to make a UI, page, HTML doc, dashboard, game scene or 3D asset look dramatically better, more polished or more professional; to improve the visual design, look, styling or visual quality of a surface; to iterate toward a reference, mockup or screenshot; and proactively after building or substantially changing a user-facing surface. Not for deciding what screens exist or how flows behave./licensing-reviewVerify a third-party library, asset, model, font, dataset or copied snippet is safe to ship under the project's licensing stance, and record it. Use before adding or upgrading any dependency, before downloading any asset, and before a release.Other plugins' skills for the same job