Logotipo de Import Repo Skills To Agent

Import Repo Skills To Agent

Organización
VectorSpaceLab
import-repo-skills-to-agent

Export all or selected DisCo-managed repository skills, their regenerated repository-index.jsonl, and a scoped area/family repo-skills-router into Codex, Claude Code, or another agent skills directory. Use when the user asks to copy, install, synchronize, or merge repository skills into another agent or project. Resolve exact skill IDs, obtain explicit approval for replacements, then use the bundled transactional helper for validation, Codex policy injection, deterministic router merging, rollback, and resume.

Add to TypingMind

Descripción general

EditorVectorSpaceLab
RepositorioAREX-Skill
Nombre de la habilidadimport-repo-skills-to-agent
Estrellas
341
Forks
26
Archivos incluidos
2
LicenciaApache-2.0
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Archivos incluidos: 2

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por VectorSpaceLab en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Import Repo Skills To Agent en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/VectorSpaceLab/AREX-Skill/tree/main/cli/packages/coding-agent/src/disco/skills/import-repo-skills-to-agent
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/VectorSpaceLab/AREX-Skill.git /tmp/AREX-Skill
mkdir -p .claude/skills
cp -r /tmp/AREX-Skill/cli/packages/coding-agent/src/disco/skills/import-repo-skills-to-agent .claude/skills/import-repo-skills-to-agent
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Import Repo Skills To Agent en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Import Repo Skills To Agent automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Import Repo Skills To Agent no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

Import Repo Skills To Agent

This is a Creator-mode meta workflow. Export DisCo's managed repository-skill collection to another agent only when the user explicitly requests a cross-agent export. Cross-agent export is an artifact-management operation, not downstream research: the selected repository skills normally carry the operating role, but Creator may inspect them as export inputs without using them as operating context or asking the user to switch to Researcher. DisCo already uses its live collection through repo-skills-router and explicit /skill:<name> invocation; it does not need this workflow for its own runtime.

Use the bundled helper for every filesystem mutation:

text
scripts/export_repo_skills_to_agent.mjs

Do not manually copy skills, concatenate indexes, or merge generated router Markdown.

Collection layout

Treat the source collection root as the directory containing these siblings:

text
<disco-agent-root>/skills/repositories/
├── repo-skills/
│   ├── <skill-id>/
│   └── repository-index.jsonl
└── repo-skills-router/

The default source agent root is $DISCO_CODING_AGENT_DIR when set, otherwise ~/.disco/agent. The target uses the same collection shape below its skills root:

text
<target-skills-root>/repositories/
├── repo-skills/
│   ├── <skill-id>/
│   └── repository-index.jsonl
└── repo-skills-router/

Keep unrelated target skills outside repositories/ unchanged.

Resolve the target

Prefer an unambiguous target argument:

  • Use --target-skills-root <dir> when the path is already a skills root, such as ~/.agents/skills or ~/.claude/skills.
  • Use --target-agent-dir <dir> when the path is an agent root; the helper appends skills/repositories.
  • Use --target <dir> --target-kind skills-root|agent-root for a generic path.
  • Allow --target with automatic inference only when the basename or existing layout makes the meaning unambiguous.

For Codex, default an agent-only request to the current user-level agent root ~/.agents, not the legacy ~/.codex. Pass --target-agent codex. For Claude Code or a generic target, pass --target-agent agent-neutral unless that target explicitly requires Codex policy metadata.

Resolve the selection

The helper accepts exact repository skill IDs. Before invoking it:

  1. Read the source repo-skills/repository-index.jsonl and direct repo-skills/<skill-id>/SKILL.md files as export input artifacts. In Creator, this is an explicit exception to the operating-context visibility boundary: inspect them only to resolve and validate the export, never to invoke their instructions or perform their downstream workflows.
  2. Resolve user terms, repository names, aliases, or wildcards to exact skill_id values.
  3. Show the matched IDs when the request is ambiguous or a wildcard expands to more than the user likely expects.
  4. Omit --include-skill for a full export. Repeat it, or pass comma-separated IDs, for a subset.

Do not select review artifacts, test outputs, environments, sessions, prompts, or directories outside the managed repo-skills/ collection.

Resolve conflicts before mutation

Inspect the target collection before starting the helper. For every selected skill ID already present under target repositories/repo-skills/:

  1. Summarize the source and target paths and the relevant identity difference.
  2. Ask whether to replace that exact target skill.
  3. Pass --overwrite-skill <skill-id> only for approved replacements.
  4. Exclude a declined skill from the selected export and report it as skipped.

Never silently overwrite a repository skill. The helper independently rejects an unapproved conflict and refuses repository-identity collisions.

Run the transaction

For a selected Codex export:

bash
node <this-skill>/scripts/export_repo_skills_to_agent.mjs \
  --source-agent-dir <disco-agent-root> \
  --target-agent-dir ~/.agents \
  --target-agent codex \
  --include-skill <skill-id> \
  --overwrite-skill <approved-skill-id>

For a full agent-neutral export to an exact skills root:

bash
node <this-skill>/scripts/export_repo_skills_to_agent.mjs \
  --source-agent-dir <disco-agent-root> \
  --target-skills-root <target-skills-root> \
  --target-agent agent-neutral

The helper performs one deterministic workflow:

  1. Validate source and existing target paths, symlink safety, skill identity, v2 references/repo-routing-metadata.json, exact taxonomy assignments, and source/target non-overlap.
  2. Generate a filtered source router for the selected skills without modifying the source collection.
  3. Merge selected source records with unrelated target records by canonical skill_id and owner/repository identity.
  4. Stage the final repo-skills/ tree.
  5. For a Codex target, add or update agents/openai.yaml beside every root and descendant SKILL.md in the staged non-router repository skills, setting policy.allow_implicit_invocation: false while preserving unrelated OpenAI metadata. Never add this policy to repo-skills-router.
  6. Regenerate repo-skills/repository-index.jsonl and the sibling router from the final merged records. Do not copy a stale source root index or combine Markdown pages.
  7. Revalidate taxonomy paths, links, repository and assignment indexes, router visibility, selected/unselected boundaries, and Codex policy before touching the live target.
  8. Replace only target repositories/repo-skills/ and repositories/repo-skills-router/ through the persisted transaction.
  9. Validate the installed target and commit, or restore the exact previous target if a post-mutation step fails.

The final root repository-index.jsonl must be byte-for-byte consistent with repo-skills-router/references/index/repositories.jsonl. A subset export must not leak unselected source skills into either index or any generated area or family page. Existing unrelated target repository skills and assignments must remain present.

Index and visibility contract

The long-lived repository indexes intentionally do not store a per-repository skill content_sha256. They preserve repository identity, provenance, routing assignments, and descriptions; their complete-file integrity is protected by the router's build-metadata.json index digests. The import handoff may still contain a one-time skill_content_sha256, which is checked while importing the verified runtime tree and is not copied into either long-lived repository index.

Target-specific agents/openai.yaml files are still excluded from the handoff's portable-tree digest. Do not ignore arbitrary extra files, symlinks, or non-regular entries.

Keep repo-skills-router model-visible for a fresh target. Preserve an existing target router's visibility by default; use --router-visibility enabled|disabled only when the user explicitly asks to change it. Repository skills remain hidden from implicit selection through their portable frontmatter and, for Codex targets, the target-only OpenAI policy.

Recover an interrupted export

The helper prints the persisted transaction directory on failure. Its manifest stores both the selected index fingerprint and a transaction-only snapshot of the selected source skill trees. This keeps interrupted exports safe without reintroducing a per-repository digest into the long-lived indexes. Resume or retry exactly that transaction with:

bash
node <this-skill>/scripts/export_repo_skills_to_agent.mjs \
  --resume <transaction-directory>

Do not manually repair a partial target. The helper restores any mutation phase to the recorded target snapshot, then reuses the persisted source, selection, overwrite approvals, target policy, and router visibility. For a validated pre-mutation transaction, it revalidates the source fingerprint, target snapshot, and staging before committing it. Arguments do not need to be repeated; any explicitly repeated argument must match the manifest or resume stops before mutation.

If rollback cannot restore the exact recorded target snapshot, preserve the reported staging and backup paths and stop for manual inspection.

Safety and handoff

  • Keep the source collection read-only.
  • Reject source/target overlap and paths that traverse symlinks.
  • Do not import a structurally invalid selected skill or infer missing routing metadata.
  • Do not delete unrelated target skills or assignments.
  • Do not add Codex policy to the router.
  • Do not report success until live target validation and transaction commit both complete.

Report the resolved source and target, exact selected IDs, copied and approved replacement counts, final repository and assignment counts, router action, Codex policy mode, and any skipped conflicts. If the target agent caches skill discovery, tell the user to restart or reload it.

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Son archivos de solo lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA Import Repo Skills To Agent?

Export all or selected DisCo-managed repository skills, their regenerated repository-index.jsonl, and a scoped area/family repo-skills-router into Codex, Claude Code, or another agent skills directory. Use when the user asks to copy, install, synchronize, or merge repository skills into another agent or project. Resolve exact skill IDs, obtain explicit approval for replacements, then use the bundled transactional helper for validation, Codex policy injection, deterministic router merging, rollback, and resume.

¿Por qué usar Import Repo Skills To Agent en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Import Repo Skills To Agent está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Import Repo Skills To Agent en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/VectorSpaceLab/AREX-Skill/tree/main/cli/packages/coding-agent/src/disco/skills/import-repo-skills-to-agent. TypingMind lee el archivo SKILL.md de esa carpeta, empaqueta los archivos de la carpeta e instala el conjunto como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Import Repo Skills To Agent?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Import Repo Skills To Agent?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Import Repo Skills To Agent con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Import Repo Skills To Agent?

Sí. VectorSpaceLab la ha publicado en GitHub bajo la licencia Apache-2.0. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇