| name | link-pr-to-task |
| description | Use this skill when posting a GitHub PR URL as a comment on an Asana task to link code back to the work item. |
Link PR to Asana Task
When to use
When the user opens or merges a PR and wants to record it on the related Asana task, or when asked to "link this PR to Asana".
Instructions
1. Get the PR URL
If not provided, fetch from the current branch:
gh pr view --json url -q .url 2>/dev/null
2. Find the Asana task
Try to infer the task from context in this order:
- Task GID or URL the user mentioned
- Branch name — look for a GID or task name pattern (e.g.
feat/1234567890-my-feature)
- PR title or description — search for an Asana task URL or GID
If no task is found automatically:
cyber-asana task search "<pr title keywords>" --toon
Read the matches (--toon is the token-efficient format; use --json for raw JSON). Present options and ask the user to confirm.
3. Post the comment
cyber-asana comment create "PR: <pr-url>" --task-gid <task-gid>
(story create is an alias.)
4. Confirm
Tell the user the comment was posted and provide the task URL for verification.