/harness:architecture-firstfrom Harness (обвязка)
Defines module boundaries, dependency direction, and state ownership before writing code. Use when starting a project, adding a feature with no obvious home, resolving circular imports, or writing architecture docs.
Ships in Harness (обвязка). 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.
Read when SKILL.md points to them.
Most bad structure is not a bad decision. It is an absent one: code goes where the smallest diff puts it, and the smallest diff is always "next to the last thing". This skill exists to make the layout an explicit, cheap, early decision.
Match the ceremony to the problem. Over-applying this is its own failure mode.
| Situation | What this skill asks of you |
|---|---|
| Script, spike, one file, throwaway | Nothing. Skip. |
| One module, <500 lines, one reason to change | Name the module and its one job. Stop. |
| Service / site / API, several concerns | The full pre-code checklist below. |
| Multiple teams or deployables, shared domain | Checklist + bounded-context map + one ADR per boundary |
| Multi-stage work or external release prerequisite | Checklist + a small stage map before the first implementation boundary |
Dependencies point inward, toward policy. Business rules must not import the web framework, the ORM, the queue, or the file layout. The reverse is required.
Violating it silently is the failure — a violation that is written down, with the reason and the cost, is a decision. A violation nobody named is erosion.
Practical test: could this module be exercised by a test with no network, no database and no framework? If not, something outer leaked inward.
queue, billing,
catalog — not controllers, models, utils. A module that changes for two
unrelated reasons is two modules.BLOCKED stage, not a reason to keep reopening already-proven code.For multi-stage work, architecture includes delivery boundaries as well as module boundaries. Keep these states separate:
VERIFIED: the scoped behavior passed at one exact revision.SEALED: the verified scope has an immutable receipt and may be consumed by a
following stage.BLOCKED: a named external prerequisite is absent; upstream proof remains valid.SUPERSEDED: a contract, source, or input digest changed, so a successor must be
verified instead of editing history.The stage map is deliberately smaller than a release plan. For each boundary, name
the owning scope, frozen contract, inputs, output, and what invalidates it. Use the
machine-readable ledger only when there is a real hand-off between stages:
../proof-verify/references/proven-stage-contracts.md. Do not add it to a one-file
change merely because the word "stage" exists.
| Question | Default answer |
|---|---|
| Layer folders or feature folders? | Feature (vertical slices). Layer folders scatter one change across four directories. |
| Where does validation live? | Input shape at the edge; business rules inside. Never only at the edge. |
| Interface for a single implementation? | No — until a second caller or a test double actually needs it. |
| Microservices? | Not yet. Modular monolith with real boundaries first; extract when a module needs its own deploy or scaling. |
| Where does the ORM model live? | Outer. The domain object is not the row. |
| Shared "utils" module? | A smell. Utils is where things go when nobody decided; name the reason instead. |
references/clean-architecture/boundaries-and-layers.md — boundaries, Humble Objectreferences/clean-architecture/solid-and-components.md — SOLID applied correctly, REP/CCP/CRP, ADP/SDP/SAPreferences/clean-architecture/details-and-code-organization.md — DB/web/frameworks as detailsreferences/clean-architecture/python-implementation.md — entities, use cases, repositories, wiringreferences/domain-driven-design/bounded-contexts.md — context mappingreferences/domain-driven-design/ubiquitous-language.md — one term, one meaningreferences/domain-driven-design/building-blocks.md — entities, value objects, aggregatesreferences/domain-driven-design/domain-events.md, repositories-factories.md, strategic-design.md*-original.md — the source skills' own framework prose, kept verbatim| Symptom | Cause | Fix |
|---|---|---|
| Circular import | Two modules both own part of one concept | Extract the shared concept into a third module both depend on |
| One change touches six files across four folders | Layer folders, not feature folders | Re-cut by feature; keep the change local |
| Tests need a live database to assert a rule | Rule lives outside the domain | Move the rule inward, inject the store |
| Nobody can say which module owns X | Nobody decided | Decide now, write it in ARCHITECTURE.md, move the state |
references/clean-architecture-original.md (opens in a new tab)references/clean-architecture/boundaries-and-layers.md (opens in a new tab)references/clean-architecture/details-and-code-organization.md (opens in a new tab)references/clean-architecture/python-implementation.md (opens in a new tab)references/clean-architecture/solid-and-components.md (opens in a new tab)references/domain-driven-design-original.md (opens in a new tab)references/domain-driven-design/bounded-contexts.md (opens in a new tab)references/domain-driven-design/building-blocks.md (opens in a new tab)references/domain-driven-design/domain-events.md (opens in a new tab)references/domain-driven-design/repositories-factories.md (opens in a new tab)references/domain-driven-design/strategic-design.md (opens in a new tab)references/domain-driven-design/ubiquitous-language.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub anastasiyaw/codex-claude-code-config --plugin harness60 skills in this plugin
/agent-harness-designDesigning agent harnesses and tool systems — risk taxonomy for tools, permission decisions, draft/commit pattern, structured tool results, agent budgets (10 types), context trust labels against prompt injection, plan-artifact, approval records, observability and traces, evals (13 categories), event model, streaming buffering, 3rd-party skill install checklist, agentic RAG, self-improving SOP loops, model policy, reasoning effort, and Programmatic Tool Calling adoption gates. Use when building a new Agent SDK app, custom orchestrator, MCP server, Cloudflare Worker with tool calls, agentic RAG pipeline, model router, or model-tier policy; when designing tools and permissions; when writing an agent loop; or when you need trust labels for external content. Do NOT use for improving or auditing an already-built harness (use harness-audit / harness-design instead), nor for ordinary Claude Code sessions where the harness is already given./agents-best-practicesUse when designing, auditing, refactoring, or explaining an agentic harness for any domain, especially when work must continue from a measured gap to verified completion. Covers provider-neutral loops, tools, permissions, environment adaptation, planning, durable workflow state, context, skills, observability, evals, and safety for OpenAI, Anthropic, and compatible APIs. Not for implementing an ordinary app feature or reviewing one concrete diff.Other plugins' skills for the same job