code-yeongyu/oh-my-openagent / packages/shared-skills/skills/ulw-research
ulw-research
UnverifiedRuns maximum-saturation research with a cooperating team, claim-graph gating, and a cited, QA'd deliverable. Use when the user explicitly asks for research or a deep investigation, including any 'ulw' research wording.
scripts/glossary-vocabulary.test.ts
View on GitHubimport { describe, expect, test } from "bun:test"
import { readFileSync } from "node:fs"
import { join } from "node:path"
import { DEFECT_CODES, GATE_STATUSES, LINEAGE_MODES } from "./contracts.mjs"
describe("report-gates glossary vocabulary parity", () => {
test("#given the defect codes #when the glossary is loaded #then every exported code appears as a backticked table cell", () => {
const glossaryPath = join(import.meta.dir, "../references/report-gates.md")
const glossary = readFileSync(glossaryPath, "utf8")
const missing: string[] = []
for (const code of Object.keys(DEFECT_CODES)) {
if (!glossary.includes(`\`${code}\``)) {
missing.push(code)
}
}
expect(missing, `Missing codes: ${missing.join(", ")}`).toEqual([])
})
test("#given the glossary #when scanned for backticked tokens #then no extra defect code appears that is not exported", () => {
const glossaryPath = join(import.meta.dir, "../references/report-gates.md")
const glossary = readFileSync(glossaryPath, "utf8")
const defectCodeSet = new Set(Object.keys(DEFECT_CODES))
const validTokens = new Set([...defectCodeSet, ...GATE_STATUSES, ...LINEAGE_MODES])
const backtickRegex = /`([a-z_][a-z0-9_]*)`/g
const extras: string[] = []
let match
while ((match = backtickRegex.exec(glossary)) !== null) {
const token = match[1]
// Only flag tokens that look like defect codes (underscore-separated)
// and aren't already exported from contracts
if (!validTokens.has(token) && token.includes("_") && token.length > 3) {
if (!extras.includes(token)) extras.push(token)
}
}
expect(extras, `Extra codes not in contracts: ${extras.join(", ")}`).toEqual([])
})
})
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |