Borrowing it
Nothing to install: this file belongs to minchieh-fay/god. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/minchieh-fay/god/main/.agent/skills/requirement-to-skill/SKILL.mdgit clone --depth 1 https://github.com/minchieh-fay/godWrote 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/minchieh-fay/god/requirement-to-skill)<a href="https://agentmods.dev/skills/minchieh-fay/god/requirement-to-skill"><img src="https://agentmods.dev/badge/skills/minchieh-fay/god/requirement-to-skill/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/minchieh-fay/god/requirement-to-skill"><img src="https://agentmods.dev/badge/skills/minchieh-fay/god/requirement-to-skill.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.00050 | $0.01250 |
| Opus 5 | $0.00025 | $0.00625 |
| Sonnet 5 | $0.00010 | $0.00250 |
| Haiku 4.5 | $0.00005 | $0.00125 |
Grade A, and why
requirement-to-skill 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 11d 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 — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.
需求转化为施工图 (Demand Distillation)
目标
将模糊的需求描述转化为下游 AI(Cursor、Trae 等)可 100% 成功执行的 SKILL.md。
核心逻辑
-
[需求关键词提取]:在做任何分析之前,先从需求文件中逐字扫描,提取所有明确提到的:
- 技术概念(如:某个框架、某个协议、某个服务……)
- 功能模块(如:登录、告警、缓存、重试……)
- 约束条件(如:支持并发、离线环境……)
将提取结果列为一张清单,后续每个步骤必须能在清单中找到对应项。 Blueprint 生成后,必须对照此清单逐项核查覆盖情况,有遗漏则补充,不得跳过任何一项。
0.5. [前置条件推断]:根据关键词清单,推断每项技术正常运行所需的必要外部条件(如:连接信息、账号凭证、服务地址、版本要求、运行时依赖等)。
逐项检查需求文件中是否已提供:
- 已提供:记录,继续
- 未提供:必须在继续分析前向用户追问,格式如下:
"我注意到需求中使用了 {技术X},但以下信息未提供,请补充后我再出施工图:
- {缺失信息1}(用途:xxx)
- {缺失信息2}(用途:yyy)"
此步骤禁止假设或硬编码任何默认值,必须由用户明确提供。
-
[上下文检索]:向上查找
ARCH.md。根据结果分三种情况处理:- 找到 ARCH.md:直接使用,进入第 2 步
- 未找到,但需求文件中有源码路径:
告知用户:
"用户指定的源码目录尚未建立技术档案,我将使用
project-analysis技能分析源码,自动生成 ARCH.md,再继续出施工图。" 执行project-analysis技能分析源码路径,生成 ARCH.md,然后继续 - 未找到,且源码目录为空或无源码路径:
告知用户:
"用户指定的源码是空项目,且没有 ARCH.md,我将根据需求文件中指定的技术信息生成初始 ARCH.md,请确认后继续。" 按需求文件中提取的技术信息生成 ARCH.md 模板(参考「ARCH.md 规范 - 模式二」),提醒用户确认后继续
-
[冲突检查]:检查新需求是否违反了
ARCH.md里的规范及「用户补充说明」模块。 -
[完整覆盖]:一个需求只产出一份 SKILL.md,不拆分。所有涉及的模块和改动都在同一份施工图中完整描述。
-
[防御性提醒]:针对当前项目技术栈,列出 3 个最容易出错的坑,写入
[Blueprint]模块。
输出格式
产出的 SKILL.md 必须以标准 YAML frontmatter 开头:
---
name: {需求名,小写加连字符}
description: {一句话说明该技能的用途和触发场景}
---
正文必须包含以下三个模块:
## [Context]
当前需求背景、涉及的项目模块和文件范围。
## [Blueprint]
方案设计:做什么、为什么这样做、需注意的 3 个易错点。
**必须在 Blueprint 末尾附上关键词覆盖清单,逐项确认(关键词来自步骤 0 的提取结果):**
- ✅ {关键词1}:通过 xxx 方式实现
- ✅ {关键词2}:通过 yyy 方式实现
- ✅ {关键词3}:通过 zzz 实现
## [Implementation Steps]
按时序排列的实施步骤。
每个涉及新增或修改的函数,必须提供完整伪代码,格式如下:
~/xxx/xxx.go
func 函数名(参数 类型) 返回值 {
// step1. 用中文描述这一步做什么
// step2. 通过 xxx 函数获取 xxx
// step3. 用 yyy 算法计算 xxx,注意 zzz 边界条件
}
要求:
- 函数名、参数名、返回值类型必须与目标工程的实际命名规范一致
- 步骤描述用中文,简洁说明意图,不写具体代码
- 每个 step 对应一个操作单元,粒度不超过 5 行逻辑
- 若函数内调用了其他新增函数,被调用函数也必须单独列出伪代码
路径写法规范
[Implementation Steps] 中所有文件路径必须使用 ~/ 表示目标工程根目录:
- ✅
~/package.json、~/src/index.ts、~/internal/handler/user.go - ❌ 任何绝对路径(
/Users/...) - ❌ god 工作台自身的路径(
projects/xxx/...)
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.
- 11d ago First seen · 102 lines · 50 tokens per session scan A d15eb8c0b8f3
requirement-to-skill is a skill published in the GitHub repository minchieh-fay/god (2 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 50 tokens to every session and 1,250 once invoked, about $0.0003 per session on Opus 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-08-31.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
insight-error-page
Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…
next-cache-components-optimizer
Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…
next-partial-prefetching-adoption
Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…