sync-tool
Install or update coding CLI tools (brew, jj, gh) across macOS, Linux, and Windows. Triggers when: "install jj", "install gh", "install brew", "update my coding tools", "missing gh command", "missing jj command", "set up CLI dependencies". Also use when: a sibling skill needs to ensure a tool is on PATH before running. Examples: "install gh and jj", "make sure jj is up to date", "sync coding tools".
What this skill does
# Sync Tool
## 1. INTRODUCTION
### Purpose & Context
**Purpose**: Idempotently install or update a registered set of coding CLI tools (`brew`, `jj`, `gh`) across macOS, Linux, and Windows so any sibling skill can guarantee its dependencies are on `PATH`. Each tool is installed from its official upstream source with a per-OS branch.
**When to use**:
- A user requests installation/update of `brew`, `jj`, or `gh` (e.g., "install jj", "update my coding tools", "missing gh command").
- A sibling skill (e.g., `coding:commit`) needs to ensure `jj`/`gh` are present before running.
- Bootstrapping a fresh machine for coding work where the registered CLIs must be present at minimum versions.
**Prerequisites**:
- A POSIX-compatible shell (`bash`) on macOS/Linux, or Git-Bash/MSYS/Cygwin on Windows.
- Network access to upstream package sources (Homebrew, GitHub releases, apt/dnf, winget, crates.io).
- `python3` (3.8+) on `PATH` to run `scripts/sync.py`.
### Your Role
You are a **Tool Sync Director** who orchestrates dependency installation like a release engineer running a bootstrap pipeline. You never install tools directly yourself; you parse arguments, dispatch a single execution subagent to run `scripts/sync.py`, then verify the resulting per-tool report. Your management style emphasizes:
- **Strategic Delegation**: Hand the full registry run to one execution subagent rather than fanning out per tool — the script already serializes correctly.
- **Idempotent Coordination**: Always allow re-runs; trust `--check` and `--dry-run` to make state visible before taking action.
- **Quality Oversight**: Read the per-tool status lines and decide whether the run was clean, partial, or failed.
- **Decision Authority**: On failure, decide whether to retry a single tool with `--only` or escalate the error to the caller.
## 2. SKILL OVERVIEW
### Skill Input/Output Specification
#### Required Inputs
This skill has no required inputs. Invoking it with no arguments runs the full registry in order.
#### Optional Inputs
- **`--only <csv>`**: Comma-separated subset of registered tool names to sync (e.g., `--only=jj,gh`). Registry order is preserved regardless of CSV order.
- **`--check`**: Status-only mode. Reports what is missing/outdated and exits non-zero if any registered tool is not at minimum version. No installation is performed.
- **`--dry-run`**: Print the planned installer command for each selected tool without executing it. Sets `DRY_RUN=1` for each `installers/<tool>.sh`.
- **`--force`**: Reinstall/upgrade even when the tool is present and at minimum version. Sets `FORCE=1` for each installer.
- **`SYNC_TOOL_NO_WAIT=1` (env var)**: For `gh.sh` post-install — print the auth banner once and exit non-zero instead of polling. Lets CI/non-interactive callers fail fast.
#### Expected Outputs
- **Per-tool status line** on stdout, one per selected tool, in the form `{tool}: {status} ({action})` where `status ∈ {installed, updated, already_current, skipped, failed}` and `action` is the underlying command run (or "noop" for `already_current`).
- **Summary report**: A trailing line `summary: N tools — X installed, Y updated, Z already_current, W skipped, V failed`.
- **Process exit code**: `0` if every selected tool ended in `installed | updated | already_current | skipped`; non-zero if any ended in `failed`. In `--check` mode, non-zero if any registered tool is missing or below its minimum version.
#### Data Flow Summary
The skill reads CLI flags, resolves a tool list (default = full registry, in order), then for each tool: detects the OS via `uname -s`, executes `scripts/installers/<tool>.sh` (passing `DRY_RUN`/`FORCE` env vars), verifies the resulting `<tool> --version` against the per-tool minimum, and (for `gh` only) polls `gh auth status` until authenticated or the user aborts. Each tool's outcome is emitted as a status line, then a summary line and a final exit code reflecting overall success.
### Visual Overview
#### Main Skill Flow
```plaintext
YOU SUBAGENTS
(Orchestrates Only) (Perform Tasks)
| |
v v
[START]
|
v
[Step 1: Parse args & resolve tool list]
|
v
[Step 2: Dispatch sync.py run] ─────→ (Subagent: run scripts/sync.py with flags)
| │
| ├─ for each tool in registry order:
| │ detect OS → run installers/<tool>.sh
| │ → verify version
| │ → (gh only) poll gh auth status
| └─ emit per-tool status + summary
v
[Step 3: Review report]
|
v
[Step 4: Decision] ── proceed | retry --only=<failed> | abort
|
v
[END]
Legend:
═══════════════════════════════════════════════════════════════════
• LEFT COLUMN: You parse, dispatch, review, decide
• RIGHT SIDE: One execution subagent runs the registry
• ARROWS (───→): You assign work to the subagent
═══════════════════════════════════════════════════════════════════
Note:
• You: Parse args, dispatch one run, read report, decide
• Subagent: Runs sync.py end-to-end, reports per-tool status
• Skill is LINEAR: Step 1 → 2 → 3 → 4
```
## 3. SKILL IMPLEMENTATION
### Skill Steps
1. Parse Arguments & Resolve Tool List
2. Dispatch `sync.py` Run
3. Review Per-Tool Report
4. Decision
### Step 1: Parse Arguments & Resolve Tool List
**Step Configuration**:
- **Purpose**: Translate caller arguments into a concrete list of tools to process and the mode flags to pass through.
- **Input**: Raw CLI args (`--only`, `--check`, `--dry-run`, `--force`) plus environment (`SYNC_TOOL_NO_WAIT`).
- **Output**: Resolved tool list (preserving registry order) and mode flags ready to pass to `scripts/sync.py`.
- **Sub-skill**: None
- **Parallel Execution**: No
#### Phase 1: Planning (You)
**What You Do**:
1. **Read arguments** from the invocation. Default behavior = run full registry (`brew`, `jj`, `gh`) in order.
2. **Validate `--only` values** against registered names listed in `references/tool-registry.md`. Reject unknown names with a clear error.
3. **Detect platform** via `uname -s` to anticipate which installer branch will run (informational; the installers themselves re-detect).
4. **Use TodoWrite** to seed a single task: "Run sync.py with resolved flags" (status `pending`).
5. **Prepare the dispatch**: Build the `python3 scripts/sync.py …` command line with the resolved flags.
**OUTPUT from Planning**: A ready-to-run `sync.py` command line and a single pending todo.
### Step 2: Dispatch `sync.py` Run
**Step Configuration**:
- **Purpose**: Execute the install/update pipeline end-to-end.
- **Input**: The `sync.py` command line from Step 1.
- **Output**: Per-tool status lines and a final summary line on stdout, plus an exit code.
- **Sub-skill**: None
- **Parallel Execution**: No (the registry is intentionally serialized; `brew` must precede `jj`/`gh` on macOS).
#### Phase 2: Execution (Subagent)
**What You Send to Subagent**:
In a single message, you assign the run to one execution subagent.
- **[IMPORTANT]** You MUST ask the subagent to ultrathink hard about each tool's branch and the post-install auth behavior for `gh`.
- **[IMPORTANT]** Use TodoWrite to update the task status from `pending` to `in_progress` when dispatched.
Request the subagent to perform the following:
>>>
**ultrathink: adopt the Release Engineer mindset**
- You're a **Release Engineer** with deep expertise in cross-platform CLI installation who follows these technical principles:
- **Idempotence First**: Re-running with the same flags must produce the same final state without errors.
- **Official Sources Only**: Use upstream-recommended install methods per OS (Homebrew on mac, official apt repo / dnf / cargo / tarball on Linux,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.