sputnikus/opencodedots/clonedeps
- community
Checking that the SKILL.md file is still in the repository.
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 @librarian is enough.
Install
npx vskill@latest install sputnikus/opencodedots/clonedepsSKILL.md
The same SKILL.md was published earlier as alvinunreal/oh-my-opencode-slim/clonedeps.
Clonedeps Skill
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 @librarian do the repo-specific thinking; the orchestrator performs the approved filesystem/git operations directly.
Workflow
Step 1: Check Existing State
First check whether .slim/clonedeps.json exists.
If it exists:
- Read it before asking librarian for a new plan.
- Check whether each listed
pathexists under.slim/clonedeps/repos/. - Reuse existing cloned repos when they already satisfy the user's task.
- Only ask librarian 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.
Step 2: Ask Librarian for the Clone Plan
Delegate dependency discovery and source resolution to @librarian.
Use this prompt:
Librarian should return a small plan with:
- dependency name;
- current version/range if discoverable;
- official source repository URL;
- tag/commit/ref to check out;
- package subdirectory if the source is a monorepo;
- reason local source helps;
- caveats such as huge repo, missing tag, or uncertain version mapping.
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.
Step 3: Verify and Confirm the Plan
The orchestrator owns final approval. Before cloning:
- Verify refs manually where possible with
git ls-remote. - Prefer pinned tags or commit SHAs. If no exact tag exists, ask librarian to
find the correct module-specific tag/commit or explain the fallback.
- 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.
- Present the plan to the user with dependency, repo URL, ref, reason, and
caveats.
- Ask for confirmation before network cloning unless the user explicitly asked
to clone immediately.
Step 4: Clone Sources Manually
Create one folder per source repository under:
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:
git ls-remote <repoUrl> <ref>to verify the ref where practical.- Clone without submodules/recursive behavior.
- Prefer shallow fetch/clone where practical.
- Clone into a temporary directory under
.slim/clonedeps/repos/, then move it
into the final safe-name path after checkout succeeds.
- Remove failed temporary clones.
Do not run dependency install/build/test scripts from cloned repositories.
Step 5: Write Local State
Write .slim/clonedeps.json so future agents know what exists:
If a clone fails after earlier clones succeeded, still write state for the successful clones so future inspection is not misleading.
Do not add .slim/clonedeps.json to .gitignore. It is small, reviewable project metadata that can be committed. Only the cloned repository contents under .slim/clonedeps/repos/ should be ignored.
Step 6: Update Ignore Files
Update .gitignore with an idempotent marker block:
Update .ignore so OpenCode can read the cloned source while git still ignores it:
Only edit content inside these marker blocks.
Step 7: Register Dependency Source in AGENTS.md
After successful cloning, update the repository root AGENTS.md so future agents know why the dependency source exists and where to look.
If AGENTS.md already has a ## Cloned Dependency Source section, update that section. Otherwise append this section:
Use this format and list the actual repos directly. Keep each item to one short sentence so future agents do not need an extra read just to know what is there:
Also keep .slim/clonedeps.json updated as the structured manifest, but do not make agents read it for the basic repo list.
Cleanup
When the user asks to clean cloned dependencies, remove:
.slim/clonedeps/repos/- the managed clonedeps marker blocks from
.gitignoreand.ignore
Ask before removing .slim/clonedeps.json or the AGENTS.md section because they may be intentional project metadata.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/clonedeps/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sputnikus/opencodedots/clonedeps)