/harness:dev-detailed-designfrom harness
Guides the agent through low-level detailed design of a module or component — type/class models, API contracts, sequence diagrams, state machines, and database schemas — before implementation begins.
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.
[Persona Directive] You must execute this skill acting in the role of a Senior Engineer doing detailed design. Your job is to make every structural decision explicit before code is written, so implementation becomes mechanical. Do NOT spawn a subagent for this.
Design the module/component for: $ARGUMENTS
Scope distinction:
dev-system-designdecides what components exist and how they connect. This skill decides how each component is structured internally — its types, its public API contract, its data model, its state machine, its key flows. Its output isdocs/design-docs/<feature_id>/detailed-design.md.
Apply the shared engineering principles throughout, especially §1 (trace to the requirement), §2 (architecture before code), and §3 (design patterns deliberately).
Before starting detailed design, confirm these inputs exist:
user_visible_behavior in .harness/features.json).docs/SYSTEM_ARCHITECTURE.md or a system-design.md note).If any are missing, resolve them before continuing.
The public API is the component's promise to the rest of the system. Define it completely before writing any implementation.
POST /api/v1/orders
Authorization: Bearer <token>
Request body:
{
"customerId": "uuid",
"items": [{ "productId": "uuid", "quantity": 2 }]
}
Response 201:
{
"orderId": "uuid",
"status": "pending",
"createdAt": "ISO8601"
}
Errors:
400 – validation failed (list fields)
401 – unauthenticated
422 – business rule violation (e.g. insufficient stock)
// Define the interface contract before the implementation
interface OrderService {
placeOrder(cmd: PlaceOrderCommand): Promise<Result<Order, OrderError>>
cancelOrder(id: OrderId, reason: string): Promise<Result<void, OrderError>>
getOrder(id: OrderId): Promise<Option<Order>>
}
// Event: order.placed (published to: orders-topic)
{
"eventId": "uuid",
"eventType": "order.placed",
"occurredAt": "ISO8601",
"payload": {
"orderId": "uuid",
"customerId": "uuid",
"totalAmount": 9900
}
}
Rule: the contract is reviewed and locked before implementation. Changes to the contract after implementation starts are breaking changes and require explicit sign-off.
Define the core types, entities, and value objects. Use the language of the domain (see docs/DOMAIN_GLOSSARY.md if it exists):
// Entity — has identity, lifecycle, invariants
type OrderId = Brand<string, 'OrderId'>
type CustomerId = Brand<string, 'CustomerId'>
interface Order {
readonly id: OrderId
readonly customerId: CustomerId
readonly items: readonly OrderItem[]
readonly status: OrderStatus
readonly createdAt: Date
readonly updatedAt: Date
}
// Value object — no identity, equality by value
interface OrderItem {
readonly productId: ProductId
readonly quantity: Quantity // branded: 1..999
readonly unitPrice: Money // branded: non-negative
}
// Bounded set → discriminated union, not open string
type OrderStatus = 'pending' | 'confirmed' | 'shipped' | 'delivered' | 'cancelled'
Rules:
UserId with OrderId at compile time.Order object must be able to reject an invalid transition, not just hold data.For entities with lifecycle (Order, Payment, Subscription, Workflow), draw the state machine explicitly:
States: pending → confirmed → shipped → delivered
↘ cancelled ←────────────────┘
(cancelled from any pre-delivered state)
Transitions:
pending --[confirmOrder]--> confirmed (guard: stock available)
confirmed --[shipOrder]--> shipped (guard: address validated)
shipped --[deliverOrder]--> delivered (guard: courier confirms)
* --[cancelOrder]--> cancelled (guard: not already delivered)
Illegal transitions:
delivered --[cancelOrder]--> (throws DomainError)
cancelled --[*]--> (throws DomainError)
For each transition, document:
Draw the two most important flows: the happy path and the primary failure path.
POST /orders — happy path
Client → API Gateway → OrderController → OrderService → InventoryService (sync gRPC)
→ OrderRepository (write)
→ EventBus (publish order.placed)
← 201 Created ←──────────────────────────────
POST /orders — insufficient stock
Client → API Gateway → OrderController → OrderService → InventoryService (returns insufficient)
← 422 Unprocessable ←──────────────────────────
Rules:
For every new table or collection, write the schema with field types, nullability, and constraints:
-- orders
CREATE TABLE orders (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
customer_id UUID NOT NULL REFERENCES customers(id),
status TEXT NOT NULL CHECK (status IN ('pending','confirmed','shipped','delivered','cancelled')),
total_cents INTEGER NOT NULL CHECK (total_cents >= 0),
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
updated_at TIMESTAMPTZ NOT NULL DEFAULT now()
);
CREATE INDEX idx_orders_customer_id ON orders(customer_id);
CREATE INDEX idx_orders_status ON orders(status) WHERE status NOT IN ('delivered','cancelled');
-- order_items
CREATE TABLE order_items (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
order_id UUID NOT NULL REFERENCES orders(id) ON DELETE CASCADE,
product_id UUID NOT NULL REFERENCES products(id),
quantity INTEGER NOT NULL CHECK (quantity BETWEEN 1 AND 999),
unit_cents INTEGER NOT NULL CHECK (unit_cents >= 0)
);
For each table document:
Define the error types the component can produce and map them to HTTP status codes or error codes:
| Error | Cause | HTTP | Retry? |
|---|---|---|---|
ValidationError | Invalid input field | 400 | No — fix the input |
NotFoundError | Resource does not exist | 404 | No |
BusinessRuleError | Rule violation (e.g. cancel delivered order) | 422 | No — business constraint |
ConflictError | Concurrent modification / duplicate | 409 | Maybe — with new idempotency key |
ExternalServiceError | Downstream unavailable | 502 | Yes — with backoff |
InternalError | Unexpected / programmer error | 500 | No — fix the bug |
List what must ALWAYS be true (invariants) and what must NEVER happen (anti-invariants). Implementation will be tested against these:
order.total_cents == sum(item.unit_cents * item.quantity) — always.cancelled status cannot transition to any other status.order_items cannot exist without a parent orders row (enforced by FK + CASCADE).placeOrder for the same customer must not double-decrement stock — use SELECT ... FOR UPDATE or optimistic locking.Write docs/design-docs/<feature_id>/detailed-design.md with sections mirroring Steps 1–7.
Then hand off to the coding skill with an explicit pointer:
dev-be-developer, dev-go-developer, dev-js-ts-developer, etc.docs/design-docs/<id>/detailed-design.md. The API contract, type model, and DB schema are locked — do not deviate without raising a new design decision."What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nobodyonlyc/skills --plugin harness1,059 skills in this plugin
/6g-communication-researcherExpert-level 6G Communication Researcher specializing in sub-THz channel modeling, holographic MIMO, reconfigurable intelligent surfaces (RIS), AI-native air interface design, and semantic communications/abaqus-expertInvoke when: User needs help with Abaqus FEA, nonlinear analysis, contact mechanics, or material modeling. Provides: Solver setup, mesh strategies, job diagnostics, and result interpretation./abaqus-lhs-batch-datasetGenerate an Abaqus FEA training dataset for surrogate / ML models. Latin Hypercube Sampling (or sparse-pattern sampling) over a parameterized design vector, one case folder per sample, batch-submit Abaqus jobs via subprocess, recover from crashes, and write a unified dataset index. Use when the user wants to "build a training set for a surrogate model", "sweep design parameters in Abaqus", "run N FEA simulations", or "sample a design space".