github

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

GitHub Repository Manager

GitHub仓库管理器

This skill manages GitHub repositories via SSH - cloning, pulling, and pushing code.
该技能通过SSH管理GitHub仓库——包括克隆、拉取和推送代码。

Account Details

账户详情

SettingValue
Username
yousufjoyian
SSH Key
~/.ssh/github_ed25519
Default Clone Location
/home/yousuf/local_workspaces/
设置项
用户名
yousufjoyian
SSH密钥
~/.ssh/github_ed25519
默认克隆路径
/home/yousuf/local_workspaces/

When to Use This Skill

何时使用该技能

  • Cloning a repository from GitHub
  • Pulling latest changes from a repo
  • Pushing commits to GitHub
  • Checking repo status
  • Listing user's repositories
  • 从GitHub克隆仓库
  • 从仓库拉取最新变更
  • 向GitHub推送提交
  • 检查仓库状态
  • 列出用户的仓库

What This Skill Does

该技能的功能

  1. Clone Repos: Downloads repositories via SSH
  2. Pull Updates: Fetches and merges latest changes
  3. Push Changes: Uploads commits to GitHub
  4. Smart Defaults: Assumes
    yousufjoyian/
    for bare repo names
  1. 克隆仓库:通过SSH下载仓库
  2. 拉取更新:获取并合并最新变更
  3. 推送变更:将提交上传至GitHub
  4. 智能默认值:对于无所有者的仓库名,默认使用
    yousufjoyian/
    前缀

How to Use

使用方法

Clone Your Own Repo

克隆个人仓库

Pull triclaude
Clone my youtube-transcripts repo
Get repo living-contract
Pull triclaude
Clone my youtube-transcripts repo
Get repo living-contract

Clone Someone Else's Repo

克隆第三方仓库

Clone anthropics/claude-code
Pull microsoft/vscode
Clone anthropics/claude-code
Pull microsoft/vscode

Update Existing Repo

更新现有仓库

Update triclaude with latest changes
Pull latest on youtube-transcripts
Update triclaude with latest changes
Pull latest on youtube-transcripts

Push Changes

推送变更

Push my changes to triclaude
Push my changes to triclaude

Commands Reference

命令参考

Clone a repo (yousufjoyian)

克隆个人仓库(yousufjoyian)

bash
git clone git@github.com:yousufjoyian/<repo>.git /home/yousuf/local_workspaces/<repo>
bash
git clone git@github.com:yousufjoyian/<repo>.git /home/yousuf/local_workspaces/<repo>

Clone third-party repo

克隆第三方仓库

bash
git clone git@github.com:<owner>/<repo>.git /home/yousuf/local_workspaces/<repo>
bash
git clone git@github.com:<owner>/<repo>.git /home/yousuf/local_workspaces/<repo>

Pull latest

拉取最新代码

bash
cd /home/yousuf/local_workspaces/<repo> && git pull
bash
cd /home/yousuf/local_workspaces/<repo> && git pull

Push changes

推送变更

bash
cd /home/yousuf/local_workspaces/<repo> && git push
bash
cd /home/yousuf/local_workspaces/<repo> && git push

Check status

检查仓库状态

bash
cd /home/yousuf/local_workspaces/<repo> && git status
bash
cd /home/yousuf/local_workspaces/<repo> && git status

Test SSH connection

测试SSH连接

bash
ssh -T git@github.com
bash
ssh -T git@github.com

Workflow

工作流程

  1. Parse repo name:
    • triclaude
      yousufjoyian/triclaude
    • anthropics/claude-code
      anthropics/claude-code
  2. Check if exists locally:
    • If
      /home/yousuf/local_workspaces/<repo>/
      exists →
      git pull
    • Otherwise →
      git clone
  3. Execute and report:
    • Show clone/pull output
    • Report final path
  1. 解析仓库名:
    • triclaude
      yousufjoyian/triclaude
    • anthropics/claude-code
      anthropics/claude-code
  2. 检查本地是否存在:
    • /home/yousuf/local_workspaces/<repo>/
      已存在 → 执行
      git pull
    • 否则 → 执行
      git clone
  3. 执行并反馈:
    • 显示克隆/拉取的输出信息
    • 反馈最终路径

Trigger Words

触发词

PhraseAction
"pull", "clone", "get repo"Clone or pull repo
"push", "upload"Push commits
"github pull", "fetch from github"Clone/pull
"update repo"Git pull
触发短语对应操作
"pull", "clone", "get repo"克隆或拉取仓库
"push", "upload"推送提交
"github pull", "fetch from github"克隆/拉取
"update repo"执行Git拉取

Example Session

示例会话

User: "Pull triclaude"
Assistant:
Cloning yousufjoyian/triclaude...

git clone git@github.com:yousufjoyian/triclaude.git /home/yousuf/local_workspaces/triclaude

Cloning into '/home/yousuf/local_workspaces/triclaude'...
remote: Enumerating objects: 245, done.
remote: Counting objects: 100% (245/245), done.
Receiving objects: 100% (245/245), 1.2 MiB | 5.00 MiB/s, done.

Done: /home/yousuf/local_workspaces/triclaude/
用户: "Pull triclaude"
助手:
Cloning yousufjoyian/triclaude...

git clone git@github.com:yousufjoyian/triclaude.git /home/yousuf/local_workspaces/triclaude

Cloning into '/home/yousuf/local_workspaces/triclaude'...
remote: Enumerating objects: 245, done.
remote: Counting objects: 100% (245/245), done.
Receiving objects: 100% (245/245), 1.2 MiB | 5.00 MiB/s, done.

Done: /home/yousuf/local_workspaces/triclaude/

Related Skills

相关技能

SkillPurpose
git-commit
Local commits with smart staging and message crafting
Workflow: Use
git-commit
skill for staging and committing locally, then this skill for push/pull.
技能用途
git-commit
本地提交,包含智能暂存和提交消息生成功能
工作流:先使用
git-commit
技能进行本地暂存和提交,再使用本技能进行推送/拉取操作。

Troubleshooting

故障排查

IssueSolution
Permission denied (publickey)Run
ssh-add ~/.ssh/github_ed25519
Repository not foundCheck repo name/owner spelling
Already existsUse
git pull
instead of clone
Merge conflicts on pullResolve conflicts manually or stash changes
问题解决方法
Permission denied (publickey)执行
ssh-add ~/.ssh/github_ed25519
Repository not found检查仓库名/所有者的拼写
Already exists使用
git pull
而非克隆
Merge conflicts on pull手动解决冲突或暂存变更

SSH Setup (Already Configured)

SSH配置(已完成)

Key location:
~/.ssh/github_ed25519
If SSH agent needs the key:
bash
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/github_ed25519
Verify connection:
bash
ssh -T git@github.com
密钥路径:
~/.ssh/github_ed25519
若SSH代理需要加载密钥:
bash
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/github_ed25519
验证连接:
bash
ssh -T git@github.com

Expected: Hi yousufjoyian! You've successfully authenticated...

预期输出:Hi yousufjoyian! You've successfully authenticated...

undefined
undefined