from-scratch
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "from-scratch":https://skillpi.com/zh/skills/deepskill-fdc2fdd70ba3aa2be749128d9f616e72198c3714e8c75113dc3a4df343dc5f90。安装前核对上游来源和版本:https://github.com/dotslashsimran/simcraft。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
通过从零开始构建最小可运行版本,逐步学习某个概念或系统的真实工作原理(Karpathy 风格)。每一步鼓励用户先预测其作用再执行,适用于机器学习与人工智能概念(如注意力机制、分词器、反向传播、RAG、智能体)、系统(如数据库、HTTP 服务器、Git、Shell)以及任何可以用代码实现的内容。当用户请求“教我 X 是怎么工作的”、“从零开始构建 X”、“我想真正理解 X”或“不用库实现 X”时使用。
介绍来源: third_party · dotslashsimran · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: from-scratch
description: Learn how something really works by building the smallest working version of it from scratch, Karpathy style, one small step at a time, with the user predicting what each step will do before running it. Works for ML and AI ideas (attention, tokenizers, backprop, RAG, agents), systems (a database, an HTTP server, git, a shell) and anything else that can be coded. Use when the user says "teach me how X works", "build X from scratch", "I want to really understand X", "explain X from first principles", or "implement X without the library".From scratch
Reading about a thing gives you the words. Building it gives you the understanding. The fastest way to really get attention, a tokenizer, a vector database or git is to write the smallest version that works, in plain code, and watch it run.
The goal is understanding, not a finished library. Small and readable beats complete.
1. Find the core
Ask one question first: what does the user already know? (For example: "Comfortable with Python and numpy? Seen matrix multiplication before?") Then name, in one or two sentences, the one mechanism that makes the thing work. Examples:
- Attention: every token scores every other token, and takes a weighted average of their values.
- Git: files are stored by the hash of their contents, and a commit is a file that points at a tree and a parent.
- RAG: turn text into vectors, find the nearest ones to the question, paste them into the prompt.
Everything that isn't the core (speed, edge cases, config, error handling) is left out on purpose. Say what's left out and why.
2. Plan the build
Break it into 4 to 8 steps. Each step adds one idea and ends with something that runs and prints a result. Target the whole thing at under 200 lines, one file, standard library or numpy only unless the idea needs more. Show the step list, then start step 1.
3. Each step
- Say the idea in two or three plain sentences.
- Ask for a prediction before running anything: "What do you think this prints?" or "Which word will get the highest score?" Wrong guesses are where the learning happens, so wait for one.
- Write the code for that step only. Short functions, honest variable names, a comment only where the why isn't obvious.
- Run it and show the real output. Use tiny inputs (3 tokens, 2 files, a 4-word vocabulary) so every number can be checked by eye.
- Compare with the prediction. If it was wrong, explain what they missed, in one or two sentences.
Never write two steps at once. The user can say "faster" to combine steps.
4. Check against the real thing
When the toy works, run the same input through the real library or tool (PyTorch attention, real git, a real tokenizer) and show that the answers match, or explain exactly why they differ. This is what turns "I made a toy" into "I know how it works".
5. Lock it in
End with:
- A one-paragraph explanation in the user's words: ask them to explain it back first, then tidy what they wrote rather than replacing it.
- Three questions that test the core idea, answers hidden until they try. (The
teach-backskill can take it from here.) - Where the real version is more complicated, as a short list, so they know what they skipped.
Keep the code file. It's their reference implementation.
Rules
- Never paste a big finished implementation. The steps are the lesson.
- No magic: if a line uses something they haven't seen, either explain it in one sentence or replace it with something simpler.
- Run every line of code you show. Never show output you didn't get.
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供高效的学习方法论,帮助用户通过动手实践深入理解复杂概念
- 适用于机器学习、系统原理等多个高价值领域,实用性强
亮点
- 触发词覆盖全面,精准匹配用户学习意图
- 边界清晰,有效区分同类 Skill
待提升项
-
缺少显式 'When to Use' 章节 原报告严重程度:轻微
文档结构完整,但未使用 'When to Use' 作为显式章节标题
改进建议:建议在正文中添加 'When to Use' 章节以提升规范性
亮点
- 阶段划分清晰,执行流程明确
- 包含端到端示例和验证机制
亮点
- 强调使用标准库,降低依赖风险
- 每一步都要求运行验证,确保可执行性
- 包含与真实工具的对比验证,增强学习效果
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。