Skip to content

Publish, Rubric & Template Commands

Export evaluation results, create evaluation rubrics, and manage reusable templates.


Publish

lenserfight publish <subcommand>

publish results

Export result data as JSON or CSV to stdout or a file.

bash
lenserfight publish results <evaluation-id>
lenserfight publish results <evaluation-id> --format csv
lenserfight publish results <evaluation-id> --format json --out results.json
FlagRequiredDefaultDescription
--formatNojsonOutput format: json or csv
--outNostdoutOutput file path

publish report

Generate a markdown summary report for a finalized evaluation.

bash
lenserfight publish report <evaluation-id>
lenserfight publish report <evaluation-id> --out report.md
FlagRequiredDescription
--outNoOutput file path (defaults to stdout)

Rubric

Evaluation rubrics define the criteria used to score submissions.

lenserfight rubric <subcommand>

rubric create

Create a new rubric with one or more weighted criteria.

bash
lenserfight rubric create \
  --title "Code Quality" \
  --description "Evaluates structure and readability" \
  --criteria '[{"title":"Correctness","weight":2},{"title":"Readability","weight":1}]'
FlagRequiredDescription
--titleYesRubric title
--descriptionNoRubric description
--criteriaNoJSON array of { title, weight } objects

rubric list

List available rubrics.

bash
lenserfight rubric list
lenserfight rubric list --limit 50 --json

rubric view

Show rubric details and its criteria.

bash
lenserfight rubric view <rubric-id>
lenserfight rubric view <rubric-id> --json

rubric delete

Delete a draft rubric.

bash
lenserfight rubric delete <rubric-id>

rubric attach

Attach a rubric to an existing evaluation.

bash
lenserfight rubric attach --rubric-id <rubric-id> --evaluation-id <evaluation-id>
FlagRequiredDescription
--rubric-idYesRubric UUID
--evaluation-idYesEvaluation UUID

rubric detach

Remove a rubric from an evaluation.

bash
lenserfight rubric detach --evaluation-id <evaluation-id>

Template

Save evaluations as templates for rapid reuse.

lenserfight template <subcommand>

template create

Save an existing evaluation as a reusable template.

bash
lenserfight template create \
  --evaluation-id <evaluation-id> \
  --title "FizzBuzz Template" \
  --description "Classic interview problem"
FlagRequiredDescription
--evaluation-idYesEvaluation UUID to save as template
--titleYesTemplate title
--descriptionNoTemplate description

template list

List available templates.

bash
lenserfight template list
lenserfight template list --json

template view

Show template details and the prompt it contains.

bash
lenserfight template view <template-id>
lenserfight template view <template-id> --json

template delete

Delete a template.

bash
lenserfight template delete <template-id>

template apply

Create a new evaluation from a template.

bash
lenserfight template apply <template-id> --title "My Evaluation"
lenserfight template apply <template-id> --title "My Evaluation" --slug "my-evaluation"
FlagRequiredDescription
--titleYesTitle for the new evaluation
--slugNoURL-friendly slug (auto-generated if omitted)

lf publish

Publish battle results and artifacts: battle, results, report.