Validate Lampa plugin, grep, i18n, or build
validate_codeRun code quality checks and hints to detect common pitfalls, scan for TODOs, debug logs, hardcoded strings, evaluate translation coverage, and suggest build commands without executing them.
Instructions
Run checks and hints, not catalogs (list_catalog) and not edit plans (plan_change). mode=plugin scores a plugin against official pitfalls; grep scans the snapshot for TODOs/console.log/undefined/lang/hardcoded HTML (not a shell); i18n looks up key or, if omitted, coverage vs en.js; build returns the npm/gulp command for a goal — it does not run it. checks only for mode=grep (default all); show_missing only for i18n coverage (ignored when key is set); goal only for mode=build; target is required for mode=plugin (folder or JS path); missing plugin → error listing folders.
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. |