/harness:feature-newfrom Harness (обвязка)
Scaffolds a feature narrative document (Design/Plan/Verify/Conclusion) in an existing project layer. Inspects project conventions for feature IDs, registry, and filenames before creating the document.
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; scripts run unread.
Creates a feature document in an existing layer. The document follows the ULTRAPACK-style narrative template (Design / Plan / Verify / Conclusion) extended with explicit cross-references to layer invariants and global principles.
/feature-new <layer> <slug> [--title "..."] [--branch <name>] [--id <project-id>]
<layer> -- existing layer name. Must be a directory under
docs/layers/. If missing, suggest /layer-new <layer> first.<slug> -- kebab-case feature identifier without a project ID
prefix. Examples: api-key-rotation, audit-log,
dual-encryption.--title -- human-readable feature title. If omitted, derive from
slug by title-casing.--branch -- git branch name. If omitted, default to
feature/<slug>.--id -- override the auto-allocated project-native ID. Use only when
migrating a pre-existing feature with a known ID. Refuse if the ID
already exists in this layer.git rev-parse --show-toplevel.docs/layers/<layer>/ exists. If not, refuse with a
suggestion to run /layer-new <layer> first.docs/layers/<layer>/features/_FEATURE-TEMPLATE.md
exists. If not, copy from
${CLAUDE_PLUGIN_ROOT}/templates/kb-skeleton/docs/layers/_LAYER-TEMPLATE/features/_FEATURE-TEMPLATE.md.Do this before changing the feature document, layer README, or registry. A
feature registry is project-owned state; this skill does not impose its old
F-NNN example on it.
feature_list.json
(if present), a co-located schema or validator, and AGENTS.md/project
docs for the actual ID format, namespace, filename convention, fields,
initial status, allocator, and coordination rule. For example, this
repository's long-run template uses lowercase feat-NNN IDs with
description, dependencies, and string evidence; that is not
interchangeable with the old F-NNN example.--id was provided, validate it against the discovered convention and
check every project-owned feature source that the convention names. If it
is already used, refuse without changing anything.scripts/reserve_feature_id.py. It atomically
creates refs/feature-new/reservations/<project-id> in the repository and
binds that ID to the layer, slug, and final document path. This is a Git
allocator record, not a second feature registry: the same request returns
resumed; a different layer/slug/path returns conflict and must not edit
the registry or another claimant's document.conflict, re-inventory the project convention and choose the next
project-native candidate. Continue safe reconciliation while the requested
scaffold remains actionable; do not guess that a durable reservation has a
stale owner, overwrite it, or impose an arbitrary retry limit.feat-NNN, globally allocated through the
Git-ref helper, with docs/layers/<layer>/features/feat-NNN-<slug>.md as
the document path. Do not create feature_list.json; once a registry exists
it becomes authoritative over this fallback.When the project has no registry schema or helper, do not stop merely because it differs from this skill's example. Adapt by copying one current entry's field set and ID style, changing only values whose meaning is established by the project. If no representative entry or documented meaning exists, create the requested narrative only and leave the unknown registry untouched rather than append an invented record.
[a-z][a-z0-9-]*).Source: docs/layers/<layer>/features/_FEATURE-TEMPLATE.md
Destination: the project-native feature filename discovered in Step 2.
In the new file, replace placeholders:
| Placeholder | Replacement |
|---|---|
| feature ID/title placeholder | the discovered ID and <title> |
**Layer:** [<layer-name>](../README.md) | **Layer:** [<layer>](../README.md) |
**Status:** design | leave as design |
**Branch:** feature/<slug> | use --branch value or default |
**Started:** YYYY-MM-DD | today's date |
**Owner:** <name> | infer from git config user.name, or leave placeholder |
Leave Design / Plan / Verify / Conclusion section bodies as template placeholders -- the user fills these.
Inspect docs/layers/<layer>/README.md for its existing feature index and
preserve its columns, ID form, ordering, and link style. Insert the new entry
only if a feature index exists and its row convention is understood:
| <project-id> | <title> | <project-native initial status> | YYYY-MM-DD | <project-native link> |
If the table has only known placeholder rows, replace only those placeholders. If there is no compatible index, do not invent one; report that the narrative was created without a README index.
If <repo>/feature_list.json exists at repo root, parse it and use the
project's schema or validator plus a representative entry to construct a
native record. Preserve the existing top-level shape, field names, value
types, default status, evidence representation, ordering, and encoding.
Change only fields that the project convention establishes for a new feature
(such as its unique ID, title/name, description, document link, or initial
state).
Important encoding rule (per
~/.claude/rules/api-utf8-posting.md): write the JSON file with
json.dump(data, f, ensure_ascii=False, indent=2) to preserve any
Cyrillic in titles.
Do NOT change existing entries or add fields merely because this skill's old example had them. Run the project-provided feature registry validator when one exists. If the registry's required fields cannot be determined safely, leave it unchanged and report that fact; the requested narrative remains valid.
If feature_list.json does not exist, do not auto-create it -- emit
a hint instead.
Print a summary:
Created: <project-native feature-document path>
Updated: <README path or "not indexed; no compatible feature index">
Updated: <feature_list.json path and project-native ID, or "not changed; no safe registry mapping">
Suggested next steps:
1. Fill the Design section in <feature document>
- Approach (one paragraph)
- Invariants (IV-1, IV-2, ...)
- Rejected alternatives
2. When Design is reviewed, change Status: design -> planning and fill Plan
3. Create the git branch: git checkout -b feature/<slug>
${CLAUDE_PLUGIN_ROOT}/templates/kb-skeleton/docs/layers/_LAYER-TEMPLATE/features/_FEATURE-TEMPLATE.md -- the source templateThe following lifecycle is the bundled long-run-project convention, not a universal registry schema. Apply it only after Step 2 confirms that the target project uses it; otherwise preserve the project's own lifecycle and mapping.
Tracks where in the ULTRAPACK Design / Plan / Verify / Conclusion journey the feature is.
design --> planning --> executing --> reviewing --> done
\
--> blocked --> executing
Six states: design, planning, executing, reviewing, done,
blocked. Transitions are manual edits. Once done, the feature doc
is read-only history; further changes go into a superseding feature.
Tracks the machine-readable state used by build_kb_graph.py and validate_kb_links.py.
not-started --> in-progress --> done
\
--> blocked --> in-progress
Four states: not-started, in-progress, blocked, done. done is
one-way (no rollback; regression becomes a new feature) per
principle 27.
| Doc Status | feature_list.json status | Notes |
|---|---|---|
| design | not-started | newly created, no plan yet |
| planning | in-progress | plan being written |
| executing | in-progress | code being written |
| reviewing | in-progress | review/verify phase |
| blocked | blocked | identical |
| done | done | identical |
For a project that uses this convention, create the doc with Status: design
and the native JSON record with status: "not-started". Subsequent transitions
are manual and follow that project's coordination rule.
F-NNN as a
universal format.--id explicitly so the
feature retains its prior ID in any links from PROBLEMS.md or
handoffs. The skill will not auto-detect existing IDs.api-utf8-posting.md, when writing the markdown file or
feature_list.json, always specify encoding="utf-8" explicitly to
avoid mojibake on Windows.| Symptom | Cause | Fix |
|---|---|---|
| "Layer does not exist" | docs/layers/<layer>/ missing | Run /layer-new <layer> first |
| ID reservation conflict | Another request owns that logical ID | Re-inventory project state and use the next native candidate; never overwrite or delete the durable reservation |
feature_list.json parse/schema error | Registry is invalid or uses an unknown convention | Preserve the narrative and do not write the registry; report the exact parser/schema failure and use a project-native adapter when its fields are established |
| Template missing on this machine | Different host / fresh clone | Pull from public repo: gh api repos/AnastasiyaW/codex-claude-code-config/contents/templates/kb-skeleton/docs/layers/_LAYER-TEMPLATE/features/_FEATURE-TEMPLATE.md |
Cyrillic in title shows as ????? | File written without explicit utf-8 | Re-write the file with encoding="utf-8"; see ~/.claude/rules/api-utf8-posting.md |
This is a scaffolding skill: file copy + placeholder replacement + small JSON merge. Keep it deterministic. The Design / Plan / Verify sections of the produced document are meant for the user (or the session that invoked the skill) to fill -- this skill does not attempt to generate Design content from the title.
ID discovery reads only the sources that the project's convention declares. Reserve the resulting logical ID atomically, then re-read mutable sources; cache is not authority across a concurrent mutation.
What SKILL.md sets; muted values are Claude Code's defaults
sonnet60 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.npx claudepluginhub anastasiyaw/codex-claude-code-config --plugin harnessOther plugins' skills for the same job