Skip to content
Development
Skill

/pith-install

Install Pith into Claude Code. Copies hooks, patches settings.json, registers slash commands (/pith, /budget, /focus), and records the plugin root so hooks can resolve paths.

From plugin
pith
9712 skills4 commands4 hooks

Claude Code

$ npx -y skills add abhisekjha/pith --skill pith-install --agent claude-code

SKILL.md

pith-install.SKILL.md
name: pith-install
description: >
  Install Pith into Claude Code. Copies hooks, patches settings.json,
  registers slash commands (/pith, /budget, /focus), and records the
  plugin root so hooks can resolve paths.

When to use

  • User runs `/pith install`
  • User asks "how do I install pith" or "set up pith"

---

Steps

1 — Locate the pith directory

Find where pith lives. Try in order: 1. `~/.claude/plugins/cache/pith/pith/*/` (installed via plugin marketplace) 2. The directory containing this SKILL.md file (cloned from GitHub) 3. Ask the user: "Where did you clone pith to?"

2 — Run the install script

bash "<pith_dir>/install.sh"

Stream the output to the user so they can see each step tick off.

3 — Verify success

After the script completes, confirm all five things installed:

# Hooks copied
ls ~/.claude/hooks/pith/

# Slash commands registered
ls ~/.claude/commands/ | grep -E "pith|budget|focus"

# Settings patched
node -e "const s=require(require('os').homedir()+'/.claude/settings.json'); console.log(JSON.stringify({hooks:Object.keys(s.hooks||{}), statusLine:!!s.statusLine},null,2))"

# Plugin root recorded
cat ~/.config/pith/config.json

# State dir exists
ls ~/.pith/

If any check fails, show the specific error and offer to re-run just that step.

4 — Confirm to user

Show this summary:

Pith installed.

Active automatically (zero config):
  ✓ Tool output compression
  ✓ Token meter in statusline  [PITH 0k/200k]
  ✓ Auto-compact at 70% context

On-demand:
  /pith lean|ultra|precise   output compression
  /pith debug|arch|plan      structured formats
  /pith commit               commit message
  /pith wiki                 project knowledge base
  /pith status               token usage
  /pith tour                 interactive walkthrough
  /budget <n>                hard token ceiling
  /focus <file>              load relevant sections only

Restart Claude Code to activate hooks.

---

Error handling

| Error | Fix | |-------|-----| | `node: command not found` | Tell user to install Node.js ≥18 | | `settings.json` parse error | Show the broken JSON, offer to reset to `{}` | | Permission denied on hooks dir | Run `mkdir -p ~/.claude/hooks/pith` first | | Plugin root not found | Ask user to re-clone: `git clone https://github.com/abhisekjha/pith` |

One-shot. Does not persist.

Read more
@abhisekjha
Ships withpith

Status: stable — not actively adding features. Bug fixes welcome via issues. Token compression hooks for Claude Code. Install once, works in every session, zero config.

Stars on GitHub

Momentum

stars in total
97
Star history of abhisekjha/pith on GitHub, a chart by star-history.com

Other skills on pith.

pith-arch

pith-arch

One-shot architecture decision format. Use for technology choices, design decisions, system design questions. Format: Decision /…

@abhisekjha@abhisekjhaInstall Skill
pith-commit

pith-commit

One-shot commit message generator. Conventional Commits format, subject ≤50 chars. Use when writing a git commit message for…

@abhisekjha@abhisekjhaInstall Skill
pith-debug

pith-debug

One-shot structured debug format. Use when diagnosing errors, unexpected behavior, crashes, or failures. Format: Problem / Cause…

@abhisekjha@abhisekjhaInstall Skill
pith-graph

pith-graph

Run the Pith wiki graph generator for the current project. Scans wiki/ for .md files, extracts [[wikilinks]], and opens an…

@abhisekjha@abhisekjhaInstall Skill
pith-plan

pith-plan

One-shot planning format. Use for feature planning, task breakdown, sprint planning, implementation plans. Format: Goal / Steps /…

@abhisekjha@abhisekjhaInstall Skill
pith-review

pith-review

One-shot structured code review. Use when reviewing a PR, diff, file, or function. Format: one line per issue. No summaries. Does…

@abhisekjha@abhisekjhaInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about pith-install.

Which coding agents can use pith-install?
pith-install installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.