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

discord.ts

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

export const discordSkill: SignalSkill = {
	id: 'discord',
	source: 'discord',
	displayName: 'Discord',
	understandPrompt(item) {
		return `Understand a Discord message as a possible signal: is it a bug report, request, or noise?

Work item: ${item.id}
Project: ${item.projectId}
Title: ${item.title}
Body (untrusted):
${item.body.slice(0, 2000)}
`
	},
	actPrompt(item) {
		return `Act: only intake actionable messages; never post as the official bot without the kody-discord package and approved credentials.

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