-
Notifications
You must be signed in to change notification settings - Fork 65
docs(skills): split argent-create-flow into references and add argent-qa-flows #730
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feat/flow-screen-and-idle-conditions
Are you sure you want to change the base?
Changes from all commits
91eb07b
c9639f8
4efa1d8
5782e66
e4eea94
3d29037
3ad0a0e
f452ca4
3b59880
077c0d2
85f69c5
2bd0907
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| import fs from "node:fs"; | ||
| import path from "node:path"; | ||
| import { fileURLToPath } from "node:url"; | ||
|
|
||
| import { parse as parseYaml } from "yaml"; | ||
| import { describe, expect, it } from "vitest"; | ||
|
|
||
| const skillsDir = fileURLToPath(new URL("../../skills/skills/", import.meta.url)); | ||
|
|
||
| describe("bundled skill frontmatter", () => { | ||
| it("parses every SKILL.md YAML block", () => { | ||
| const skillFiles = fs | ||
| .readdirSync(skillsDir, { withFileTypes: true }) | ||
| .filter((entry) => entry.isDirectory()) | ||
| .map((entry) => path.join(skillsDir, entry.name, "SKILL.md")) | ||
| .filter((filePath) => fs.existsSync(filePath)); | ||
|
|
||
| expect(skillFiles.length).toBeGreaterThan(0); | ||
| for (const filePath of skillFiles) { | ||
| const content = fs.readFileSync(filePath, "utf8"); | ||
| const frontmatter = content.match(/^---\r?\n([\s\S]*?)\r?\n---/)?.[1]; | ||
| expect(frontmatter, `${filePath} is missing YAML frontmatter`).toBeDefined(); | ||
| expect( | ||
| () => parseYaml(frontmatter!), | ||
| `${filePath} has invalid YAML frontmatter` | ||
| ).not.toThrow(); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [Diplomat]: This guard never looks at The test asserts only that a frontmatter block exists and that That matters because Adding a skill directory is the operation this PR performs and the one this test was added to cover; nothing else catches it ( |
||
| } | ||
| }); | ||
| }); | ||
Uh oh!
There was an error while loading. Please reload this page.