用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ReinaMacCredy/loveNovel --skill learner命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | learner |
| description | Extract hard-won principles from the current session and save as reusable learned skills. |
| argument-hint | [--from-session | --from-diff | <topic>] |
| allowed-tools | Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion |
| disable-model-invocation | true |
Capture non-obvious, context-specific insights from your current work and save them as reusable skill files that Maestro can inject into future sessions.
--from-session — Analyze the current session for learnings (default)--from-diff — Analyze recent git diff for patterns<topic> — Extract learnings about a specific topic.claude/skills/learned/ before saving duplicates.Every extracted principle MUST pass ALL four gates:
| Gate | Question | Fail Example |
|---|---|---|
| Non-Googleable | Would a developer find this in docs/Stack Overflow? | "Use async/await for promises" |
| Context-Specific | Is this specific to THIS project or domain? | "Always validate input" (too generic) |
| Actionable | Can someone act on this immediately? | "The system is complex" (observation, not action) |
| Hard-Won | Did this cost time/debugging to discover? | "TypeScript has interfaces" (trivial) |
Based on the argument:
--from-session (default):
--from-diff:
git diff HEAD~5..HEAD (or appropriate range)<topic>:
For each candidate learning:
Show extracted principles to user:
AskUserQuestion(
questions: [{
question: "Save these learnings?",
header: "Learnings",
options: [
{ label: "Save all", description: "Save all extracted principles" },
{ label: "Select individually", description: "Choose which to save" },
{ label: "Discard", description: "Don't save any" }
],
multiSelect: false
}]
)
For each approved principle, create a skill file:
File: .claude/skills/learned/{slug}.md
---
name: {slug}
description: {one-line summary}
triggers:
- {keyword1}
- {keyword2}
priority: 200
---
# {Title}
## When This Applies
{Trigger conditions — when should this knowledge be surfaced?}
## The Principle
{The actual learning — what to do and why}
## Why This Matters
{What goes wrong without this knowledge}
## Evidence
{Where this was discovered — file paths, error messages, debugging session}
Slug derivation: Lowercase, hyphenated, max 5 words from the principle title.
Report what was saved:
.claude/skills/learned/*.md.claude/skills/*/SKILL.md)| Don't | Do Instead |
|---|---|
| Save code snippets | Save the principle behind the pattern |
| Save generic advice | Save project-specific insights |
| Save obvious things | Save things that took debugging to learn |
| Save without triggers | Always include trigger keywords for discoverability |