import test from 'node:test'
import assert from 'node:assert/strict'

import { SKILL_CREATOR_PROMPT } from './skill-run.js'

test('creator prompt directly executes the task without a platform output contract', () => {
  assert.match(SKILL_CREATOR_PROMPT, /直接执行用户交给你的任务/)
  assert.match(SKILL_CREATOR_PROMPT, /信息不足时可以直接向用户追问/)
  assert.match(SKILL_CREATOR_PROMPT, /不会要求固定输出格式/)
  assert.doesNotMatch(SKILL_CREATOR_PROMPT, /只返回最终|仅返回最终|不要澄清/)
  assert.doesNotMatch(SKILL_CREATOR_PROMPT, /write_file|skill\.spec\.json|output_schema|evaluation_rubric|平台编译/)
})
