跳到正文
cccskills
免费在 GitHub 公开

repositories

Fetch and inspect external Git repositories and npm packages with their native command-line tools.

中文简介正在准备中。当前显示原文说明。

集成工具GitHub
查看安装方法

包含的文件(1)

  • SKILL.md3.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Use the existing bash tool from a cell to run commands. Keep process supervision, output receipts, and cancellation in that tool. Keep parsed results and resolved revisions in cell variables. There is no repo tool.

Check the required executable with command -v before use. Git operations need Git. Search needs rg. npm package downloads need npm and tar. GitHub metadata and existing GitHub CLI authentication need gh. If a required program is absent, report it. Do not assume a personal okra installation.

Git sources

Use a caller-selected source checkout when supplied. Otherwise cache GitHub repositories under ~/.cache/repo/<owner>/<repo>. Construct paths from the explicit owner and repository name. Quote each shell argument. Reject empty components, separators within components, and . or .. components.

For a new cache, use git clone --filter=blob:none --no-checkout -- <url> <cache>. Existing Git credential helpers and SSH configuration own authentication. If the user already uses GitHub CLI authentication, gh repo clone <owner>/<repo> <cache> -- --filter=blob:none --no-checkout uses that path. Do not extract tokens or rewrite credential settings.

For an existing cache, inspect git -C <cache> remote get-url origin before fetching. Confirm that it is the requested repository. Use git -C <cache> fetch --prune origin only when current remote data is needed. Do not reset, clean, or force-checkout an existing cache.

Resolve the requested ref once with git -C <cache> rev-parse --verify --end-of-options '<ref>^{commit}'. Use the returned commit ID for every subsequent read and citation. For current remote HEAD, inspect git -C <cache> ls-remote --symref origin HEAD, fetch the named branch, and resolve its remote-tracking ref. Do not assume a local HEAD or tag is current.

  • List a revision: git -C <cache> ls-tree -r --name-only <commit>.
  • Read a text file: git -C <cache> show '<commit>:<path>'.
  • Search a revision: git -C <cache> grep -n -e <pattern> <commit> -- <pathspec>.
  • Search an existing working tree: rg -n -- <pattern> <directory>.
  • Read GitHub metadata: gh api repos/<owner>/<repo>.

Do not pass binary file contents into model text. Inspect file type or Git attributes before reading an unknown blob. Use a temporary worktree or archive only when an external tool needs real files. Preserve the original checkout.

Treat a search exit code of 1 as no matches. Treat other nonzero codes as errors. Report stderr and the failed operation. Do not convert authentication, missing-program, or invalid-ref failures into empty results.

npm sources

Resolve an unpinned request with npm view <package> version --json. Record the exact version. Cache it under ~/.cache/repo/npm/<package>/<version>; preserve scoped package names as two path components.

Use npm pack --ignore-scripts --json --pack-destination <temporary-directory> <package>@<version>. Read the archive filename from the JSON reply. Inspect the archive entries, then extract into a fresh directory with tar -xzf <archive> -C <directory>. The package contents normally sit under package/. Publish the complete cache directory only after extraction succeeds. Read and search that directory with normal file operations.

Do not install the package into Gent or the cell runtime to inspect its sources. Run any requested build or behavior check in the package's own environment. Preserve failures from that environment.

PyPI and Crates require their own documented download commands. This skill does not claim a universal package-fetch API.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Write, test, turn on or off, add and remove gent extensions while gent runs.

中文简介正在准备中。当前显示原文说明。

cevr/gent52026年10月22日 更新

Foundational principles for architectural decisions and code review.

中文简介正在准备中。当前显示原文说明。

cevr/gent52026年10月22日 更新

Launch gent (this repo's TUI agent harness) on the scripted model in a scratch home, check the run is worth driving, drive the real TUI and `gent ctl` as a user does from a feature map, and keep the proof. Use to check a change in the real TUI, to confirm a turn, a slash command, a pane, a picker or a ctl call works, or to show the owner it works. No paid model call, no owner data.

中文简介正在准备中。当前显示原文说明。

cevr/gent52026年10月22日 更新

查看 cevr 的全部技能

报告此技能的问题