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 पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
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
कमेंट
- …
इस repository की और skills
sample-plugin
101kआपके एजेंट से टेस्ट के लिए metadata file बनवाता है। इससे पक्का होता है कि कोड अलग-अलग स्थितियों में सही चलता है।
aster-atelier
101kआपके एजेंट से क्लासिक लुक वाली एक कलात्मक website बनवाता है। इसमें खूबसूरत इमेज, नीला आसमान और serif fonts इस्तेमाल होते हैं, जिससे सिनेमाई एहसास मिलता है।
audio-jingle
101kआपके एजेंट से जिंगल्स और sound effects जैसा audio बनवाता है। यह music और voice बना सकता है और नतीजा audio file में सेव करता है।
blog-post
101kआपका एजेंट लंबे articles या blog posts लिखने में मदद करता है। इसमें images, quotes और author की जानकारी के लिए जगह भी होती है।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।