ghq
Locate local clones of repositories managed by ghq. Use whenever the user mentions a repository by name or URL (for example `owner/repo`, `repo`, or a GitHub URL) and its source code, docs, or history would help, before searching the web. Also use when the user asks to clone a repository.
- License 许可
- MIT
- 所属仓库
- mono0x/dotfiles
- 最近更新
- 2026-11-15
- Stars
- ★ 10
- Forks
- 0
01 前言 Front Matter
- name
- ghq
- description
- Locate local clones of repositories managed by ghq. Use whenever the user mentions a repository by name or URL (for example `owner/repo`, `repo`, or a GitHub URL) and its source code, docs, or history would help, before searching the web. Also use when the user asks to clone a repository.
03 SKILL.md 正文
ghq
The user keeps repository clones under the ghq root (ghq root), laid out as
<root>/<host>/<owner>/<repo>. When a repository is mentioned, read the local
clone if one exists instead of fetching files from the web.
Find a local clone
Search with the most specific form of the name the user gave:
ghq list -p -e owner/repo # exact match on owner/repo, repo, or host/owner/repo
ghq list -p repo # substring match when the exact name is uncertain
If a single path matches, use it directly. If several match, pick the one that fits the context, or ask the user when the choice is ambiguous.
Before relying on a clone for current behavior, check how fresh it is with
git -C <path> log -1 --format='%h %cs'. Do not pull, switch branches, or
otherwise change a clone the user may be working in unless asked.
Clone a missing repository
When no local clone exists, do not clone it unless the user asked to clone or read it locally. Use other sources instead. If cloning would clearly be more efficient, such as when many files need to be read or searched, ask the user before cloning. When cloning is requested or approved, clone it into the ghq root:
ghq get owner/repo # GitHub shorthand
ghq get <url> # other hosts
ghq get --shallow owner/repo
Use --shallow when only the current tree is needed and the repository is
large. After cloning, locate it with ghq list -p -e owner/repo.
Do not use ghq rm, ghq migrate, or ghq get --update unless the user asks.
04 同仓库更多 Skills
Git 提交创建
commit
`/commit-commands:commit` 技能的别名。创建一个 git 提交。
代码变更端到端验证
verify
通过构建、运行并端到端地演练受影响的行为来验证代码变更。当用户要求验证改动,或确认某项功能在运行的应用程序中正常工作时使用。
review-pr
Review a pull request or local changes using the PR Review Toolkit's specialized checks for code quality, tests, error handling, comments, type design, and simplification. Use when asked for a PR review or a focused review of these aspects.
chezmoi 过期条目清理
chezmoi-prune-remove
清理本仓库 src/.chezmoiremove 中的条目:自其加入提交起至少满 30 天后即可清理,并保留带有 keep 注释标记的条目。当用户要求清理旧的 .chezmoiremove 条目时使用。