‹ 首页

learner

@tranhieutt · 收录于 1 周前

Turns real agent failures, repeated prompts, team-specific workflows, and durable project lessons into better SDD skills or memory entries. Use when the user asks to create/update/refine skills, extract reusable lessons, improve skill routing, encode team process, or save patterns for future sessions.

适合你,如果经常需要把重复的提示或项目教训固化为可复用的技能

/ 下载安装
learner.skill双击,或拖进 Claude 桌面版 / Cowork,即完成安装↓ .skill↓ .zip
用别的 agent?下载 .zip 解压,把文件夹放进它的技能目录
Claude Code~/.claude/skills/(项目级 .claude/skills/)
Codex CLI~/.codex/skills/
Cursor自动读取上面两处目录
其他工具见其文档的「skills」目录;两个下载是同一份文件,只是名字不同
/ 通过 npx 安装 校验哈希
npx oh-my-skill add tranhieutt/software_development_department/learner
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- tranhieutt/software_development_department/learner
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify tranhieutt/software_development_department/learner
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
68GitHub stars
~1.2K上下文体积 · 单文件
镜像托管

怎么用

技能原文 SKILL.md作者撰写 · MIT · e5ba809

Learner

Convert real SDD usage into durable operating knowledge.

Use this workflow to decide whether a lesson belongs in:

  • an existing skill,
  • a new skill,
  • .claude/memory/annotations.md,
  • another Tier 2 memory file,
  • or no durable artifact.
Source Principles

This workflow adopts the Agent Skills guidance that durable skills come from real expertise, project artifacts, execution traces, and repeated refinement. Skills should capture team-specific process and failure modes, not generic best practices or deterministic glue better handled by scripts, hooks, or MCP.

Extraction Gate

Create or modify a skill only when at least one signal is present:

  • Agent made a wrong choice despite a correct prompt.
  • Existing skill fired but failed its mission.
  • Needed skill did not fire because description was weak or absent.
  • A teammate/user wrote the same long prompt, plan, or checklist a second time.
  • Session repeated a costly investigation, setup, verification, or handoff loop.
  • User corrected a project convention, team preference, or non-obvious edge case.
  • Internal process, internal system, or proprietary data pattern must be reused.

Do not create a skill for:

  • General advice the model already knows.
  • One-off code snippets.
  • Secrets, credentials, or environment-specific auth hacks.
  • Simple deterministic checks better implemented as hooks, scripts, tests, or MCP.
  • Large copied docs without a clear load condition.
Decision

Classify the lesson before editing:

| Lesson type | Target | | --- | --- | | Existing workflow missed a rule, edge case, or output shape | Update that skill body | | Existing skill should have fired but did not | Tighten that skill description | | Repeated team-specific process forms a coherent unit | Create or update a skill | | Non-obvious caveat tied to a service/library/repo area | Use annotate memory | | Broad preference or project operating rule | Update the right Tier 2 memory/doc | | Deterministic repeated operation | Prefer tested script/hook/MCP; skill only orchestrates when needed |

Prefer updating an existing skill over adding a new one when the lesson fits an existing coherent workflow.

Workflow
  1. Gather evidence:
  2. original prompt or task,
  3. correction or failure mode,
  4. first point where the agent went wrong,
  5. skills that fired or failed to fire,
  6. files, commands, traces, review comments, or user preferences involved.
  7. Choose the smallest durable target using the Decision table.
  8. Edit with progressive disclosure:
  9. keep SKILL.md under 500 lines when practical,
  10. keep only always-needed instructions in SKILL.md,
  11. move long examples, schemas, or domain references into references/,
  12. state exactly when to read each reference file.
  13. Tune invocation:
  14. put trigger phrases and scope in description,
  15. add exclusions when false positives are likely,
  16. avoid relying on body-only "when to use" text for activation.
  17. Preserve SDD gates:
  18. do not weaken using-sdd, permissions, hooks, or source-of-truth rules,
  19. route spec, plan, code, review, and release changes through their owning skills.
  20. Validate:
  21. run powershell -ExecutionPolicy Bypass -File scripts\validate-skills.ps1,
  22. run node scripts\validate-readme-sync.js if counts or README inventory changed,
  23. run node scripts\harness-audit.js --compact for routing, hook, or harness changes.
Skill Edit Rules
  • Add what the agent lacks; cut what generic model knowledge already covers.
  • Prefer procedures over declarations.
  • Use defaults, not broad menus of equal options.
  • Make fragile operations prescriptive; leave flexible judgment where multiple approaches are valid.
  • Add concrete gotchas where the agent is likely to make the wrong assumption.
  • Keep bundled scripts deterministic and tested.
  • Treat each skill like a function: one coherent responsibility, composable with other skills.
New Skill Template

Use this shape when a new SDD skill is justified:

---
name: short-action-name
type: workflow
description: "What this skill does. Use when <specific trigger phrases, task contexts, and boundaries>."
argument-hint: "[expected input]"
user-invocable: true
allowed-tools: Read, Glob, Grep
effort: 2
when_to_use: "One sentence matching the description scope for SDD docs and humans."
---

# Purpose

State the reusable team-specific capability.

## Workflow

1. Do the first required action.
2. Make the context-dependent decision.
3. Verify with a concrete check.

## Gotchas

- Add only non-obvious failure modes discovered from real use.

## Output

Specify the exact artifact or response shape when consistency matters.
Completion Output

Report:

  • artifact changed or created,
  • evidence source that justified it,
  • validation commands and results,
  • remaining skill debt or telemetry gap.
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。