Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计未展示

dyad%3apr-push成对%3apr 推送

Agent Skill

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

总安装

594

周安装

25

GitHub Stars

20,223

下载量

208
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:dyad%3apr-push(成对%3apr 推送)
来源仓库:https://github.com/dyad-sh/dyad
仓库路径:skills/dyad%3Apr-push
安装命令:
npx skills add https://github.com/dyad-sh/dyad --skill dyad:pr-push
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/dyad-sh/dyad --skill dyad:pr-push

简介

dyad%3apr-push 自动提交未提交的更改,运行 lint 检查并修复问题后推送当前分支到 GitHub。

  • 适合在开发流程中确保代码质量与版本同步的自动化场景。
  • 必须在非 main 分支上使用,全程自主执行不中断。
  • 需确认 git 配置、远程仓库权限及是否会执行命令或修改文件。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

PR Push

Commit any uncommitted changes, run lint checks, fix any issues, and push the current branch.

IMPORTANT: This skill MUST complete all steps autonomously. Do NOT ask for user confirmation at any step. Do NOT stop partway through. You MUST push to GitHub by the end of this skill.

Task Tracking

You MUST use the TaskCreate and TaskUpdate tools to track your progress. At the start, create tasks for each step below. Mark each task as in_progress when you start it and completed when you finish. This ensures you complete ALL steps.

Instructions

  1. Ensure you are NOT on main branch: Run git branch --show-current to check the current branch. CRITICAL: You MUST NEVER push directly to the main branch. If you are on main or master: If you are already on a feature branch, proceed to the next step.

- Generate a descriptive branch name based on the uncommitted changes (e.g., fix-login-validation, add-user-settings-page) - Create and switch to the new branch: git checkout -b <branch-name> - Report that you created a new branch

  1. Check for uncommitted changes: Run git status to check for any uncommitted changes (staged, unstaged, or untracked files). If there are uncommitted changes: If there are no uncommitted changes, proceed to the next step.

- When in doubt, git add the files. Assume changed/untracked files are related to the current work unless they are egregiously unrelated (e.g., completely different feature area with no connection to the current changes). - Only exclude files that are clearly secrets or artifacts that should never be committed (e.g., .env, .env.*, credentials.*, *.secret, *.key, *.pem, .DS_Store, node_modules/, *.log). - Do NOT stage package-lock.json unless package.json has also been modified. Changes to package-lock.json without a corresponding package.json change are spurious diffs (e.g., from running npm install locally) and should be excluded. If package-lock.json is dirty but package.json is not, run git checkout -- package-lock.json to discard the changes. - Stage and commit all relevant files with a descriptive commit message summarizing the changes. - Keep track of any files you ignored so you can report them at the end.

  1. Run lint checks: Run these commands to ensure the code passes all pre-commit checks: npm run fmt && npm run lint:fix && npm run ts If there are errors that could not be auto-fixed, read the affected files and fix them manually, then re-run the checks until they pass. IMPORTANT: Do NOT stop after lint passes. You MUST continue to step 4.
  2. Run tests: Run the test suite to ensure nothing is broken: npm test If any tests fail, fix them before proceeding. Do NOT skip failing tests. IMPORTANT: Do NOT stop after tests pass. You MUST continue to step 5.
  3. If lint made changes, amend the last commit: If the lint checks made any changes, stage and amend them into the last commit: git add -A git commit --amend --no-edit IMPORTANT: Do NOT stop here. You MUST continue to step 6.
  4. Push the branch (REQUIRED): You MUST push the branch to GitHub. Do NOT skip this step or ask for confirmation. CRITICAL: You MUST NEVER run git pull --rebase (or any git pull) from the fork repo. If you need to pull/rebase, ONLY pull from the upstream repo (dyad-sh/dyad). Pulling from a fork can overwrite local changes or introduce unexpected commits from the fork's history. First, determine the correct remote to push to: a. Check if the branch already tracks a remote: git rev-parse --abbrev-ref --symbolic-full-name @{u} 2>/dev/null If this succeeds (e.g., returns origin/my-branch or someuser/my-branch), the branch already has an upstream. Push to it: git push --force-with-lease Permission fallback: If the push fails with a permission error (e.g., the branch tracks upstream but the current account lacks write access to dyad-sh/dyad), fall back to pushing to origin instead: git push --force-with-lease -u origin HEAD b. If there is NO upstream, check if a PR already exists and determine which remote it was opened from: First, get the PR's head repository as owner/repo: gh pr view --json headRepository --jq.headRepository.nameWithOwner Error handling: If gh pr view exits with a non-zero status, check whether the error indicates "no PR found" (expected — proceed to step c) or another failure (auth, network, ambiguous branch — report the error and stop rather than silently falling back). If a PR exists, find which local remote corresponds to that owner/repo. List all remotes and extract the owner/repo portion from each URL: git remote -v For each remote URL, extract the owner/repo by stripping the protocol/hostname prefix and .git suffix. This handles all URL formats: Match the PR's owner/repo against each remote's extracted owner/repo. If multiple remotes match (e.g., both SSH and HTTPS URLs for the same repo), prefer the first match. If no remote matches (e.g., the fork is not configured locally), proceed to step c. Push to the matched remote: git push --force-with-lease -u <matched-remote> HEAD c. If no PR exists (or no matching remote was found) and there is no upstream, fall back to origin. If pushing to origin fails due to permission errors, try pushing to upstream instead (per the project's git workflow in CLAUDE.md). Report which remote was used. git push --force-with-lease -u origin HEAD Note: --force-with-lease is used because the commit may have been amended. It's safer than --force as it will fail if someone else has pushed to the branch.

- SSH: git@github.com:owner/repo.gitowner/repo - HTTPS: https://github.com/owner/repo.gitowner/repo - Token-authenticated: https://x-access-token:...@github.com/owner/repo.gitowner/repo

  1. Create or update the PR (REQUIRED): CRITICAL: Do NOT tell the user to visit a URL to create a PR. You MUST create it automatically. First, check if a PR already exists for this branch: gh pr view --json number,url If a PR already exists, skip PR creation (the push already updated it). If NO PR exists, create one using gh pr create: gh pr create --title "<descriptive title>" --body "$(cat <<'EOF' ## Summary <1-3 bullet points summarizing the changes> ## Test plan <How to test these changes> 🤖 Generated with [Claude Code](https://claude.com/claude-code) EOF)" Use the commit messages and changed files to write a good title and summary.
  2. Do NOT automatically add cc:request: Do not add the cc:request label automatically as part of this skill. Leave review-request labeling unchanged unless the user explicitly asks for it separately.
  3. Remove review-issue label: After pushing, remove the needs-human:review-issue label if it exists (this label indicates the issue needed human review before work started, which is now complete): gh pr edit --remove-label "needs-human:review-issue" 2>/dev/null || true
  4. Remember learnings (after initial push):

Run the /remember-learnings skill to capture any errors, snags, or insights from this session into AGENTS.md or rules/ files.

If any files were modified by the skill (check with git status):

  • Stage the modified files: git add AGENTS.md rules/
  • Create a new commit for the learnings: git commit -m "docs: record session learnings"
  • Push the learnings commit: git push

IMPORTANT: Do NOT amend the previous commit. Create a separate commit for learnings so the main work is already pushed before this step.

  1. Summarize the results:
  • Report if a new feature branch was created (and its name)
  • Report any uncommitted changes that were committed in step 2
  • Report any files that were IGNORED and not committed (if any), explaining why they were skipped
  • Report any lint fixes that were applied
  • Confirm tests passed
  • Confirm the branch has been pushed
  • Report any learnings added to AGENTS.md or rules/ (and whether a follow-up push was made)
  • Include the PR URL (either newly created or existing)

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

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

平台分布

Codex

36.17%
按下载量换算75

Claude

33.21%
按下载量换算69

Cursor

18.24%
按下载量换算38

Gemini CLI

9.32%
按下载量换算19

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills