Support for files other than markdown as spec artifacts

Open
#2,115 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
html, markdown, typescript, yaml

Research direction

Start with schema.yaml and the existing artifact loading and delta-processing workflow to understand how Markdown extensions and required markers are currently handled. Done means schema-defined formats can select an extension and identify delta sections reliably, allowing artifacts such as spec to use formats including Gherkin, HTML, and MDX without changing the workflow.

Written by the indexing model from the issue text.

Description

enhancement needs-triage
The problem, in one or two sentences

I have often used HTML for specifications that require rich interaction, Gherkin when authoring scenarios, and sometimes even MDX. Right now, OpenSpec uses Markdown (.md), especially for the spec artifact itself.

I am wondering if the format could be made configurable. As long as the markers required for the delta format are present and can be reliably identified, the underlying file format should not matter.

Who this affects

Affects power users of OpenSpec who are creating their own schemas. Right now we are working around.

What you tried

My workaround: https://github.com/intent-driven-dev/intent-driven-template#experimental-spec-as-source

What you have in mind

Make the artifact format configurable in schema.yaml. A format definition could specify the file extension, type, and the placeholders or markers required for the delta format. Artifacts such as spec could then reference one of these format definitions.

This would allow spec to use Markdown, Gherkin, HTML, MDX, or other formats without changing the artifact workflow, as long as the selected format defines how the required delta sections are represented.

Dominant language
TypeScript
Stars
76k
Forks
5.2k
Avg merge
1d 5h
Merged PRs (30d)
58

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Fission-AI/OpenSpec

All issues in Fission-AI/OpenSpec

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.