Langsung ke konten
Skillpedia
Pemrograman umum101k Β· #979

code-import

Fungsinya

Alat ini membaca struktur proyek kode yang sudah ada dan menyimpannya sebagai "snapshot" yang terorganisir. Dengan begitu, AI dapat menganalisis kode Anda tanpa harus menelusuri semua file setiap kali dibutuhkan.

Kapan dipakai

  • βœ“Saat Anda ingin AI memahami struktur proyek Anda.
  • βœ“Untuk mencegah AI menganalisis kode Anda berulang kali.
  • βœ“Sebelum meminta AI membuat perubahan atau saran pada kode Anda.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/nexu-io/open-design/blob/main/plugins/_official/atoms/code-import/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œImpor proyek saya dari '/path/to/my/project' dengan tech stack [React, npm, CSS, Material UI].”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

AI mengakses lokasi proyek Anda, menganalisis file-filenya, lalu menyimpan ringkasan yang terorganisir. Ringkasan ini dipakai untuk analisis berikutnya sehingga menghemat waktu.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.

Pertanyaan umum

Apa yang terjadi jika proyeknya terlalu besar?

Alat ini memiliki batas waktu untuk menganalisis proyek, sehingga prosesnya tidak akan berlangsung terlalu lama, bahkan untuk proyek yang besar.

Apakah AI akan menganalisis folder seperti 'node_modules'?

Tidak. AI mengabaikan folder dependensi atau hasil build seperti 'node_modules', '.git', atau 'dist', dan hanya berfokus pada kode yang relevan.

Bagaimana AI tahu teknologi apa yang digunakan proyek saya?

AI memeriksa file 'package.json' dan file konfigurasi build untuk mengidentifikasi framework, package manager, dan teknologi lain yang digunakan.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
101k
Peringkat
#979
Lisensi
Apache-2.0
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa