/harness:layer-newfrom Harness (обвязка)
Scaffolds a new bounded-concern layer (security, data, ui, etc.) in docs/layers/ following feature-layer architecture. Idempotent — won't overwrite existing layers.
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.
None: SKILL.md is the whole skill.
Creates docs/layers/<layer-name>/ with the full template structure
defined by principle 28.
src is not a layer)/feature-new
inside an existing layer instead/layer-new <layer-name> [--purpose "..."] [--principles P-NN,P-MM]
<layer-name> -- kebab-case, single word preferred. Examples:
security, data, image-processing, observability.--purpose -- one-sentence purpose. If omitted, prompt the user.--principles -- comma-separated Tier 1 principle IDs that govern
this layer (e.g. P-02,P-21). If omitted, leave placeholder in
README.Check the current working directory:
git rev-parse --show-toplevel. If
not, ask the user whether to initialize one (offer git init +
private GitHub repo per global rule).docs/ exist? If not, create it.docs/layers/README.md exist? If not, copy from
${CLAUDE_PLUGIN_ROOT}/templates/kb-skeleton/docs/layers/README.md.docs/layers/<layer-name>/ already exists. If yes,
stop with a message -- do not overwrite. Suggest
/feature-new <layer> <slug> instead.[a-z][a-z0-9-]*)._ (reserved for templates).src, tests, docs,
build).Source: ${CLAUDE_PLUGIN_ROOT}/templates/kb-skeleton/docs/layers/_LAYER-TEMPLATE/
Destination: <repo>/docs/layers/<layer-name>/
Copy the entire directory tree. Preserve subdirectory structure (kb/
and features/). Result:
docs/layers/<layer-name>/
├── README.md
├── history.md
├── kb/
│ ├── invariants.md
│ ├── decisions.md
│ ├── gotchas.md
│ └── patterns.md
└── features/
└── _FEATURE-TEMPLATE.md
In every file under the new layer, replace:
<layer-name> -> the actual layer name<Layer name> -> Title Case of the layer name (e.g. "Security",
"Image Processing")In README.md specifically:
**Purpose:** <one sentence...> -> the --purpose argument value,
or prompt the user## Governing principles list -> populate from --principles arg,
or leave the placeholder bullets in place for the user to fillIn history.md:
Update docs/layers/README.md:
## Layer index table:
| <layer-name> | <purpose> | active |If the project has feature_list.json at repo root, leave it alone --
features get added by /feature-new. Do not edit feature_list.json
from this skill.
If the project has AGENTS.md, suggest (but do not auto-edit) adding
the new layer to the "Source-of-truth docs" table if multiple layers
exist.
Print a summary:
Layer created: docs/layers/<layer-name>/
Files: 1 README, 1 history, 4 kb/, 1 feature template
Suggested next steps:
1. Fill governing principles in docs/layers/<layer-name>/README.md
2. Write the first feature: /feature-new <layer-name> <slug>
3. Add the first invariant when it earns its place
${CLAUDE_PLUGIN_ROOT}/templates/kb-skeleton/docs/layers/_LAYER-TEMPLATE/ -- the source
tree to copy${CLAUDE_PLUGIN_ROOT}/templates/kb-skeleton/docs/layers/README.md -- the layers index
template (used only if missing)/layer-new wrong-name then realizes they wanted right-name,
manually rename the directory and update references. This skill
does NOT detect or fix duplicates.docs/<layer-name>/ exists at the docs/ root (not under
docs/layers/), refuse and ask the user which they want -- there
is no automatic merge.${CLAUDE_PLUGIN_ROOT}/templates/kb-skeleton/docs/layers/_LAYER-TEMPLATE/
does not exist (e.g. user is on a different machine), fall back to
reading from
https://github.com/AnastasiyaW/codex-claude-code-config/tree/main/templates/kb-skeleton/docs/layers/_LAYER-TEMPLATE
via gh api.~/.claude/rules/api-utf8-posting.md --
always specify encoding="utf-8" explicitly.| Symptom | Cause | Fix |
|---|---|---|
| "Layer already exists" | Directory docs/layers/<name>/ present | Use /feature-new to add to it, or pick a different name |
| Template files missing | Path moved or different machine | Pull templates from public repo via gh api repos/AnastasiyaW/codex-claude-code-config/contents/templates/kb-skeleton/docs/layers/_LAYER-TEMPLATE |
| Layers README not updated | docs/layers/README.md had no ## Layer index table | Open file manually, add table per the kb-skeleton template |
| Validator warns about layer | validate_kb_links.py flagged broken link | Layer is fine; broken link is in a feature doc inside it. Run python scripts/build_kb_graph.py from the project root for the full health report. |
The bulk of the work is file copy + placeholder replacement. No dynamic logic is needed; the template files do all the structural heavy lifting. Keep this skill deterministic and idempotent -- it must be safe to invoke twice on the same layer (second call should be a no-op with a clear message).
What SKILL.md sets; muted values are Claude Code's defaults
sonnetnpx 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./architecture-firstDecide module boundaries before the first file: what modules exist, which way dependencies point, who owns state, and what each module may know. Use when starting a project, service, site, API, or subsystem; adding a feature with no obvious home; resolving a circular import or inverted framework dependency; or writing an ARCHITECTURE.md or ADR. Do not use for a one-file script, throwaway experiment, bug fix inside an established seam, naming/function-shape cleanup (use code-complexity), an existing oversized module (use refactoring-safely), or capacity/data scaling decisions (use system-and-data-design). This defines earned boundaries; it does not license speculative layers.
/architecture-qualityKeep web applications, APIs and services readable as they grow: choose feature or domain seams, assign state ownership, enforce dependency direction, keep adapters thin, and verify file shape. Use when starting or extending a web app, backend, frontend, API or multi-page product; when a change makes a module hard to read; when architecture review finds a god file, cross-feature imports, a circular dependency or a framework-heavy domain. Load architecture-first first for a new system, and refactoring-safely for an existing oversized module. Do not use for a one-file script, throwaway spike or a purely local naming change.
/article-structure-reviewПроверить структуру технической статьи после черновика: задача читателя, жанр,
опора значимых утверждений на доказательства и честные ограничения.
Use after the first draft, before publication. Исправлять структуру, когда это
входит в запрос; не создавать обязательный конвейер из других навыков.
Для локальной языковой редактуры — humanize-english или humanize-russian.
/bug-reproducerFind likely software bugs in a codebase, rank concrete bug candidates, and prove or reject them with focused regression tests before proposing a fix. Also turn bug reports, stack traces, screenshots, failing behavior, support tickets, and regressions into minimal reproducible cases with red-to-green evidence. Use when Codex needs to hunt for unknown bugs, audit code for correctness defects, test suspicious edge cases, reproduce a reported failure, isolate root cause, or verify that an approved fix works without regressions. Honor explicit user authority for the requested fix; use approval gates only for authority that the request did not already grant or when scope materially changes. Do NOT use for ordinary implementation where no bug investigation or reproduction is needed.Other plugins' skills for the same job