pywayne-bin-gettool
Fetch and install C++ tools/libraries from cpp_tools repository. Use when users need to download or clone third-party C++ libraries such as eigen, opencv, pcl, fmt. Use for building tools from source using CMake, installing tools with installation scripts, listing available tools, or managing cpp_tools repository URL. Triggered by requests to fetch, get, download, clone, or install C++ tools or libraries.
What this skill does
# Pywayne Bin Gettool Tool fetcher for C++ libraries from cpp_tools repository. Supports sparse/partial checkout, optional building with CMake, runtime dependency bundling for pybind modules, import verification, and installation scripts. ## Quick Start ```bash # List all supported tools gettool -l # Fetch a tool to default path (based on name_to_path_map.yaml) gettool <tool_name> # Fetch to specific path gettool <tool_name> -t <target_path> # Fetch and build (if buildable) gettool <tool_name> -b # Fetch and install (if installable) gettool <tool_name> -i ``` ## Usage Patterns ### 1. List Available Tools When user wants to see what tools are available: ```bash gettool -l ``` ### 2. Simple Fetch Download tool source code to default path (determined by name_to_path_map.yaml in current directory): ```bash gettool opencv gettool eigen ``` ### 3. Fetch with Custom Target Download tool to a specific directory: ```bash gettool opencv -t third_party/opencv gettool eigen -t external/eigen ``` ### 4. Build from Source Build the tool using CMake. Requirements: - Tool must be marked as `buildable: true` in name_to_path_map.yaml - Tool must have a `CMakeLists.txt` file - Build output (lib/) is copied to target directory - The active Python interpreter is passed to CMake as `PYTHON_EXECUTABLE` - If configured, runtime libraries are bundled into the target directory and the Python module import is verified ```bash gettool apriltag_detection -b gettool <tool_name> -b -t build/<tool_name> ``` ### 5. Clean Copy (src + include only) Fetch only `src/` and `include/` directories if they exist: ```bash gettool eigen -c ``` ### 6. Fetch and Install After fetching, execute the tool's installation script (if configured): ```bash gettool pcl -i gettool pcl -i --global-install-flag true # Use sudo make install ``` ### 7. Fetch Specific Version Check out a specific version/tag/branch (only works for tools that are submodules): ```bash gettool fmt -v 9.1.0 ``` ### 8. Manage Repository URL ```bash # Show current URL gettool --get-url # Set custom URL gettool --set-url <URL> # Reset to default URL gettool --reset-url ``` ## Command Reference | Argument | Description | |----------|-------------| | `<name>` or `-n <name>` | Tool name from name_to_path_map.yaml | | `-t <path>` | Target output directory (default: based on mapping) | | `-b` / `--build` | Build using CMake + make (if buildable) | | `-c` / `--clean` | Copy only src/include directories | | `-v <version>` | Checkout specific version (submodules only) | | `-i` / `--install` | Run installation script (if installable) | | `--global-install-flag` | Set to `true` for sudo make install | | `-l` / `--list` | List all supported tools | | `--get-url` | Show current repository URL | | `--set-url <URL>` | Set repository URL | | `--reset-url` | Reset to default URL | ## Tool Types and Behavior ### Submodule Tools - Cloned as full independent repositories - Support `-v` for version checkout - Not built via CMake (use `-b` for source-level build if configured) ### Non-Submodule Tools (Sparse Checkout) - Fetched via git sparse-checkout from cpp_tools repo - The fetcher should prefer `git clone --sparse --filter=blob:none --depth 1` and fall back to plain sparse clone for compatibility - Can be built with `-b` (requires buildable=true and CMakeLists.txt) - Build output (`lib/`) copied to target directory ## Default Path Mapping When `-t` is not specified, the target path is determined by the `path` field in `name_to_path_map.yaml` relative to the current working directory. Example: If `opencv` maps to `third_party/opencv`, running `gettool opencv` creates `./third_party/opencv`. ## Prerequisites - Git - CMake and a platform build tool (for `-b` flag) - Appropriate C++ toolchain (for building) - Write permissions for target directory ## Network, Proxy, And Sandbox Troubleshooting When `gettool`, `git clone`, `curl`, or `git sparse-checkout` fails against GitHub, do not assume the user's proxy is off. In Codex or another restricted sandbox, localhost TCP connections can fail even when the host machine proxy is running. Use this diagnostic sequence: ```bash git config --global --get http.proxy git config --global --get https.proxy lsof -nP -iTCP:7890 -sTCP:LISTEN nc -vz 127.0.0.1 7890 curl -I --proxy http://127.0.0.1:7890 https://github.com --connect-timeout 5 ``` Interpretation: - If `lsof` shows a proxy process listening on `*:7890`, the proxy is probably enabled. - If `nc` or `curl` fails with `Operation not permitted` or `Couldn't connect to server` inside the sandbox, rerun the same essential check with tool escalation. - In Codex, use `exec_command` with `sandbox_permissions: "require_escalated"` and a short justification instead of asking the user to rerun it manually. - Good escalation prefix rules are specific, for example `["nc", "-vz", "127.0.0.1", "7890"]`, `["curl", "-I", "--proxy", "http://127.0.0.1:7890"]`, or `["gettool", "<tool_name>"]`. - If elevated `nc`/`curl` succeeds but sandboxed `gettool` fails, report it as a sandbox networking limitation, not as a proxy configuration problem. - If elevated proxy checks fail too, then inspect proxy app settings, port number, and whether Git is configured to use the same proxy. ## Common Tool Names Typical tools available (run `gettool -l` for current list): - `eigen` - Linear algebra library - `opencv` - Computer vision library - `pcl` - Point Cloud Library - `fmt` - Formatting library - `apriltag_detection` - AprilTag detection - `spdlog` - Fast C++ logging library
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.