मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग101k · #979

code-import

यह क्या करती है

यह टूल किसी मौजूदा कोड प्रोजेक्ट की संरचना पढ़ता है और उसे एक व्यवस्थित 'snapshot' के रूप में सेव करता है। इससे AI को हर बार सारी फ़ाइलें खुद से खंगालनी नहीं पड़तीं, और वह आपका कोड आसानी से समझ सकता है।

कब इस्तेमाल करें

  • ✓जब आप चाहते हैं कि AI आपके प्रोजेक्ट का ढाँचा समझे।
  • ✓ताकि AI बार-बार आपके कोड का विश्लेषण न करे।
  • ✓AI से कोड में बदलाव या सुझाव माँगने से पहले।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/nexu-io/open-design/blob/main/plugins/_official/atoms/code-import/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरे प्रोजेक्ट को '/path/to/my/project' से इम्पोर्ट करो, टेक स्टैक [React, npm, CSS, Material UI] के लिए।”

हर हफ़्ते 5 नई skills, 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
अपडेट की गई
15/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills