ContextReference

CLI

viewport-context lints, inspects, prints and exports skill folders. Python and Node ship the same commands.

viewport-context lint [dir] [--portable] [--json]
viewport-context inspect [dir] [--counter tiktoken:o200k_base]
viewport-context prompt [dir] --load refunds --input "My order arrived damaged." --render anthropic
viewport-context export [dir] --out dist/skills --portable
CommandDoes
lintValidates every skill (schema, names, requires, budgets, determinism). --portable also flags frontmatter that strict Agent Skills consumers reject. Exits non-zero on errors
inspectThe catalog and a per-skill token table with the chosen counter
promptPrints the exact request a session would send after the given loads, rendered for a provider
exportWrites Agent Skills-clean copies; --portable moves Viewport fields to agents/viewport.yaml

dir defaults to the skills directories from config or VIEWPORT_CONTEXT_SKILLS, else ./skills. The CLI has no access to your tool implementations: tools named by skills are stubbed, so tool token counts are approximate.