Skip to content

UF convention pack: meta-prompt authoring rules for spec/plan/tasks/command work (model-matrix-delegation) #888

Closed

Description

@jflowers

Outcome

A new UF convention pack — .opencode/uf/packs/meta-prompt.md — codifies the conventions for authoring spec artifacts (spec.md, plan.md, tasks.md) and command/prompt files: the "meta-prompt engineering" work that some models are markedly better at than code-focused models. It becomes the pack key the model matrix maps to the spec-authoring capability (see #887), and the pack agents load when doing spec/plan/tasks authoring work.

Background

  • Packs are this repo's convention system: .opencode/uf/packs/*.md with [MUST]/[SHOULD]/[MAY] rule tags and per-pack rule ids (GO-NNN, CI-NNN, ...). Per AGENTS.md: "Agents MUST read the applicable pack(s) before writing or reviewing code."
  • No existing pack covers meta-prompt/spec-authoring work. Its conventions currently live scattered across AGENTS.md, .opencode/skills/ (determinism-first, speckit-workflow, tier-routing), and precedent specs.
  • Stakeholder motivation (Content-agent model selection via .uf/model-matrix.yaml (model-matrix-delegation) #887): there is a large capability gap between models good at meta-prompting and models good at code; per-developer model config maps the meta-prompt pack to a meta-prompt-capable model (e.g. glm, vs deepseek for the go pack).
  • Read the existing packs first and match their format and voice: go.md, content.md, determinism.md in .opencode/uf/packs/.

Content scope (starting point — codify what exists, do not invent)

Harvest and consolidate the repo's existing authoring conventions:

  • RFC 2119 language (MUST/SHOULD/MAY), FR-NNN requirement numbering, Given/When/Then scenarios, line length < 72
  • Speckit vs OpenSpec artifact shapes (specs/NNN-*/ vs openspec/changes/*/), OpenSpec delta format (## ADDED Requirements), requirement-number allocation header comments
  • plan.md / tasks.md decomposition conventions: [P] parallel markers, checkbox discipline ([x] immediately on completion), phase numbering
  • Command-file conventions: determinism-first framing, no mechanical procedural prose where an executable tool is feasible
  • Clarification-marker grammar awareness — CRITICAL: the pack prose must NOT contain literal, well-formed marker syntax (a well-formed marker extracts as a question even inside documentation); describe the grammar without writing a parseable marker

Acceptance criteria

  1. .opencode/uf/packs/meta-prompt.md exists and follows the existing pack format ([MUST]/[SHOULD]/[MAY] tags, MP-NNN rule ids).
  2. Content codifies existing conventions (AGENTS.md, existing specs, skills) — it is consolidation, not invention.
  3. No literal clarification-marker syntax appears in the prose (verified by scan).
  4. The model-matrix starter config in Content-agent model selection via .uf/model-matrix.yaml (model-matrix-delegation) #887 references it (packs: meta-prompt: spec-authoring) and pack-existence validation passes.
  5. Ships through the same review flow as Content-agent model selection via .uf/model-matrix.yaml (model-matrix-delegation) #887 (as a task within that OpenSpec change) or its own reviewed change if split.

Constraints

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions