Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.crewship.ai/llms.txt

Use this file to discover all available pages before exploring further.

Lint

cmd/crewship/cmd_lint.go is read-only static analysis over the user’s local CLI footprint. Catches the boring class of mistakes that block AI workflows but don’t surface as runtime errors:
  • cli-config.yaml uses a removed or typo’d key
  • A prompt-library file has an invalid name (would fail at crewship prompt use)
  • A prompt-library file is empty (probably accidental)
  • The markdown config value isn’t auto|on|off
Goal: catch at lint time, not at ask time. Never modifies anything.

crewship lint

FlagTypeDefaultEffect
--strictboolfalseWarnings also fail (non-zero exit). Suitable for CI.
Exit code is non-zero when at least one error is found (warnings don’t fail the run by default), so safe to wire into shell init scripts.

Examples

crewship lint
crewship lint --strict        # warnings also fail

Output

Linting local CLI footprint
  warn     /Users/you/.crewship/cli-config.yaml — unknown config key "deafult_agent" (typo? supported: server, workspace, token, format, default_agent, markdown)
  error    /Users/you/.crewship/prompts/bad name.md — invalid prompt name (invalid character " " in name (allowed: a-z A-Z 0-9 - _ .)) — won't be reachable via `crewship prompt use`
  warn     /Users/you/.crewship/prompts/empty.md — prompt is empty (0 bytes) — accidental?

result: 1 error(s), 2 warning(s)
Error: lint failed

Checks

SeverityWhat
warnConfig file missing (run \crewship login“).
errorConfig YAML is malformed.
warnUnknown config keys — typos against server, workspace, token, format, default_agent, markdown.
errorInvalid markdown value (allowed: `autoonofftruefalse10yesno`).
warnSubdirectories or non-.md files under ~/.crewship/prompts/.
errorPrompt filename violates the name rules (won’t be reachable via crewship prompt use).
warnPrompt file is zero bytes.

See also