PavedPath Code: reusable Skill for finding proven implementation paths from GitHub and open-source evidence.
$ npx -y skills add jia-ethan/pavedpath-code --agent claude-code
Status boundary / 状态边界
PavedPath Code is the code-focused edition of PavedPath. It helps agents solve software engineering problems by finding proven implementation paths from GitHub repositories, issues, pull requests, discussions, code examples, release notes, and open-source evidence.
PavedPath Code(代码版)用于解决代码、工程、依赖、构建、部署、集成、API 使用等问题。它不是泛泛搜索 GitHub,而是从开源项目、issue、PR、示例、release notes 等证据中找到已经被验证过的实现路径,再转译成本地可执行方案。
This repository is not the future general-purpose PavedPath. Non-code life decisions, self-media workflows, study methods, consumer decisions, and broad research tasks are out of scope here.
把下面这段话复制到 Codex、Claude Code、Cursor Agent、ChatGPT Agent 或其他支持读取 GitHub 项目的智能体:
请使用 https://github.com/Jia-Ethan/pavedpath-code 帮我安装或接入 PavedPath Code(代码版)这个通用 Skill。先阅读 README、SKILL.md、MIGRATION.md 和 references/,确认它的边界是代码 / 工程问题:bug、runtime error、build / test / deploy failure、dependency issue、framework/API usage、integration blocker、implementation pattern、工程工具/库选型,以及开源方案本地适配。不要把它扩展成生活、消费、自媒体或学习方法的通用 PavedPath。安装前先审计将写入的准确路径;如果你的环境有 skills 目录,就安装到对应的 active skill 目录并避免同时保留旧的 github-solution-research/SKILL.md;如果没有固定 skill 目录,就把 README 和 SKILL.md 转成你的本地可复用指令。写入前展示计划和备份路径,等我确认;确认后再备份、安装,并用一次最小调用验证新名称 pavedpath-code / PavedPath Code 可被正确识别。不要保存 token、cookie、私有仓库内容、敏感日志或凭证。
本项目接受 LINUX DO 社区佬友监督与反馈:LINUX DO
PavedPath Code(代码版)帮助 Agent 避免为代码问题重复造轮子。它先定义本地工程问题,再用 GitHub 和开源证据寻找已经被走通的路径:成熟项目、issue、PR、discussion、代码、示例、release notes 和官方项目文档。最后,它把最强证据转译为本地最小适配、验证命令和风险边界。
它不是“搜索 GitHub 链接”的工具。GitHub 是主要证据源,目标是找到开源世界已经验证过的实现路径,并判断这条路径是否适合当前代码库。
适合使用 PavedPath Code:
不要用于:
| 能力 | 已包含内容 | 边界 |
|---|---|---|
| GitHub CLI first | 默认使用 gh search repos、gh search issues、gh search prs、gh search code、gh repo view、gh pr view、gh issue view 和 gh api | 不依赖仓库内置搜索脚本;gh 结果仍需深读和本地验证 |
| 问题证据搜索 | 围绕错误文本、包名、API 名、版本号、配置键、框架和失败命令搜索 issues、PRs、code、examples、release notes | 只把 GitHub 当证据来源,不把链接数量或 Stars 当成结论 |
| 仓库候选研究 | 按问题匹配、Stars、license、活跃度、示例质量和适配成本比较公开仓库 | Stars 是成熟度信号,不会覆盖 maintainer evidence、merged PR、official examples 或可复现代码 |
| 条件子代理研究 | 当问题跨多个生态、查询族或证据面时,可拆给子代理并行只读研究 | 子代理不是默认强制;controller 仍负责范围控制、去重、排序、本地适配和最终验证 |
| 输出证据闭环 | SKILL.md 要求记录 search path、subagent used/skipped、key evidence、rejected options、verification standard | 使用子代理时必须留下 subagent trace,避免“搜了很多”但没有可复核证据 |
| 智能体集成 | SKILL.md 和 agents/openai.yaml 提供可复用 Skill 指令、展示信息和默认 prompt | 可安装到 Codex、Claude Code、Cursor Agent 或其他支持本地指令/Skill 的智能体环境 |
flowchart LR
A["Local software engineering problem"] --> B["Frame symptom, versions, constraints"]
B --> C["Search GitHub and open-source evidence"]
C --> D["Rank evidence and repositories"]
D --> E["Deep-read strongest matches"]
E --> F["Extract proven path and risks"]
F --> G["Map to local adaptation"]
G --> H["Verify with tests, builds, requests, or logs"]
默认研究路径:
gh 和精确查询搜索公开 GitHub:错误文本、包名、API 名、版本号、配置键、框架和失败命令。安装到你的智能体 active skill / instructions 目录。下面示例使用 ~/.codex/skills;Claude Code、Cursor Agent、ChatGPT Agent 或其他智能体请按自己的本地指令目录改写路径:
mkdir -p ~/.codex/skills
git clone https://github.com/Jia-Ethan/pavedpath-code.git \
~/.codex/skills/pavedpath-code
更新已有安装:
git -C ~/.codex/skills/pavedpath-code pull --ff-only
建议按需安装并登录 GitHub CLI:
gh auth status
这个 Skill 不绑定任何具体模型或智能体。它吸收了多 agent 搜索建议,但保持平台无关;真正的约束在于问题拆分、证据链接、去重、controller 复核和本地验证。
在智能体中调用 Skill:
Use $pavedpath-code to investigate this Vite build error.
Find matching GitHub issues, merged PRs, release notes, and reusable fixes,
then recommend the smallest local adaptation and verification command.
搜索仓库候选:
gh search repos "browser automation agent" \
--archived=false \
--sort stars \
--order desc \
--limit 10 \
--json fullName,url,description,stargazersCount,forksCount,language,license,pushedAt,isArchived,openIssuesCount
搜索某个仓库内的 issue:
gh search issues '"Cannot find module" "Node.js 22"' \
--repo owner/repo \
--sort updated \
--order desc \
--limit 10 \
--json title,url,state,updatedAt,commentsCount,repository,body
搜索 merged PR:
gh search prs '"ERR_PACKAGE_PATH_NOT_EXPORTED" vite plugin' \
--repo owner/repo \
--merged \
--sort updated \
--order desc \
--limit 10 \
--json title,url,state,updatedAt,commentsCount,repository,body
查看仓库基本信息:
gh repo view owner/repo \
--json nameWithOwner,url,description,stargazerCount,forkCount,licenseInfo,primaryLanguage,pushedAt,repositoryTopics,homepageUrl
当 PavedPath Code 实质影响结论时,回答应包含:
gh 命令明确出现 403、429、私有仓库授权错误或未登录提示时,才需要检查 gh auth status。当前已包含:
SKILL.mdagents/openai.yamlreferences/可改进方向:
不会承诺:
PavedPath Code is the code-focused edition of PavedPath. It helps agents avoid reinventing solutions for software engineering problems by finding proven implementation paths from GitHub repositories, issues, pull requests, discussions, code examples, release notes, and open-source evidence.
It is not a generic GitHub link search. GitHub is the primary evidence source; the goal is to find a path the open-source world has already walked, decide whether it fits the local codebase, and adapt the strongest pattern with minimal, verifiable changes.
This repository is intentionally scoped to code and engineering work. The future general-purpose PavedPath is out of scope.
Use PavedPath Code for:
Do not use it for:
Default research path:
gh and targeted queries: exact errors, package names, API names, versions, config keys, frameworks, and failing commands.Install into your agent runtime's active local skills/instructions directory. The example below uses ~/.codex/skills; adapt the path for Claude Code, Cursor Agent, ChatGPT Agent, or another agent runtime:
mkdir -p ~/.codex/skills
git clone https://github.com/Jia-Ethan/pavedpath-code.git \
~/.codex/skills/pavedpath-code
Update an existing installation:
git -C ~/.codex/skills/pavedpath-code pull --ff-only
Install and authenticate GitHub CLI when needed:
gh auth status
Invoke the Skill in an agent:
Use $pavedpath-code to investigate this Vite build error.
Find matching GitHub issues, merged PRs, release notes, and reusable fixes,
then recommend the smallest local adaptation and verification command.
Search repository candidates:
gh search repos "browser automation agent" \
--archived=false \
--sort stars \
--order desc \
--limit 10 \
--json fullName,url,description,stargazersCount,forksCount,language,license,pushedAt,isArchived,openIssuesCount
Search matching issues in one repository:
pavedpath-code is a Claude Code plugin with 1 hand-picked skill, indexed on Flowy in the Development category. Install it with the command on its page. It includes pavedpath-code. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it