Skills

Agent CLI

Optional command line and MCP server for a macOS app, so Claude Code, Codex, and...

Install

npx skills add daveebbelaar/bama --skill agent-cli -g -a claude-code -y
Repository
daveebbelaar/bama1.3k
Category
AI and agents
Updated
3d ago
License
MIT
Context cost
Lightabout 1,310 tokens
Runs scripts
Yes, review before use

What it does

Optional command line and MCP server for a macOS app, so Claude Code, Codex, and scripts can drive it (list, add, change, search, act) through the running app. Use when the user wants agents to work with their app or its data, asks for a CLI, an MCP server, or automation for the app, or says "Claude should be able to use my app".

Agent CLI

Give the app a command line, so an agent can do everything a person can do in the window: tasks items add --title "Call the dentist". The app binary is the CLI. Each command goes to the running app over a private socket, runs there like a button press, and the window updates live.

Claude Code --bash--> tasks items add ...  --socket--> Tasks.app (runs the command, saves, redraws)
Claude Desktop --MCP--> tasks mcp           --socket--> same commands, same app

CLI, MCP, or App Intents

Way inWho uses itShip it
CLIClaude Code, Codex, scripts, people in TerminalAlways. Agents learn it from --help, and it costs no context until used
MCP (tasks mcp)Claude Desktop and other clients with no shellOptional. The same commands, one tool each. One line to register
App IntentsSiri, Spotlight, ShortcutsSeparate work. Agents cannot call them

The CLI talks to the running app, never to the database file. Then there is one writer, the app's checks and side effects run, and the window shows the change at once. If the app is closed, the CLI opens it in the background. Rules and reasons: rules.md.

1. List the commands

Read the user stories (docs/stories/). Write each thing a person does as a command, <noun> <verb>, and mark it:

  • read: items list, items show, status. Safe to run any time.
  • write: items add, items update, open. Changes data, can be undone.
  • destructive: items delete, mail send. Only reports what it would do until --yes is given.

Add status (is it running, what is open, counts) and open <page> (show a page in the window), so an agent can see and steer the app.

Check: every M1 story has its commands, and each command is marked.

2. Add the files

"${CLAUDE_SKILL_DIR}/scripts/add-agent-cli.sh" <app-folder> <cli-name>
Read the whole SKILL.md on GitHub

More in AI and agents