ai-estimates
Use when estimating how long a task will take: coding, writing, research, analysis, design, data work, or anything else AI can…
Clone important project dependency source code into an ignored local workspace so OpenCode can inspect library internals. Use when the user asks to clone dependencies, inspect dependency/source internals, understand SDK/framework behavior from source, debug library
Claude Code
$ npx -y skills add alvinunreal/oh-my-opencode-slim --skill clonedeps --agent claude-code
Codex
$ npx skills add alvinunreal/oh-my-opencode-slim --skill clonedeps -a codex -y
Cursor
$ npx skills add alvinunreal/oh-my-opencode-slim --skill clonedeps -a cursor -y
Gemini CLI
$ npx skills add alvinunreal/oh-my-opencode-slim --skill clonedeps -a gemini-cli -y
GitHub Copilot
$ npx skills add alvinunreal/oh-my-opencode-slim --skill clonedeps -a github-copilot -y
OpenCode
$ npx skills add alvinunreal/oh-my-opencode-slim --skill clonedeps -a opencode -y
Windsurf
$ npx skills add alvinunreal/oh-my-opencode-slim --skill clonedeps -a windsurf -y
name: clonedeps description: Clone important project dependency source code into an ignored local workspace so OpenCode can inspect library internals. Use when the user asks to clone dependencies, inspect dependency/source internals, understand SDK/framework behavior from source, debug library implementation details, or make core dependency repos locally readable. Do not use for ordinary API/docs questions where @explorer is enough.
You help users make a small set of important dependency source repositories locally readable to OpenCode.
This is a workflow skill, not a command wrapper. Do not use a helper script for dependency detection, ref validation, cloning, status, or cleanup. The orchestrator and `@explorer` do the repo-specific thinking; the orchestrator performs the approved filesystem/git operations directly.
First check whether `.slim/clonedeps.json` exists.
If it exists:
1. Read it before asking explorer for a new plan. 2. Check whether each listed `path` exists under `.slim/clonedeps/repos/`. 3. Reuse existing cloned repos when they already satisfy the user's task. 4. Only ask explorer for new recommendations if the existing manifest is missing, stale, or insufficient for the current task.
Do not rescan/re-plan from scratch when the manifest already has useful entries.
Delegate dependency discovery and source resolution to `@explorer`.
Use this prompt:
Understand this project first, then recommend remote source repos that would help a developer work on it. Read enough of the current repo to understand: - what the project does - its main architecture - the important integration points - what external systems or libraries it depends on in practice Think like a developer trying to debug or extend this project. Which remote repositories, if cloned locally, would actually help understand the codebase or solve likely implementation/debugging tasks? Do not make a dependency dump. Most dependencies are not worth cloning. Recommend a repo only when its source code would be more useful than docs or the current repo alone. For each recommendation, include: - repo name - repo URL - suggested ref/tag/commit if known - why cloning this source would help - when it would be useful - caveats Also include: - current-repo files/folders to inspect first - repos/dependencies you considered but would not clone Keep it small. Prefer 0–3 strong recommendations over 5 weak ones. If nothing clearly needs cloning, say so.
Explorer should return a small plan with:
Prefer at most 3-5 core dependencies. Include user-mentioned dependencies and central frameworks, SDKs, ORMs, runtime/plugin APIs, or build/runtime tools. Do not clone tiny utilities, transitive dependencies, or dev-only tools unless they are directly relevant to the active task.
The orchestrator owns final approval. Before cloning:
1. Verify refs manually where possible with `git ls-remote`. 2. Prefer pinned tags or commit SHAs. If no exact tag exists, ask explorer to find the correct module-specific tag/commit or explain the fallback. 3. Only use HTTPS GitHub/GitLab-style repository URLs by default. Reject `file://`, SSH URLs, local paths, URLs with embedded credentials, and private or auth-required repositories unless the user explicitly approves that case. 4. Present the plan to the user with dependency, repo URL, ref, reason, and caveats. 5. Ask for confirmation before network cloning unless the user explicitly asked to clone immediately.
Before cloning artifacts, inspect `.gitignore`. Update the managed block in place when present; otherwise append it. Add only the missing exact lines below, never duplicate entries or modify unrelated rules. This keeps cloned artifacts out of git.
# BEGIN oh-my-opencode-slim clonedeps .slim/clonedeps/repos/ # END oh-my-opencode-slim clonedeps
Read cloned sources by their absolute path.
Create one folder per source repository under:
.slim/clonedeps/repos/<safe-repo-name>/
Derive the safe name from the repository owner/name, not from the package name. For example, `https://github.com/opencode-ai/opencode.git` becomes `opencode-ai__opencode`. Replace `/` with `__`, strip common `.git` suffixes, and replace other unsafe path characters with `_`.
If multiple packages come from the same monorepo, clone the repository once and point each manifest entry at the same repo path with different `packagePath` values as needed. Do not create ecosystem folders, per-package clone folders, or per-version folders. If two different source repositories normalize to the same safe name, disambiguate manually and record the chosen path in `.slim/clonedeps.json`.
Clone/fetch with normal git commands. For an existing clone, first verify that `git remote get-url origin` matches the approved repo URL. If it does not match, stop and ask whether to clean/reclone.
Safe manual git pattern:
1. `git ls-remote <repoUrl> <ref>` to verify the ref where practical. 2. Clone without submodules/recursive behavior. 3. Prefer shallow fetch/clone where practical. 4. Clone into a temporary directory under `.slim/clonedeps/repos/`, then move it into the final safe-name path after checkout succeeds. 5. Remove failed temporary clones.
Do not run dependency install/build/test scripts from cloned repositories.
Write `.slim/clonedeps.json` so future agents know what exists:
{
"version": "1.0.0",
"updatedAt": "2026-05-12T00:Lean, fine tuned Opencode multi agent suite · Mix any models · Auto delegate tasks
Use when estimating how long a task will take: coding, writing, research, analysis, design, data work, or anything else AI can…
Generate comprehensive hierarchical codemaps for UNFAMILIAR repositories. Expensive operation - only use when explicitly asked…
Use when a request includes examples, samples, templates, or reference outputs. Treat them as evidence of intent, not as…
High-cost orchestrator workflow for large, high-risk, multi-phase coding efforts with meaningful dependencies and review gates.…
Configure and improve oh-my-opencode-slim for the current user. Use when users want to tune agents, models, prompts, custom…
Review recent work, find repeated workflow patterns, and suggest reusable skills, agents, commands, config changes, or playbooks.…
Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…
Create a new Architecture Decision Record with sequential numbering and AgentDB registration