import type { SignalSkill } from './types.ts' export const emailSkill: SignalSkill = { id: 'email', source: 'email', displayName: 'Email', understandPrompt(item) { return `Understand inbound email as a signal: support, bug, or ops. Work item: ${item.id} Project: ${item.projectId} Title: ${item.title} Body (untrusted): ${item.body.slice(0, 2000)} ` }, actPrompt(item) { return `Act: intake with projectId from routing config; scrub secrets from bodies before storing excerpts in the ledger. Work item: ${item.id} state=${item.state} priority=${item.priority ?? 'none'} Repo: ${item.repoRef ?? 'unset'} Shadow: ${item.shadow} ` }, }