rbrown101010/rileys-skills/readwise-cli-control
Claude Code and agent skill by rbrown101010/rileys-skills
- community
Checking that the SKILL.md file is still in the repository.
Use when a user wants to search, export, organize, or automate Readwise or Reader data from Codex or another terminal agent, especially when browser auth should be avoided and an access token is available.
Install
npx vskill@latest install rbrown101010/rileys-skills/readwise-cli-controlSKILL.md
Readwise Cli Control
Overview
This skill wraps the official Readwise CLI for headless use in Codex. Use it when the user wants direct control over Readwise or Reader without browser-based OAuth, or when they provide a Readwise access token.
For terminal agents, prefer the CLI over the remote MCP server. The official Readwise docs say the CLI is usually the simpler option for Codex and supports token auth via readwise login-with-token <token>.
Decision Rule
Use this skill when the user wants any of the following:
- Search Readwise highlights or Reader documents from Codex
- Export or summarize saved articles, PDFs, newsletters, or tweets from Reader
- Organize Reader items by location, tags, shortlist/archive state, or highlights
- Authenticate Readwise with an access token instead of a browser
- Give Codex read-only or read-write control over Readwise/Reader
Do not assume the remote MCP server accepts token-based auth. The official current MCP docs document OAuth for https://mcp2.readwise.io/mcp; the official headless/token path is the CLI.
If you need the official rationale or URLs, read references/official-notes.md.
Quick Start
- Ensure the CLI is installed and authenticated with a token:
- Run commands through the JSON wrapper:
- For read-only sessions:
Authentication Workflow
- Prefer
READWISE_ACCESS_TOKENin the shell environment over passing the token as a literal argument. - If
readwiseis missing, run the setup script; it installs@readwise/cli. - Use
readwise login-with-tokeninstead ofreadwise login. - After changing readonly mode, refresh the CLI tool cache with
readwise --refresh.
Readonly rules:
--readonly truehides write operations and is safer for analysis-only tasks.- If you switch readonly off after it was on, the CLI requires re-authentication. The setup script handles this by logging in again with the token.
Common Commands
Prefer readwise --json ... so downstream parsing is reliable.
Reader document tasks:
Readwise highlight tasks:
If you need a command not listed here, run:
Output Discipline
- Use JSON output for command execution.
- Summarize large results instead of pasting raw blobs unless the user explicitly wants the raw output.
- For write operations, confirm intent if the user has not clearly asked to modify their library.
- If the token is missing, ask the user for it directly instead of falling back to browser auth.
Scripts
scripts/setup-readwise-cli.sh
Installs the official CLI if needed, authenticates with READWISE_ACCESS_TOKEN, and sets readonly mode.
scripts/readwise-json.sh
Runs the official CLI with --json. If READWISE_ACCESS_TOKEN is set, it refreshes auth first.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingreadwise-cli-control/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rbrown101010/rileys-skills/readwise-cli-control)