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
commit
Alias for the `/commit-commands:commit` skill. Create a git commit.
verify
Verify a code change by building, running, and exercising the affected behavior end to end. Use when asked to verify changes or confirm that a feature works in the running application.
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-prune-remove
Prune entries in this repository's src/.chezmoiremove once at least 30 days have elapsed since their adding commit, preserving entries marked with keep comments. Use when asked to clean up old .chezmoiremove entries.