diff --git a/apps/api/src/handlers/discord/__tests__/index.test.ts b/apps/api/src/handlers/discord/__tests__/index.test.ts index da03e2aea..37affff1f 100644 --- a/apps/api/src/handlers/discord/__tests__/index.test.ts +++ b/apps/api/src/handlers/discord/__tests__/index.test.ts @@ -2005,6 +2005,20 @@ describe('Discord Gateway event handler', () => { ), }), ); + const helpText = mocks.reply.mock.calls[0]?.[0]?.text; + expect(helpText).toContain('**Prompt starters**'); + expect(helpText).toContain( + 'Review PR #123, address actionable feedback, and update the PR.', + ); + expect(helpText).toContain( + 'Investigate the latest CI failure, fix it, and open a draft PR.', + ); + expect(helpText).toContain( + 'Find the smallest fix for , test it, and open a draft PR.', + ); + expect(helpText).toContain( + 'Copy a starter into `/new`, then replace the details for your task.', + ); }); it('uses /new to start fresh even when the DM has an active task', async () => { diff --git a/apps/api/src/handlers/discord/index.ts b/apps/api/src/handlers/discord/index.ts index 58e079e23..22bbc1463 100644 --- a/apps/api/src/handlers/discord/index.ts +++ b/apps/api/src/handlers/discord/index.ts @@ -165,6 +165,13 @@ const DISCORD_HELP_MESSAGE = [ '`/link code:` — link this Discord account in a DM with me.', '`/help` — show this message.', '', + '**Prompt starters**', + '`Review PR #123, address actionable feedback, and update the PR.`', + '`Investigate the latest CI failure, fix it, and open a draft PR.`', + '`Find the smallest fix for , test it, and open a draft PR.`', + '', + 'Copy a starter into `/new`, then replace the details for your task.', + '', 'Follow up by sending another message in the task thread.', ].join('\n'); diff --git a/packages/communication/src/__tests__/discord-provider.test.ts b/packages/communication/src/__tests__/discord-provider.test.ts index 4ad187dd4..628ed112d 100644 --- a/packages/communication/src/__tests__/discord-provider.test.ts +++ b/packages/communication/src/__tests__/discord-provider.test.ts @@ -245,7 +245,13 @@ describe('DiscordCommunicationProvider', () => { { name: 'new', type: 1, - options: [expect.objectContaining({ name: 'request', required: true })], + options: [ + expect.objectContaining({ + name: 'request', + description: 'Describe the task, or run /help for prompt starters', + required: true, + }), + ], }, { name: 'link', type: 1 }, { diff --git a/packages/communication/src/discord-provider.ts b/packages/communication/src/discord-provider.ts index 87618bbeb..59abe44f0 100644 --- a/packages/communication/src/discord-provider.ts +++ b/packages/communication/src/discord-provider.ts @@ -1214,7 +1214,8 @@ export class DiscordCommunicationProvider implements CommunicationProviderAdapte { type: 3, name: 'request', - description: 'What would you like Roomote to do?', + description: + 'Describe the task, or run /help for prompt starters', required: true, }, ],