asana-cli-skill
v1.0.0
Published
Minimal CLI for Asana task management, built to power a Claude Code skill
Downloads
171
Maintainers
Readme
asana-cli
Minimal CLI for Asana task management. Built to power the asana skill for Claude Code, but works standalone in any terminal.
The CLI is a thin infrastructure layer over the Asana REST API. All orchestration logic (reading a task, generating a plan, executing steps, reporting progress) lives in the skill — see The Claude Code skill.
Installation
npm install -g asana-cli-skillThis makes the asana-cli command available globally.
Or from source:
git clone https://github.com/giacomeli/asana-cli-skill.git
cd asana-cli-skill
npm install
npm linkRequires Node.js 18+ (native fetch).
Configuration
Option 1: Interactive command
asana-cli initPrompts for your Personal Access Token and saves it to ~/.asana-cli/.env.
Option 2: Manual
Create ~/.asana-cli/.env (or a .env in your working directory):
ASANA_TOKEN=your-token-hereYou can generate a token at: Asana > Settings > Apps > Developer > Personal Access Tokens.
Optional: progress custom field
By default, asana-cli complete marks the task as completed (the Asana checkbox). If your workspace tracks progress with an enum custom field instead (common on board-style projects), configure it:
ASANA_PROGRESS_FIELD=Task Progress
ASANA_PROGRESS_VALUE=DoneWith these set, complete sets the custom field to that value instead of checking the task off. Use --close to also check it off.
Commands
asana-cli task <url-or-id>
Reads a full task: title, description, project, assignee, and subtasks.
asana-cli task https://app.asana.com/0/1234/5678Output:
Task: Implement notification system
Status: In progress
Project: Sprint 42
Assignee: Juliano
ID: 5678
Description:
Build a push notification system...
Subtasks (2):
[ ] Create schema (id: 9012)
[x] Define endpoints (id: 9013)asana-cli subtasks <url-or-id>
Lists only the subtasks of a task.
asana-cli subtasks 5678asana-cli complete <task-id> -m "message"
Adds a comment and marks the task as done (completed checkbox, or the configured progress custom field).
asana-cli complete 9012 -m "Done\n\nSchema created with Zod validation\n\nCommit: abc1234\nBranch: feature/notifications"Literal \n sequences are converted to real line breaks automatically.
Flags:
--close— also mark the task as completed (checkbox) and complete any pending subtasks. Useful when a progress custom field is configured and you want both.
asana-cli comment <task-id> -m "message"
Adds a comment without changing the task status.
asana-cli comment 5678 -m "Task completed\n\nCommit summary..."Attach files (repeatable, images are embedded inline):
asana-cli comment 5678 -m "Screenshots attached" -a screenshot1.png -a screenshot2.pngasana-cli create-subtask <parent-id> -n "name"
Creates a new subtask under a task.
asana-cli create-subtask 5678 -n "Implement toast component"Accepted URL formats
The CLI accepts any of these:
https://app.asana.com/0/<project-id>/<task-id>https://app.asana.com/0/<project-id>/<task-id>/fhttps://app.asana.com/1/<workspace-id>/project/<project-id>/task/<task-id>- Plain numeric ID (e.g.
1234567890)
The Claude Code skill
The skills/asana/ directory contains a Claude Code skill that orchestrates a full development workflow on top of this CLI: it reads an Asana task, builds an implementation plan from its subtasks (creating them if missing), executes step by step, and updates Asana with comments, commit hashes, and status as the work progresses.
To install it, copy (or symlink) the skill into your Claude Code skills directory.
From a cloned repo:
cp -r skills/asana ~/.claude/skills/asanaFrom the npm global install (the package ships the skill):
cp -r "$(npm root -g)/asana-cli-skill/skills/asana" ~/.claude/skills/asanaThen share any Asana task link in a Claude Code conversation, or use /asana.
Project structure
asana-cli-skill/
├── bin/
│ └── asana-cli.js # Entry point, command registration
├── src/
│ ├── client.js # HTTP client for the Asana API
│ ├── formatter.js # Human-readable terminal output
│ ├── utils.js # URL parsing, helpers
│ └── commands/
│ ├── init.js # Token setup
│ ├── task.js # Read a task
│ ├── subtasks.js # List subtasks
│ ├── complete.js # Complete + comment
│ ├── comment.js # Comment
│ └── create-subtask.js # Create a subtask
├── skills/
│ └── asana/
│ └── SKILL.md # Claude Code skill
├── package.json
└── .gitignoreStack
- Node.js (native ESM, no build step)
commanderfor argument parsingchalkfor terminal colorsdotenvfor configuration- Native
fetch(Node 18+)
