code-yeongyu/oh-my-openagent / packages/omo-codex/plugin/components/lcx/skills/lcx-contribute-bug-fix
lcx-contribute-bug-fix
VerifiedContribute a verified bug fix for LazyCodex, lazycodex-ai, omo-codex, bundled Codex skills, or upstream Codex CLI bugs. LazyCodex-owned defects get a fork PR against code-yeongyu/oh-my-openagent (base dev, source-tree paths under packages/omo-codex/plugin, with the changelog fragment); upstream Codex bugs get a fork PR against openai/codex. code-yeongyu/lazycodex is a generated distribution mirror and never gets a PR. Use when the user asks to fix a bug, contribute a bug fix, contribute to fix bug, open a PR for a bug, or debug and PR a LazyCodex/Codex defect.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 13.2 KB |
| agents/openai.yaml | config | 769 B |
| scripts/create-pr-body.mjs | script | 2.8 KB |
scripts/create-pr-body.mjs
View on GitHub#!/usr/bin/env node
import { readFile, writeFile } from "node:fs/promises"
import { pathToFileURL } from "node:url"
const REQUIRED_STRING_FIELDS = [
"title",
"targetRepository",
"problem",
"reproductionLogs",
"approach",
"confidence",
"risks",
"userVisibleBehaviorChanges",
]
function requireRecord(value) {
if (value === null || typeof value !== "object" || Array.isArray(value)) {
throw new Error("input must be a JSON object")
}
return value
}
function requireStringField(record, field) {
const value = record[field]
if (typeof value !== "string" || value.trim() === "") {
throw new Error(`${field} must be a non-empty string`)
}
return value.trim()
}
function requireVerification(record) {
const value = record.verification
if (!Array.isArray(value) || value.length === 0) {
throw new Error("verification must be a non-empty string array")
}
return value.map((entry, index) => {
if (typeof entry !== "string" || entry.trim() === "") {
throw new Error(`verification[${index}] must be a non-empty string`)
}
return entry.trim()
})
}
function parseInput(value) {
const record = requireRecord(value)
const strings = Object.fromEntries(REQUIRED_STRING_FIELDS.map((field) => [field, requireStringField(record, field)]))
return {
title: strings.title,
targetRepository: strings.targetRepository,
problem: strings.problem,
reproductionLogs: strings.reproductionLogs,
approach: strings.approach,
confidence: strings.confidence,
risks: strings.risks,
userVisibleBehaviorChanges: strings.userVisibleBehaviorChanges,
verification: requireVerification(record),
}
}
function bulletList(items) {
return items.map((item) => `- ${item}`).join("\n")
}
export function createLazyCodexBugFixPrBody(value) {
const input = parseInput(value)
return `## Problem Situation
${input.problem}
## Reproduction Logs
${input.reproductionLogs}
## Approach
${input.approach}
## Why I Am Confident
${input.confidence}
## Risks
${input.risks}
## User-Visible Behavior Changes
${input.userVisibleBehaviorChanges}
## Verification
${bulletList(input.verification)}
---
This PR was debugged, implemented, and created with [LazyCodex](https://github.com/code-yeongyu/lazycodex).
Tag: lazycodex-generated
`
}
async function main() {
const [, , inputPath, outputPath] = process.argv
if (typeof inputPath !== "string" || inputPath.trim() === "") {
throw new Error("usage: create-pr-body.mjs <input.json> <output.md>")
}
if (typeof outputPath !== "string" || outputPath.trim() === "") {
throw new Error("usage: create-pr-body.mjs <input.json> <output.md>")
}
const parsed = JSON.parse(await readFile(inputPath, "utf8"))
await writeFile(outputPath, createLazyCodexBugFixPrBody(parsed), "utf8")
}
if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) {
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 |