Logo van Codely Openspec Spec Create From Code

Codely Openspec Spec Create From Code

Organisatie
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

Overzicht

UitgeverCodelyTV
Repositoryagent-harness
Skillnaamcodely-openspec-spec-create-from-code
Sterren
287
Forks
13
Meegeleverde bestanden
2
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 2

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door CodelyTV op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Codely Openspec Spec Create From Code in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/CodelyTV/agent-harness/tree/main/.agents/skills/codely-openspec-spec-create-from-code
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

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
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Codely Openspec Spec Create From Code in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Codely Openspec Spec Create From Code automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Codely Openspec Spec Create From Code niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

🧬 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.

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill 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.

Waarom Codely Openspec Spec Create From Code gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Codely Openspec Spec Create From Code bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Codely Openspec Spec Create From Code in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/CodelyTV/agent-harness/tree/main/.agents/skills/codely-openspec-spec-create-from-code. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Codely Openspec Spec Create From Code gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Codely Openspec Spec Create From Code gebruiken?

Zoveel als je wilt. Je kunt Codely Openspec Spec Create From Code gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Codely Openspec Spec Create From Code gratis?

Deze skill is door CodelyTV op GitHub gepubliceerd. Bekijk de repository voor de licentievoorwaarden. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇