hagi
Installation
SKILL.md
Hagi
Use this skill when the user asks to:
- run or verify the
hagiCLI - explain or execute
project,proposal,chat, orautotaskcommands - inspect CLI flags, environment variables, exit codes, or JSON automation behavior
- validate proposal-session flows against a backend API
- modify or debug the CLI implementation in
repos/cli
Core rules
- Prefer
npx @hagicode/cli ...for normal usage and package-level verification. - Use
hagi ...only when@hagicode/cliis already installed and onPATH. - Run repository-local install, build, and test commands with the working directory set to
repos/cli. - Never run
npm install,npm run, or other build commands at the monorepo root. - Prioritize API invocation guidance over codebase tours unless the user explicitly wants implementation work.
Choose the workflow
- Published package usage -> read
references/cli-usage.md - Explicit proposal lifecycle work -> read
references/proposal-flow.md - Source-tree development in
repos/cli-> readreferences/local-development.md - Post-change validation -> read
references/validation.md
Runtime configuration
Shared runtime flags:
--base-url <url>--token <token>--lang <lang>--json
Equivalent environment variables:
HAGI_API_BASE_URLHAGI_API_TOKENHAGI_API_LANG
Flags override environment variables.
Command surface
The current top-level command families are:
projectproposalchatautotask
Source of truth
- Canonical writable skill source:
repos/cli/skills/hagi/ - Historical reference only:
repos/skills/hagi/
References
references/cli-usage.md- package-first installation, quick start, runtime flags, and exit codesreferences/proposal-flow.md- explicit proposal lifecycle sequence and command examplesreferences/local-development.md- maintainer-only development, build, and repository internalsreferences/validation.md- targeted verification after documentation or code changes