concept-scaffold-gen
ConceptScaffoldGen
Scaffold a concept spec for $ARGUMENTS with annotations, state declarations (groups, enums, records), typed action signatures, capabilities, and a register() action.
When to use: Use when creating a new concept specification from scratch. Generates a .concept file with annotations (@version, @category, @visibility, @gate), purpose, state (with groups, enum types, record types), actions with typed variants, invariants, capabilities block, and a register() action following Jackson's methodology.
Design Principles
- Singularity: Each concept serves exactly one purpose — if the purpose has 'and', it's two concepts.
- Independence: A concept never references another concept's types or calls another concept's actions. Use type parameters and syncs.
- Sufficiency & Necessity: Every state field is needed by at least one action. Every action serves the concept's purpose. No dead state.
- Invariant Completeness: Use all six invariant constructs comprehensively: example (named tests), forall (quantified properties), always (state predicates), never (safety), eventually (liveness), action requires/ensures (contracts). Cover core purpose, error paths, constraints, state transitions, and boundary conditions. Aim for 2-5 invariants per concept.
- Success is ok: The happy-path variant must always be named
ok. Do not use domain-specific success names likecreated,configured,registered,updated. Domain context belongs in the output fields. Exception: actions with multiple distinct success outcomes that syncs need to distinguish (e.g.,ok/missfor cache lookup,clean/conflictsfor merge).
More from itshalffull/concept-oriented-programming-framework
handler-scaffold-gen
Generate TypeScript concept handler ( . handler . ts ) implementation scaffolds from provided configuration including concept name , action signatures , and storage patterns . Defaults to functional ( StorageProgram ) style ; falls back to imperative style only when explicitly requested . Optionally generates a conformance test file
9project-scaffold
Initialize new Clef projects with the standard directory structure , example concept specs , and configuration files
1suite-scaffold-gen
Generate suite manifest ( suite . yaml ) scaffolds and directory structures for new Clef suites from provided configuration
1deploy-scaffold-gen
Generate deployment manifest ( deploy . yaml ) scaffolds from provided configuration including runtimes , concepts , and infrastructure settings
1sync-scaffold-gen
Generate synchronization rule ( . sync ) file scaffolds from provided configuration including trigger patterns , guard conditions , and effect actions
1deployment-validator
Parse and validate deployment manifests against compiled concepts and syncs . Produce deployment plans with transport assignments , runtime mappings , and sync to engine bindings
1