Логотип Learn

Learn

Спільнота
YuxiaoWang-520
learn

Use when the user wants to save knowledge from the current session, review accumulated knowledge, or when the session has been long and instructive. Enables agents to extract reusable patterns from interactions and get smarter over time.

Огляд

ВидавецьYuxiaoWang-520
Репозиторійharness-craft
Назва навичкиlearn
Зірки
73
Форки
5
Файли в пакеті
2
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 2

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: YuxiaoWang-520. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Learn у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/YuxiaoWang-520/harness-craft/tree/main/skills/learn
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/YuxiaoWang-520/harness-craft.git /tmp/harness-craft
mkdir -p .claude/skills
cp -r /tmp/harness-craft/skills/learn .claude/skills/learn
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Learn в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Learn, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Learn не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Learn

Turn conversations into lasting knowledge. Extract, accumulate, and apply reusable knowledge from user interactions — across sessions and across projects.

Why This Skill Exists

Every conversation between a developer and an agent contains high-value knowledge: corrections, patterns, facts, and preferences. Without a learning system, this knowledge evaporates when the session ends. The agent starts from zero next time, and the user has to teach the same things again.

This skill solves that by giving agents a structured way to:

  1. Extract — identify reusable knowledge from the current session
  2. Evaluate — filter noise, check duplicates, decide scope
  3. Store — save as human-readable Markdown files
  4. Apply — load learned knowledge in future sessions
  5. Evolve — strengthen validated knowledge, prune outdated entries

Quick Start

Set up learned knowledge directories

bash
# Claude Code
export SKILLS_HOME="${HOME}/.claude/skills"

# Codex
export SKILLS_HOME="${CODEX_HOME:-$HOME/.codex}/skills"

# Initialize directories
python3 "$SKILLS_HOME/learn/scripts/learn_manager.py" init

This creates:

text
Claude: ~/.claude/learned/    # Global knowledge (cross-project)
Codex:  ~/.codex/learned/     # Global knowledge (cross-project)
  corrections/
  patterns/
  facts/
  preferences/

For project-level knowledge, the directories are created under the assistant's native project path when needed:

  • Claude: .claude/learned/
  • Codex: .codex/learned/

During migration, the helper script can also read the other namespace so prior knowledge is not stranded.

Two commands, that's it

CommandWhen to use
/learnExtract knowledge from the current session
/learn-reviewReview, curate, and manage accumulated knowledge

Core Workflow: /learn

Step 1 — Review the session

Scan the conversation for four types of reusable knowledge:

TypeWhat to look forExample
CorrectionsUser corrected the agent's approach"Don't mock the DB in integration tests"
PatternsRepeated workflow or coding convention"Always run lint before commit in this repo"
FactsProject/environment-specific truth"Deploy pipeline requires staging approval"
PreferencesUser's personal style preference"Keep responses concise, no trailing summaries"

Priority order: Corrections > Patterns > Facts > Preferences. Corrections are the highest value because they represent explicit user feedback that the agent got wrong.

Step 2 — Filter noise

Skip these — they are NOT worth saving:

  • Trivial fixes (typos, simple syntax errors)
  • One-time issues (specific API outages, ephemeral bugs)
  • Things already documented in CLAUDE.md, AGENTS.md, or project docs
  • Information derivable from reading the current codebase
  • Overly specific details that won't generalize

Step 3 — Quality gate

For each candidate, make one of three decisions:

DecisionCriteriaAction
SaveUnique, actionable, will save time in futureCreate new knowledge file
MergeValuable but overlaps existing knowledgeAppend to existing file
SkipToo specific, redundant, or low valueDo not save

Before deciding, run these checks:

  • Search existing learned knowledge in the assistant's native global and project directories
  • Check if appending to an existing knowledge file would be better
  • Confirm this is reusable, not a one-off

Step 4 — Determine scope

Ask: "Would this knowledge be useful in a different project?"

ScopeWhere it savesWhen to use
Global~/.claude/learned/ or ~/.codex/learned/Generic patterns: security, git, debugging, tool usage, user preferences
Project.claude/learned/ or .codex/learned/Project-specific: architecture conventions, deploy procedures, team agreements

When unsure, choose project. It is safer to keep knowledge scoped and promote later than to pollute the global space.

Step 5 — Save and report

Save each piece of knowledge as a Markdown file (see format below), then report to the user:

Learned from this session:

  [correction] Don't mock DB in integration tests  → .claude/learned/ or .codex/learned/
  [pattern]    Use AppError class for all API errors → project learned directory
  [preference] Keep responses concise               → global learned directory

  Merged 1 into existing knowledge:
    [fact] Deploy checklist updated (added staging step)

  Skipped 2 (too specific / already known)

This report is critical for user "feel" — it makes learning visible and tangible.

Knowledge File Format

Each knowledge file is a standalone Markdown document with YAML frontmatter:

markdown
---
type: correction
strength: medium
scope: project
learned: 2026-04-01
confirmed: 1
source: "User corrected: don't mock database in integration tests"
---

# Integration tests must use real database

Do not mock the database connection in integration tests. Mocked tests
can pass while the actual database migration is broken.

## When this applies
- Writing integration tests that involve database operations
- Setting up test fixtures for database-backed features

## When this does NOT apply
- Pure unit tests with no database dependency
- Testing business logic that is fully decoupled from storage

Frontmatter fields

FieldRequiredValuesDescription
typeyescorrection, pattern, fact, preferenceKnowledge category
strengthyesweak, medium, strongHow well-validated this knowledge is
scopeyesproject, globalApplicability range
learnedyesYYYY-MM-DDDate first learned
confirmedyesintegerTimes validated/reinforced
sourceyesstringHow this knowledge was acquired

Strength model

Three tiers — no floating-point pseudo-precision:

StrengthMeaningHow to reach
weakSeen once, not yet validatedDefault for new knowledge
mediumValidated 2–3 timesconfirmed >= 2 or user said "that's right"
strongThoroughly validatedconfirmed >= 4 or user explicitly confirmed

Strength changes:

  • Knowledge applied successfully and not corrected → confirmed += 1
  • User says "yes, exactly" or similar confirmation → jump to strong
  • User says "no, that's wrong" → downgrade or delete
  • Knowledge not used for extended period → no automatic decay (unlike ECC's float-based system, manual review handles cleanup)

Review Workflow: /learn-review

What it does

Lists all accumulated knowledge with statistics and lets the user curate.

Step 1 — Show overview

Run the helper script to display statistics:

bash
# Claude Code
python3 ~/.claude/skills/learn/scripts/learn_manager.py stats

# Codex
python3 "${CODEX_HOME:-$HOME/.codex}/skills/learn/scripts/learn_manager.py" stats

Present the output to the user, showing counts by type, strength, and scope.

Step 2 — List knowledge

bash
# Claude Code
python3 ~/.claude/skills/learn/scripts/learn_manager.py list

# Codex
python3 "${CODEX_HOME:-$HOME/.codex}/skills/learn/scripts/learn_manager.py" list

Show each entry with its type, strength, confirmed count, and one-line summary.

Step 3 — User actions

The user can ask to:

ActionHow
Delete a knowledge entryRemove the file
Promote project → globalMove file and update scope field
Demote global → projectMove file and update scope field
Merge two entriesCombine into one, sum confirmed counts
Edit an entryUpdate content directly
Strengthen an entrySet strength to strong

Promotion criteria

Suggest promoting a project-scoped knowledge entry to global when:

  1. strength is strong
  2. The knowledge does not reference project-specific details (file paths, team names, etc.)
  3. The user confirms
bash
# Claude Code
python3 ~/.claude/skills/learn/scripts/learn_manager.py promote

# Codex
python3 "${CODEX_HOME:-$HOME/.codex}/skills/learn/scripts/learn_manager.py" promote

This lists promotion candidates. The user decides — no automatic promotion.

Knowledge Application

In new sessions

At the start of a new session, the agent should:

  1. Check the assistant's native global learned directory — load strong and medium global knowledge
  2. Check the assistant's native project learned directory — load strong and medium project knowledge
  3. During migration, also read the other namespace when it exists to avoid losing prior knowledge
  4. Use loaded knowledge to inform behavior (respect corrections, follow patterns, remember facts, honor preferences)

Selective loading

To avoid context window bloat:

  • Always load: strong entries (these are validated, high-value)
  • Load if relevant: medium entries (check if the current task domain matches)
  • Skip: weak entries (too tentative to take action on — only surface if directly relevant)

Application feedback

When the agent applies learned knowledge, briefly mention it:

"Using real database for integration tests (learned: don't mock DB in integration tests)"

This reinforces the user's confidence that the agent is learning.

Activation: How Learned Knowledge Takes Effect

The learn skill only stores knowledge. The auto-load mechanism depends on the assistant:

  • Claude Code: install the learned-knowledge rule in rules/common/
  • Codex: install harness-craft's Codex guardrails into AGENTS.md

The learn → always-on guardrails → auto-load pipeline

/learn extracts knowledge → saves to assistant-native learned directories
                                                ↓
always-on guardrails load every new session
                                                ↓
Agent loads strong/medium entries at session start → applies them

How to activate

Claude Code:

bash
# User-level (all projects)
cp rules/common/learned-knowledge.md ~/.claude/rules/common/

# Or project-level (current project only)
cp rules/common/learned-knowledge.md .claude/rules/

Codex:

bash
# User-level (all projects)
python3 scripts/install.py --assistant codex --skip-skills

# Or project-level (current project only)
python3 scripts/install.py --assistant codex --skip-skills --scope project --project-root "$(pwd)"

What happens without the always-on layer

  • /learn still works — it extracts and saves knowledge normally
  • But future sessions will not automatically load or apply saved knowledge
  • The agent would need to be told manually to read the knowledge files

What happens with the always-on layer

  • Every new session, the agent checks the assistant-native learned directories
  • strong and medium entries are loaded automatically
  • The agent cites learned knowledge when it influences decisions
  • The user sees a one-line announcement: "Loaded N project entries and M global entries"

Integration with repo-bootstrap

learn and repo-bootstrap are complementary:

repo-bootstraplearn
What it storesCurrent project state, plans, progressReusable knowledge from interactions
Where.harness/ (project-internal)~/.claude/learned/ or ~/.codex/learned/, plus project-scoped learned dirs
LifecycleChanges with project activityAccumulates over time
Update frequencyEvery sessionWhen knowledge is extracted
AnalogyWorking memoryLong-term memory

When both are active:

  • repo-bootstrap handles "what is the project doing right now"
  • learn handles "what has the agent learned from working with this user"
  • No overlap — they serve different purposes

Storage Structure

text
~/.claude/learned/ or ~/.codex/learned/   # Global (cross-project)
├── corrections/
│   ├── no-db-mocks-in-integration.md
│   └── use-const-not-let.md
├── patterns/
│   ├── run-lint-before-commit.md
│   └── grep-before-edit.md
├── facts/
│   └── (global facts are rare)
└── preferences/
    ├── concise-responses.md
    └── chinese-comments.md

.claude/learned/ or .codex/learned/       # Project-specific
├── corrections/
├── patterns/
│   └── use-repository-pattern.md
├── facts/
│   ├── deploy-needs-staging.md
│   └── ci-uses-node-20.md
└── preferences/

Guardrails

  • One knowledge per file. Do not create mega-files with multiple unrelated learnings.
  • Human-readable names. File names should describe the knowledge: no-db-mocks-in-integration.md, not learn-001.md.
  • No code dumps. Knowledge files capture patterns and rules, not entire code blocks.
  • No secrets. Never save API keys, passwords, or credentials in knowledge files.
  • User consent. Always show what will be saved and get confirmation before writing.
  • Don't duplicate rules. If something is already enforced by the assistant's always-on guardrails, don't save it as learned knowledge.
  • Don't duplicate memory. If something belongs in repo memory such as .harness/, it's probably context, not reusable knowledge. Knowledge is about how to work, memory is about what happened.

When to Suggest /learn

Proactively suggest running /learn when:

  • The session has been long (15+ messages) and productive
  • The user corrected the agent's approach
  • A non-obvious debugging technique was used
  • A project-specific convention was discovered
  • The user explicitly taught the agent something

Do NOT suggest /learn for:

  • Short sessions with simple tasks
  • Sessions that only involved reading/exploring
  • When the user seems busy or time-pressed

References

  • Knowledge file format details: references/knowledge-format.md
  • Helper script usage: scripts/learn_manager.py --help

Scripts

  • scripts/learn_manager.py: Manage learned knowledge files — init directories, list entries, show statistics, search by keyword, promote scope, check for duplicates.

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Learn?

Use when the user wants to save knowledge from the current session, review accumulated knowledge, or when the session has been long and instructive. Enables agents to extract reusable patterns from interactions and get smarter over time.

Навіщо використовувати Learn у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Learn — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Learn у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/YuxiaoWang-520/harness-craft/tree/main/skills/learn. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Learn?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Learn?

Зі скількома забажаєте. У TypingMind ви можете використовувати Learn із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Learn?

На GitHub цю навичку публікує YuxiaoWang-520. Умови ліцензування дивіться в репозиторії. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі
Логотип openclaw

Autoreview

openclaw
ОрганізаціяПопулярне

Структурований перегляд коду на прямий запит; перевага надається OpenAI/Codex перед Claude.

82.2K
391K
Файлів: 12
Відкрити
Логотип openclaw

Claw Score

openclaw
ОрганізаціяПопулярне

Перевіряйте або оновлюйте документи зі зведеною оцінкою зрілості OpenClaw на основі кореневої таксономії, оцінок зрілості та артефактів із доказами QA, не використовуючи дані maintainer discrawl або звіти про інвентаризацію в репозиторії.

82.2K
391K
Файлів: 51
Відкрити
Логотип openclaw

Clawsweeper

openclaw
ОрганізаціяПопулярне

Використовуйте для будь-якої роботи з ClawSweeper: звітів про перевірку завдань і PR в OpenClaw, завдань із виправленнями, PR із хмарними виправленнями, команд згадки супроводжувача @clawsweeper, довірених автоматичних виправлень і автоматичного злиття, перевірених ClawSweeper, моніторингу GitHub Actions…

82.2K
391K
Файлів: 1
Відкрити
Логотип openclaw

Control Ui E2e

openclaw
ОрганізаціяПопулярне

Використовуйте під час проєктування, тестування, виправлення або розширення графічного інтерфейсу OpenClaw Control UI, зокрема для галерей стрес-тестування інтерфейсу зі зворотним зв’язком, наскрізних перевірок за допомогою Vitest + Playwright, сценаріїв Gateway із заглушками…

82.2K
391K
Файлів: 1
Відкрити

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇