mars-schema 0.28.0

Pure schema reader and editor for Mars agent packages
Documentation
{
  "kind": "skill-tree",
  "packages": [
    {
      "id": "package",
      "provenance": {
        "translator": "{version}",
        "dialect": "agent-skills",
        "source": {},
        "selected_items": [
          "skills/main/SKILL.md",
          "skills/shared/SKILL.md"
        ]
      },
      "prepared": {
        "classification": {
          "kind": "foreign",
          "dialect": "agent-skills",
          "evidence": {
            "source": "predicted",
            "paths": []
          }
        },
        "manifest": {
          "output_path": "mars.toml",
          "reading": {
            "frontmatter": [
              [
                "schema",
                1
              ],
              [
                "name",
                "package"
              ]
            ],
            "fields": {
              "name": "package",
              "version": "",
              "schema": 1
            },
            "body": null,
            "diagnostics": []
          },
          "change": {
            "kind": "generated"
          }
        },
        "definitions": [
          {
            "kind": "skill",
            "slug": "main",
            "source_path": "skills/main/SKILL.md",
            "output_path": "skills/main/SKILL.md",
            "reading": {
              "frontmatter": [
                [
                  "name",
                  "main"
                ],
                [
                  "description",
                  "A skill."
                ]
              ],
              "fields": {
                "name": "main",
                "description": "A skill.",
                "model-invocable": true,
                "user-invocable": true,
                "license": null,
                "compatibility": null,
                "metadata": null
              },
              "body": "See [guide](guide.md), [shared](../shared/README.md), [repo script](../../scripts/build.sh), [site](https://example.com/x) and [top](#heading), [draft](../dropped/SKILL.md).\n\n```\n[ignored](../nope.md)\n```\n",
              "diagnostics": []
            },
            "change": {
              "kind": "none"
            }
          },
          {
            "kind": "skill",
            "slug": "shared",
            "source_path": "skills/shared/SKILL.md",
            "output_path": "skills/shared/SKILL.md",
            "reading": {
              "frontmatter": [
                [
                  "name",
                  "shared"
                ],
                [
                  "description",
                  "A skill."
                ]
              ],
              "fields": {
                "name": "shared",
                "description": "A skill.",
                "model-invocable": true,
                "user-invocable": true,
                "license": null,
                "compatibility": null,
                "metadata": null
              },
              "body": "# Body\n",
              "diagnostics": []
            },
            "change": {
              "kind": "none"
            }
          }
        ],
        "payload": [
          {
            "source_path": "skills/main/guide.md",
            "output_path": "skills/main/guide.md"
          },
          {
            "source_path": "skills/shared/README.md",
            "output_path": "skills/shared/README.md"
          }
        ],
        "selection": {
          "definitions": [
            {
              "kind": "skill",
              "slug": "main",
              "output_path": "skills/main/SKILL.md",
              "skills": []
            },
            {
              "kind": "skill",
              "slug": "shared",
              "output_path": "skills/shared/SKILL.md",
              "skills": []
            }
          ],
          "edges": [],
          "uses_providers": []
        },
        "diagnostics": {
          "skills/main/SKILL.md": [
            {
              "code": "skill.outside-reference",
              "severity": "warning",
              "path": [],
              "message": "links to `../../scripts/build.sh`, which is outside the skill and is not imported"
            },
            {
              "code": "skill.outside-reference",
              "severity": "warning",
              "path": [],
              "message": "links to `../dropped/SKILL.md`, which is outside the skill and is not imported"
            }
          ]
        }
      }
    }
  ],
  "diagnostics": {}
}