Skip to content

[WIP] Add missing format fields to templates in frontmatter#24

Closed
Copilot wants to merge 1 commit into
mainfrom
copilot/add-format-field-to-templates
Closed

[WIP] Add missing format fields to templates in frontmatter#24
Copilot wants to merge 1 commit into
mainfrom
copilot/add-format-field-to-templates

Conversation

Copilot AI commented Mar 19, 2026

Copy link
Copy Markdown
Contributor

Thanks for assigning this issue to me. I'm starting to work on it and will keep this PR's description up to date as I form a plan and make progress.

Original prompt

This section details on the original issue you should resolve

<issue_title>Template frontmatter missing f ormat field; implementation-plan format does not exist</issue_title>
<issue_description>## Summary

Three templates are missing the format field in their YAML frontmatter, and two of them reference an artifact type (implementation-plan) that has no corresponding format file in the library.

Details

review-code — format field missing from frontmatter

manifest.yaml correctly specifies format: investigation-report for review-code, but the template file (templates/review-code.md) does not include format: in its YAML frontmatter. The bootstrap engine may not be able to resolve the output format when assembling from the template.

Fix: Add format: investigation-report to the template frontmatter (between protocols: and params:).

plan-implementation and plan-refactoring — no format anywhere

Neither template has a format: field in frontmatter or manifest. Both declare output_contract.type: implementation-plan, but no implementation-plan format file exists in formats/. This means:

  • The bootstrap engine cannot assemble a complete prompt with output structure rules
  • The output structure for implementation plans is defined ad-hoc in the template body, not in a reusable format component
  • These templates violate the composition model (persona + protocols + format + template)

Fix options:

  1. Create formats/implementation-plan.md defining the output structure, then add format: implementation-plan to both templates and the manifest
  2. If the templates intentionally define their own structure inline, document this as a supported pattern and update CONTRIBUTING.md

Convention reference

Per CONTRIBUTING.md, template frontmatter MUST include: name, description, persona, protocols, format, params, input_contract, output_contract.

Affected files

  • templates/review-code.md (missing format in frontmatter)
  • templates/plan-implementation.md (missing format everywhere)
  • templates/plan-refactoring.md (missing format everywhere)
  • manifest.yaml (missing format for plan-implementation, plan-refactoring)
    </issue_description>

Comments on the Issue (you are @copilot in this section)


⌨️ Start Copilot coding agent tasks without leaving your editor — available in VS Code, Visual Studio, JetBrains IDEs and Eclipse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Template frontmatter missing format field; implementation-plan format does not exist

2 participants