import { readFileSync } from "node:fs"; import { describe, expect, it } from "vitest"; describe("codex ultrawork directive source", () => { it("#given bundled directive #when compared to prompts-core codex variant #then bytes match", () => { // given const directive = readFileSync("directive.md", "utf8"); const codexPromptUrl = new URL(import.meta.resolve("@oh-my-opencode/prompts-core/prompts/ultrawork/codex.md")); // when const codexPrompt = readFileSync(codexPromptUrl, "utf8"); // then expect(codexPrompt).toBe(directive); }); it("#given bundled ultrawork skill #when compared to the directive #then it wraps the same bytes with skill frontmatter", () => { // given const directive = readFileSync("directive.md", "utf8"); // when const skill = readFileSync("skills/ultrawork/SKILL.md", "utf8"); // then expect(skill.startsWith("---\nname: ultrawork\n")).toBe(true); expect(skill.endsWith(directive)).toBe(true); }); });