Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计通过

ado-create-pr废话不多说,创建公关

Agent Skill

ado-create-pr 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,248

周安装

52

GitHub Stars

163

下载量

416
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ado-create-pr(废话不多说,创建公关)
来源仓库:https://github.com/flora131/atomic
仓库路径:skills/ado-create-pr
安装命令:
npx skills add https://github.com/flora131/atomic --skill ado-create-pr
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/flora131/atomic --skill ado-create-pr

简介

ado-create-pr 可自动提交代码变更、推送分支并创建或更新 Azure DevOps 拉取请求。

  • 适用于需要快速生成符合约定式提交规范的 PR 标题和描述的协作开发场景。
  • 能自动识别当前分支、默认分支及差异内容,提供简洁的变更摘要和提交历史预览。
  • 包含系统命令执行能力,安装前务必检查权限、凭据安全及潜在的文件操作风险。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

ADO Create Pull Request

Commit changes, push the branch, and open or update an Azure DevOps pull request with a conventional-commit-style title and a complete description: $ARGUMENTS

Current state

  • Git status:!git status --porcelain
  • Current branch:!git branch --show-current
  • Default branch:!git rev-parse --abbrev-ref origin/HEAD 2>/dev/null | sed 's|origin/||' || echo main
  • Staged diff (stat):!git diff --cached --stat
  • Unstaged diff (stat):!git diff --stat
  • Recent commits on this branch:!git log --oneline -10
  • Commits ahead of default:!git log --oneline origin/$(git rev-parse --abbrev-ref origin/HEAD 2>/dev/null | sed 's|origin/||' || echo main)..HEAD 2>/dev/null | head -20
  • Remote URL (to confirm ADO host):!git remote get-url origin 2>/dev/null || echo "no-remote"

Use the Azure DevOps MCP tools

All ADO operations in this workflow go through the Azure DevOps MCP tools — never az / az devops. When you see tool names like repo_create_pull_request or wit_link_work_item_to_pull_request below, call the matching Azure DevOps tool from your tool list. If no Azure DevOps MCP tools are loaded in this session, stop and ask the user if they want to fallback to the az CLI.

Workflow

1. Stage and commit

Follow the ado-commit skill for the commit step — same conventional-commit format, same AI-authorship trailer, same AB#<id> work-item trailer rules. Split into multiple commits if the staged diff covers unrelated concerns.

If the user is currently on the default branch (main / master), switch to a feature branch *before* committing. A reasonable default name is user/<short-topic> or feature/<topic>; if a work-item ID is known, prefix it: feature/1234-<topic>.

2. Push

git push -u origin "$(git branch --show-current)"

-u sets upstream tracking so subsequent pushes don't need arguments.

3. Gather context for the PR

Read the *full* diff against the base branch, not just the last commit — a PR title needs to summarize the whole branch, not one step of it.

git diff origin/<default-branch>...HEAD

Open the files that changed significantly so you can describe the *why* accurately. If there's an existing PR for this branch, fetch it first (see step 5) and edit rather than replace — a human may already have curated the title or description.

4. Identify the repo, project, and work items

The MCP tools need identifiers:

  • Project and repository name — parse from the origin remote URL. ADO URLs follow https://dev.azure.com/<org>/<project>/_git/<repo> or https://<org>.visualstudio.com/<project>/_git/<repo>.
  • Repository ID — call repo_get_repo_by_name_or_id with {project, repositoryNameOrId: <repo-name>}. Use the returned id for subsequent calls.
  • Work item IDs — scan the branch name and every commit subject/body on the branch (git log origin/<default>..HEAD) for AB#<id>, #<id>, or numeric prefixes like feature/1234-.... If the user mentioned a work item in the prompt, trust that.

If projects or repos aren't obvious, core_list_projects and repo_list_repos_by_project let you browse.

5. Check for an existing PR

repo_list_pull_requests_by_repo_or_project {
  repositoryId: <id>,
  status: "active",
  sourceRefName: "refs/heads/<current-branch>"
}

If a result comes back, you're in *update* mode — keep the existing PR's ID and edit in place in step 7. Otherwise you're in *create* mode.

6. Generate title and description

Title — Conventional Commits, under 72 chars. For a single-commit PR the commit subject works; for a multi-commit PR synthesize a higher-level subject that captures the whole branch.

feat(auth): add JWT token refresh endpoint
fix(ui): resolve layout shift on mobile nav
refactor(db): migrate from raw SQL to query builder
feat(api)!: change pagination response shape

Description — use this template, omitting sections that don't apply:

## Summary

[1–2 sentences on what this PR does and why]

## Changes

- [Key change 1]
- [Key change 2]

## Breaking Changes

[What breaks and the migration step — delete this section if none]

## Test Plan

- [How this was verified — commands, manual checks, screenshots]

## Work Items

AB#1234

Keep the AB#<id> references in the description — ADO parses them and shows the linked work items alongside the PR. You'll *also* link them via MCP in step 8 so the links are first-class, not just string-matched.

7. Create or update the PR

Create (default to draft):

repo_create_pull_request {
  repositoryId: <id>,
  sourceRefName: "refs/heads/<current-branch>",
  targetRefName: "refs/heads/<default-branch>",
  title: "<conventional-commit title>",
  description: "<markdown from template>",
  isDraft: true
}

sourceRefName and targetRefName need the full refs/heads/ prefix — a common mistake is passing the bare branch name and getting a cryptic 400.

Update (existing PR):

repo_update_pull_request {
  repositoryId: <id>,
  pullRequestId: <id-from-step-5>,
  title: "<updated title>",
  description: "<updated description>"
}

Respect the existing title/description if they're already meaningful — enhance rather than overwrite. If the existing title already follows conventional commits and is accurate, leave it alone.

8. Link work items

Even if the description contains AB#<id>, explicitly link each work item so it shows up as a structured PR-WorkItem relationship:

wit_link_work_item_to_pull_request {
  projectId: <project-id>,
  repositoryId: <repo-id>,
  pullRequestId: <pr-id>,
  workItemId: <work-item-id>
}

Call once per work item ID.

9. Reviewers (optional)

If the user named reviewers, resolve them to identity IDs and attach:

core_get_identity_ids { searchFilter: "<name or email>" }
repo_update_pull_request_reviewers {
  repositoryId: <id>,
  pullRequestId: <id>,
  reviewerIds: [<ids>],
  action: "add"
}

Don't auto-assign reviewers the user didn't mention — ADO default reviewer policies usually handle that, and guessing people's IDs is a good way to ping the wrong person.

10. Report back

Print the PR's web URL (returned in the create/update response as url or _links.web.href) so the user can click through. Summarize: branch → target, draft status, work items linked, reviewers added.

Guidelines

  • Draft by default. Pass isDraft: true unless the user says otherwise. It's easier to mark ready than to walk back a premature review request.
  • Never skip pre-commit hooks. They run locally during commits created in step 1. A hook failure is the hook earning its keep.
  • Always attribute AI assistance via the Assistant-model trailer on every commit (see the ado-commit skill).
  • Respect existing content. If updating an existing PR, keep what's already curated; only replace sections that are stale or wrong.
  • Holistic title. The PR title is one line describing the whole branch. Don't concatenate commit subjects.

Related Azure DevOps tools

The 10-step workflow above names the tools you need on the happy path. Reach for the ones below when the situation calls for it — don't run them by default. Grouped by the sub-task they unlock.

Sub-taskToolWhen to reach for it
Locate the repocore_list_projectsProject name isn't obvious from the remote URL
repo_list_repos_by_projectMultiple repos in the project and you need to pick
Inspect branchesrepo_list_branches_by_repoConfirm the default / target branch exists before creating the PR
repo_get_branch_by_namePull the latest commit or branch policies on the source branch
repo_create_branchBranch off server-side when the user isn't working locally
Pick a work itemwit_my_work_itemsUser didn't name one — surface their active items so they can confirm
search_workitemKeyword search when the work item ID is uncertain
wit_get_work_item / wit_get_work_items_batch_by_idsFetch title/state to enrich the PR description (e.g. "Closes AB#1234 — add JWT refresh")
Inspect the changerepo_get_pull_request_changesProgrammatic diff on an existing PR when local git diff isn't enough
repo_search_commitsVerify specific commits landed on the source branch
repo_get_file_contentRe-read a file at a specific commit to describe it accurately
Fetch the PRrepo_get_pull_request_by_idReload the PR after create/update (web URL, status, policy state)
Extra linkingwit_add_artifact_linkLink a commit or build to a work item (non-PR relationship)
wit_add_work_item_commentPost "PR #N opened" on the work item so watchers see it async
Comments & votesrepo_list_pull_request_threads / repo_list_pull_request_thread_commentsRead existing review threads before editing the PR
repo_create_pull_request_threadSeed a context comment on the new PR (e.g. testing notes)
repo_reply_to_commentRespond to a reviewer inline
repo_vote_pull_requestApprove / wait-for-author / reject on the user's behalf — only when explicitly asked
CI signalpipelines_get_build_statusCheck whether the branch's CI is green before un-drafting
pipelines_get_build_logPull logs when CI is red and you're helping diagnose

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.94%
按下载量换算141

Claude

29.19%
按下载量换算121

Cursor

19.57%
按下载量换算81

Gemini CLI

9.6%
按下载量换算40

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills