import assert from "node:assert/strict";
import { readFileSync } from "node:fs";
import { join } from "node:path";
import { test } from 'vitest';

const skillPath = join(
	process.cwd(),
	"src",
	"resources",
	"extensions",
	"sf",
	"skills",
	"records-keeper",
	"SKILL.md",
);

test("records-keeper skill defines repo records workflow and context-doctor boundary", () => {
	const skill = readFileSync(skillPath, "utf-8");
	assert.match(skill, /name: records-keeper/);
	assert.match(skill, /description: Keep repository records ordered/);
	assert.match(skill, /Canonical Homes/);
	assert.match(skill, /ARCHITECTURE\.md/);
	assert.match(skill, /docs\/RECORDS_KEEPER\.md/);
	assert.match(skill, /context-doctor/);
});

