Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
| 1 | import { Argument, Command, Flag } from 'effect/cli'; |
| 2 | import { Option } from 'effect'; |
| 3 | import { installSkill } from 'src/effects/install-skill'; |
| 4 | |
| 5 | export const setupSkillCmd = Command.make( |
| 6 | 'skill', |
| 7 | { |
| 8 | target: Argument.Literals('target', ['claude', 'codex', 'openclaw']), |
| 9 | name: Flag.String('name').pipe( |
| 10 | Flag.optional, |
| 11 | Flag.withDescription('Installed skill name (default: composio-cli)') |
| 12 | ), |
| 13 | }, |
| 14 | ({ target, name }) => installSkill({ target, skillName: Option.getOrUndefined(name) }) |
| 15 | ).pipe( |
| 16 | Command.withDescription('Install the Composio CLI skill for an agent host.'), |
| 17 | Command.withExamples([ |
| 18 | { command: 'composio setup skill claude' }, |
| 19 | { command: 'composio setup skill codex --name composio-cli' }, |
| 20 | ]) |
| 21 | ); |