Logotipo de Codely Openspec Spec Create From Code

Codely Openspec Spec Create From Code

Organización
CodelyTV
codely-openspec-spec-create-from-code

Create the OpenSpec specs of behaviour that already exists in the code, so the next change can modify or remove it instead of only adding to it.

Add to TypingMind

Descripción general

EditorCodelyTV
Repositorioagent-harness
Nombre de la habilidadcodely-openspec-spec-create-from-code
Estrellas
287
Forks
13
Archivos incluidos
2
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 CodelyTV en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Codely Openspec Spec Create From Code 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/CodelyTV/agent-harness/tree/main/.agents/skills/codely-openspec-spec-create-from-code
  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/CodelyTV/agent-harness.git /tmp/agent-harness
mkdir -p .claude/skills
cp -r /tmp/agent-harness/.agents/skills/codely-openspec-spec-create-from-code .claude/skills/codely-openspec-spec-create-from-code
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Codely Openspec Spec Create From Code 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 Codely Openspec Spec Create From Code 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 Codely Openspec Spec Create From Code 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á.

🧬 How to create OpenSpec specs from existing code

An OpenSpec change can only MODIFY or REMOVE a requirement that already lives in openspec/specs/. Behaviour built before the team adopted OpenSpec has no spec, so every change over it lands as ADDED and the spec forgets what was there before. This skill writes that missing baseline: main specs for behaviour that already ships.

The baseline is the spec OpenSpec would have archived if the feature had been built with it: intent that was implemented and verified. Every sentence holds against the code, and every requirement is something someone meant. A baseline that flatters the code is worse than none, because the next proposal builds on it.

📥 Input

The argument is free text. Read it as one of these:

InputExampleScope
Nothing, or a question about what lacks a specwhich features have no spec?The inventory in resources/evidence-guidelines.md. Build it and stop until the user picks a row.
A capabilitycheckoutThat capability.
A change the user is about to makeadd discount coupons to checkoutThe current behaviour the change will touch. The new behaviour belongs to the change, not to the baseline.
A path or a screensrc/app/admin/ordersThe business concept that path serves, traced back from it.

🪜 Steps

1. Check the preconditions

  • Run openspec --version. If the CLI is missing, stop and ask the user to install it.
  • Locate the OpenSpec root: the openspec/ folder holding config.yaml. When that config points to a store, the specs live in the store.
  • Read the context: of config.yaml. It sets the language of the specs; without it, write them in English.

Done when the CLI answers and you know the folder the specs go into.

2. Bound the capability

  • A capability is one folder under openspec/specs/, named in kebab-case after the business concept (checkout, order-management), never after a class, a table or a folder.
  • Run openspec list --specs. When an existing spec already covers part of the behaviour, extend that spec.
  • When the areas involved share no business concept, they are several capabilities: propose the split to the user.
  • For a change the user is about to make, list the existing behaviour it will touch and confirm that scope with the user.
  • Run openspec list and look for openspec/changes/<change>/specs/<capability>/ in each active change. When an active change has a delta on the capability, warn the user that extending the main spec can break that change's archive, and ask whether to go on.

Done when the user has confirmed every capability, and whether each one is new or extended.

3. Collect the evidence

Read resources/evidence-guidelines.md and dispatch the subagents it describes. Delegate the exploration: your job is to cross the reports, not to read the codebase.

Done when every area of every capability has a report, and every candidate behaviour in it carries its evidence.

4. Classify

Sort every candidate behaviour into one of the four cases of resources/evidence-guidelines.md. Then ask the user about all the ambiguous candidates in a single round, as that file describes. Use the tool to question the user if you have one.

Done when every candidate has a case, and every ambiguous one has the user's verdict.

5. Write the specs

Read resources/spec-format.md and write openspec/specs/<capability>/spec.md with the intended and verified behaviour only.

When you extend an existing spec, add requirements and scenarios and keep every existing one exactly as it is. An existing requirement that the code contradicts is drift: it goes to the report, and changing it is the job of an OpenSpec change.

Done when every intended and verified candidate is a requirement or a scenario in the spec.

6. Validate

Run openspec validate <capability> --type spec --strict for every spec you wrote, fix every error and warning, and rerun.

Done when every spec passes strict validation.

7. Report and close

Answer in the language the user writes in. Report, in this order:

  1. The specs written or extended, each with its capability id.
  2. The scope decisions: splits, extensions, what you left out of the scope and why.
  3. The candidates you left out of the spec, each with its case and its evidence.
  4. The drift between existing requirements and the code.

Do not paraphrase the specs: the files are the deliverable. Then close with the steps that this run's facts call for, in this order, translated to the user's language:

  • Always, the review:

    Review <spec paths>: they come from the code, and from now on agents will treat them as the truth. Once you agree with them, commit them with `/codely-git-conventional-commit`.
  • When the input was a change the user is about to make, the way back to it:

    With the baseline ready, go on with your change: `/openspec-explore <the change, as the user described it>`
  • When you left a bug out of the spec, one ready-to-paste command per bug, with the evidence inline:

    ⚠️ <n> inconsistencies left out of the spec. To fix one:
    - `/openspec-explore <the behaviour the intent asks for> fails when <the case that breaks> (<file:line>; <the test that covers it, or "no test covers it">)`

🧱 Boundaries

  • Write only under openspec/specs/. Changes, config.yaml and the code stay as they are.
  • Leave the specs uncommitted: committing comes after the user's review.

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 Codely Openspec Spec Create From Code?

Create the OpenSpec specs of behaviour that already exists in the code, so the next change can modify or remove it instead of only adding to it.

¿Por qué usar Codely Openspec Spec Create From Code en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Codely Openspec Spec Create From Code 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 Codely Openspec Spec Create From Code en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/CodelyTV/agent-harness/tree/main/.agents/skills/codely-openspec-spec-create-from-code. 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 Codely Openspec Spec Create From Code?

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 Codely Openspec Spec Create From Code?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Codely Openspec Spec Create From Code 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 Codely Openspec Spec Create From Code?

CodelyTV la ha publicado en GitHub. Consulta el repositorio para conocer las condiciones de la licencia. 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 👇