skills
This commit is contained in:
@@ -184,28 +184,27 @@ Generate its full `#region` header in `contracts/modules.md` under its parent mo
|
||||
**Minimal header for C3 API endpoints:**
|
||||
```
|
||||
#region Domain.Resource.Action [C:3] [TYPE Function] [SEMANTICS domain,action]
|
||||
@BRIEF One-line purpose.
|
||||
@RELATION DEPENDS_ON -> [DependencyService]
|
||||
@RELATION DEPENDS_ON -> [DTO:RequestSchema]
|
||||
# @ingroup Domain
|
||||
# @BRIEF One-line purpose.
|
||||
# @RELATION DEPENDS_ON -> [DependencyService]
|
||||
# @RELATION DEPENDS_ON -> [DTO:RequestSchema]
|
||||
```
|
||||
|
||||
**Full header for C4/C5 orchestration & cross-stack functions:**
|
||||
```
|
||||
#region Domain.Resource.Action [C:4] [TYPE Function] [SEMANTICS domain,action]
|
||||
@BRIEF One-line purpose.
|
||||
@PRE Precondition 1 (verifiable by guard clause).
|
||||
@PRE Precondition 2.
|
||||
@POST Output guarantee 1 (testable assertion).
|
||||
@POST Output guarantee 2.
|
||||
@SIDE_EFFECT State mutation, I/O, or external call.
|
||||
@SIDE_EFFECT Logging (REASON/REFLECT/EXPLORE markers required).
|
||||
@RELATION DEPENDS_ON -> [ServiceDependency]
|
||||
@RELATION DEPENDS_ON -> [DTO:InputSchema]
|
||||
@DATA_CONTRACT InputDTO -> OutputDTO
|
||||
@RATIONALE Why this implementation approach.
|
||||
@REJECTED What alternative was considered and forbidden.
|
||||
@TEST_EDGE: scenario_name -> Expected failure behavior.
|
||||
@TEST_EDGE: scenario_name -> Expected failure behavior.
|
||||
# @ingroup Domain
|
||||
# @BRIEF One-line purpose.
|
||||
# @PRE Precondition 1 (verifiable by guard clause).
|
||||
# @POST Output guarantee 1 (testable assertion).
|
||||
# @SIDE_EFFECT State mutation, I/O, or external call.
|
||||
# @SIDE_EFFECT Logging (REASON/REFLECT/EXPLORE markers required).
|
||||
# @RELATION DEPENDS_ON -> [ServiceDependency]
|
||||
# @RELATION DEPENDS_ON -> [DTO:InputSchema]
|
||||
# @DATA_CONTRACT InputDTO -> OutputDTO
|
||||
# @RATIONALE Why this implementation approach.
|
||||
# @REJECTED What alternative was considered and forbidden.
|
||||
# @TEST_EDGE: scenario_name -> Expected failure behavior.
|
||||
```
|
||||
|
||||
**Screen Model actions (Svelte `.svelte.ts`):**
|
||||
|
||||
Reference in New Issue
Block a user