limit-usage-setup
Install or uninstall the limit-usage statusLine wrapper (edits settings.json).
What this skill does
Install or uninstall the limit-usage statusLine wrapper. This is the only part that edits `settings.json`; day-to-day thresholds live in the `limit-usage` skill.
The wrapper captures usage from the statusLine stream (zero metering cost) so the guard can read it. Without it, thresholds set via `limit-usage` do nothing.
<ARGUMENTS>
$ARGUMENTS
</ARGUMENTS>
Pick `install` or `uninstall`. `guard.sh` only manages the wrapper copy in the data dir; **this skill owns settings.json** — it wraps the live `statusLine.command` on install and strips the wrapper back off on uninstall. We never store the original, so a statusLine the user edited after install is still respected.
The **Edit tool's own permission prompt is the single consent point** — never add a separate confirmation question. Before each Edit, just state in one line which file and the before → after of `statusLine.command` (the display is unchanged; `uninstall` reverses install).
### Finding the settings file (both flows)
Never hardcode `~/.claude/settings.json` — find the file that actually defines `statusLine`:
- User scope is `$CLAUDE_CONFIG_DIR/settings.json` (else `~/.claude/settings.json`). Read `$CLAUDE_CONFIG_DIR` directly — it does **not** move `CLAUDE.md`, so don't infer the dir from the CLAUDE.md path in your context.
- It may instead be the project `.claude/settings.json`. Use the session context to pick; read the candidate(s) and edit the one defining `statusLine` (or the user-scope file if none does and the user wants it global).
- **If that file is a symlink, resolve it with `realpath` and edit the real file** — editing the link replaces it with a plain file and silently detaches it from a dotfiles repo. Tell the user the real path (e.g. `~/dotfiles/claude/settings.json`); for a dotfiles symlink that's a repo change they'll want to commit.
### install
1. `guard.sh install` → copies the wrapper into the data dir (a version-stable path that survives updates, since statusLine can't expand `${CLAUDE_PLUGIN_ROOT}`), drops any pre-unification snapshot files, and prints `WRAPPER_PATH` then the baked path on the next line. Capture it as `<wrapper>`.
2. Read the current `statusLine.command`. **If it already contains `statusline-wrapper.sh` it's wrapped** — step 1 already refreshed the copy, so say it's done and stop (no settings edit unless the wrapper path itself changed).
3. **Edit** the command to `<wrapper> '<current command>'` — single-quote the current command, escaping embedded `'` as `'\''`; if there was none, the command is just `<wrapper>`. Keep `type`/`padding`; add a `statusLine` block with `"type": "command"` if absent.
4. Guard activates after the next response (the first statusLine refresh writes the snapshot). Set thresholds with `/limit-usage set`.
### uninstall
1. `guard.sh uninstall` → removes the wrapper copy and prints `WRAPPER_REMOVED` (idempotent).
2. Find the file whose `statusLine.command` contains `statusline-wrapper.sh`.
3. **Unwrap and Edit.** The wrapped form is `<wrapper> '<original>'`: strip the leading `<…>statusline-wrapper.sh ` and the surrounding single quotes (un-escape `'\''` → `'`). If an `<original>` remains, restore it; if nothing remains, there was no original → remove the `statusLine` block.
`guard.sh` for either flow:
`CLAUDE_PLUGIN_DATA=${CLAUDE_PLUGIN_DATA} CLAUDE_PLUGIN_ROOT=${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/bin/guard.sh <install|uninstall>`
## Notes
- After updating the plugin, re-run `install` to refresh the wrapper copy in the data dir (the baked statusLine path stays the same, so no settings.json edit is needed — just re-copy). If `/limit-usage status` warns the wrapper looks outdated, this is the fix.
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.