paca-do
GitHub端到端执行Paca任务,读取上下文与验收标准,完成代码、写作或研究等工作,更新状态并评论结果。若未指定任务则列出进行中的任务供选择。
Trigger Scenarios
Install
npx skills add Paca-AI/paca --skill paca-do -g -y
SKILL.md
Frontmatter
{
"name": "paca-do",
"triggers": [
"\/paca-do"
],
"description": "Execute a Paca task end-to-end — reading context and acceptance criteria, doing the work (code, writing, research, review), updating task status, and commenting results. Use when asked to start, implement, complete, or work on a specific Paca task. Reads project docs first to understand the codebase and tech stack before acting."
}
You are executing a task from Paca — reading it, understanding context, doing the work, and updating the record. Use Paca MCP tools throughout — never create local files for task records or documentation.
If no task is specified, call list_tasks filtered to in-progress tasks in the current sprint. Show them and ask which to work on.
Step 1 — Load task and project context
- Resolve the task reference from the user's message using
get_task_by_numberorget_task. - If the task has no acceptance criteria, stop and ask the user to clarify before starting — or offer to run
/paca-clarifyfirst. Starting work without a clear "done" condition wastes effort. - Call
list_docsand search for documents relevant to this task — architecture, design specs, BDD scenarios, API references, integration guides. Read before writing any code or content; what's already decided shapes every implementation choice. - Call
list_task_activitiesto read prior comments and implementation notes — someone may have already investigated this. - Note the acceptance criteria from the task description. These are your exit criteria.
Step 2 — Mark in progress
- Call
list_task_statusesto find the "in progress" status. - Call
update_taskto set the status. (No confirmation needed — this is a lightweight, reversible status change.) - Call
add_task_comment: "Starting work on this task."
Step 3 — Do the work
Execute based on the task type:
- Code task: find the relevant source files, read existing tests to understand the expected behavior, implement the change, run the test suite. If you need to understand what "in scope" looks like, the BDD scenarios you read in Step 1 are authoritative.
- Writing task: draft the content in the response, or create/update a Paca document via
write_doc. Never write to a local file. - Research / investigation task: investigate, write findings as a comment via
add_task_commentor as a Paca doc, then update the task description with the conclusions. - Review task: analyse the artifact (PR, document, design), post a structured review as
add_task_comment.
If you discover a blocker or a genuine sub-task that wasn't anticipated, create it in Paca with create_task (reference the parent: Blocked by #<parent>). Don't silently skip or work around it.
Code tasks with a linked repository — push and create a PR (MANDATORY)
If this task involves code changes AND the project has a linked repository, completing the work means publishing it — changes left only in the sandbox are NOT done. Follow ALL steps:
-
Clone and branch first (before editing):
list_repositories→ note theplugin_idandrepo_id.clone_repository(clones to /workspace/repo).- Create and switch to a feature branch:
git checkout -b feat/<task-number>-<short-description>.
-
Make your changes in the cloned repo. Verify with tests if available.
-
Commit:
git add -A git commit -m '<type>: <concise message>' -
Push the branch: Call
push_branchwith theplugin_idandrepo_idfrom step 1. Do NOT skip this — without a push, the remote has no branch for the PR. -
Create a pull request: Call the repository plugin's PR tool (e.g.
github_create_pull_requestfor GitHub repos). This is required — a pushed branch without a PR is unfinished work. Pass:projectId,taskId,repoIdtitle— a clear commit-style titlehead_branch— your feature branch namebase_branch— the repository's default branch (e.g.main)body— a summary of what changed and why, referencing the task
-
Report the PR URL in the task comment (Step 4).
If any step fails (push rejected, token error, etc.), report it in a task add_task_comment rather than silently moving on.
Step 4 — Update and close
- Call
add_task_commentwith a completion summary: what was done, what changed, any known caveats or follow-up needed. - If any project documentation was affected (README, architecture doc, API reference), update the relevant Paca document with
write_doc. Never write new docs as local files. - Call
update_taskto set the status to done (or the next stage — e.g. "review" — if your workflow has one).
What's next: Consider running /paca-test #<number> to verify the implementation against acceptance criteria.
Report back: task number, title, summary of what was done, and any new tasks or docs created. If you pushed code and opened a PR, include the PR URL.
Tool reference
Tasks: get_task · get_task_by_number · update_task · create_task · list_task_statuses
Comments: add_task_comment · list_task_activities
Documents: list_docs · read_doc · write_doc
Projects: list_projects
Repositories (built-in tools): list_repositories · clone_repository · push_branch
GitHub PRs/branches (MCP plugin): github_create_pull_request · github_list_task_prs · github_create_branch · github_list_task_branches
Version History
- acf4909 Current 2026-07-19 18:24


