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, 13:30 UTC
Specific wording per agent
Brendan O'Leary committed
Sep 4, 2026 at 15:36 UTC
c3c09e6e13dabd0fdf06b22733fcd5c2486d5c18
3 files changed
+57
-16
docs/components/agent-first-prompt.tsx
+30
-4
@@ -3,20 +3,46 @@
3
import { Check, Copy } from 'lucide-react';
4
import { useEffect, useRef, useState } from 'react';
5
6
-const FIRST_PROMPT = `Use the $composio skill to get Composio working in this codebase.
6
+type AgentFirstPromptProps = {
7
+ agent:
8
+ | 'claude-code'
9
+ | 'cline'
10
+ | 'codex'
11
+ | 'cursor'
12
+ | 'gemini-cli'
13
+ | 'github-copilot'
14
+ | 'grok'
15
+ | 'openclaw'
16
+ | 'opencode';
17
+};
18
+
19
+const SKILL_INSTRUCTION: Record<AgentFirstPromptProps['agent'], string> = {
20
+ 'claude-code': 'Use the /composio skill to get Composio working in this codebase.',
21
+ cline: 'Use the composio agent skill to get Composio working in this codebase.',
22
+ codex: 'Use the $composio skill to get Composio working in this codebase.',
23
+ cursor: 'Use the composio agent skill to get Composio working in this codebase.',
24
+ 'gemini-cli': 'Use the composio agent skill to get Composio working in this codebase.',
25
+ 'github-copilot': 'Use /composio to get Composio working in this codebase.',
26
+ grok: 'Use the composio agent skill to get Composio working in this codebase.',
27
+ openclaw: 'Use the composio agent skill to get Composio working in this codebase.',
28
+ opencode: 'Use the composio agent skill to get Composio working in this codebase.',
29
+};
30
+
31
+const promptFor = (agent: AgentFirstPromptProps['agent']) => `${SKILL_INSTRUCTION[agent]}
32
33
Help me connect an integration and make my first real tool call.
34
When it works, show me what changed and what I can try next.`;
35
11
-export function AgentFirstPrompt() {
36
+export function AgentFirstPrompt({ agent }: AgentFirstPromptProps) {
37
const [copied, setCopied] = useState(false);
38
const timerRef = useRef<ReturnType<typeof setTimeout>>(undefined);
39
+ const prompt = promptFor(agent);
40
41
useEffect(() => () => clearTimeout(timerRef.current), []);
42
43
const copyPrompt = async () => {
44
try {
19
- await navigator.clipboard.writeText(FIRST_PROMPT);
45
+ await navigator.clipboard.writeText(prompt);
46
clearTimeout(timerRef.current);
47
setCopied(true);
48
timerRef.current = setTimeout(() => setCopied(false), 2000);
@@ -39,7 +65,7 @@ export function AgentFirstPrompt() {
65
<span aria-live="polite">{copied ? 'Copied' : 'Copy prompt'}</span>
66
</button>
67
</div>
42
- <p className="whitespace-pre-line text-[13px] leading-[1.6] text-fd-foreground/70">{FIRST_PROMPT}</p>
68
+ <p className="whitespace-pre-line text-[13px] leading-[1.6] text-fd-foreground/70">{prompt}</p>
69
</aside>
70
);
71
}
docs/content/docs/agent-setup/clients.mdx
+9
-9
@@ -24,7 +24,7 @@ npx skills add ComposioHQ/composio --skill composio --agent claude-code
24
25
The Skills CLI installs the skill in Claude Code's skill directory. Start a new Claude Code session if the current session does not discover it, then ask Claude to add Composio to your project.
26
27
-<AgentFirstPrompt />
27
+<AgentFirstPrompt agent="claude-code" />
28
29
## OpenCode
30
@@ -44,7 +44,7 @@ npx skills add ComposioHQ/composio --skill composio --agent opencode
44
45
Start a new OpenCode session after installation so it can discover the skill, then ask OpenCode to add Composio to your project.
46
47
-<AgentFirstPrompt />
47
+<AgentFirstPrompt agent="opencode" />
48
49
## Cline
50
@@ -64,7 +64,7 @@ npx skills add ComposioHQ/composio --skill composio --agent cline
64
65
Open the project in Cline after installation. Start a new task if the skill is not available in an existing one, then ask Cline to add Composio to the application.
66
67
-<AgentFirstPrompt />
67
+<AgentFirstPrompt agent="cline" />
68
69
## Grok Build
70
@@ -84,7 +84,7 @@ npx skills add ComposioHQ/composio --skill composio --agent grok
84
85
Start a new Grok Build session after installation so it can discover the skill, then ask it to add Composio and make your first tool call.
86
87
-<AgentFirstPrompt />
87
+<AgentFirstPrompt agent="grok" />
88
89
## OpenAI Codex
90
@@ -104,7 +104,7 @@ npx skills add ComposioHQ/composio --skill composio --agent codex
104
105
The project install uses the shared Agent Skills directory, so the skill can travel with the repository. Start a new Codex session after installation, then ask Codex to add Composio to your project.
106
107
-<AgentFirstPrompt />
107
+<AgentFirstPrompt agent="codex" />
108
109
## Cursor
110
@@ -124,7 +124,7 @@ npx skills add ComposioHQ/composio --skill composio --agent cursor
124
125
Open the project in Cursor after installation. Start a new agent conversation if the skill is not available in an existing one, then ask Cursor to add Composio to the application.
126
127
-<AgentFirstPrompt />
127
+<AgentFirstPrompt agent="cursor" />
128
129
## GitHub Copilot
130
@@ -144,7 +144,7 @@ npx skills add ComposioHQ/composio --skill composio --agent github-copilot
144
145
Reopen the repository in VS Code if Copilot does not discover the skill immediately. Use Copilot agent mode and ask it to add Composio to the application.
146
147
-<AgentFirstPrompt />
147
+<AgentFirstPrompt agent="github-copilot" />
148
149
## Gemini CLI
150
@@ -164,7 +164,7 @@ npx skills add ComposioHQ/composio --skill composio --agent gemini-cli
164
165
Start a new Gemini CLI session in the project after installation. Mention Composio in your request so Gemini can load the skill and apply its setup guidance.
166
167
-<AgentFirstPrompt />
167
+<AgentFirstPrompt agent="gemini-cli" />
168
169
## OpenClaw
170
@@ -184,4 +184,4 @@ npx skills add ComposioHQ/composio --skill composio --agent openclaw
184
185
Start a new OpenClaw session after installation so it can discover the skill. OpenClaw loads the relevant skill when your request calls for Composio guidance.
186
187
-<AgentFirstPrompt />
187
+<AgentFirstPrompt agent="openclaw" />
docs/tests/static/home-navigation.test.ts
+18
-3
@@ -134,7 +134,19 @@ describe('Welcome navigation', () => {
134
expect(clients.match(/\*\*Global install\*\*/g) ?? []).toHaveLength(9);
135
expect(clients.match(/\*\*Project install\*\*/g) ?? []).toHaveLength(9);
136
expect(clients.match(/```bash/g) ?? []).toHaveLength(18);
137
- expect(clients.match(/<AgentFirstPrompt \/>/g) ?? []).toHaveLength(9);
137
+ for (const agent of [
138
+ 'claude-code',
139
+ 'opencode',
140
+ 'cline',
141
+ 'grok',
142
+ 'codex',
143
+ 'cursor',
144
+ 'github-copilot',
145
+ 'gemini-cli',
146
+ 'openclaw',
147
+ ]) {
148
+ expect(clients).toContain(`<AgentFirstPrompt agent="${agent}" />`);
149
+ }
150
for (const agent of [
151
'claude-code',
152
'codex',
@@ -174,8 +186,11 @@ describe('Welcome navigation', () => {
186
const firstPrompt = await Bun.file(
187
new URL('../../components/agent-first-prompt.tsx', import.meta.url)
188
).text();
177
- expect(firstPrompt).toContain('navigator.clipboard.writeText(FIRST_PROMPT)');
178
- expect(firstPrompt).toContain('Use the $composio skill to get Composio working in this codebase.');
189
+ expect(firstPrompt).toContain('navigator.clipboard.writeText(prompt)');
190
+ expect(firstPrompt).toContain("'claude-code': 'Use the /composio skill");
191
+ expect(firstPrompt).toContain("codex: 'Use the $composio skill");
192
+ expect(firstPrompt).toContain("'github-copilot': 'Use /composio");
193
+ expect(firstPrompt).toContain("cursor: 'Use the composio Agent Skill");
194
expect(firstPrompt).toContain('Help me connect an integration and make my first real tool call.');
195
expect(firstPrompt).toContain('When it works, show me what changed and what I can try next.');
196
});