Learn

GitHub

用于创建、从对话中提取或更新技能。支持从零构建、提取会话知识及修正过时内容,遵循特定结构和写作规范,确保技能精准可用。

apps/browser/bundled/skills/learn-skill/SKILL.md mereyabdenbekuly-ctrl/clodex-ide

触发场景

用户要求创建新技能 从当前对话中提取经验或捕获知识 用户纠正行为或技能内容过时/错误需更新

安装

npx skills add mereyabdenbekuly-ctrl/clodex-ide --skill Learn -g -y
更多选项

非标准路径

npx skills add https://github.com/mereyabdenbekuly-ctrl/clodex-ide/tree/main/apps/browser/bundled/skills/learn-skill -g -y

不安装直接使用

npx skills use mereyabdenbekuly-ctrl/clodex-ide@Learn

指定 Agent (Claude Code)

npx skills add mereyabdenbekuly-ctrl/clodex-ide --skill Learn -a claude-code -g -y

安装 repo 全部 skill

npx skills add mereyabdenbekuly-ctrl/clodex-ide --all -g -y

预览 repo 内 skill

npx skills add mereyabdenbekuly-ctrl/clodex-ide --list

SKILL.md

Frontmatter
{
    "name": "Learn",
    "description": "Create, extract, or update a skill. Use when authoring a new skill from scratch, extracting knowledge from the current session, or updating an existing skill when the user's intentions contradicted skill guidance or content is confusing\/outdated.",
    "user-invocable": true,
    "agent-invocable": false
}

Learn: write skills

Workflows

1. New skill from scratch

Trigger: "create a skill for X". Ask user intensively, follow their guidance. Build using structure + rules below.

2. Extract from conversation

Trigger: "learn-skill for what we did", "capture this", "extract a skill from above".

  1. Scan — collect: decisions + rationale, constraints, working patterns, workflows, gotchas, non-obvious domain facts
  2. Filter — keep only non-obvious, project-specific knowledge. Cut what agent already knows.
  3. Scope — workspace skill (.clodex/skills/) if content uses specific paths/tooling; user skill (.agents/skills/) if broadly reusable
  4. Write — structure into files using rules below, write to path

→ Load references/session-extraction.md for full checklist + signal/noise examples.

3. Update existing skill

Trigger: user corrected agent behavior, overrode guidance, skill is wrong/outdated.

  1. Read full skill before touching anything
  2. Replace — overwrite wrong content. Never append "Note: above is outdated"
  3. Remove redundancies. Every sentence earns its place.
  4. Preserve what's still accurate

→ Load references/skill-updating.md for full checklist.


After every operation

Output compact summary:

  • Created — path + one-line description
  • Updated — path + bullets: added / replaced / removed
  • Excluded — what was cut + why (extractions only)

Skill structure

skill-name/
├── SKILL.md           required, target <200 lines
├── references/        optional, on-demand
│   └── *.md
├── scripts/           optional, executable scripts
└── assets/            optional, output files (templates, icons, etc.)

Frontmatter (required):

---
name: skill-name
description: What it does + when to use it. Specific — drives discovery.
---

No frontmatter duplication. Body must not restate description. Frontmatter = discovery blurb. Body = triggers, steps, constraints.

References section — required if any reference files exist: List every file: what it contains + when to load it. Unlisted = invisible to agent.

## References
- `references/render-loops-debugging.md` — workflow for diagnosing excess re-renders. Load when investigating render performance.

Authoring rules

SKILL.md vs. references

SKILL.md → everything needed for the typical case: triggers, core steps, universal constraints.

References → content needed only sometimes:

  • Workflow-specific detail (e.g. extraction checklist, update checklist)
  • Examples — illustrative, not required to act
  • Rules that apply only in certain cases
  • Deep guidance for uncommon situations

Never put universal rules in references. Always-applies rule → SKILL.md. Agent might skip references.

The test: agent handle common case from SKILL.md alone (or + 1 reference max)? No → split is wrong. Fold needed content back into SKILL.md.

Writing style — caveman speak

Write dense. Drop articles, filler, throat-clearing. Fragments OK. Use , =, + as connectors. Bold key terms. Keep all technical content.

❌ Fluffy ✅ Caveman
"You should make sure to always read the file before editing" "Read before edit. Always."
"This step is important because it ensures that..." "→ prevents X"
"I'd recommend using useMemo to memoize the object" "Wrap in useMemo."

Rules:

  • Imperative/verb-first: "Do X" not "You should do X"
  • No meta phrasing: never "this skill tells you to…"
  • One term per concept — never synonyms
  • Every sentence must add info agent doesn't already have. Cut the rest.

Progressive disclosure

  • SKILL.md → target <200 lines. Up to ~500 acceptable; split when approaching limit.
  • Reference files → also target <200 lines each.
  • One level deep — references link from SKILL.md only. No ref → ref chains.

Degrees of freedom

Match specificity to task fragility:

  • High (prose): multiple valid approaches, context-dependent
  • Medium (pseudocode/parameterized): preferred pattern exists, variation OK
  • Low (exact script): fragile or order-sensitive

References

  • references/session-extraction.md — extraction checklist, signal/noise examples, scope decisions. Load for workflow 2.
  • references/skill-updating.md — update checklist: conflicts, redundancy, deprecated content. Load for workflow 3.
  • references/workflow-patterns.md — how to document per-process workflows (steps, primitives, examples). Load when skill needs to document multiple distinct processes.
  • references/authoring-guide.md — naming, descriptions, content guidelines, anti-patterns, quality checklist. Load for comprehensive authoring guidance.

版本历史

  • 0f01f5b 当前 2026-07-19 09:03

同 Skill 集合

apps/browser/bundled/plugins/figma/SKILL.md
apps/browser/bundled/plugins/github/SKILL.md
apps/browser/bundled/plugins/javascript-sandbox/SKILL.md
apps/browser/bundled/plugins/mini-apps/SKILL.md
apps/browser/bundled/plugins/open-code-review/SKILL.md
apps/browser/bundled/plugins/openmanus/SKILL.md
apps/browser/bundled/plugins/posthog/SKILL.md
apps/browser/bundled/plugins/remotion/SKILL.md
apps/browser/bundled/plugins/supabase/SKILL.md
apps/browser/bundled/plugins/vercel/SKILL.md
apps/browser/bundled/skills/debug/SKILL.md
apps/browser/bundled/skills/plan/SKILL.md
apps/browser/bundled/skills/preview/SKILL.md
apps/browser/bundled/skills/implement/SKILL.md

元信息

文件数
0
版本
5244a17
Hash
3add1e76
收录时间
2026-07-19 09:03

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-21 11:57
浙ICP备14020137号-1 $访客地图$