Expand description
Shared Clap-derived operator surface and Jinja fragments. Clap-derived operator metadata and shared MiniJinja fragments.
Clap remains the command grammar. Surface extracts the stable operator
view used by committed skills and installed instructions, while the shared
fragments own repeated invocation, version, and command-inventory prose.
Structs§
- Surface
- Serializable operator-facing projection of one Clap command graph.
- Surface
Argument - One positional argument or flag in a
Surface. - Surface
Command - One command in a
Surface.
Enums§
- Surface
Requirement - Whether Clap requires an argument.
- Surface
Scope - How far Clap propagates an argument.
Constants§
- COMMANDS_
FRAGMENT - Shared fragment that renders the visible top-level Clap commands.
- INVOCATION_
FRAGMENT - Shared fragment that renders mounted invocations and the no-
--rule. - VERSION_
FRAGMENT - Shared fragment that renders a skill frontmatter version line.
Functions§
- add_
fragments - Add ctl-core’s shared operator fragments to an existing environment.
- environment
- Create a strict
MiniJinjaenvironment containing the shared fragments. - render
- Render one operator template with a
Surfaceand consumer-owned context.