← Public packages
@kody/kody-factory
Forkable multi-project software factory: signals, priority queue, project UI, sweep job. Agent runners and Sentry reach it by events.
Files
import type { SignalSkill } from './types.ts'
export const ciFailureSkill: SignalSkill = {
id: 'ci-failure',
source: 'ci-failure',
displayName: 'CI failure',
understandPrompt(item) {
return `Understand a red CI episode: repo, branch, head SHA, whether something already owns this red stretch.
Work item: ${item.id}
Project: ${item.projectId}
Title: ${item.title}
Body (untrusted):
${item.body.slice(0, 2000)}
`
},
actPrompt(item) {
return `Act: re-run once to rule out flakes, then fix the failing check in one PR. One fix per red stretch; the episode closes when the default branch is green.
Work item: ${item.id} state=${item.state} priority=${item.priority ?? 'none'}
Repo: ${item.repoRef ?? 'unset'}
Shadow: ${item.shadow}
`
},
}