← ClaudeAtlas

moon-commandslisted

Canonical `moon` CLI invocations for scoping and running tasks in a moon monorepo — the single source of truth every moon-moth skill and agent uses for `moon query` and `moon run`. Background knowledge contract, preloaded into moon-moth agents; not a user-facing workflow.
g-bastianelli/nuthouse · ★ 0 · AI & Automation · score 65
Install: claude install-skill g-bastianelli/nuthouse
# moon-moth — canonical moon commands Single source of truth for the `moon` invocations every moon-moth skill and agent uses. Reference this contract instead of re-deriving commands. All commands run from the moon workspace root (the dir containing `.moon/`). > Verified against **moon 2.2.4**. `moon query <sub>` emits **JSON on stdout > natively** — there is no `--json` flag. CLI flags are kebab-case > (`--default-branch`, not `--defaultBranch`). ## Detecting scope (what changed, what's affected) | Goal | Command | | ------------------------------------------ | ------------------------------------------------------------------ | | Files changed in the working tree | `moon query changed-files --local` | | Files changed vs the default branch | `moon query changed-files --default-branch` | | Files changed between two revisions | `moon query changed-files --base <sha> --head <sha>` | | Affected projects + tasks (working tree) | `moon query affected` | | Affected incl. downstream dependents | `moon query affected --downstream deep` | | Affected incl. upstream dependencies first | `moon query affected --upstream deep` | | Affected projects only, via project graph | `moon query project