setup-git-lite

Solid

Disable Claude Code built-in git instructions and inject a curated 280-tok minimum via SessionStart hook. Saves ~2,200 tok/session + ~1,700 tok/call.

Code & Development 28 stars 0 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 85/100

Stars 20%
49
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

Manage Claude Code's built-in `includeGitInstructions` token consumption. ## Subcommand routing Parse the first argument from `$ARGUMENTS`: | Subcommand | Risk | AI-allowed | Behavior | | ---------- | ---- | ---------- | -------- | | `install` | ๐Ÿ”ด destructive | โŒ user-only | Modifies ~/.claude/settings.json + shell profile. Requires explicit `<command-name>claude-code-token-saver:setup-git-lite</command-name>` tag with `<command-args>install</command-args>` | | `revert` | ๐Ÿ”ด destructive | โŒ user-only | Aggressive cleanup. Same gating as install | | `status` | ๐ŸŸข safe | โœ… allowed | Read-only diagnostic | | `dismiss-banner` | ๐ŸŸข safe | โœ… allowed | Suppresses the recommendation banner (preferences.json flag) | | `undismiss-banner` | ๐ŸŸข safe | โœ… allowed | Re-enables the banner | | `help` | ๐ŸŸข safe | โœ… allowed | Prints usage | | (empty) | ๐ŸŸข safe | โœ… allowed | Run `status`, then append one-line usage hint: "Subcommands: install, revert, status, dismiss-banner, undismiss-banner, help" | ## Invocation guard โ€” enforce for destructive subcommands only If the subcommand is `install` or `revert`: 1. **Verify explicit invocation**: the triggering user message MUST contain `<command-name>claude-code-token-saver:setup-git-lite</command-name>` along with `<command-args>install</command-args>` (or `revert`). If these tags are absent (i.e., you inferred the intent from natural-language context), STOP and respond: > "This action modifies your global Claude Code se...

Details

Author
ww-w-ai
Repository
ww-w-ai/claude-code-token-saver
Created
3 months ago
Last Updated
today
Language
JavaScript
License
Apache-2.0

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content โ€” not just same category