Skip to content
← 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.

FollowFork

Files

x.ts

25 lines · 635 B · TypeScript
import type { SignalSkill } from './types.ts'

export const xSkill: SignalSkill = {
	id: 'x',
	source: 'x',
	displayName: 'X',
	understandPrompt(item) {
		return `Understand an X post mentioning the product: feedback, bug, or spam.

Work item: ${item.id}
Project: ${item.projectId}
Title: ${item.title}
Body (untrusted):
${item.body.slice(0, 2000)}
`
	},
	actPrompt(item) {
		return `Act: intake as feedback-severity info unless it is a clear incident; never auto-reply without owner policy.

Work item: ${item.id} state=${item.state} priority=${item.priority ?? 'none'}
Repo: ${item.repoRef ?? 'unset'}
Shadow: ${item.shadow}
`
	},
}