composio-cli
Help users operate the published Composio CLI to find the right tool, connect accounts, inspect schemas, execute tools, subscribe to trigger events with `composio listen`, script workflows with `composio run`, and call authenticated app APIs with `composio proxy`. Use when the user asks how to do something with `composio`, wants to run a known tool slug, needs to discover a slug with `composio search`, fix a missing connection with `composio link`, inspect tool inputs with `--get-schema` or `--dry-run`, troubleshoot top-level CLI flows, or explicitly needs `composio dev` guidance.
- License 许可
- MIT
- 最近更新
- 2026-09-22
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- composio-cli
- description
- Help users operate the published Composio CLI to find the right tool, connect accounts, inspect schemas, execute tools, subscribe to trigger events with `composio listen`, script workflows with `composio run`, and call authenticated app APIs with `composio proxy`. Use when the user asks how to do something with `composio`, wants to run a known tool slug, needs to discover a slug with `composio search`, fix a missing connection with `composio link`, inspect tool inputs with `--get-schema` or `--dry-run`, troubleshoot top-level CLI flows, or explicitly needs `composio dev` guidance.
02 资源文件 4
- 参考文档agents/openai.yaml201 B
- 参考文档references/composio-dev.md1.9 KB
- 参考文档references/power-user-examples.md3.8 KB
- 参考文档references/troubleshooting.md3.6 KB
03 SKILL.md 正文
<!-- AUTO-GENERATED: edit skills-src/composio-cli/index.ts and rebuild --> <!-- release-channel: beta -->
Composio CLI
Default Workflow
- Start with
composio execute <slug>whenever the slug is known. - If several independent tool calls must happen at once, use
composio execute -p/--parallelwith repeated<slug> -d <json>groups. - If
executesays the toolkit is not connected, runcomposio link <toolkit>and retry. - If the arguments are unclear, run
composio execute <slug> --get-schemaor--dry-runbefore guessing. - Reach for
composio search "<task>"only when the slug is unknown.searchaccepts one or more queries, so batch related discovery work into a single command when useful. - If the CLI build enables the experimental
listenfeature, use it for temporary consumer-project trigger subscriptions.
execute - Run A Tool
Use execute when the tool slug is already known.
composio execute GITHUB_GET_THE_AUTHENTICATED_USER -d '{}'
Inspect required inputs without executing:
composio execute GITHUB_CREATE_AN_ISSUE --get-schema
Preview safely:
composio execute GITHUB_CREATE_AN_ISSUE --skip-connection-check --dry-run -d '{ owner: "acme", repo: "app", title: "Bug report", body: "Steps to reproduce..." }'
Pass data from a file or stdin:
composio execute GITHUB_CREATE_AN_ISSUE -d @issue.json
cat issue.json | composio execute GITHUB_CREATE_AN_ISSUE -d -
Upload a local file:
composio execute SLACK_UPLOAD_OR_CREATE_A_FILE_IN_SLACK \
--file ./image.png \
-d '{ channels: "C123" }'
Run independent tool calls in parallel:
composio execute --parallel \
GMAIL_SEND_EMAIL -d '{ recipient_email: "a@b.com", subject: "Hi" }' \
GITHUB_CREATE_AN_ISSUE -d '{ owner: "acme", repo: "app", title: "Bug" }'
Key flags:
-
--get-schema: Inspect required arguments without executing the tool. -
--dry-run: Preview the request shape without performing the action. -
--file: Inject a local file path into a tool that exposes exactly one uploadable file argument. -
--parallel: Execute multiple independent tool calls in the same invocation. -
--account: Select which connected account to use by alias, word_id, or account id when multiple accounts exist for the same toolkit. -
--fileonly works when the tool exposes a single uploadable file input. Otherwise use explicit-dJSON.
search - Find The Slug
Use search only when the tool slug is not already known.
composio search "create a github issue"
composio search "send an email" --toolkits gmail
composio search "send an email" "create a github issue"
composio search "my emails" "my github issues" --toolkits gmail,github
- Batch related discovery work into one
searchinvocation, then move back toexecuteonce the correct slugs are known.
link - Connect An Account
Use link when execute reports that a toolkit is not connected, or when the user explicitly wants to authorize an account.
composio link gmail
composio link googlecalendar --no-browser
Key flags:
-
--alias: Assign an alias to the connected account. Required when creating an additional account for the same toolkit. -
Retry the original
executecommand after linking succeeds.
listen - Subscribe To Trigger Events
Use listen for temporary trigger subscriptions in consumer projects, especially when background agents should consume new event payloads from artifact files.
composio listen GMAIL_NEW_GMAIL_MESSAGE
composio listen SLACK_RECEIVE_MESSAGE -p '{ trigger_config: { channel: "C123" } }'
composio listen GMAIL_NEW_GMAIL_MESSAGE --stream
composio listen GMAIL_NEW_GMAIL_MESSAGE --stream '.data.threadId'
composio listen GMAIL_NEW_GMAIL_MESSAGE --timeout 5m
composio listen GMAIL_NEW_GMAIL_MESSAGE -p @trigger.json --max-events 5
Key flags:
-
-p/--params: Provide only trigger config fields; connected account resolution is automatic. -
--stream: Print events inline, optionally narrowed to a JSON path. -
--timeoutand--max-events: Stop long-running listeners cleanly. -
--account: Select which connected account to use by alias, word_id, or account id. -
composio artifacts cwdshows the current artifact root when saved payloads need inspection.
proxy - Raw API Access
Use proxy when a toolkit supports a raw API operation that is easier than finding a dedicated tool slug.
composio proxy https://api.github.com/user --toolkit github --method GET </dev/null
run - Scripting, LLMs, and Programmatic Workflows
For programmatic calls, loops, output plumbing, or anything beyond a single tool call, prefer composio run.
composio run executes an inline ESM JavaScript/TypeScript snippet with authenticated execute(), search(), proxy(), and the experimental experimental_subAgent() helper pre-injected. No SDK setup required.
Chain multiple tools:
composio run '
const me = await execute("GITHUB_GET_THE_AUTHENTICATED_USER");
const emails = await execute("GMAIL_FETCH_EMAILS", { max_results: 1 });
console.log({ login: me.data.login, fetchedEmails: !!emails.data });
'
Fan out with Promise.all:
composio run '
const [me, emails] = await Promise.all([
execute("GITHUB_GET_THE_AUTHENTICATED_USER"),
execute("GMAIL_FETCH_EMAILS", { max_results: 5 }),
]);
console.log({ login: me.data.login, emailCount: emails.data.messages?.length });
'
Feed tool output into an LLM and get structured JSON back:
composio run --logs-off '
const emails = await execute("GMAIL_FETCH_EMAILS", { max_results: 5 });
const brief = await experimental_subAgent(
`Summarize these emails and count them.\n\n${emails.prompt()}`,
{ schema: z.object({ summary: z.string(), count: z.number() }) }
);
console.log(brief.structuredOutput);
'
- Use top-level
execute --parallelinstead when the user only needs a few independent tool calls and does not need script logic.
Auth
composio whoami # check current session
composio login # authenticate if whoami fails
Escalate Only When Needed
If the user is stuck on top-level commands or needs fallback inspection commands, load references/troubleshooting.md.
If the user explicitly asks about developer projects, auth configs, connected accounts, triggers, logs, orgs, or projects, load references/composio-dev.md. composio dev is not the default end-user path.
04 同仓库更多 Skills
test-driven-development
Drive one observable software behavior at a time through a valid Test-Driven Development cycle: select the test, prove Red for the intended reason, implement the smallest Green change, and preserve the test as regression evidence. Use before adding production behavior, fixing defects, changing contracts, or safely characterizing legacy behavior. Also use when tests are brittle, over-mocked, skipped, weakened, or passing without proving the requirement.
suite-orchestrator
Route complex work across the complete Agent Skill Suite while enforcing content preservation, explicit scope, correct specialist timing, evidence-backed completion, and durable state. Use when a task involves coding, agent operations, repository bootstrapping, conversation compilation, artifact generation, expert review, persistent memory, or several of these together. Also use when the correct skill is unclear or work must pass through multiple specialist skills in a controlled sequence.
solid-design
Design, refactor, and review object-oriented or modular code with the SOLID principles while preserving behavior and avoiding needless abstraction. Use when defining responsibilities, extension seams, subtype contracts, consumer interfaces, dependency direction, modules, services, strategies, plugins, adapters, repositories, or architecture boundaries; also use when test friction, tangled dependencies, large classes, unsupported methods, framework leakage, or repeated variant branches signal a structural problem.
quality-gates
Verify engineering work against required behavioral, architectural, regression, build, security, compatibility, documentation, and diff-hygiene evidence before completion. Use after a code change, defect fix, refactor, migration, generated-code update, or implementation plan appears complete; also use for read-only code reviews and release-readiness checks. Return PASS or BLOCKED without implementing the remediation.
loop-engineering
Execute non-trivial software work through small, observable build-test-observe-adjust loops with explicit hypotheses, evidence, outcomes, and next actions. Use throughout feature implementation, debugging, refactoring, migrations, performance work, and complex verification where feedback must guide each subsequent step. Use when work is stalling, changes are growing too large, failures repeat, or an engineering ledger is required.
local-memory
Maintain fast, durable, curated local memory for AI agents on Android, Termux, Linux, macOS, Windows, or other lightweight environments. Use when an agent must remember stable preferences, project facts, decisions, procedures, failure resolutions, and task state across sessions; retrieve relevant memories before planning; resolve conflicting or stale memories; or provide explicit remember, search, pin, update, forget, status, and export controls without a cloud dependency.