skill-git:init

skill-git:init is a command for Claude Code from KnowledgeXLab/skill-git. It costs 66 tokens per session (1,374 once invoked), scanned A, original, MIT.

A setup command that begins version tracking for your skills by creating a separate Git repository in each skill folder and adding an initial version tag.

In plain words
What is it for?
Use it once when setting up tracking for Claude, Gemini, Codex, or OpenClaw skills, optionally for a project.
Why use it?
It prepares skills for later versioning, comparison, rollback, and other skill-management commands.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; names the AskUserQuestion tool; reads ~/.codex paths.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the skill-git plugin — 2 skills, 10 commands shipped together

Good fit Use it once when setting up tracking for Claude, Gemini, Codex, or OpenClaw skills, optionally for a project.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add KnowledgeXLab/skill-git
Claude Code
/plugin install skill-git

Made for: Claude Code.

Or install skill-git, the plugin that ships this one along with the rest of its 2 skills, 10 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for skill-git:init

README.md
[![agentmods](https://agentmods.dev/badge/commands/knowledgexlab/skill-git/init/github.svg)](https://agentmods.dev/commands/knowledgexlab/skill-git/init)
Your own site
<a href="https://agentmods.dev/commands/knowledgexlab/skill-git/init"><img src="https://agentmods.dev/badge/commands/knowledgexlab/skill-git/init/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for skill-git:init

Your own site · 80×15
<a href="https://agentmods.dev/commands/knowledgexlab/skill-git/init"><img src="https://agentmods.dev/badge/commands/knowledgexlab/skill-git/init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,374 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00066 $0.01374
Opus 5.5 $0.00026 $0.00550
Sonnet 5.5 $0.00013 $0.00275
Haiku 4.5 $0.00007 $0.00137

Measured 2mo ago against content hash 3bf7cac5a958, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

skill-git:init scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/init.md · 119 lines

How it starts

The opening of the file, as written. The whole thing — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are running /skill-git:init. Follow these steps in order. \

Task Tracking

You MUST create a task for each item below and update each task's status as you progress (pending → in_progress → completed):

  1. Resolve agent — detect or prompt for the target agent (claude, gemini, codex, openclaw)
  2. Explain what will happen — summarize the init steps to the user before executing
  3. Verify git is installed — check git --version
  4. Run initialization — execute sg-init.sh and display the full output

Step 1 — Resolve agent

Parse $ARGUMENTS for a -a <value> flag.

If -a was provided: use that value as agent. Validate it against the known agents:

value base_dir
claude ~/.claude
gemini ~/.gemini
codex ~/.codex
openclaw ~/.openclaw/skills, ~/.openclaw/workspace/skills/

If the value is not in the table, respond:

Unknown agent: "<value>"
Supported agents: claude, gemini, codex, openclaw

Then stop.

If -a was not provided: auto-detect using the following steps in order:

Step A — Check parent process: Run ps -p $PPID -o comm= and match the output:

  • contains claude → claude
  • contains gemini → gemini
  • contains codex → codex
  • contains openclaw or claw → openclaw

If matched, set agent and note: (agent auto-detected from process: <agent>)

Step B — Check user config (if Step A fails): Read ~/.skill-git/config.local.md and look for a default_agent field:

---
default_agent: gemini
---

If found, set agent from that value. Note: (agent from config: <agent>)

Step C — Prompt user (if Step B also fails):

Tell the user that the CLI tool could not be detected automatically, then use the AskUserQuestion tool:

  • question: "Which agent are you initializing skills for?"
  • header: "Agent"
  • options:
    • label: "claude", description: "~/.claude/skills/"
    • label: "gemini", description: "~/.gemini/skills/"
    • label: "codex", description: "~/.codex/skills/"
    • label: "openclaw", description: "~/.openclaw/skills/ + ~/.openclaw/workspace/skills/"
  • multiSelect: false

Read the full file on GitHub · 119 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 119 lines · 0 tokens per session scan A 3bf7cac5a958

Subscribe to this mod's changes

skill-git:init is a command published in the GitHub repository KnowledgeXLab/skill-git (42 stars, last pushed 6mo ago), licensed MIT. It adds 66 tokens to every session and 1,374 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.