agentleFS
tethertotetherto/qvac/.agents/skills/qv-asana-sync/SKILL.md

qv-asana-sync

Skill697 starsChanged 18 days agoApache-2.0View on GitHub

Look up and update Asana tasks using local developer-workflow config and direct Asana REST calls. Use when the user asks to sync an Asana task, move task status, add a PR link to Asana, or validate Asana configuration.

  • Reads credentials

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 8 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If the user invokes this skill without a ticket, task GID, or specific action, do not only run config validation and exit.

    line 13
  2. Distinctive:

    Ask for the missing input:

    line 15
  3. Very specific:

    Create a Personal Access Token with a clear description, e.g.

    line 30
  4. Distinctive:

    No OAuth app or Asana MCP server is needed.

    line 33
  5. Distinctive:

    Read a task by Asana task GID:

    line 80
  6. Distinctive:

    Add a comment, for example a PR URL:

    line 95
  7. Distinctive:

    Use this mapping after user confirmation:

    line 109
  8. Distinctive:

    Never write tokens or Asana IDs into repo files.

    line 120
  9. Distinctive:

    Do not mutate Asana without user confirmation unless the user already approved the lifecycle action in the current workflow.

    line 121
  10. Very specific:

    Use /users/me to discover the current user.

    line 122

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Asana Sync

Manual Asana task lookup and lifecycle sync using direct REST helpers. No Asana MCP binary.

Default Behavior

If the user invokes this skill without a ticket, task GID, or specific action, do not only run config validation and exit. Show the operation menu below and ask what they want to do.

Ask for the missing input:

  • Ticket ID or task GID
  • Desired action: find, status, move, comment, or complete
  • Target status for move
  • Comment text for comment

Prerequisites

  • Local config at ~/.config/qvac-pr-skills/config.json
  • ASANA_ACCESS_TOKEN set in the current environment or available from the user's default shell startup files, unless config uses a different asana.tokenEnv

Create the token:

  1. Open Asana developer console.
  2. Create a Personal Access Token with a clear description, e.g. Local qvac-pr-skills.
  3. Permission model: Asana Personal Access Tokens do not require choosing scopes in this setup. The token acts as the current Asana user and can access whatever that user can access.
  4. For status enrichment, the user must be able to read the configured workspace/project/tasks. For sync actions, the user must also be allowed to comment, move, and complete tasks in that project.
  5. No OAuth app or Asana MCP server is needed.
  6. Store it in your default shell startup file or export it locally. Coding agents may not inherit the app environment, so the helper falls back to asking your default shell for this variable.
export ASANA_ACCESS_TOKEN='<token>'
  1. Verify:
curl https://app.asana.com/api/1.0/users/me \
  -H "Authorization: Bearer $ASANA_ACCESS_TOKEN"

Docs: Asana personal access token

Validate:

node .agents/skills/_lib/developer-workflow/config-init.mjs --validate --asana

Common Operations

Show these options when no action is provided:

  • status - validate local Asana config and token access
  • find <ticket> - find an Asana task by ticket
  • task <task-gid> - read a task by Asana GID
  • move <ticket-or-task-gid> <status> - move task to configured status
  • comment <ticket-or-task-gid> <text> - add task comment
  • complete <ticket-or-task-gid> - mark task complete and move to completed

Available statuses: todo, inProgress, blocked, inReview, readyForQa, qaPassed, staging, storeReview, readyForProd, completed, closed.

Status / config validation:

node .agents/skills/_lib/developer-workflow/asana-cli.mjs status

Find a task by ticket:

node .agents/skills/_lib/developer-workflow/asana-cli.mjs find QVAC-12345

Read a task by Asana task GID:

node .agents/skills/_lib/developer-workflow/asana-cli.mjs task <task-gid>

Move a ticket/task to a configured status. If asana.statusOptions is configured, this uses Asana's custom_type_status_option. Otherwise it falls back to old section movement:

node .agents/skills/_lib/developer-workflow/asana-cli.mjs move QVAC-12345 inProgress
node .agents/skills/_lib/developer-workflow/asana-cli.mjs move QVAC-12345 inReview
node .agents/skills/_lib/developer-workflow/asana-cli.mjs move QVAC-12345 blocked
node .agents/skills/_lib/developer-workflow/asana-cli.mjs move QVAC-12345 completed

Add a comment, for example a PR URL:

node .agents/skills/_lib/developer-workflow/asana-cli.mjs comment QVAC-12345 "PR opened: https://github.com/owner/repo/pull/123"

Complete a task and move it to configured completed status:

node .agents/skills/_lib/developer-workflow/asana-cli.mjs complete QVAC-12345

Lifecycle Mapping

Use this mapping after user confirmation:

  • Start working: move <ticket> inProgress
  • PR opened: move <ticket> inReview, then comment <ticket> "PR opened: <url>"
  • Blocked: move <ticket> blocked, then comment with blocker context
  • PR merged/done: complete <ticket>

For mutations, show the exact planned command first and wait for explicit user confirmation.

Safety

  • Never write tokens or Asana IDs into repo files.
  • Do not mutate Asana without user confirmation unless the user already approved the lifecycle action in the current workflow.
  • Use /users/me to discover the current user; never copy another developer's user GID.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.