etemaro-strategy-validatorlisted
Install: claude install-skill romankurnovskii/etemaro
# Etemaro Strategy Validator
Validates strategy JSON against the canonical `Strategy` schema using the **Etemaro CLI** as
the single source of truth. Never re-implement the schema in a script — call the command.
User config uses the same CLI and the same report format (`etemaro config validate`).
Why this matters: `StrategyLibraryManager.loadMerged()` casts the JSON straight to `Strategy`
with no normalisation. Unknown fields or misplaced keys are silently dropped and code reading
them sees `undefined`. The command surfaces that.
## Run it
Prefer the global binary; fall back to the project scripts. Run from the repository root.
```bash
# strategy library / single strategy
etemaro strategy validate config/shared/strategy-library.json
npm run validate:strategy -- config/shared/strategy-library.json
# active-strategy check (requires smartWalletListId when the loaded config needs it)
etemaro strategy validate --active config/shared/strategy-library.json
# user config (same report format)
etemaro config validate
etemaro config validate --env-optional
npm run validate:config --env-optional
# machine-readable / strict
etemaro strategy validate config/shared/strategy-library.json --json
etemaro strategy validate config/shared/strategy-library.json --strict
```
Flags:
| Flag | Command | Effect |
|------|---------|--------|
| `--active` | strategy | Enforce active-strategy gate: error when `screening.entrySource=smart_wallets` and strategy lacks `smartWalletListId`; warn when