← 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 cleanupSkill: SignalSkill = {
id: 'cleanup',
source: 'friction',
displayName: 'Codebase cleanup',
understandPrompt(item) {
return `Understand cleanup automation lanes: docs freshness, keep-tests-tight, legacy reaper, general audit.
Work item: ${item.id}
Project: ${item.projectId}
Title: ${item.title}
Body (untrusted):
${item.body.slice(0, 2000)}
`
},
actPrompt(item) {
return `Act: make one focused cleanup PR (stale docs, dead code, flaky or redundant tests). Keep behavior unchanged, run the repo's tests, and describe what you removed and why.
Work item: ${item.id} state=${item.state} priority=${item.priority ?? 'none'}
Repo: ${item.repoRef ?? 'unset'}
Shadow: ${item.shadow}
`
},
}