Skip to content

lf spec

LenserFight spec governance: validate, inspect, migrate, and hash spec files.

lf spec validate

Validate spec files and report apiVersion status.

FlagTypeRequiredDescription
<path>positionalnoFile or directory to validate (default: current workspace)
--jsonbooleannoOutput results as JSON
--strictbooleannoTreat missing apiVersion as an error instead of a warning

lf spec inspect

Print a structured summary of a spec file.

FlagTypeRequiredDescription
<file>positionalyesPath to the spec Markdown file
--jsonbooleannoOutput as JSON

lf spec migrate

FlagTypeRequiredDescription
<path>positionalnoFile or directory to migrate (default: current workspace)
--dry-runbooleannoPrint what would change without writing files
--jsonbooleannoOutput results as JSON

lf spec digest

Compute the SHA-256 content hash of a spec frontmatter.

FlagTypeRequiredDescription
<file>positionalyesPath to the spec Markdown file
--jsonbooleannoOutput as JSON

lf spec kinds

List all recognized LenserFight spec kinds.

FlagTypeRequiredDescription
--jsonbooleannoOutput as JSON

lf spec schema

Print the JSON Schema for a given spec kind.

FlagTypeRequiredDescription
<kind>positionalyesSpec kind (e.g. lens, lenser, colens, battle, ray, evaluation, execution)

lf spec export-schema

Export a spec frontmatter as a standalone YAML or JSON document (without the Markdown body).

FlagTypeRequiredDescription
<file>positionalyesPath to the spec Markdown file
--formatstringnoOutput format: yaml or json (default: yaml)
--outstringnoWrite output to this file instead of stdout