BeLazy167/claude-mods-skill/tree/main/examples/branch-band
branch-band
프롬프트 위의 밴드에 현재 git 브랜치와 작업 트리 상태를 표시하는 Claude Code 모드 예제로, $.process.run을 통해 타이머로 새로 고침되고 $.state에 보관됩니다.
이 mod 소개
branch-band는 claude-mods-skill 저장소에 포함된 Claude Code 모드 예제입니다. 프롬프트 위의 밴드에 현재 git 브랜치와 작업 트리 상태를 표시하며, $.process.run을 사용하여 타이머로 새로 고침되고 $.state에 저장됩니다. Claude Code 내에서 로드되는 TypeScript 함수 후크 모듈에서 git branch --show-current 및 git status --porcelain을 실행합니다(2.1.287 이상 필요, 2.1.290에서 테스트됨). 저장소는 /plugin install claude-mods-skill --marketplace BeLazy167/claude-mods-skill 또는 claude plugin marketplace add와 claude plugin install을 통한 설치를 제공하며, 예제는 claude --plugin-dir examples/branch-band로 세션에서 시험해 볼 수 있습니다. 각 예제는 claude plugin validate, claude plugin test 및 tsc를 통과하며, scripts/check.sh 도우미가 Claude Code 업데이트 후 모든 예제를 다시 검증합니다.
설치
먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.
claude plugin marketplace add BeLazy167/claude-mods-skill claude plugin install branch-band@claude-mods-skill
원문 / README
claude-mods-skill
A Claude Code skill that teaches an agent how to build Claude Mods:
plugins whose behaviour is a TypeScript function-hook module that runs
inside Claude Code. It ships five small example mods that the agent copies.
Each example passes claude plugin validate, claude plugin test and tsc.
Tested with Claude Code 2.1.290. Mods need 2.1.287 or later and are on
by default. The old CLAUDE_CODE_ENABLE_FUNCTION_HOOKS flag is ignored;
remove it from your settings.
Claude Code also has a built-in plugin-authoring skill. That one knows
your exact build. This skill sits on top of it: tested examples, traps seen
on real builds, and how to prove and ship a mod.
Install
At the Claude Code prompt:
/plugin install claude-mods-skill --marketplace BeLazy167/claude-mods-skill
Or from your shell:
claude plugin marketplace add BeLazy167/claude-mods-skill
claude plugin install claude-mods-skill@claude-mods-skill
Then ask Claude to build a mod. The creating-mods skill loads on its own.
What is inside
skills/creating-mods/SKILL.md: the workflow, which example to copy, quick reference, loader rules, sharing.skills/creating-mods/references/gotchas.md: version-tagged traps from real builds.skills/creating-mods/references/examples.md: Anthropic and community mods worth reading.examples/:
| Example | Shows |
|---|---|
| hello-mod | Block a tool call; fail-closed .catch; smoke.sh proves the deny |
| redact-output | Rewrite Bash output before the model reads it |
| branch-band | Git branch above the prompt; $.process.run on a timer; $.state |
| notes-pane | /note and /notes; a pane with a Button; $.store |
| dice-tool | A tool the model can call |
Try one for a session: claude --plugin-dir examples/notes-pane.
Keeping it current
The mods API changes between releases. After a Claude Code update, run:
scripts/check.sh
It validates, tests and type-checks every example against your build.
Links
- Docs: https://code.claude.com/docs/en/plugins/mods/overview
- Built-in mods source: https://github.com/anthropics/claude-code/tree/main/mods
- Design thread: https://github.com/anthropics/claude-code/issues/91870
- Community catalogue: https://github.com/karanb192/awesome-claude-code-mods
동명의 다른 작품
- branch-bandbaselane-sh · ★ 1
