Schema-based draft generation #55

Closed
opened 2025-10-01 00:11:11 +00:00 by tegwick · 0 comments
Owner

UseCase: As a user with a well-defined schema, I want to generate draft documents that follow the schema structure and include content instructions, so that I can quickly create new documents with consistent formatting and guidance.

Technical Requirements:
Create a new CLI command generate-stub (or extend existing) that takes a schema file and generates a markdown document template with proper headings, structure, and content instruction placeholders.

Acceptance Criteria:

  • New CLI command for generating drafts from schemas
  • Generated drafts include proper heading hierarchy from schema
  • Generated drafts include content instruction placeholders
  • Generated drafts reference their source schema for future validation
  • CLI supports output file specification
  • Generated drafts are valid markdown files
  • Generated drafts can be validated against their source schema

Dependencies:

  • Metaschema definition (Issue #50)
  • Content field instructions (Issue #54)
  • Heading text capture (Issue #52)
  • Current stub generation (Issue #6)
UseCase: As a user with a well-defined schema, I want to generate draft documents that follow the schema structure and include content instructions, so that I can quickly create new documents with consistent formatting and guidance. Technical Requirements: Create a new CLI command generate-stub (or extend existing) that takes a schema file and generates a markdown document template with proper headings, structure, and content instruction placeholders. Acceptance Criteria: - [ ] New CLI command for generating drafts from schemas - [ ] Generated drafts include proper heading hierarchy from schema - [ ] Generated drafts include content instruction placeholders - [ ] Generated drafts reference their source schema for future validation - [ ] CLI supports output file specification - [ ] Generated drafts are valid markdown files - [ ] Generated drafts can be validated against their source schema Dependencies: - Metaschema definition (Issue #50) - Content field instructions (Issue #54) - Heading text capture (Issue #52) - Current stub generation (Issue #6)
Sign in to join this conversation.