@devries-cameron20 / composio-1 / commits / c14dc0780
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.

docs: add Send button to chat examples, GitHub link, and review guidelines

- Add visible Send button to chat forms (page.tsx + page-with-tools.tsx) - Add "View source on GitHub" link to chat-app cookbook - Add code review guidelines to CLAUDE.md for tutorial code in examples/ Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Sushmitha Mallesh committed Feb 23, 2026 at 19:22 UTC c14dc078027edc1c4bf13fd1182d34453ec2e107
4 files changed +24 -2
docs/CLAUDE.md
+4
@@ -70,6 +70,10 @@ Detailed documentation for Claude is organized in `.claude/`:
70 - Dynamic toolkit pages are validated against slugs from `public/data/toolkits.json`
71 - Non-Fumadocs `.md` files (like FAQ snippets) are picked up via `content/**/*.md` glob
72
73 +## Code Review Guidelines
74 +
75 +**`docs/examples/` is tutorial code.** Review for correctness and clarity, not production-readiness. Skip accessibility (aria attributes, focus management), error boundaries, i18n, comprehensive error handling, and similar concerns that add noise to a teaching example. The goal is to teach Composio integration with minimal code.
76 +
77 ## AI-Native Documentation
78
79 **Prefer cURL over "click"** - Most docs traffic comes from AI crawlers. When documenting API interactions, prefer showing cURL commands over UI instructions like "click this button" or "navigate to settings". cURL is machine-readable and can be directly executed by AI agents.
docs/content/cookbooks/chat-app.mdx
+2
@@ -5,6 +5,8 @@ description: Build an AI chat app with tool access to 1000+ apps in about 30 lin
5
6 Give your AI agent access to Gmail, GitHub, Slack, Notion, and 1000+ other apps. This tutorial builds a Next.js chat app that handles tool discovery, user authentication, and action execution in about **30 lines of code**.
7
8 +[View source on GitHub](https://github.com/ComposioHQ/composio/tree/next/docs/examples/chat-app)
9 +
10 ## What you'll build
11
12 - A chat app where your agent can find and use tools across 1000+ apps
docs/examples/chat-app/page-with-tools.tsx
+9 -1
@@ -78,14 +78,22 @@ export default function Chat() {
78 sendMessage({ text: input });
79 setInput("");
80 }}
81 + className="flex gap-2"
82 >
83 <input
84 value={input}
85 onChange={(e) => setInput(e.target.value)}
86 placeholder="Ask me anything..."
87 disabled={isLoading}
87 - className="w-full p-3 border border-gray-300 rounded-lg"
88 + className="flex-1 p-3 border border-gray-300 rounded-lg"
89 />
90 + <button
91 + type="submit"
92 + disabled={isLoading}
93 + className="px-4 py-3 bg-black text-white rounded-lg disabled:opacity-50"
94 + >
95 + Send
96 + </button>
97 </form>
98 </main>
99 );
docs/examples/chat-app/page.tsx
+9 -1
@@ -58,14 +58,22 @@ export default function Chat() {
58 sendMessage({ text: input });
59 setInput("");
60 }}
61 + className="flex gap-2"
62 >
63 <input
64 value={input}
65 onChange={(e) => setInput(e.target.value)}
66 placeholder="Ask me anything..."
67 disabled={isLoading}
67 - className="w-full p-3 border border-gray-300 rounded-lg"
68 + className="flex-1 p-3 border border-gray-300 rounded-lg"
69 />
70 + <button
71 + type="submit"
72 + disabled={isLoading}
73 + className="px-4 py-3 bg-black text-white rounded-lg disabled:opacity-50"
74 + >
75 + Send
76 + </button>
77 </form>
78 </main>
79 );