Skip to content

feat: Support for ai-script validation in CI/CD pipelines #9

Description

@h-leisure846

Problem

When working with MAGI files that contain ai-script blocks, there's no way to validate the JSON structure of these blocks during CI.

A malformed ai-script block (e.g., missing required fields like script-id or prompt) won't be caught until runtime when an LLM agent tries to process it.

Proposed Solution

A CLI tool or a lint rule that validates:

  • JSON syntax within ai-script fenced code blocks
  • Required fields are present (script-id, prompt)
  • Optional fields conform to expected types
  • provider and model-name values are from a known set (configurable)

Something like:

magi lint docs/**/*.mda

Why This Matters

As MAGI adoption grows, having guardrails for content authors will be important. Catching errors at write-time rather than at LLM-processing-time saves a lot of debugging.

Would love to hear if this aligns with the project's roadmap!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions