MCPcopy Create free account
hub / github.com/dailydotdev/apps / getIntelPrompt

Function getIntelPrompt

packages/shared/src/features/squads/lib/setup.ts:180–185  ·  view source on GitHub ↗
(handle: string)

Source from the content-addressed store, hash-verified

178
179/** What an agent can do with the weekly intel, over MCP or the API. */
180export const getIntelPrompt = (handle: string): string =>
181 [
182 `Read the latest weekly intel for @${handle} with the daily.dev MCP tools if you have them, otherwise my daily.dev API token (\`DAILY_DEV_TOKEN\`) and ${getIntelApiUrl(handle)}. If you have neither, stop and tell me to add ${DAILY_MCP_URL}.`,
183 '',
184 'Then look at what I shipped or wrote recently and suggest three posts for our daily.dev page. For each, give the angle, format, title, length and the best day and hour to publish, and say which numbers in the intel back it.',
185 ].join('\n');
186
187const connectLine = (handle: string): string =>
188 `This is for our daily.dev company page @${handle}. Use the daily.dev MCP tools if you have them, otherwise my daily.dev API token (\`DAILY_DEV_TOKEN\`). If you have neither, stop and tell me to add ${DAILY_MCP_URL}.`;

Callers 1

IntelForAgentsFunction · 0.90

Calls 1

getIntelApiUrlFunction · 0.85

Tested by

no test coverage detected