Saltar al contenido
Skillpedia
Programación general101 mil · #979

code-import

Qué hace

Esta herramienta lee la estructura de un proyecto de código existente y la guarda como una "instantánea" organizada. Así, la IA puede analizar tu código sin tener que recorrer todos los archivos cada vez que lo necesita.

Cuándo usarla

  • ✓Cuando quieres que la IA entienda la estructura de tu proyecto.
  • ✓Para evitar que la IA analice tu código una y otra vez.
  • ✓Antes de pedirle a la IA cambios o sugerencias para tu código.

Link de la skill

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

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/nexu-io/open-design/blob/main/plugins/_official/atoms/code-import/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Importa mi proyecto desde '/path/to/my/project' para la pila tecnológica [React, npm, CSS, Material UI].”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

La IA accede a la ruta de tu proyecto, analiza los archivos y guarda un resumen organizado. Ese resumen se usa en análisis posteriores, lo que ahorra tiempo.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de 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.

Preguntas frecuentes

¿Qué pasa si el proyecto es muy grande?

La herramienta tiene un límite de tiempo para analizar el proyecto, así que no tarda demasiado, incluso en proyectos grandes.

¿La IA analizará carpetas como 'node_modules'?

No. La IA ignora carpetas de dependencias o de compilación como 'node_modules', '.git' o 'dist', y se centra solo en el código relevante.

¿Cómo sabe la IA qué tecnologías usa mi proyecto?

La IA revisa el archivo 'package.json' y los archivos de configuración del build para identificar el framework, el gestor de paquetes y otras tecnologías que se usan.

Detalles

Descripción original del autor

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

Popularidad

Estrellas en GitHub
101 mil
Posición en el ranking
#979
Licencia
Apache-2.0
Actualizada
15/10/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas