@devries-cameron20 / composio Mirror · read-only
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 21, 03:37 UTC

next
ts 42 lines 2.35 KB
Raw
1 export type AgentFirstPromptProps = {
2 agent:
3 | 'claude-code'
4 | 'cline'
5 | 'codex'
6 | 'cursor'
7 | 'gemini-cli'
8 | 'github-copilot'
9 | 'grok'
10 | 'openclaw'
11 | 'opencode';
12 };
13
14 const SKILL_INSTRUCTION: Record<AgentFirstPromptProps['agent'], string> = {
15 'claude-code': 'Use the /composio skill to get Composio working in this codebase.',
16 cline: 'Use the composio agent skill to get Composio working in this codebase.',
17 codex: 'Use the $composio skill to get Composio working in this codebase.',
18 cursor: 'Use the composio agent skill to get Composio working in this codebase.',
19 'gemini-cli': 'Use the composio agent skill to get Composio working in this codebase.',
20 'github-copilot': 'Use /composio to get Composio working in this codebase.',
21 grok: 'Use the composio agent skill to get Composio working in this codebase.',
22 openclaw: 'Use the composio agent skill to get Composio working in this codebase.',
23 opencode: 'Use the composio agent skill to get Composio working in this codebase.',
24 };
25
26 export const promptFor = (agent: AgentFirstPromptProps['agent']) => `${SKILL_INSTRUCTION[agent]}
27
28 Help me connect an integration and make my first real tool call.
29 When it works, show me what changed and what I can try next.`;
30
31 export const SETUP_PROMPT = `Help me add Composio to this project. First, inspect the codebase to understand its framework, agent architecture, authentication, and user or tenant identity model.
32
33 Check whether the official \`composio\` Agent Skill is installed. If it is missing, install it for this project with:
34
35 \`npx skills add ComposioHQ/composio --skill composio\`
36
37 Then load and follow the skill. If installation requires approval, ask for it. If the host does not support skills or installation fails, use the current documentation at [https://docs.composio.dev](https://docs.composio.dev) and report that fallback.
38
39 Default to Composio Platform for application codebases. Use Composio For You only when the project clearly configures a personal agent or automation for the developer’s own accounts.
40
41 Based on the codebase, explain briefly where Composio would fit. Then ask what I want my users or agent to accomplish with connected apps. If the project suggests likely use cases, offer a few relevant options. If it is not clear whether I want to build Composio into the application or connect it to my coding agent, ask me before making changes.`;
42