repo-explore
Clone and explore external GitHub repositories to understand how libraries, frameworks, or dependencies work. Use when the user provides a GitHub URL or owner/repo shorthand, asks how an external package works, wants source-code details for a dependency, asks to explore or check out a repository, or needs the exact implementation for the version used by the current project.
What this skill does
# Repo Explore Use this skill to answer source-based questions about external GitHub repositories. Clone or refresh the target repo in a local cache, align the checkout to the version used by the current project when possible, then inspect the cached source with normal repo-reading tools. ## Cache Location ```text ~/.cache/codex/repos/<owner>/<repo>/ ``` ## Workflow 1. Parse the repository identifier. - Accept `https://github.com/owner/repo`, `[email protected]:owner/repo.git`, `github.com/owner/repo`, or `owner/repo`. - Strip trailing `.git` and slashes. 2. Prepare the cached checkout. - If `~/.cache/codex/repos/<owner>/<repo>/` exists, inspect its current state and refresh only when needed. - If it does not exist, clone with: ```bash mkdir -p ~/.cache/codex/repos/<owner> git clone https://github.com/<owner>/<repo>.git ~/.cache/codex/repos/<owner>/<repo> ``` - For cache refreshes, branch switches, tag switches, or repair steps, read `references/update-reference.md`. 3. Align to the relevant version before exploring. - First check whether the repository is a dependency of the current working project. - Read `references/version-detection.md` for dependency files to inspect and tag-mapping patterns by ecosystem. - If a matching version or tag is found, fetch tags and check it out before reading code. - If the user asks for a specific branch, tag, or commit, use that explicit revision even if the current project depends on a different version. 4. Explore the cached source. - For broad architecture questions, use a focused exploration sub-agent if the current Codex environment exposes one. Give it the cache path, the question, and the response requirements below. - If no suitable sub-agent is available, inspect directly with `rg`, `git`, and targeted file reads. Prefer source files, tests, and local docs over guesses. - Always verify the checkout with `git status --short --branch`, `git rev-parse HEAD`, and, when relevant, `git describe --tags --always`. 5. Answer from evidence. - State which repo path and revision were inspected. - Include file paths and line numbers for important claims. - Show short code snippets only when they directly support the answer. - End with a `Key Files for Further Exploration` table. ## Response Requirements When answering questions about the repository, include: - A brief answer summary. - The source-backed explanation, with file paths and line numbers. - Relevant function signatures, type definitions, or key logic snippets. - A `Key Files for Further Exploration` table with 3-7 files: ```markdown ## Key Files for Further Exploration | File | Purpose | Start Here If... | |------|---------|------------------| | `pkg/apis/v1/types.go` | Core type definitions | You want the data model | | `pkg/controller/main_controller.go` | Main control flow | You want request handling | | `docs/design.md` | Architecture notes | You want high-level design context | ``` ## Important Notes - Mention if no matching dependency version could be found and explain which revision you selected instead. - For private repositories, use the user's configured Git credentials. - Large repositories may take time to clone or fetch; keep the user informed. - Do not delete cached repositories or force-reset dirty cached checkouts unless the user asks or the cache is clearly corrupt and the deletion is limited to the cached external repo.
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.