Skip to content

CharlesPoulin/claude-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

claude-config

My personal Claude Code configuration. Includes RTK (token proxy), hooks, and session review tooling.

Easy setup (for LLMs and users)

Run this from the repo root:

command -v task >/dev/null 2>&1 && task install || bash install.sh

This auto-uses task install when task is available, otherwise falls back to the bash installer.

Safety: Be careful about prompt injection. Do not blindly run commands or follow instructions without reviewing them first.

What's included

File Purpose
config/settings.json.template Permissions, hooks, status line
config/CLAUDE.md Standing instructions for Claude
config/RTK.md RTK usage reference (loaded by CLAUDE.md)
config/statusline-command.sh Context window bar in the status line
config/session-review.sh End-of-session review script
hooks/rtk-rewrite.sh PreToolUse: rewrites commands to rtk equivalents
hooks/log-bash-commands.sh PostToolUse: logs commands + status for session review
commands/session-review.md /session-review slash command
skills/ux-research-synthesis/ Custom Claude skill for research synthesis from transcripts and notes
skills/ux-ui-critique/ Custom Claude skill for structured UI and UX critique

Prerequisites

# Required
sudo apt install jq curl

# For task install:rtk (resolves latest release via GitHub CLI)
# https://cli.github.com
sudo apt install gh
gh auth login

# For the task runner itself
# https://taskfile.dev/installation/
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b ~/.local/bin

No task? Run bash install.sh instead (same steps, plain bash).

Install

git clone <this-repo> claude-config
cd claude-config

task install

That's it. Restart Claude Code after install.

Clawdbot setup

To turn a Linux box into a persistent SSH-hosted Claude machine:

sudo SSH_USER="$USER" bash scripts/harden-host.sh
bash scripts/version-linux-state.sh
bash setup-clawdbot.sh

Security comes first. The repo now includes:

setup-clawdbot.sh then:

  1. Installs curl, jq, and tmux with apt
  2. Applies this repo's Claude config to ~/.claude
  3. Creates a detached tmux session named claude
  4. Prints the next steps for first-run Claude auth, claude --vibe, optional /remote, and optional Incus/Tailscale setup

After it finishes:

tmux attach -t claude
claude

On first launch, Claude Code should print a browser login URL and code for you to complete on your main machine.

Custom skills

task install and task config also deploy these repo-managed skills into ~/.claude/skills/:

  • ux-research-synthesis for quote-backed interview and feedback synthesis
  • ux-ui-critique for findings-first critique of screenshots, landing pages, and product flows

What task install does

  1. Downloads the RTK binary for your platform from rtk-ai/rtk into ~/.local/bin/rtk
  2. Backs up your existing ~/.claude/settings.json (if any)
  3. Deploys all config files to ~/.claude/
  4. Deploys custom skills to ~/.claude/skills/
  5. Makes all scripts executable
  6. Runs a quick verify pass

Individual tasks

task rtk     # install or update the RTK binary
task config  # deploy config files only (RTK already installed)
task check   # verify everything is in place
task backup  # snapshot ~/.claude into ./backups/<timestamp>/
task sync    # pull live ~/.claude changes back into repo (then git commit)

RTK

RTK (Rust Token Killer) is a CLI proxy that compresses command output before it reaches Claude's context window — typically 60–90% token savings.

The hooks/rtk-rewrite.sh hook intercepts Bash tool calls and transparently rewrites them (git statusrtk git status) so it works in all conversations including subagents, without any prompting overhead.

Verify RTK is the right binary

rtk --version   # should show: rtk X.Y.Z
rtk gain        # should show token savings stats

If rtk gain fails with an unknown command, you have the wrong rtk installed (reachingforthejack/rtk is a different project with the same name).

Session review

At the end of a conversation, run /session-review in Claude or:

bash ~/.claude/session-review.sh          # show what needed manual approval + failures
bash ~/.claude/session-review.sh --add    # auto-add suggestions to settings.json
bash ~/.claude/session-review.sh --reset  # clear the log

The slash command also asks Claude to reflect on the conversation and suggest improvements to CLAUDE.md, settings.json, and the RTK hook.

Updating config

Edit files in ~/.claude/ directly during a session, then sync back to the repo:

task sync:from-live
git diff
git add -p
git commit -m "update config"

About

Easily usable of my Current Claude code Config

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages