using-tod
Operate OneDev issues, pull requests, builds, and projects with `tod`. Use for general OneDev queries and actions not covered by a more specific skill.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Operate OneDev issues, pull requests, builds, and projects with `tod`. Use for general OneDev queries and actions not covered by a more specific skill.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Work on a OneDev pull request. Use when the user asks to review, merge, resolve merge conflicts, approve, request changes, address feedback, investigate or fix a failed build, improve, or continue PR work.
Implement work for a OneDev issue. Use when the user asks to start, pick up, or continue issue work.
Submit completed work for a OneDev issue. Use when the user asks to submit, complete, or finish issue work.
Submit completed work for an existing OneDev pull request. Use when the user asks to submit, complete, or finish PR work.
Fix a prompt-specified failed OneDev build when the request has no issue or pull request context.
Compose a Git commit message that satisfies applicable OneDev branch and pull request requirements. Use when the user asks to draft or generate a commit message. Do not use when running work-on-pull-request, submit-issue-work, or submit-pull-request-work -- those workflows compose commit messages themselves.
| name | using-tod |
| description | Operate OneDev issues, pull requests, builds, and projects with `tod`. Use for general OneDev queries and actions not covered by a more specific skill. |
Use the command and consent rules below for general OneDev interactions.
tod is installed and configured with server-url and access-token.Commands are grouped by resource:
tod issue -- list, get, get-comments, create, edit, change-state,
link, add-comment, log-work, create-branch, checkout,
current-reference,
get-query-description, get-valid-fields, get-valid-linkstod pr -- list, get, get-comments, get-code-comments, get-builds, get-patch,
create, get-title-and-description-requirement,
get-commit-message-requirement, edit, approve, request-changes, merge,
discard, add-comment, add-code-comment, checkout, get-query-descriptiontod code-comment -- add-reply, resolve, unresolve (operates on the
id returned by tod pr get-code-comments)tod build -- list, get, get-log, get-code-problems,
get-changes-since-success, run (with --branch, --tag, or --local),
get-spec-schema, check-spec, get-query-descriptiontod config -- set, get, pathtod project -- list, current, get, get-query-descriptiontod get-login-name, tod get-unix-timestamp, tod remote,
tod get-valid-labels,
tod get-commit-message-requirement, tod downloadCommands write the raw OneDev server response to stdout. Run
tod <command> --help for exact flags.
tod build get-code-problems <build-reference> <report-name> <severity-level>
returns found code problems for a build with or higher than the specified
severity. <severity-level> must be one of CRITICAL, HIGH, MEDIUM, or
LOW.
The following forms are for tod command arguments. The command selects the
entity type; these forms are not the syntax to copy into authored Markdown.
Commands that take a <ref>/<source ref>/<target ref> argument accept:
<n>, #<n>, <project>#<n>, or
<project-key>-<n> (e.g. 123, #123, myproject#123, PROJ-123).When the user wants to act on "the current issue" without naming a
reference, run tod issue current-reference first. It prints <n> when the
current branch matches [<prefix>/]issue-<n>[-<suffix>]; otherwise it prints
an error and exits non-zero. On failure, ask the user for an explicit
reference.
Write <type> <reference>, where type is issue, pr (or pull request),
or build. Use #123 in the same project, path/to/project#123 across
projects, or PROJ-123 when the project has a key. For example: issue #123,
pr path/to/project#123, and build PROJ-123.
A bare #123 always means an issue; never use it for a pull request or build.
These Markdown forms differ from the CLI forms above.
Issue and pull request text often links to images or files in
descriptions and comments. When using work-on-issue or
work-on-pull-request, always download and inspect those links -- do not
rely on link or alt text alone.
For each  or [...](url), save with the URL exactly as
written in the markdown:
tod download <resource-url> <output-file>
Then inspect images and read other files as needed.
Ask the user to confirm before running any command that changes OneDev
state: create, edit, change-state, link, add-comment,
add-code-comment, add-reply, resolve, unresolve, log-work,
create-branch, checkout, approve, request-changes, merge, discard, run etc. Various
list/get commands do not need consent.