@@ -434,10 +434,17 @@ export function getContinueChangeSkillTemplate(): SkillTemplate {
434434 \`\`\`bash
435435 openspec instructions <artifact-id> --change "<name>" --json
436436 \`\`\`
437- - Parse the JSON to get template, dependencies, and what it unlocks
438- - **Create the artifact file** using the template as a starting point:
437+ - Parse the JSON. The key fields are:
438+ - \`context\`: Project background (constraints for you - do NOT include in output)
439+ - \`rules\`: Artifact-specific rules (constraints for you - do NOT include in output)
440+ - \`template\`: The structure to use for your output file
441+ - \`instruction\`: Schema-specific guidance
442+ - \`outputPath\`: Where to write the artifact
443+ - \`dependencies\`: Completed artifacts to read for context
444+ - **Create the artifact file**:
439445 - Read any completed dependency files for context
440- - Fill in the template based on context and user's goals
446+ - Use \`template\` as the structure - fill in its sections
447+ - Apply \`context\` and \`rules\` as constraints when writing - but do NOT copy them into the file
441448 - Write to the output path specified in instructions
442449 - Show what was created and what's now unlocked
443450 - STOP after creating ONE artifact
@@ -489,7 +496,10 @@ For other schemas, follow the \`instruction\` field from the CLI output.
489496- Never skip artifacts or create out of order
490497- If context is unclear, ask the user before creating
491498- Verify the artifact file exists after writing before marking progress
492- - Use the schema's artifact sequence, don't assume specific artifact names`
499+ - Use the schema's artifact sequence, don't assume specific artifact names
500+ - **IMPORTANT**: \`context\` and \`rules\` are constraints for YOU, not content for the file
501+ - Do NOT copy \`<context>\`, \`<rules>\`, \`<project_context>\` blocks into the artifact
502+ - These guide what you write, but should never appear in the output`
493503 } ;
494504}
495505
@@ -699,12 +709,15 @@ export function getFfChangeSkillTemplate(): SkillTemplate {
699709 openspec instructions <artifact-id> --change "<name>" --json
700710 \`\`\`
701711 - The instructions JSON includes:
702- - \`template\`: The template content to use
712+ - \`context\`: Project background (constraints for you - do NOT include in output)
713+ - \`rules\`: Artifact-specific rules (constraints for you - do NOT include in output)
714+ - \`template\`: The structure to use for your output file
703715 - \`instruction\`: Schema-specific guidance for this artifact type
704716 - \`outputPath\`: Where to write the artifact
705717 - \`dependencies\`: Completed artifacts to read for context
706718 - Read any completed dependency files for context
707- - Create the artifact file following the schema's \`instruction\`
719+ - Create the artifact file using \`template\` as the structure
720+ - Apply \`context\` and \`rules\` as constraints - but do NOT copy them into the file
708721 - Show brief progress: "✓ Created <artifact-id>"
709722
710723 b. **Continue until all \`applyRequires\` artifacts are complete**
@@ -734,7 +747,10 @@ After completing all artifacts, summarize:
734747- Follow the \`instruction\` field from \`openspec instructions\` for each artifact type
735748- The schema defines what each artifact should contain - follow it
736749- Read dependency artifacts for context before creating new ones
737- - Use the \`template\` as a starting point, filling in based on context
750+ - Use \`template\` as the structure for your output file - fill in its sections
751+ - **IMPORTANT**: \`context\` and \`rules\` are constraints for YOU, not content for the file
752+ - Do NOT copy \`<context>\`, \`<rules>\`, \`<project_context>\` blocks into the artifact
753+ - These guide what you write, but should never appear in the output
738754
739755**Guardrails**
740756- Create ALL artifacts needed for implementation (as defined by schema's \`apply.requires\`)
@@ -1206,10 +1222,17 @@ export function getOpsxContinueCommandTemplate(): CommandTemplate {
12061222 \`\`\`bash
12071223 openspec instructions <artifact-id> --change "<name>" --json
12081224 \`\`\`
1209- - Parse the JSON to get template, dependencies, and what it unlocks
1210- - **Create the artifact file** using the template as a starting point:
1225+ - Parse the JSON. The key fields are:
1226+ - \`context\`: Project background (constraints for you - do NOT include in output)
1227+ - \`rules\`: Artifact-specific rules (constraints for you - do NOT include in output)
1228+ - \`template\`: The structure to use for your output file
1229+ - \`instruction\`: Schema-specific guidance
1230+ - \`outputPath\`: Where to write the artifact
1231+ - \`dependencies\`: Completed artifacts to read for context
1232+ - **Create the artifact file**:
12111233 - Read any completed dependency files for context
1212- - Fill in the template based on context and user's goals
1234+ - Use \`template\` as the structure - fill in its sections
1235+ - Apply \`context\` and \`rules\` as constraints when writing - but do NOT copy them into the file
12131236 - Write to the output path specified in instructions
12141237 - Show what was created and what's now unlocked
12151238 - STOP after creating ONE artifact
@@ -1261,7 +1284,10 @@ For other schemas, follow the \`instruction\` field from the CLI output.
12611284- Never skip artifacts or create out of order
12621285- If context is unclear, ask the user before creating
12631286- Verify the artifact file exists after writing before marking progress
1264- - Use the schema's artifact sequence, don't assume specific artifact names`
1287+ - Use the schema's artifact sequence, don't assume specific artifact names
1288+ - **IMPORTANT**: \`context\` and \`rules\` are constraints for YOU, not content for the file
1289+ - Do NOT copy \`<context>\`, \`<rules>\`, \`<project_context>\` blocks into the artifact
1290+ - These guide what you write, but should never appear in the output`
12651291 } ;
12661292}
12671293
@@ -1474,12 +1500,15 @@ export function getOpsxFfCommandTemplate(): CommandTemplate {
14741500 openspec instructions <artifact-id> --change "<name>" --json
14751501 \`\`\`
14761502 - The instructions JSON includes:
1477- - \`template\`: The template content to use
1503+ - \`context\`: Project background (constraints for you - do NOT include in output)
1504+ - \`rules\`: Artifact-specific rules (constraints for you - do NOT include in output)
1505+ - \`template\`: The structure to use for your output file
14781506 - \`instruction\`: Schema-specific guidance for this artifact type
14791507 - \`outputPath\`: Where to write the artifact
14801508 - \`dependencies\`: Completed artifacts to read for context
14811509 - Read any completed dependency files for context
1482- - Create the artifact file following the schema's \`instruction\`
1510+ - Create the artifact file using \`template\` as the structure
1511+ - Apply \`context\` and \`rules\` as constraints - but do NOT copy them into the file
14831512 - Show brief progress: "✓ Created <artifact-id>"
14841513
14851514 b. **Continue until all \`applyRequires\` artifacts are complete**
0 commit comments