Логотип Skills Smart Manager

Skills Smart Manager

Сообщество
valorisa
skills-smart-manager

Meta-skill for skill lifecycle management. Monitors active skills, optimizes context window by unloading stale skills, detects dependency conflicts, recommends skills based on project type, performs health checks on MCP servers and APIs, and archives session memory for efficient future loading. Use when user says "optimize skills", "clean up context", "manage skills", "free tokens", "skill health check", "session feels slow", or when context >60% and multiple skills loaded. Also auto-triggers on project type switches (e.g., "done with Figma, let's code Rust").

Обзор

Издательvalorisa
РепозиторийClaude-Skills
Название навыкаskills-smart-manager
Звёзды
20
Форки
5
Файлы в комплекте
3
ЛицензияMIT
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 3

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

  • Открытый исходный код

    Издатель навыка на GitHub — valorisa. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Skills Smart Manager в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/valorisa/Claude-Skills/tree/main/skills/skills-smart-manager
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/valorisa/Claude-Skills.git /tmp/Claude-Skills
mkdir -p .claude/skills
cp -r /tmp/Claude-Skills/skills/skills-smart-manager .claude/skills/skills-smart-manager
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Skills Smart Manager в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Skills Smart Manager, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Skills Smart Manager не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

Skills Smart Manager

Overview

Core principle: Skills should be loaded only when actively needed. Stale or irrelevant skills waste precious context tokens, slow down response times, and can create conflicts.

This meta-skill acts as an orchestrator for your entire skill ecosystem. It monitors, analyzes, and optimizes the lifecycle of all active skills throughout your Claude Code sessions.

Key capabilities:

  1. Context Bloat Prevention — Detects and unloads skills not invoked in >15 turns
  2. Dependency Management — Ensures prerequisite skills are active
  3. Smart Recommendations — Suggests skills based on project files (Cargo.toml → rust skills)
  4. Health Checks — Verifies MCP servers and API endpoints are responding
  5. Garbage Collection — Cleans up temporary files generated by other skills
  6. Conflict Detection — Identifies contradictory skills (e.g., formatters with conflicting rules)
  7. Session Memory — Archives optimal skill configuration per repository

When to Use This Skill

Automatic Triggers

  • Context window >60% and ≥3 skills loaded
  • User switches project domains ("done with design, let's code")
  • Session feels slow or unresponsive
  • Rate limit warnings appear

Manual Invocation

bash
/skills-smart-manager

Or mention:

  • "optimize my skills"
  • "clean up loaded skills"
  • "why is this session slow?"
  • "manage my context"
  • "skill health check"

Instructions

Step 1: Analyze Current Session State

Run the context analyzer to get a complete picture:

bash
python3 scripts/analyze_context.py --action scan

Expected output:

json
{
  "active_skills": ["tdd-hybrid", "token-optimization", "rescue-tokens", "diagnose"],
  "last_invoked": {
    "tdd-hybrid": 2,
    "token-optimization": 0,
    "rescue-tokens": 18,
    "diagnose": 45
  },
  "estimated_token_footprint": {
    "tdd-hybrid": 3200,
    "token-optimization": 2800,
    "rescue-tokens": 1900,
    "diagnose": 2400
  },
  "total_skill_tokens": 10300,
  "context_percentage": 68,
  "project_type_detected": "rust-cargo"
}

Step 2: Evaluate Skill Relevance

Apply garbage collection criteria:

Criterion 1: Staleness

Skill not invoked for >15 user/assistant interaction turns.

Rationale: If a skill hasn't been needed recently, it's probably not relevant to current work.

Criterion 2: Domain Mismatch

Project files changed in a way that makes the skill irrelevant.

Examples:

  • figma-handoff skill active, but no .fig files in working directory
  • rust-best-practices skill active, but Cargo.toml was deleted
  • docker-compose skill active, but docker-compose.yml removed
Criterion 3: Conflicts

Skill contradicts a higher-priority active skill.

Common conflicts (see references/conflict-rules.md):

  • Multiple formatter skills (Prettier vs Standard vs custom rules)
  • Multiple linter skills with incompatible rule sets
  • Multiple testing framework skills (Jest vs Vitest)

Step 3: Recommend Actions

Based on analysis, prepare a recommendation report for the user:

markdown
### Skills Smart Manager Report

**Context Status:** 68% full (10,300 tokens from skills alone)

**Recommendations:**

1. **UNLOAD** `diagnose` — Not used in 45 turns, saving ~2,400 tokens
2. **UNLOAD** `token-optimization` — Not used this session, saving ~2,800 tokens
3. **KEEP** `tdd-hybrid` — Active (last used 2 turns ago)
4. **KEEP** `rescue-tokens` — Active (last used 18 turns ago, but relevant to context pressure)

**Detected Project Type:** Rust/Cargo

**Missing Recommended Skills:**
- `rust-best-practices` — Cargo.toml detected
- `cargo-optimizer` — Recommended for Rust projects

**Total Potential Savings:** ~5,200 tokens (50% reduction in skill footprint)

**Apply these changes?** (yes/no)

Step 4: Execute Optimization (if approved)

bash
# Unload specific skill
python3 scripts/analyze_context.py --action unload --skill diagnose

# Or batch unload multiple
python3 scripts/analyze_context.py --action unload --skills diagnose,token-optimization

Step 5: Archive Session Memory (optional)

If this is a repository the user works in frequently, create a .skill-memory.json file:

bash
python3 scripts/analyze_context.py --action archive

Output: .skill-memory.json in project root

json
{
  "repository": "github.com/user/project",
  "project_type": "rust-cargo",
  "recommended_skills": ["tdd-hybrid", "rust-best-practices", "cargo-optimizer"],
  "avoid_skills": ["diagnose", "token-optimization"],
  "last_updated": "2026-05-28T18:45:00Z"
}

Benefit: Next session in this repo will pre-load optimal skills automatically.


Step 6: Health Check (Optional Proactive Mode)

Verify that dependencies for active skills are healthy:

bash
python3 scripts/analyze_context.py --action health-check

Checks performed:

  1. MCP servers are reachable (/ping endpoint)
  2. Required API keys are set (GitHub token, OpenAI key, etc.)
  3. CLI tools are installed (gh, docker, cargo, etc.)
  4. File paths referenced in skills exist

Example output:

✅ GitHub MCP — Responding (72ms)
❌ OpenAI API — Key not found in environment
✅ `gh` CLI — Installed (v2.40.1)
⚠️  `docker` — Installed but daemon not running

Examples

Example 1: Session Feels Slow

User says: "This session is really sluggish today. What's going on?"

Actions:

  1. Skill auto-triggers (matches "sluggish" + "session")

  2. Run analyze_context.py --action scan

  3. Discover 8 heavy documentation skills loaded from previous project work

  4. Present report:

    Found 8 skills using ~18,000 tokens that haven't been invoked this session:
    - vercel:deployment-expert (4,200 tokens)
    - vercel:performance-optimizer (3,800 tokens)
    - docker-compose-wizard (2,900 tokens)
    - ...
    
    Recommendation: Unload all 8 → saves 18,000 tokens (42% context reduction)
  5. User approves → unload all 8

  6. Confirm: "Context optimized. Freed 18,000 tokens. Session should be faster now."

Result: Context reduced from 78% to 36%, response latency improves.


Example 2: Project Domain Switch

User says: "Okay, I'm done with the Figma design work. Let's switch to writing the Rust backend."

Actions:

  1. Skill auto-triggers (matches domain switch phrase)

  2. Run analyze_context.py --action scan

  3. Detect:

    • figma-handoff currently active
    • design-system currently active
    • Working directory now contains Cargo.toml
  4. Present recommendation:

    Domain switch detected: Design → Rust Backend
    
    **Unload:**
    - figma-handoff (no longer relevant)
    - design-system (no longer relevant)
    
    **Load:**
    - rust-best-practices (Cargo.toml detected)
    - cargo-optimizer (recommended for Rust projects)
    
    Proceed?
  5. User approves → swap skills

  6. Confirm: "Skills updated. Ready for Rust development."

Result: Context stays clean, relevant skills active.


Example 3: Conflict Detection

User says: "Why is my code being formatted inconsistently?"

Actions:

  1. Skill auto-triggers (formatting issue likely skill conflict)

  2. Run analyze_context.py --action scan

  3. Detect conflict:

    • prettier-formatter active (priority: 5)
    • standard-js-linter active (priority: 3)
    • Both modify JavaScript formatting
  4. Check references/conflict-rules.md:

    CONFLICT: prettier-formatter vs standard-js-linter
    Reason: Overlapping formatting rules
    Resolution: Keep higher priority (prettier-formatter), unload standard-js-linter
  5. Present recommendation:

    Conflict detected:
    - prettier-formatter (priority 5)
    - standard-js-linter (priority 3)
    
    These skills have overlapping formatting rules.
    
    Recommendation: Keep prettier-formatter, unload standard-js-linter
  6. User approves → unload conflicting skill

Result: Consistent formatting behavior.


Action Matrix

Quick reference for common scenarios:

SymptomRoot CauseAction
Session slow, high context %Too many stale skillsScan → unload unused
Formatting inconsistentConflicting formatter skillsDetect conflict → resolve
Skill not workingMissing dependency skillCheck dependencies → load prereqs
Domain switchSkills from old domain still loadedDetect switch → swap skills
API errorsMCP server downHealth check → restart or disable
Unknown projectFirst time in repoDetect project type → recommend skills
Temp files everywhereSkills not cleaning upGarbage collect → delete temps

Garbage Collection Rules

Skills often generate temporary files. Clean these up automatically:

Common temporary artifacts:

  • *.skill-temp.* — General skill temp files
  • .claude-export-*.pdf — PDF exports
  • .skill-cache/ — Skill cache directories
  • diagnose-*.log — Diagnostic logs
  • llm-council-report-*.md — Council reports (unless user saved them)

Cleanup command:

bash
python3 scripts/analyze_context.py --action gc

Safety: Only deletes files matching known temporary patterns. Never deletes user files.


Troubleshooting

Issue: analyze_context.py returns "Permission denied"

Cause: Script doesn't have execute permission or can't access .claude/settings.json

Fix:

bash
chmod +x /Users/valorisa/.claude/skills/skills-smart-manager/scripts/analyze_context.py

Or manually disable skills via /skills command.


Issue: Unloaded a skill that was still needed

Cause: Staleness threshold (15 turns) too aggressive for your workflow

Fix:

  1. Skill metadata is preserved. Reactivate instantly:

    text
    Load the [skill-name] skill again
  2. Adjust staleness threshold in script:

    bash
    python3 scripts/analyze_context.py --action scan --staleness-threshold 30

Issue: False positive conflict detection

Cause: references/conflict-rules.md has incorrect rule

Fix:

  1. Edit references/conflict-rules.md
  2. Remove or adjust the conflicting rule entry
  3. Re-run scan

Issue: Recommended skill doesn't exist

Cause: Project type detection suggests skill not in your collection

Fix:

Recommendations are just suggestions. You can:

  • Ignore the suggestion
  • Install the recommended skill from community
  • Update project type mappings in references/project-type-skills.json

Progressive Disclosure

Level 1 (This document): High-level instructions and action matrix

Level 2 (Supporting files):

  • scripts/analyze_context.py — Core analysis engine
  • references/conflict-rules.md — Skill conflict resolution rules
  • references/project-type-skills.json — Project type → recommended skills mapping
  • assets/report-template.md — Template for user-facing reports

Level 3 (Script internals):

See scripts/analyze_context.py --help for full CLI documentation.


Skill Dependencies

This skill depends on:

  • Python 3.7+ (for analysis script)
  • Bash (for file operations)
  • Access to .claude/ directory (read skill metadata)

Optional:

  • jq (for JSON parsing in shell scripts)
  • Git (for repository detection)

Integration with Other Skills

Works well with

  • token-optimization — Shares same goal (reduce token waste)
  • rescue-tokens — Emergency counterpart (this is proactive, that's reactive)
  • setup-matt-pocock-skills — Configures skill infrastructure

Conflicts with

  • None known

Advanced: Automatic Background Mode

For power users: Enable automatic background optimization.

Add to .claude/settings.json:

json
{
  "hooks": {
    "on-context-threshold": {
      "threshold": 60,
      "command": "python3 ~/.claude/skills/skills-smart-manager/scripts/analyze_context.py --action scan --auto-unload"
    }
  }
}

Behavior: When context hits 60%, automatically unload stale skills without prompting.

Risk: Might unload skills you still need. Use with caution.


Metrics

Track optimization impact over time:

bash
python3 scripts/analyze_context.py --action metrics

Output:

Skills Smart Manager — Session Metrics

Total optimizations performed: 12
Total tokens saved: 87,400
Average session context: 34% (down from 68%)
Skills unloaded: 23
Skills reloaded: 4
False positives: 1 (4% rate)

Most commonly unloaded skills:
1. diagnose (8 times)
2. token-optimization (7 times)
3. vercel:deployment-expert (5 times)

Philosophy

Skills are tools, not decorations. Just like you wouldn't keep every tool in your toolbox open on your workbench, you shouldn't keep every skill loaded in your context.

Load when needed. Unload when done.

This skill enforces that discipline automatically.


Contributing

Found a better heuristic for staleness detection? Discovered a new conflict pattern? Contributions welcome!

See project CONTRIBUTING.md for guidelines.


License

MIT License — Part of valorisa/Claude-Skills collection

Файлы в комплекте

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ Skills Smart Manager?

Meta-skill for skill lifecycle management. Monitors active skills, optimizes context window by unloading stale skills, detects dependency conflicts, recommends skills based on project type, performs health checks on MCP servers and APIs, and archives session memory for efficient future loading. Use when user says "optimize skills", "clean up context", "manage skills", "free tokens", "skill health check", "session feels slow", or when context >60% and multiple skills loaded. Also auto-triggers on project type switches (e.g., "done with Figma, let's code Rust").

Зачем использовать Skills Smart Manager в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Skills Smart Manager — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Skills Smart Manager в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/valorisa/Claude-Skills/tree/main/skills/skills-smart-manager. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Skills Smart Manager?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Skills Smart Manager?

С любым количеством. В TypingMind вы можете использовать Skills Smart Manager с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Skills Smart Manager?

Да. Навык опубликован на GitHub по лицензии MIT. Издатель — valorisa. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все
Логотип openclaw

Openclaw Repair Sweep

openclaw
ОрганизацияПопулярный

Проводите кампании по исправлению выбранных проблем и PR в OpenClaw: координируйте исполнителей, устанавливайте первопричины и вносите исправления или закрывайте проверенные задачи в пределах запрошенных полномочий.

82.2K
391K
Файлы: 1
Открыть
Логотип openclaw

Openclaw Test Performance

openclaw
ОрганизацияПопулярный

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

82.2K
391K
Файлы: 1
Открыть
Логотип openclaw

Openclaw Testing

openclaw
ОрганизацияПопулярный

Выбирайте подходящие по масштабу тесты и проверки OpenClaw, диагностируйте сбои и направляйте вопросы, зависящие от окружения, и подтверждение релиза ответственным за них специалистам.

82.2K
391K
Файлы: 2
Открыть
Логотип openclaw

Release Openclaw Ci

openclaw
ОрганизацияПопулярный

Запускайте и отслеживайте полный CI-процесс релиза OpenClaw, проверки релиза, контрольные проверки подключений к рабочим провайдерам, подтверждения установки и обновления, а также предварительные проверки секретов релиза; разбирайте ошибки и составляйте сводки.

82.2K
391K
Файлы: 3
Открыть

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇