skeleton-first
它能做什么
这个工具帮助你高效地搭建数据和 AI 项目。它先做一个小而便宜的项目版本,确保各部分都能正常运行,然后逐步扩大规模、增加功能,并始终检查成本。
适用场景
- ✓当你的项目包含多个需要协同工作的阶段时。
- ✓当你要使用不熟悉的新数据或新工具时。
- ✓当你想搭建一套完整的数据处理或 AI 系统时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/skeleton-first/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我想用 AI 处理我所有的文档,先从一个小规模、低成本的测试开始。”
每周 5 个新技能,1 分钟读完。
工作原理
首先,我们会创建一个最小版本的项目,只用少量数据和低成本的设置来运行。然后,我们逐步测试并扩大规模,每一步都先检查成本,再决定是否增加更多功能。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Skeleton first: prove the workflow cheaply, then scale
Agents tend to build every stage at full size before anything has run end to end. In data and AI work that fails expensively: a wrong prompt runs over a whole table, a wrong grain is discovered after twenty models exist, a big warehouse burns credits on a query that returns the wrong answer.
This skill changes the order of work:
- Make the whole path work on the smallest possible input with the cheapest settings.
- Prove it with a test.
- Scale up in cost-gated rungs, measuring and projecting cost before each one.
- Only then add features, one at a time, re-running the tests after each.
When to Use
- A workflow with 2+ stages (ingest -> transform -> model/LLM -> output), or anything that touches paid compute: warehouse credits, LLM tokens, embeddings, API calls.
- New or unfamiliar data, a new tool or SDK, an architecture that has not run in this environment before.
- The user asks to "build X end to end", "set up the pipeline", "process all the documents", "create the models".
Skip it for: one-file fixes, a single query, work already proven at full scale, or when the user explicitly says to go straight to full scale (then still state the projected cost first).
Step 0 - Define "it works" before building
Write down, and show the user in 3-5 lines:
- The thinnest end-to-end path: every stage present, the minimum of each. Example: 1 source table -> 1 transform -> 1 LLM call -> 1 output row.
- One pass/fail test a person can check, e.g. "for these 3 sample rows the output has columns A, B, C and the value for row 2 is X". Prefer tests with a known right answer.
- A budget: maximum spend and time for the whole job, and for the skeleton (the skeleton should cost almost nothing).
If the user has not given a budget, propose one and say so.
Step 1 - Write the ladder
Plan the work as rungs. Each rung adds exactly one thing and has a gate.
| Rung | Adds | Input size | Gate to pass |
|---|---|---|---|
| L0 skeleton | every stage, stubbed or minimal | 1 record | test passes end to end |
| L1 | real logic in the weakest stage | 10 records | test passes, cost per record measured |
| L2 | scale | ~1% or 100 records | quality spot-check, projected full cost under budget |
| L3 | full run | 100% | totals reconcile, test still passes |
| L4+ | one feature each | as needed | all previous tests still pass |
Show the ladder to the user before building unless the task is small. Keep it short.
Step 2 - Build L0, the walking skeleton
- Every stage exists and is connected; none is polished.
- Hardcode or stub anything that is not on the critical path (config, retries, UI, logging beyond a print).
- Use the cheapest settings everywhere (see Cost levers).
- Run it. If it fails, fix the path; do not start adding features.
- Look at the sample before scaling it. Read a few raw records and measure what you are paying for. Most cheap wins hide here: duplicate records (cache by content hash), boilerplate repeated in every record (headers, footers, legal notices, signatures, templated sections), empty or invalid inputs that the API still bills. Count how much of the cost each one accounts for; stripping a footer that is 70% of every document is worth more than any tuning later.
Not allowed until L0 passes: a second source, a second model or table, parallelism, tuning, UI, abstractions, handling edge cases that have not been seen yet.
Step 3 - Scale up in cost-gated rungs
At every rung:
- Run on the rung's input size.
- Record: records in/out, errors, wall time, cost (tokens, credits, API calls).
- Project the next rung: cost per record x next size, time per record x next size.
- Gate: continue only if the test passes, errors are understood, and the projection is under budget.
…
常见问题
为什么要从小规模开始?
从小规模开始,可以避免在可能存在错误的项目上花费大量的金钱和时间。问题越早发现,就越容易修复。
什么是“骨架”?
“骨架”是项目的第一个最小可用版本。它把所有部分连接起来,但使用的是非常简单、低成本的数据和设置。
成本是如何控制的?
通过为每个阶段设定预算并检查支出来控制成本。如果成本增长过快,我们会先寻找更便宜的做法,再继续推进。
详情
作者的原始描述
Prove a data/AI/agent workflow end to end on a tiny sample, find cheap wins, then scale in cost-gated steps within budget.
热度
- GitHub 星标
- 48k
- 排名
- #5787
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。