Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计通过

pullpull 搜索

Agent Skill

pull 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

194

周安装

8

GitHub Stars

公开资料未说明

下载量

63
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/noblejasper/agent-skills --skill pull

简介

用于拉取 GitHub 仓库信息与变更历史。

  • 适合代码审查、分支对比等协作任务。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • 通过 agent-skills 仓库安装并使用标准命令调用。
  • 访问私有仓库需配置有效 token 并具有读取权限。
  • pull 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Pull

Purpose

  • Bring the current branch up to date with the remote default branch (typically origin/main) using a merge (not rebase, unless AGENTS.md or team policy says otherwise).
  • Resolve merge conflicts safely and verify with pnpm lint && pnpm test (or the repo’s documented checks).
  • Prefer rerere and clear conflict styles so repeated conflicts are easier to handle.

Prerequisites

  • Git remote origin exists and points at the expected host.
  • You know which branch is the integration base (usually main; use the repo’s default if different).

When to Use

  • "pullして", "main を取り込んで", "同期して", or similar—when the feature branch must match origin/main (or the team base branch).
  • After git push is rejected with non-fast-forward, or when the local branch is behind the remote tracking branch.
  • When preparing to push and the branch needs the latest upstream changes first (often chained before push).

Do Not Use When

  • The user only wants to push without merging the base (use push; if push fails, then use pull).
  • The user wants to create or update a GitHub PR (use create-pr-jp).
  • The goal is merging or landing an approved PR on the default branch (use a land or merge workflow skill if the workspace defines one—not this skill).

Related Skills

  • push: After sync and green checks, publish commits to origin.
  • create-pr-jp: Open or update a PR; out of scope for pull.

Procedure

  1. Ensure the working tree is safe to merge: commit or stash uncommitted work before merging.
  2. Enable rerere locally (recommended):

- git config rerere.enabled true - git config rerere.autoupdate true

  1. Confirm remotes and branch: origin exists; the current branch is the one that should receive the merge.
  2. Fetch: git fetch origin
  3. Fast-forward the current branch from its remote counterpart if it exists (picks up remote-only commits before merging main):

- git pull --ff-only origin "$(git branch --show-current)"

  1. Merge the base branch (replace main if the repo uses another default):

- Prefer git -c merge.conflictstyle=zdiff3 merge origin/main for clearer conflict context.

  1. If conflicts appear, resolve them (see Conflict Resolution below), then:

- git add <files> - git commit or git merge --continue as appropriate.

  1. Verify: run pnpm lint && pnpm test, or follow AGENTS.md / project scripts if they differ.
  2. Summarize for the user: hardest conflicts, how they were resolved, and any follow-ups.

Output

  • Current branch contains the merged base; conflicts resolved; pnpm lint && pnpm test (or repo equivalent) passed.
  • A clear narrative of what was merged and any notable resolution decisions.

Usage

Reference flow (adapt main / branch names to the repo):

git config rerere.enabled true
git config rerere.autoupdate true

git fetch origin

# Optional: sync remote feature branch commits first
git pull --ff-only origin "$(git branch --show-current)"

# Merge default branch (zdiff3 for conflict readability)
git -c merge.conflictstyle=zdiff3 merge origin/main

# After resolving conflicts:
# git add … && git commit   # or git merge --continue

pnpm lint && pnpm test

Conflict Resolution

  • Inspect before editing:

- git status for conflicted files; git diff / git diff --merge for hunks. - Optional: git diff:1:path:2:path and :1: vs :3: for base vs ours/theirs. - With merge.conflictstyle=zdiff3, markers are <<<<<<< ours, ||||||| base, =======, >>>>>>> theirs. - Infer intent on both sides; choose semantics first, then edit code.

  • Prefer minimal, intention-preserving edits aligned with the branch’s purpose.
  • Resolve in batches; rerun pnpm lint && pnpm test after a logical batch of files when helpful.
  • Use ours/theirs only when one side should win entirely.
  • Generated files: fix sources first, then regenerate with the project’s command; stage regenerated output.
  • Import conflicts: if unclear, temporarily keep both imports, finish the merge, then let lint/typecheck trim unused imports.
  • After resolution: git diff --check (no conflict markers left).

When to Ask the User

Ask only when there is no safe default. Prefer a documented decision and proceed otherwise.

Ask when:

  • Product behavior cannot be inferred from code, tests, or docs.
  • The conflict affects a public API, migration, or contract with no clear safe choice.
  • Two designs are equally plausible with no local signal.
  • The change risks data loss, schema damage, or irreversible effects without a safe default.
  • The branch or remote names cannot be determined locally.

Otherwise complete the merge, note assumptions briefly, and leave reviewable history.

Present Results to User

  • State the base branch merged (e.g. origin/main) and the current branch name.
  • List major conflict areas and how they were fixed.
  • Report pnpm lint && pnpm test (or what ran) and pass/fail.
  • Do not claim a PR was updated or that commits were pushed—those are create-pr-jp and push.

Notes

  • Default integration strategy here is merge; do not rebase unless the repository explicitly requires it.
  • If git pull --ff-only origin <branch> fails, diagnose (diverged history) before merging origin/main.

Troubleshooting

SituationAction
Dirty working treeCommit or stash before merge
merge conflictsFollow Conflict Resolution, then pnpm lint && pnpm test
Wrong default branch nameUse git symbolic-ref refs/remotes/origin/HEAD or repo docs for main vs master
Lint/test fails after mergeFix or revert; do not push broken state—coordinate with push only after green checks

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.45%
按下载量换算22

Claude

31.35%
按下载量换算20

Cursor

21.1%
按下载量换算13

Gemini CLI

8.9%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills