lore validate
Validate a package manifest and content without publishing.
Usage
lore validate [<path>] [flags]Description
Runs the full validation engine against the package: schema compliance, metadata correctness, dependency resolution, translation presence, and prompt injection detection.
Flags
| Flag | Description |
|---|---|
--strict | Fail on warnings (default: fail on errors only) |
--format <json|text> | Output format (default: text) |
Examples
# Validate the current directory
lore validate
# Validate a specific directory
lore validate ./my-skill
# JSON output for CI integration
lore validate --format jsonValidation Checks
| Check | Description |
|---|---|
| Schema compliance | manifest.yaml matches the spec schema |
| Metadata | Required fields present and valid |
| Version format | Semver (MAJOR.MINOR.PATCH) |
| Dependencies | All declared dependencies resolvable |
| Translations | defaultLanguage content file present |
| Prompt injection | Content scanned for injection patterns |
Exit Codes
| Code | Meaning |
|---|---|
0 | Valid |
1 | Validation errors |
2 | Invalid arguments |