一键导入
pr-feedback-tasks
Read recent merged PRs from a GitHub repo, understand what changed, and create Andamio feedback tasks via CLI.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Read recent merged PRs from a GitHub repo, understand what changed, and create Andamio feedback tasks via CLI.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Systematically test every command in a CLI application and generate comprehensive reports. Use when testing CLI tools for bugs, documenting behavior, validating new CLI implementations, regression testing after changes, or conducting QA sessions. Triggers on "test every command", "comprehensive CLI testing", "systematically test CLI", "find bugs in CLI", "CLI testing session".
Evaluate student submissions against SLTs and build assessment transactions for human signing. Agent reads, human judges.
| name | pr-feedback-tasks |
| description | Read recent merged PRs from a GitHub repo, understand what changed, and create Andamio feedback tasks via CLI. |
| argument-hint | <org/repo> [--project <id>] [--days <n>] [--limit <n>] |
Purpose: Turn recent PR activity into actionable feedback tasks on Andamio. Claude reads each PR's diff, understands what changed, and creates a task with a specific feedback ask — not just "review this PR" but "test the new billing webhook flow and confirm idempotency works."
/pr-feedback-tasks Andamio-Platform/andamio-cli
/pr-feedback-tasks Andamio-Platform/andamio-api --days 14
/pr-feedback-tasks Andamio-Platform/andamio-app-v2 --project abc123 --limit 3
Defaults: last 7 days, up to 10 PRs, 2 ADA per task, expiration 2 weeks out.
If --project <id> is provided, use it. Otherwise, fetch managed projects and let the user pick:
andamio manager projects --output json | jq '.[].project_id'
Present a numbered list with project titles. User picks by number.
gh pr list --repo <org/repo> --state merged --limit <n> --json number,title,body,mergedAt,files,labels
Filter to PRs merged within --days window. If none found, report and exit.
Fetch existing tasks:
andamio project task list <project-id> --output json
For each PR, check if a task already exists containing <org/repo>#<number> in the title. Skip if so.
For each new PR, read the actual diff:
gh pr diff <number> --repo <org/repo>
Understand what changed and classify the feedback needed. This is where Claude adds value over a script — read the diff, not just the file paths.
Classification guide:
| What changed | Feedback ask |
|---|---|
| Documentation or README | "Read the updated [section] and flag anything unclear or missing" |
| UI components or pages | "Try [specific flow] and report friction — does it feel right?" |
| API endpoints or handlers | "Hit [endpoint] with [example request] and confirm the response" |
| CLI commands | "Run [command] with [args] and report any issues" |
| Infrastructure or config | "Verify [service] is running correctly after this change" |
| Bug fix | "Confirm [bug] is fixed — try [reproduction steps]" |
| Mixed/large PR | Pick the 1-2 most important areas for feedback |
Write a specific ask, not a generic one. Bad: "Give feedback on PR #15." Good: "Test andamio course import --create with a new module — PR #15 added create-on-import support. Does it handle duplicate codes correctly?"
For each PR that needs feedback:
For each PR, write a temporary Markdown file with the feedback ask, then create the task using --content-file:
# Write the feedback content as Markdown
cat > /tmp/feedback-pr-<number>.md << 'FEEDBACK'
## What Changed
PR #19 refactored API key auth to isolate wallet and API key headers.
## How to Test
1. Login with `andamio user login`, confirm `user me` still works
2. Run `andamio course list` with API key auth — confirm no header conflicts
3. Try `andamio course get` with a bad course ID — should show a helpful 404 message, not a crash
## What to Look For
- Auth headers shouldn't conflict between wallet and API key flows
- 404 errors should show a human-readable message with a hint
FEEDBACK
# Create the task with rich Markdown content
andamio project task create <project-id> \
--title "<feedback-specific title>" \
--content-file /tmp/feedback-pr-<number>.md \
--github-issue "<org/repo>#<number>" \
--lovelace <amount> \
--expiration <date>
# Clean up
rm /tmp/feedback-pr-<number>.md
The Markdown is converted to Tiptap JSON by the CLI — so headings, code blocks, and lists render properly in the Andamio app.
After creating each task, comment on the original PR linking back to the Andamio task. Derive the app URL from the CLI's configured base URL:
https://preprod.api.andamio.io → https://preprod.andamio.iohttps://api.andamio.io → https://andamio.io# Get the task index from the create output (or from task list after creation)
TASK_INDEX=$(andamio project task list <project-id> --output json | \
jq -r --arg ref "<org/repo>#<number>" '[.data[] | select(.content.title | contains($ref))] | last | .task_index')
# Derive app URL from API base URL
API_URL=$(andamio config show 2>&1 | grep "Base URL" | awk '{print $NF}')
APP_URL=$(echo "$API_URL" | sed 's|\.api\.|.|; s|/api||')
# For draft tasks (not yet on-chain):
TASK_URL="${APP_URL}/studio/project/<project-id>/draft-tasks/${TASK_INDEX}"
# Comment on the PR
gh pr comment <number> --repo <org/repo> --body "$(cat <<EOF
🎯 **Feedback task created on Andamio**
A task has been created for community feedback on this PR:
**[View task on Andamio](${TASK_URL})**
Reward: $(echo "scale=0; <lovelace> / 1000000" | bc) ADA · Expires: <expiration>
EOF
)"
This closes the loop: PR activity on GitHub → feedback task on Andamio → link back to GitHub. Contributors can find the task from either direction.
Title: Start with the action verb. Keep under 120 characters.
Content file: This is where Claude's diff reading pays off. Write a structured Markdown feedback prompt with:
Use Markdown formatting — headings, code blocks, numbered lists. The CLI converts it to rich content in the app.
Output a summary table:
## PR Feedback Tasks Created
| PR | What Changed | Task | Feedback Ask | GH Comment |
|----|-------------|------|-------------|------------|
| #19 | CLI auth isolation | [Task #4](url) | Try login after... | ✅ |
| #22 | Docs update | [Task #5](url) | Read the new... | ✅ |
Created: 3 Skipped: 1 (already had task) GH comments: 3
--lovelace to override for higher-value feedback.Reads:
gh pr list and gh pr diffandamio project task listandamio manager projectsWrites:
andamio project task creategh pr comment linking back to the Andamio task