본문으로 건너뛰기
Skillpedia
일반 코딩10k · #12011

clonedeps

하는 일

이 스킬은 프로젝트가 무시하는 로컬 폴더에 중요한 의존성 라이브러리의 소스 코드를 복사합니다. 라이브러리가 내부에서 어떻게 작동하는지 이해해야 하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓소스 코드로 라이브러리나 SDK가 어떻게 작동하는지 이해해야 할 때.
  • ✓문서가 설명하지 않는 라이브러리 내부 동작 때문에 버그가 생길 때.
  • ✓진행 중인 프로젝트를 위해 핵심 의존성 저장소를 로컬에서 읽고 싶을 때.

스킬 링크

https://github.com/alvinunreal/oh-my-opencode-slim/blob/master/src/skills/clonedeps/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/alvinunreal/oh-my-opencode-slim/blob/master/src/skills/clonedeps/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 프로젝트가 의존하는 주요 라이브러리의 소스 코드를 복사해서, 재시도를 어떻게 처리하는지 설명해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 스킬은 먼저 기존 복제 저장소 목록이 있는지 확인하고 제대로 작동하는 것은 재사용합니다. 그다음 복제하기 전에 작업에 중요한 의존성을 고릅니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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 @explorer 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:

  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.

Step 2: Ask Explorer for the Clone Plan

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:

  • 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:

  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.

Step 4: Update Ignore Files

Before cloning artifacts or cleaning cloned dependencies, inspect existing .gitignore and .ignore. 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. These blocks keep cloned artifacts git-local while the .ignore allowlist keeps them readable to OpenCode.

.gitignore:

# BEGIN oh-my-opencode-slim clonedeps
.slim/clonedeps/repos/
# END oh-my-opencode-slim clonedeps

.ignore:

# BEGIN oh-my-opencode-slim clonedeps
!.slim/
!.slim/clonedeps.json
!.slim/clonedeps/
!.slim/clonedeps/repos/
!.slim/clonedeps/repos/**
.slim/clonedeps/repos/**/.git/
.slim/clonedeps/repos/**/.git/**
# END oh-my-opencode-slim clonedeps

Step 5: Clone Sources Manually

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

자주 묻는 질문

복제된 저장소는 어디에 저장되나요?

프로젝트의 .slim 폴더 안 로컬 폴더에 저장되며, 프로젝트가 이를 무시합니다.

언제 쓰지 말아야 하나요?

일반적인 API나 문서 질문에는 문서를 읽는 것으로 충분하므로 쓰지 않아야 합니다.

이전 복제본을 재사용하나요?

네. 기존 목록에 쓸모 있는 저장소가 있으면 처음부터 다시 하지 않고 그것을 씁니다.

상세 정보

작성자의 원본 설명

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.

repo: alvinunreal/oh-my-opencode-slim

인기도

GitHub 스타
10k
순위
#12011
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬