用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/nearai/ironclaw --skill reborn-feature命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | reborn-feature |
| description | Build a user-facing feature in the Reborn stack with the smallest existing contract surface. |
Start by locating the existing ProductSurface descriptor, route, and caller test. Most WebUI features are already represented by one of these two paths:
read: WebUI handler -> ProductSurface::query -> ProductView descriptor
write: WebUI handler -> ProductSurface::invoke -> capability descriptor
-> query read-back when the result is durable state
The owning crates are:
ironclaw_assistant: product DTOs, the concrete ProductView and
command/capability descriptor instances, and product orchestration.ironclaw_product_contracts: the ProductSurface contract, the
ProductView/ProductSurfaceCommandDescriptor/ProductCapabilityDescriptor
types, and the ProductSurfaceCaller/BoundProductSurface caller binding.ironclaw_host_api: shared host-facing error vocabulary
(ProductAdapterError).ironclaw_webui: route descriptors, handlers, gateway/listener/auth, and
the Vite frontend under frontend/.ironclaw_composition: production assembly and dependency wiring.ironclaw_cli: boot and serve command wiring.Run the graph status check once. If it is missing or stale, use targeted
rg searches and verify the result against live code.
bash scripts/codebase-graph.sh status
rg -n "ProductSurface|ProductView|ProductSurfaceCommandDescriptor|ProductCapabilityDescriptor" crates/product/ironclaw_assistant crates/contracts/ironclaw_product_contracts crates/product/ironclaw_webui
rg -n "descriptor|webui_v2_routes|ProductSurface" crates/product/ironclaw_webui/src/webui_v2
Read the owning crate's AGENTS.md, then CLAUDE.md or CONTRACT.md when
present. Find the nearest existing descriptor and copy its narrow pattern.
ProductView<Params, Output> in
crates/product/ironclaw_assistant/src/reborn_services.rs or its owning submodule.ProductSurfaceCommandDescriptor for typed product
commands, or a ProductCapabilityDescriptor for API-only side effects.ironclaw_assistant or the owning
service. Keep authorization, approval, persistence, and runtime mediation
in their existing stages.ironclaw_webui. Handlers
receive ProductSurfaceCaller and use BoundProductSurface; they do not
reach into composition, stores, dispatchers, or runtime lanes.crates/product/ironclaw_webui/frontend/src and use
the existing API client and page patterns.Arc field when an existing surface can
carry the operation.Do not add a feature-specific port, facade method, DTO family, builder field,
or adapter by default. Add one only when it provides dependency inversion,
two production implementations, a real test seam, a required dyn injection
point, or an enforced security/ownership boundary. Record the reason in the
PR description and run the architecture test for dependency changes.
ProductSurface only. ironclaw_assistant imports in
WebUI are limited to wire DTOs and descriptors.cargo test -p ironclaw_assistant
cargo clippy -p ironclaw_assistant --all-targets --all-features -- -D warnings
cargo test -p ironclaw_webui --all-features
cargo clippy -p ironclaw_webui --all-targets --all-features -- -D warnings
cargo test -p ironclaw_architecture_tests # when ownership or dependencies change
pnpm --dir crates/product/ironclaw_webui/frontend test
Use a caller-level test for every new route or side effect. Add a whole-path integration test when the feature changes turn execution or cross-layer behavior. Do not add a new test tier solely because a recipe lists it.