| name | enable |
| description | Enable togi friction capture for you alone — this repo or all your repos; teammates unaffected. Use when the user wants to turn on, opt into, or start togi capture. |
| allowed-tools | ["Bash(command -v jq)","Bash(mkdir -p .togi/friction/pending)"] |
Instructions
First, run command -v jq. If not found, output: "jq is required but not installed. Install it (e.g., sudo dnf install jq or brew install jq) and retry /togi:enable." Then stop.
If this skill was invoked with the argument repo or all (e.g. by /togi:setup), apply that scope directly. Otherwise use AskUserQuestion to ask: "Enable friction capture at which scope?" Options: This repo only / All my repos.
This repo only (repo)
mkdir -p .claude
touch .claude/settings.local.json
jq -s '(.[0] // {}) | .env.TOGI_ENABLED = "1" | .permissions.allow = ((.permissions.allow // []) + ["Write(.togi/friction/pending/**)"] | unique)' .claude/settings.local.json > .claude/settings.local.json.tmp \
&& mv .claude/settings.local.json.tmp .claude/settings.local.json
mkdir -p .togi/friction/pending
Then output:
Friction capture is enabled for you in this repo — teammates are unaffected.
This also overrides a global opt-out, for this repo only.
Turn it off any time with /togi:disable.
All my repos (all)
touch ~/.claude/settings.json
jq -s '(.[0] // {}) | .env.TOGI_ENABLED = "1" | .permissions.allow = ((.permissions.allow // []) + ["Write(.togi/friction/pending/**)"] | unique)' ~/.claude/settings.json > ~/.claude/settings.json.tmp \
&& mv ~/.claude/settings.json.tmp ~/.claude/settings.json
mkdir -p .togi/friction/pending
Then output:
Friction capture is enabled for you in all repos on this machine — teammates are unaffected.
Exception: repos where you disabled togi individually keep their own setting — run /togi:enable in those repos too.
Turn it off in a single repo by running /togi:disable there, or run /togi:disable and choose `All my repos` to turn it off globally.