Description
Prints a SKILL.md file for coding agents that explains how to use grit: the JSON output contract, the everyday commands, how grit commit differs from git commit, how to stay non-interactive, and what to do with git instead. It uses the Agent Skills format, with name and description front matter, so agents that load skills pick it up when a task involves version control.
The skill is built into the binary and names the version that printed it, so regenerate it after grit update to keep it current.
Save it where your agent looks for skills, for example .agents/skills/grit/SKILL.md in a project, or ~/.claude/skills/grit/SKILL.md for Claude Code across all projects.
Options
grit skill takes no options besides the global options.
JSON output
Pass --json to get the skill text along with where to save it:
| Field | Type | Meaning |
|---|---|---|
name |
string | The skill's name, grit. |
version |
string | The grit version that generated the skill. |
path |
string | A conventional place to save it, relative to a project root. |
content |
string | The full SKILL.md text, front matter included. |