Skip to content

Replace raw curl/node commands with CLI equivalents#3

Open
pete001 wants to merge 2 commits intomainfrom
feat/cli-commands-in-skill
Open

Replace raw curl/node commands with CLI equivalents#3
pete001 wants to merge 2 commits intomainfrom
feat/cli-commands-in-skill

Conversation

@pete001
Copy link
Contributor

@pete001 pete001 commented Feb 18, 2026

Summary

  • Replaces all raw curl and node -e commands in SKILL.md with npx rightbrain@latest CLI equivalents
  • Removes curl, node, [, jq from allowed-tools frontmatter — only npx rightbrain*, cat, mkdir remain
  • Simplifies Phase 0 auth flow from 7 steps to 4 (whoami, login, switch-project, list-models)
  • Removes ACCESS_TOKEN from context tracking — CLI handles auth internally
  • Net change: 65 insertions, 268 deletions

Depends on new CLI commands added in RightbrainAI/brain#1576.

Test plan

  • All 6 new CLI commands tested end-to-end (list-orgs, list-projects, list-tasks, get-task, update-task, export-task)
  • No curl, node -e, or ACCESS_TOKEN references remain outside API Reference section
  • SKILL.md content matches cursor-plugin equivalent (minus allowed-tools frontmatter)

🤖 Generated with Claude Code

pete001 and others added 2 commits February 18, 2026 14:35
All API operations in SKILL.md now use `npx rightbrain@latest` CLI commands
instead of raw curl and node one-liners. The CLI handles auth, token refresh,
and org/project context automatically, making agent output much cleaner.

- Remove curl, node, jq from allowed-tools
- Replace Phase 0 auth flow with whoami/login/switch-project
- Replace all curl API calls with CLI equivalents (list-orgs, list-projects,
  list-tasks, get-task, update-task, export-task, create-task, run-task)
- Remove ACCESS_TOKEN from context tracking
- Remove curl timeout handling section

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Export task is not an official method of sharing tasks, so remove
the export section and references from the task action menu.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant