Validate Lampa plugin, grep, i18n, or build
validate_codeRuns lint, convention, grep, i18n, and build-command checks on Lampa plugins or snapshots to surface pitfalls, TODOs, missing keys, and command hints without executing code.
Instructions
Run checks and hints, not catalogs (list_catalog) and not edit plans (plan_change); prefer analyze_plugin for a descriptive report and trace_symbol for dependency graphs — this tool only scores/lints/hints, it never describes structure.
mode=plugin scores a plugin against official pitfalls (target required); grep scans the snapshot for TODOs/console.log/undefined/lang/hardcoded HTML (not a shell, no code execution); i18n looks up key or, if omitted, coverage vs en.js; build returns the npm/gulp command for a goal as text — it never runs it.
Example: mode=grep checks=['todos','console_logs']; mode=i18n key='player_playlist' or omit key for a full coverage table.
checks only applies to mode=grep (default: all five checks); show_missing only applies to i18n coverage and is ignored once key is set; goal only applies to mode=build; target is required only for mode=plugin (folder or JS path) — missing plugin → error listing folders, missing target for mode=plugin → error naming the requirement.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | For mode=i18n: specific translation key. Omit for coverage report. | |
| goal | No | For mode=build: which command to hint (does not execute). Default build. | |
| mode | Yes | plugin=convention score; grep=snapshot quality scans (not a shell); i18n=keys/coverage; build=command hint (does not run npm/gulp). | |
| checks | No | For mode=grep: which checks. Defaults to all. | |
| target | No | Required for mode=plugin: plugin folder name or repo-relative JS path. Missing plugin → error listing folders. | |
| show_missing | No | For mode=i18n coverage: include missing/extra key lists. Default true. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| markdown | Yes | Human-readable markdown report. Always present, including empty-result cases. Does not write files. |