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

code-import

하는 일

기존 코드 프로젝트의 구조를 읽어 정리된 '스냅샷'으로 저장합니다. 이렇게 하면 AI가 매번 모든 파일을 살펴보지 않고도 코드를 분석할 수 있습니다.

사용하는 경우

  • ✓AI가 프로젝트 구조를 이해하기를 원할 때.
  • ✓AI가 코드를 반복해서 분석하지 않도록 하고 싶을 때.
  • ✓코드에 대한 변경이나 제안을 요청하기 전에.

스킬 링크

https://github.com/nexu-io/open-design/blob/main/plugins/_official/atoms/code-import/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“'/path/to/my/project'에서 제 프로젝트를 [React, npm, CSS, Material UI] 기술 스택으로 가져와 주세요.”

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

작동 방식

AI는 프로젝트 경로에 접근해 파일을 분석하고, 정리된 요약을 저장합니다. 이 요약은 이후 분석에 쓰여 시간을 절약합니다.

기술 내용 (원본 SKILL.md)

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

Code import

Spec §10 / §21.3.2: a code-migration / tune-collab run starts from a real repo (cloned via od project import or a path the user provided). This atom turns the raw checkout into a normalised on-disk record that subsequent atoms (design-extract, rewrite-plan, patch-edit) operate against. The point is to stop re-walking the tree on every turn — the agent reads code/index.json once and trusts the snapshot until the next explicit re-import.

Inputs

Source Required Notes
repoPath yes Absolute path to the repo's root, supplied via od project import or an upstream od.context.assets[] reference
targetStack yes { framework, packageManager, styleSystem, componentLibrary } via the matching form GenUI surface

Output

project-cwd/
└── code/
    ├── index.json         # { files: { path, size, language, imports[] }[], packageJson?, lockfileKind, framework, styleSystem }
    ├── components.json    # detected components with file path + props snapshot
    ├── routes.json        # detected routing model (next/app, react-router, vite-router, …)
    └── meta.json          # { repoPath, gitSha, walkedAt, atomDigest, walkBudgetMs }

code/index.json is the input every other Phase 7 atom reads. The walk respects the runner's budgetMs option (default 60s) so large monorepos don't burn an entire run on import.

Convergence

The atom completes when code/index.json exists and contains at least one entry. Empty repos abort with a clear error event so the user re-imports.

Anti-patterns the prompt fragment forbids

  • Walking node_modules / .git / .next / dist / build (record in code/index.json.skipped[] with reason).
  • Inferring a framework from a single file; require at least package.json's declared dep + a build-config presence (next.config.*, vite.config.*, etc.).
  • Treating commented-out imports as live edges.

Status

Implemented by the daemon runner in apps/daemon/src/plugins/atoms/code-import.ts. The walker enforces its exclusions and time budget, detects framework evidence, and writes code/index.json.

자주 묻는 질문

프로젝트가 너무 크면 어떻게 되나요?

프로젝트를 분석하는 데 제한 시간이 있어, 큰 프로젝트라도 너무 오래 걸리지 않도록 합니다.

AI가 'node_modules' 같은 폴더를 분석하나요?

아니요, AI는 'node_modules', '.git', 'dist' 같은 의존성이나 빌드 폴더는 무시하고 관련 코드에만 집중합니다.

AI가 제 프로젝트에 쓰인 기술을 어떻게 아나요?

AI는 'package.json' 파일과 빌드 설정 파일을 확인해 프레임워크, 패키지 관리자, 그 밖의 기술을 식별합니다.

상세 정보

작성자의 원본 설명

Read an existing repository's structure into the project cwd as a normalised snapshot the agent can analyse without re-walking the tree on every turn.

repo: nexu-io/open-design

인기도

GitHub 스타
101k
순위
#979
라이선스
Apache-2.0
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬