con un clic
tech-spec
Write a typed call-stack architecture handoff.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Write a typed call-stack architecture handoff.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Coordinate parallel ticket workers as an event-driven control plane through repos worktrees, Pi sessions, delegated pull-request review, squash merges, and filesystem tracker frontiers. Use when orchestrating implementation tickets rather than implementing or reviewing one ticket directly.
Implement one ticket handed off by the orchestrator and open a PR for review.
Manage work in the local Tickets filesystem tracker. Use when the user asks to inspect, search, create, claim, update, move, rename, complete, or lint a Tickets project or ticket.
Plan a huge chunk of work — more than one agent session can hold — as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.
Provides comprehensive code review guidance. Helps catch bugs, improve code quality, and give constructive feedback. Use when: reviewing pull requests, conducting PR reviews, code review, reviewing code changes, establishing review standards, mentoring developers, architecture reviews, security audits, checking code quality, finding bugs, giving feedback on code.
Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.
| name | tech-spec |
| description | Write a typed call-stack architecture handoff. |
| disable-model-invocation | true |
A tech spec is a typed call-stack architecture handoff: code-shaped contracts plus execution flows. Prefer TypeScript pseudocode over prose wherever precision matters.
This skill is design-only. Do not implement. Save a file only when the user asks for a file; otherwise return the spec inline.
If a question can be answered by exploring the codebase, inspect the codebase instead of asking.
Completion criterion: the branch is chosen from actual available context; missing architectural decisions are not invented.
Read:
../tdd/SKILL.mdInspect existing code and docs for local vocabulary, module layout, domain concepts, errors, adapters, observability, runtime patterns, and test style.
Completion criterion: the spec uses project vocabulary and does not introduce a pattern, library, adapter, schema style, or test strategy before checking local precedent.
Capture:
Mark unknowns as open questions instead of filling gaps with plausible design.
Completion criterion: every claimed requirement or constraint is grounded in conversation, code, docs, or an explicit open question.
Produce materially different alternatives before choosing the recommended design. Alternatives should differ in interface shape, seam placement, ownership, call stack, runtime topology, or module boundaries — not just names.
For each alternative, sketch:
Compare alternatives on:
Completion criterion: the recommendation is chosen after comparing alternatives, not before.
For the recommended design, outline every new, changed, or deleted:
Name seams, adapters, implementations, ownership boundaries, and what crosses each boundary. State what each layer may know and what must not leak across the seam.
Completion criterion: every new or changed boundary has a concrete type/interface/API sketch, or an explicit reason no new contract is needed.
For every new, changed, or deleted behavior, show the call stack from entrypoint to side effects and response.
Include type/data flow:
raw input
-> boundary DTO / unknown
-> parser
-> canonical domain/application input
-> service/module interface
-> adapter call
-> typed result/error
-> projection
-> serialized output
Include current vs proposed flow when changing existing behavior. Include failure, retry, cancellation, transactionality, idempotency, observability, authorization, and runtime-hop flow when reachable.
Completion criterion: every affected behavior has an end-to-end call stack and type/data-flow trace.
List:
For each file, state the contract, code path, boundary, adapter, domain concept, or test responsibility it owns.
Completion criterion: every contract and call-stack step maps to a file/module or an open question.
Use the sibling TDD workflow and testing standards. Plan vertical Red-Green-Refactor slices: one failing behavior test, minimal implementation, repeat. Do not write a horizontal "all tests first, all code later" plan.
Favor behavior through public interfaces and real seams over implementation-coupled mocks.
Cover proportionately:
Completion criterion: every public behavior, invariant, important failure path, changed boundary, and changed seam has a red test slice or an explicit reason not to test it.
Return the spec inline unless the user requested a file path. If a file was requested, save it there.
Do not implement and do not ask to implement by default.
Completion criterion: the output follows the outline below and is implementation-ready for another engineer.
/grilling for the interview./domain-modeling when the user wants ADRs, glossary/domain language, or durable design artifacts created during discovery.Use this shape unless the task is tiny enough to compress without losing contracts or call stacks:
# <Title>
## Summary
## Context / Current State
## Goals
## Non-Goals
## Invariants
## Design Constraints
## Alternatives Considered
### Option 1: <name>
### Option 2: <name>
### Option 3: <name>
## Recommendation
## Proposed Design
## Domain Model and Types
## Types, Interfaces, and APIs
## Seams, Boundaries, Adapters, and Implementations
## Call Stacks and Data Flow
### Current / Old Flow
### Proposed / New Flow
### Failure Flow
### Retry / Cancellation / Idempotency Flow
### Observability Flow
## Files to Add / Change / Delete
## RGR TDD Test Plan
## Risks and Open Questions
Omit sections that truly do not apply, but do not omit typed contracts, seams, call stacks, or tests merely because they are hard to specify.