一键导入
done-task
Mark a task as done — close the GitHub issue and clean up labels
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Mark a task as done — close the GitHub issue and clean up labels
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Pick the next task from the GitHub project board for this repository
Run a security-focused review of recent changes using the security-reviewer agent
Run tests for a specific package by name or detect from current working directory
Verify a trace file's integrity and evaluate it against a policy in one step
Run documentation governance checks to verify docs consistency and claim accuracy
Review a pull request against Krynix project standards with code-reviewer agent
| name | done-task |
| description | Mark a task as done — close the GitHub issue and clean up labels |
| allowed-tools | Bash |
| user-invocable | true |
| argument-hint | ["issue-number"] |
Mark a GitHub issue as done and clean up project board state.
Determine the repo name:
REPO_NAME=$(basename $(git rev-parse --show-toplevel))
If no issue number provided ($ARGUMENTS is empty), try to detect from branch name:
BRANCH=$(git branch --show-current)
# Extract issue number from branch like feat/issue-42-description
Update labels and close the issue:
gh issue edit $0 --repo PROJECT-OBA/$REPO_NAME --remove-label "in-progress" --remove-label "ready" --add-label "done"
gh issue close $0 --repo PROJECT-OBA/$REPO_NAME
If there's an open PR for this branch, link it in a comment:
PR_URL=$(gh pr list --repo PROJECT-OBA/$REPO_NAME --head $(git branch --show-current) --json url --jq '.[0].url')
if [ -n "$PR_URL" ]; then
gh issue comment $0 --repo PROJECT-OBA/$REPO_NAME --body "Completed in $PR_URL"
fi
Confirm closure to the user with issue title and number.