Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add EthanYoQ/Skill-hub --skill yq-build-foundationgit clone --depth 1 https://github.com/EthanYoQ/Skill-hubWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/ethanyoq/skill-hub/yq-build-foundation)<a href="https://agentmods.dev/skills/ethanyoq/skill-hub/yq-build-foundation"><img src="https://agentmods.dev/badge/skills/ethanyoq/skill-hub/yq-build-foundation/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/ethanyoq/skill-hub/yq-build-foundation"><img src="https://agentmods.dev/badge/skills/ethanyoq/skill-hub/yq-build-foundation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00063 | $0.01826 |
| Opus 5.5 | $0.00025 | $0.00730 |
| Sonnet 5.5 | $0.00013 | $0.00365 |
| Haiku 4.5 | $0.00006 | $0.00183 |
Grade A, and why
yq-build-foundation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 148 lines — stays where its author put it; the contents beside it link to each section on GitHub.
yq-build-foundation
在架构设计之前,先确认世界上已有何种解决方案。目标是尽量基于成熟项目 Fork/改造/组合,做成 100% 符合需求的产品,而不是从零造轮子。
何时激活
- 已决定做某个软件/产品/功能,在架构设计和实现之前
- 需要找开源底座做二次开发(Fork 改造、组合拼接)
- 用户说"先看看有没有现成的"、"找个开源项目改"、"基于 XX 做"
何时不激活
- 还在判断"这个产品值不值得做" — 那是市场调研,不是底座选型
- 写代码过程中需要找某个 npm/PyPI 库 — 那是依赖选择,用 search-first 思路
- 已有明确技术栈,只需补充工具链 — 直接安装即可
核心原则
Search Before Building — 设计之前先确认已有方案,避免重造轮子。
适配度 > Stars — Stars 仅作成熟度佐证和排序辅助,不凌驾需求覆盖度、可二开性、架构匹配。
GREENFIELD 是兜底 — 只有完成系统搜索并记录覆盖证据后仍无合适底座,才允许 GREENFIELD。
快速流程
五个阶段,单 Agent 顺序执行,目标 15–30 分钟出决策单。
S0 渠道预检
检查以下渠道是否可用,不可用的显式记录 skipped: <原因>,不静默跳过:
| 渠道 | 检查方式 | 缺失时 |
|---|---|---|
| GitHub CLI | gh auth status |
用 Web 搜索兜底 |
| 包注册表 | npm --version / pip --version 等 |
用 Web 搜索兜底 |
| Web 搜索 | 可用搜索工具/API | 仅靠 GitHub + 注册表 |
S1 需求蒸馏
从产品想法抽出 4–6 组关键词:
| 组类型 | 说明 | 示例 |
|---|---|---|
| domain | 领域/场景 | "task manager", "CRM" |
| capability | 核心能力(每个能力一组) | "real-time sync", "offline mode" |
| technique | 技术手段 | "CRDT", "WebSocket" |
| competitor | 已知竞品/产品名 | "Notion", "Linear" |
每组 3–6 个扩展词(同义词、缩写、社区惯用语)。多义词配 negative terms(如 "apple" 排除 "fruit")。
社区术语探针:锁定关键词前,快速扫一眼目标领域 awesome-list 的章节标题和 2–3 个明显相关仓库的 topic tags——用户说 "trading bot",社区可能叫 "algotrading"。把发现的社区惯用语补进扩展词。
S2 四源搜索
| 源 | 方法 | 目标 |
|---|---|---|
| GitHub | gh search repos + topic/keyword 搜索 |
主战场 |
| 包注册表 | npm/PyPI/crates/RubyGems 按语言搜 | 可安装的组件 |
| Awesome Lists | awesome-<domain> 目录 |
策展过的候选 |
| Web | AlternativeTo、社区推荐帖 | 发现 GitHub 上不火但好用的 |
补充渠道(有精力再查):GitLab、Codeberg、SourceForge。
候选去重:fork/mirror 标记为同一项目。目标 8–15 个真候选,不够就扩大关键词而不是凑数。
S3 Top 3 浅读
对每个候选通过 gh CLI 或 GitHub API 读以下公开信息(不浅 clone 源码):
- README + 目录结构
- License 文件
- 最近 6 个月提交频率、Issue 响应速度(
gh api repos/<owner>/<repo>/commits?per_page=5或 Web 页面) - 测试目录存在性(tests/、test/、tests/、spec/)
- 依赖清单(package.json、requirements.txt、Cargo.toml)
S4 决策与蓝图
按评估维度和决策矩阵输出决策单。
评估维度
每项 0–2 分,乘权重后汇总。License 是门槛项,不合格直接排除 FORK_BASE。
| 维度 | 权重 | 看什么 |
|---|---|---|
| 需求覆盖度 | x3 | README/文档中已实现的核心能力比例 |
| 可二开性/扩展点 | x3 | 插件机制、模块化、配置驱动、清晰分层 |
| 架构匹配 | x2 | 语言/框架/部署形态与目标一致 |
| 维护活跃度 | x2 | 最近提交、Issue 响应、Release 节奏 |
| Bus factor | x1 | 是否多于一个核心贡献者(单人项目风险高) |
| 代码质量与测试 | x2 | 测试目录、CI、类型注解/lint |
| 文档与社区 | x1 | 文档完整度、社区规模 |
| License | 门槛项 | MIT/Apache/BSD 放行;GPL/AGPL 看商业兼容性;不明 License 否决 FORK_BASE |
| Stars | 排序辅助 | 只作成熟度佐证,不计入主分 |
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 148 lines · 63 tokens per session scan A 8a7806316a75
yq-build-foundation is a skill published in the GitHub repository EthanYoQ/Skill-hub (12 stars, last pushed 2d ago), licensed MIT. It adds 63 tokens to every session and 1,826 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-13.
yq-build-foundation compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| yq-build-foundationEthanYoQ/Skill-hub | Skill | 12 | 2d ago | MIT | A | 63 | Codex |
| wikiSethGammon/Citadel | Skill | 943 | 3d ago | MIT | A | 56 | Claude Code |
| escalation-governanceathola/claude-night-market | Skill | 358 | yesterday | MIT | A | 19 | Claude Code |
| agent-workflow-playbookGingiris-1031/gingiris-skills | Skill | 92 | 13d ago | MIT | A | 83 | Claude Code, Codex |
| ecom-socialkangise/ecommerce-ai-skills | Skill | 124 | 7d ago | CC0-1.0 | A | 60 | Claude Code, Codex |
| ecom-customer-servicekangise/ecommerce-ai-skills | Skill | 124 | 7d ago | CC0-1.0 | A | 49 | Claude Code, Codex |
| ecom-pricingkangise/ecommerce-ai-skills | Skill | 124 | 7d ago | CC0-1.0 | A | 35 | Claude Code, Codex |