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/report-tools.mjs
View on GitHub#!/usr/bin/env node
// report-tools.mjs - the ulw-research deliverable CLI. Invoked as
// node "$SKILL_DIR/scripts/report-tools.mjs" <command> ...
// Exit codes: 0 pass, 1 semantic failure (blockers, a failed verify, a blocked repair), 2 usage or IO.
import { CliError, emit, exitCodeFor } from "./cli-support.mjs"
import { isCliEntry } from "./entry-guard.mjs"
import { runCheck, runFormatExtract, runLayoutProbe, runOutcome, runRepairDecide } from "./report-tools-commands.mjs"
export const COMMANDS = Object.freeze([
"check",
"layout-probe",
"repair decide",
"outcome init",
"outcome set",
"outcome gate",
"outcome render",
"outcome state",
"outcome verify",
"outcome finish",
"outcome briefing",
"format-extract",
"fact add",
"fact quote",
"fact retract",
"fact export",
"fact fill",
"fact verify",
"fact derive",
"source snapshot",
"source refresh",
"source probe-conversion",
"claims index",
])
export async function run(argv) {
const [command, ...rest] = argv
switch (command) {
case "check":
return runCheck(rest)
case "layout-probe":
return runLayoutProbe(rest)
case "repair":
if (rest[0] !== "decide") throw new CliError("usage: repair decide --state <file> --defects <json>")
return runRepairDecide(rest.slice(1))
case "outcome":
return runOutcome(rest)
case "format-extract":
return runFormatExtract(rest)
case "fact":
return (await import("./fact-commands.mjs")).runFact(rest)
case "source":
return (await import("./source-commands.mjs")).runSource(rest)
case "claims":
return (await import("./source-commands.mjs")).runClaims(rest)
case "--help":
case "help":
if (rest.includes("--json")) {
const { SNAPSHOT_USAGE } = await import("./source-commands.mjs")
const { REFRESH_USAGE } = await import("./source-refresh.mjs")
return {
json: { commands: COMMANDS, usage: { "source snapshot": SNAPSHOT_USAGE, "source refresh": REFRESH_USAGE } },
exitCode: 0,
}
}
return { text: `report-tools <command>\n${COMMANDS.map((name) => ` ${name}`).join("\n")}`, exitCode: 0 }
default:
throw new CliError(`usage: report-tools <${COMMANDS.join(" | ")}> (run --help)`)
}
}
export async function main(argv = process.argv.slice(2)) {
try {
const result = await run(argv)
emit(result)
return exitCodeFor(result)
} catch (error) {
process.stderr.write(`report-tools: ${error.message}\n`)
return exitCodeFor(error)
}
}
if (isCliEntry(import.meta.url)) {
process.exitCode = await main()
}
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 |