Command Palette

Search for a command to run...

Назад к скиллам
скилл № 11736

knowledge-capture

AI self-monitoring skill. Triggers proactively when AI detects confusion or makes corrected mistakes (wrong DB schema, incorrect assumptions, user corrections…

БесплатноБез исполняемых скриптов
eltmonот eltmon★ 36 звёзд на GitHub

Установить knowledge-capture в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Knowledge Capture

This skill helps AI assistants recognize their own confusion and systematically capture project-specific knowledge to prevent repeated mistakes.

When to Trigger (Self-Assessment)

IMPORTANT: This skill is NOT user-invoked. As the AI, you should proactively invoke this when you detect ANY of these situations:

High-Confidence Triggers (Always Invoke)

  1. Database Schema Mistakes [category: database]

    • Queried a column that doesn't exist
    • Used wrong column name (e.g., user_id vs userId vs owner_id)
    • Assumed an index exists that doesn't
    • Got foreign key relationships wrong
    • Example: "SELECT created_at FROM users" → Error: column "created_at" doesn't exist (it's "createdAt")
  2. User Corrections on Architecture [category: architecture]

    • User corrects you on how a system component works
    • User explains a non-obvious design pattern in use
    • User clarifies that "we don't do it that way here"
    • Example: "Actually, we use event sourcing here, not direct DB updates"
  3. API/Interface Misunderstandings [category: api]

    • Called an API endpoint that doesn't exist
    • Used wrong HTTP method or payload structure
    • Misunderstood authentication flow
    • Example: Assumed REST when it's GraphQL
  4. Build/Deploy Confusion [category: build]

    • Wrong build commands for this project
    • Incorrect environment variable names
    • Misunderstood the deployment pipeline
    • Example: "npm run build" fails because project uses "pnpm build:prod"

Medium-Confidence Triggers (Invoke After 2+ Occurrences)

  1. Naming Convention Mismatches [category: naming]

    • Used camelCase when project uses snake_case (or vice versa)
    • Got file naming patterns wrong
    • Misnamed components/modules
  2. Testing Approach Misalignment [category: testing]

    • Wrote unit tests when project prefers integration tests
    • Used wrong test framework or patterns
    • Missed required test coverage patterns
  3. Code Style Conflicts [category: style]

    • Used patterns the codebase explicitly avoids
    • Suggested dependencies the project doesn't allow
    • Architectural patterns that conflict with project conventions

Low-Confidence Triggers (Check Config First)

  1. Minor Corrections [category: preferences]
    • Small preference corrections from user
    • "We prefer X over Y" statements
    • Style guide clarifications

Invocation Protocol

Step 0: Check for Permanent Override

FIRST, check if user has permanently disabled this skill:

# If project has override skill, this skill is permanently disabled
if [ -f ".claude/skills/knowledge-capture/SKILL.md" ]; then
  # User has "shut up forever" - do nothing
  exit 0
fi

If override exists, do not prompt - the user has explicitly disabled this skill.

Step 0.5: Check User Preferences for Category Exclusions

Check ~/.overdeck/context/global.md for excluded categories:

grep -A 20 "## AI Suggestion Preferences" ~/.overdeck/context/global.md 2>/dev/null

Look for sections like:

## AI Suggestion Preferences

### knowledge-capture
skip: database, authentication, infrastructure

If the current trigger category is in the skip list, do not prompt.

Step 1: Check Configuration

cat .overdeck/knowledge-capture.json 2>/dev/null || echo "{}"

Default configuration (if file doesn't exist):

{
  "enabled": true,
  "mode": "normal",
  "promptCooldownMinutes": 30,
  "lastPromptTimestamp": null,
  "capturedCount": 0,
  "dismissedCount": 0,
  "sessionDismissals": 0
}

Mode settings:

  • "aggressive" - Prompt on every trigger
  • "normal" - Prompt on high/medium triggers, respect cooldown
  • "minimal" - Only high-confidence triggers, longer cooldown
  • "silent" - Log but never prompt (user said "shut up")
  • "disabled" - Completely off

Step 2: Respect Cooldowns and Dismissals

// Pseudocode for decision
if (mode === "disabled") return; // Do nothing
if (mode === "silent") { logInternally(); return; }
if (sessionDismissals >= 3) return; // User said "not now" 3 times
if (Date.now() - lastPromptTimestamp < cooldownMinutes * 60000) return;

Step 3: Present to User

When conditions are met, present the learning opportunity:


Knowledge Capture Opportunity [category: {CATEGORY}]

I just encountered confusion about [SPECIFIC THING]:

  • What I assumed: [YOUR ASSUMPTION]
  • What's actually true: [THE CORRECTION]

This seems like project-specific knowledge that would help me (and other AI assistants) avoid this mistake in the future.

Would you like to capture this as project documentation?

Option What happens
Yes, create skill I'll draft a project-specific skill with this knowledge
Yes, add to CLAUDE.md I'll add a note to the project's CLAUDE.md file
Not now Skip this time (I'll ask less frequently)
*
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл knowledge-capture?

AI self-monitoring skill. Triggers proactively when AI detects confusion or makes corrected mistakes (wrong DB schema, incorrect assumptions, user corrections on key insights). Prompts to capture learnings as project-specific skills. NOT user-invoked - AI should reference this when confused.

Как установить скилл knowledge-capture?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл knowledge-capture запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить knowledge-capture с