数据库生成
- 作者仓库星标 0
- 作者更新于 实时读取
- 作者仓库 skills-registry
- 领域
- 写作
- 兼容 Agent
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- 信任分
- 88 / 100 · 社区维护
- 作者 / 版本 / 许可
- @tomevault-io · 未声明 license
- Token 消耗评级
- 低消耗
- 接入复杂程度
- 需简单配置
- 是否需要外部 API Key
- 不需要
- 兼容的系统
- macOS · Linux · Windows
- 底层运行要求
- Node.js
- 文件与系统权限
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 网络行为
- 仅限本地
- 安装命令数
- 26 条
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: learning-new-tech
description: Use when the user wants to learn a new programming language, framework, or platform via a hands-…
category: 写作
runtime: Node.js
---
# learning-new-tech 输出预览
## PART A: 任务判断
- 适用问题:文章、文案、发言稿、润色或结构化表达。
- 输入要求:目标材料、限制条件、期望输出和验收方式。
- 证据边界:围绕“Why this shape / What to do — first invocation / What to do — subsequent invocations”读取原文规则,不把推断写成作者承诺。
## PART B: 执行结果
- **01** 任务判断:确认你的需求是否属于文章、文案、发言稿、润色或结构化表达,并标出输入、限制和预期结果。
- **02** 执行计划:优先按“Why this shape / What to do — first invocation / What to do — subsequent invocations”拆成步骤,说明每一步会读取什么、修改什么、产出什么。
- **03** 交付结果:给出可复制的命令、文件改动、检查清单或内容草稿,并说明如何继续迭代。
- **04** 风险边界:结合 读取文件、写入/修改文件、执行终端命令、主要在本地完成、通常不需要额外 API Key 给出执行前确认项。
## Running Rules
- 读取文件、写入/修改文件、执行终端命令;主要在本地完成;通常不需要额外 API Key。
- 先小样例验证,再放大到真实任务。
- 交付时同时给结果、检查口径和下一步迭代建议。 原文没有稳定的斜杠命令要求。安装验证后通常全局生效,直接在对话里点名这个 Skill 并描述任务即可。
告诉 Agent 目标文件或材料、期望结果、不可改范围、是否允许联网或执行命令。本 Skill 的权限画像是:读取文件、写入/修改文件、执行终端命令。
先用一个小任务确认它会围绕“Why this shape / What to do — first invocation / What to do — subsequent invocations”工作;涉及文件或命令时,先看 diff、日志、预览或测试结果。
检查最终产物是否包含明确结果、必要证据和下一步动作;如果输出泛泛而谈,就补充输入、边界和验收标准后重跑。
---
name: learning-new-tech
description: Use when the user wants to learn a new programming language, framework, or platform via a hands-…
category: 写作
source: tomevault-io/skills-registry
---
# learning-new-tech
## 什么时候使用
- 把写作方向的常用动作沉淀成 Agent 可调用的技能 适合处理文章、文案、润色、翻译、总结和结构化表达,核心价值是把输入、判断、执行、验证和交付边界固定下来,避免 Agent 泛泛回答。 把任务拆成可执行、可检查、可继续迭代的步骤;通常…
- 面向文章、文案、发言稿、润色或结构化表达,优先处理能明确输入、步骤和验收标准的工作。
## 需要提供什么
- 目标材料、目录范围、期望结果和不可改动内容。
- 是否允许联网、执行命令、读写文件或调用外部服务。
## 执行规则
- 围绕「Why this shape / What to do — first invocation / What to do — subsequent invocations」组织步骤,不把推断写成作者事实。
- 读取文件、写入/修改文件、执行终端命令;主要在本地完成;通常不需要额外 API Key。
- 先跑小样例,确认结果可检查后再扩大任务范围。
## 输出要求
- 给出最终产物、关键证据、验证方式和下一步动作。
- 信息不足时标记 unknown,不编造命令、平台或依赖。 作者原文负责流程事实;仓库文件负责来源和命令;流狐只补充适用场景、限制和质量判断。
skill "learning-new-tech" {
输入层 -> 用户目标 + 目标文件 + 禁止范围 + 验收标准
上下文层 -> Why this shape / What to do — first invocation / What to do — subsequent invocations
规则层 -> SKILL.md 触发条件 / 执行顺序 / 输出格式
运行层 -> Node.js | 读取文件、写入/修改文件、执行终端命令 | 主要在本地完成
安全层 -> 通常不需要额外 API Key + 小任务验证 + diff / 日志复核
输出层 -> 可复制结果 + 检查清单 + 下一步迭代
} Learning New Tech
A coaching workflow for learning a programming language, framework, or platform by doing. The user types the code; Claude builds the curriculum one lesson at a time, reviews work after each lesson, and adapts what comes next based on what actually happened.
The shape is deliberately small: a learning/ directory at the user's repo root, with a top-level outline, a cross-session notes file, and one numbered subdir per lesson — each lesson self-contained, with its own start.sh and score.sh.
Why this shape
- Outline first, lessons one at a time. The outline is a flexible map; each next lesson is generated against the latest outline, the latest notes, and the user's most recent feedback. Generating all lessons upfront freezes the plan before any contact with the learner.
- Zero-padded numbering for fast
cd.cd learning/01<TAB>autocompletes;lssorts naturally; lesson identity is stable in NOTES.md references. - No dependencies between lessons. Each lesson's
start.shbuilds initial state from scratch. The user can drop into any lesson cold without setting up state from earlier ones. - NOTES.md is the cross-session memory. Sessions end. The user comes back days later in a fresh Claude. NOTES.md is the only thing a new session needs to read to pick up where the last one left off.
What to do — first invocation
Triggered by phrasings like "I want to learn Rust" or "set up a learning plan for SwiftUI."
If the user's repo already has a learning/ directory with a different topic, ask whether to use a new subdir (learning-<tech>/) or replace the existing track. Default to a new subdir — preserving prior tracks is cheap.
In a single message, do all of this:
- Read the room. Ask one or two short questions about prior experience: "Have you used a similar tech before?" / "Any specific goal — a side project you want to ship?" If the user's first message already states their prior experience and goal (e.g. "I've used Node before, I want a small CLI"), skip the questions and go straight to step 2 — re-asking what was just answered burns trust.
- Build the outline. Write
learning/OUTLINE.mdwith 10-15 milestones from "hello world" to a small real project. The outline names ideas, not lesson files — it's a map, not a manifest. Mark it "Subject to revision." - Seed NOTES.md. Write
learning/NOTES.mdwith what the user told you they already know, the start date, and an empty "Lessons completed" section. - Create lesson 01 only. Build
learning/01-<short-kebab-topic>/withREADME.md,start.sh(executable), andscore.sh(executable). The lesson covers the first outline milestone, scaled to the user's stated experience. Lesson directory numbers are always two-digit zero-padded —01through09, then10,11, …,99. - Hand off. Tell the user to type
cd learning/01then press Tab to autocomplete the topic suffix, then./start.sh../score.shself-checks the work, but tell the user to return to Claude when they're done either way — passing the self-check isn't a substitute for the thorough review and next-lesson generation that the runbook does in-conversation.
What to do — subsequent invocations
Two cases:
"Lesson N done" / "I finished N" / "ready for the next"
In what follows, use <NN> for the two-digit padded current lesson number (read it from NOTES.md or ls learning/) and <NN+1> for the next.
- Re-orient. Read
learning/OUTLINE.mdandlearning/NOTES.mdin full — Claude sessions don't carry over. - Inspect the work.
ls learning/<NN>-*/and read the files the user touched. Runbash learning/<NN>-*/score.shand capture the output. - Thorough review. Look at the code, not just the score. Note: idiomatic vs. fighting the language; shortcuts taken; concepts the user appears solid on; concepts that look shaky. The score check is necessary but not sufficient.
- Ask for feedback. One short prompt: "Before I plan the next lesson — anything to note? Too easy / too hard / want to detour somewhere / skip something coming up?" Wait for the user.
- Update NOTES.md. Append a section for lesson
<NN>with: completion date, score result, your review observations, the user's feedback verbatim. This is the file a future fresh session will read. - Update OUTLINE.md if feedback warrants. If the user said "I already know X," cross out the X milestone with a strikethrough and a note. If they want a detour, insert a new milestone. Don't rewrite the whole outline — preserve the original ordering as much as possible so progress stays legible.
- Create the next lesson. Build
learning/<NN+1>-<topic>/against the updated outline and the user's feedback. Same three files:README.md,start.sh,score.sh. Pad to two digits — lesson 9 is followed by10-, not010-. - Hand off again. Tell the user to
cd learning/<NN+1>and press Tab, then./start.sh.
"What's next?" / "Where did we leave off?"
The user is returning after time away. Read OUTLINE.md and NOTES.md, then compare the latest entry in NOTES.md against ls learning/ — if the most recent lesson directory has no matching review section in NOTES.md, the user finished it in a prior session and never came back; treat it as "Lesson N done" and run the inspect-and-review path. Otherwise summarize where they are, and confirm whether to continue from the next pending lesson or revisit a recent one.
Lesson file shapes
Each lesson directory has exactly three files. Make them succinct — the user has to read every one.
README.md
Three sections. No more.
# Lesson 03 — Pattern matching
## Goal
Read a list of `Result<i32, String>` values and print only the successes.
## Background
`match` lets you destructure enums by variant. Rust's `Result` has two variants — `Ok(T)` and `Err(E)`. The compiler enforces that you handle both.
## Instructions
1. `./start.sh` creates `src/main.rs` with the input list pre-filled.
2. Fill in the `match` block where marked `// TODO: match here`.
3. `cargo run` should print `42` and `7`.
4. `./score.sh` to self-check. Tell me when you're done.
Keep instructions imperative and numbered. The user reads top-to-bottom and types as they go. No long prose; no exposition that could be a link instead.
start.sh
Sets up just enough initial state for the user to start typing. Idempotent — re-running on a dirty tree warns but doesn't clobber user changes.
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
if [[ -e src/main.rs ]]; then
echo "start.sh: src/main.rs already exists — leaving it alone."
echo "start.sh: delete it first if you want a fresh start."
exit 0
fi
mkdir -p src
cat > Cargo.toml <<'EOF'
[package]
name = "lesson-03"
version = "0.1.0"
edition = "2021"
EOF
cat > src/main.rs <<'EOF'
fn main() {
let results: Vec<Result<i32, String>> = vec![
Ok(42),
Err("nope".to_string()),
Ok(7),
];
for r in results {
// TODO: match here — print the inner i32 only on Ok
}
}
EOF
echo "start.sh: ready. Edit src/main.rs and run \`cargo run\`."
The user types the meat. start.sh writes only the scaffolding and the // TODO markers.
score.sh
Mechanical pass/fail checks. Print one line per criterion as [PASS] or [FAIL]. Exit 0 if every check passes, 1 otherwise. Run actual program behavior where possible — file presence is weaker than cargo run's output matching expectations.
#!/usr/bin/env bash
# No -e: every check must run to accumulate fails. -u and pipefail still apply.
set -uo pipefail
cd "$(dirname "$0")"
fails=0
check() {
local label="$1"; shift
if "$@" >/dev/null 2>&1; then
echo "[PASS] $label"
else
echo "[FAIL] $label"
fails=$((fails + 1))
fi
}
check "src/main.rs exists" test -f src/main.rs
# Run the program once and reuse its output for every behavior check.
output="$(cargo run --quiet 2>/dev/null)" && cargo_ok=1 || cargo_ok=0
check "cargo run succeeds" test "$cargo_ok" = "1"
check "output contains 42" grep -q 42 <<<"$output"
check "output contains 7" grep -q 7 <<<"$output"
check "no Err leaked through" sh -c '! grep -q nope <<<"$1"' _ "$output"
if (( fails > 0 )); then
echo
echo "score.sh: $fails check(s) failed."
exit 1
fi
echo
echo "score.sh: all checks passed."
Behavior matters more than syntax. Avoid grep -q 'match' src/main.rs-style keyword-presence checks against the user's source — they false-positive on comments (including the // TODO: match here left by start.sh) and false-negative on idiomatic alternatives (if let, helper methods). Verify what the program does, not what it contains.
For lessons whose outcome can't be machine-verified (UI work, design decisions, learning-by-reading), score.sh becomes a checklist printer that the user self-attests against — print each criterion and ask the user to run ./score.sh --confirm after they've checked each one. Every lesson has a score.sh; the checklist-printer pattern covers the cases where mechanical verification doesn't apply.
OUTLINE.md and NOTES.md
OUTLINE.md
# Learning Rust
A general curriculum from "hello world" to a small CLI project. ~12 milestones. Subject to revision based on feedback after each lesson.
1. Hello world + `cargo init`
2. Primitive types and variables
3. Pattern matching with `match`
4. Ownership and borrowing
5. Error handling with `Result` and `?`
6. Iterators and closures
7. Collections (`Vec`, `HashMap`)
8. Modules and crates
9. Testing with `#[test]` and `cargo test`
10. A small CLI: argv parsing + file I/O
11. Async basics with `tokio`
12. Capstone: a CLI tool the user picks
Numbered list. Each item is one short noun phrase. The lesson's actual content is decided when the lesson is generated, not now — the outline names the destination, not the route.
NOTES.md
# Notes — learning Rust
Started: 2026-04-25
## What I already know
- C-family syntax (curly braces, semicolons)
- Memory management concepts (manual malloc/free in C)
- Functional basics from a year of Elixir
## Lessons completed
### 01 — hello-world (2026-04-25)
- Score: passed all checks
- Review: idiomatic; used `println!` correctly; understood the `!` macro indicator
- User feedback: "Easy. Skip the `cargo` deep-dive — I already use it for other things."
- Outline updated: removed planned cargo-internals milestone
### 02 — primitive-types (2026-04-26)
- Score: passed
- Review: tripped briefly on `i32` vs `usize` for indices — mention this again next time it comes up
- User feedback: none
## Open questions / things to revisit
- Lifetime annotations — flagged as "later" during ownership lesson
Bias toward terseness. Each lesson section is 3-5 lines. The "Open questions" section is the running list of things deferred.
Adapting based on feedback
User feedback shapes both the next lesson and the rest of the outline:
- "Too easy / I already know this." Mark the relevant outline milestone done with a note ("user reports prior knowledge"); raise the difficulty of the next lesson by reducing scaffolding (less
// TODOhand-holding, more "build it from scratch") or by combining two outline milestones into one denser lesson. - "Too hard." Don't simplify the next milestone — split the failed lesson into two lessons. The first re-attacks the rough concept with a smaller scope; the second is the original target. Note the split in NOTES.md.
- "I want to detour to X." Insert a new milestone in OUTLINE.md before the next planned one. Build a lesson against the detour. Don't backtrack the numbering — the next lesson dir is still
0(N+1), just with the detour topic. - "Skip the next thing." Strikethrough the next outline milestone and move on to the one after.
- "Continue." No outline change. Build the next lesson from the next pending milestone.
NOTES.md should record the verbatim feedback that drove each adjustment, not just the adjustment. Future-you (or a fresh Claude session) needs to know why an outline item was crossed out, not just that it was.
Caveats
- The user types the code. This skill is hands-on. Don't write the lesson's solution code yourself when reviewing or coaching — describe, hint, point at idioms, let the user write. Writing it for them defeats the workflow.
- Sessions don't persist. Always re-read OUTLINE.md and NOTES.md before generating the next lesson — the in-context picture from a prior session is gone, and a stale assumption ("the user said X earlier") will produce a misaligned lesson. NOTES.md is the contract.
- Score scripts are bash, not test frameworks. Each lesson's
score.shis a small mechanical check, not a test suite. If a lesson genuinely needs a test framework, add it as part of the lesson content (e.g., a Rust lesson on testing builds towardcargo test) — don't pre-install one. - Lessons are self-contained, including dependencies. If lesson 06 needs a crate that lesson 03 also used, lesson 06's
start.shadds it again. No "set up your environment" prerequisites that span lessons. - One track per directory. If the user wants to learn two things in parallel (Rust and SwiftUI), use two top-level dirs (
learning-rust/,learning-swiftui/). Don't try to interleave them in one tree — the numbering and outline assume one curriculum per directory. - Outline drift is expected. After 5-6 lessons, the outline often looks meaningfully different from the original. That's working as intended — see Adapting based on feedback for how the edits should be made.
Related skills
using-llm-tasks— for project work where the user is shipping rather than learning.following-best-practices— for scanning a real project for day-one gaps.
Source: ai-sorcery/ai-sorcery — distributed by TomeVault.
先判断是否适合
作者设计意图
作者的方法与取舍
边界和复核