Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

contextual-pattern-learning

БесплатноБез исполняемых скриптовНе проверен

Advanced contextual pattern recognition with project fingerprinting, semantic similarity analysis, and cross-domain pattern matching for enhanced learning…

bejranondaот bejranonda★ 28 звёзд на GitHub13 установок в других каталогах

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

Contextual Pattern Learning Skill

Provides advanced pattern recognition capabilities that understand project context, compute semantic similarities, and identify transferable patterns across different codebases and domains.

Core Capabilities

Project Fingerprinting

Multi-dimensional Project Analysis:

  • Technology Stack Detection: Languages, frameworks, libraries, build tools
  • Architectural Patterns: MVC, microservices, monolith, serverless, etc.
  • Code Structure Analysis: Module organization, dependency patterns, coupling metrics
  • Team Patterns: Coding conventions, commit patterns, testing strategies
  • Domain Classification: Business domain, problem space, user type

Fingerprint Generation:

project_fingerprint = {
    "technology_hash": sha256(sorted(languages + frameworks + libraries)),
    "architecture_hash": sha256(architectural_patterns + structural_metrics),
    "domain_hash": sha256(business_domain + problem_characteristics),
    "team_hash": sha256(coding_conventions + workflow_patterns),
    "composite_hash": combine_all_hashes_with_weights()
}

Context Similarity Analysis

Multi-factor Similarity Calculation:

  1. Technology Similarity (40%): Language/framework overlap
  2. Architectural Similarity (25%): Structure and design patterns
  3. Domain Similarity (20%): Business context and problem type
  4. Scale Similarity (10%): Project size and complexity
  5. Team Similarity (5%): Development practices and conventions

Semantic Context Understanding:

  • Intent Recognition: What the code is trying to accomplish
  • Problem Space Analysis: What category of problem being solved
  • Solution Pattern Matching: How similar problems are typically solved
  • Contextual Constraints: Performance, security, maintainability requirements

Pattern Classification System

Primary Classifications:

  • Implementation Patterns: Feature addition, API development, UI components
  • Refactoring Patterns: Code cleanup, optimization, architectural changes
  • Debugging Patterns: Bug fixing, issue resolution, problem diagnosis
  • Testing Patterns: Test creation, coverage improvement, test maintenance
  • Integration Patterns: Third-party services, databases, external APIs
  • Security Patterns: Authentication, authorization, vulnerability fixes

Secondary Attributes:

  • Complexity Level: Simple, moderate, complex, expert
  • Risk Level: Low, medium, high, critical
  • Time Sensitivity: Quick fix, planned work, research task
  • Collaboration Required: Solo, pair, team, cross-team

Cross-Domain Pattern Transfer

Pattern Transferability Assessment:

def calculate_transferability(pattern, target_context):
    technology_match = calculate_tech_overlap(pattern.tech, target_context.tech)
    domain_similarity = calculate_domain_similarity(pattern.domain, target_context.domain)
    complexity_match = assess_complexity_compatibility(pattern.complexity, target_context.complexity)

    transferability = (
        technology_match * 0.4 +
        domain_similarity * 0.3 +
        complexity_match * 0.2 +
        pattern.success_rate * 0.1
    )

    return transferability

Adaptation Strategies:

  • Direct Transfer: Pattern applies without modification
  • Technology Adaptation: Same logic, different implementation
  • Architectural Adaptation: Same approach, different structure
  • Conceptual Transfer: High-level concept, complete reimplementation

Pattern Matching Algorithm

Context-Aware Similarity

Weighted Similarity Scoring:

def calculate_contextual_similarity(source_pattern, target_context):
    # Technology alignment (40%)
    tech_score = calculate_technology_similarity(
        source_pattern.technologies,
        target_context.technologies
    )

    # Problem type alignment (30%)
    problem_score = calculate_problem_similarity(
        source_pattern.problem_type,
        target_context.problem_type
    )

    # Scale and complexity alignment (20%)
    scale_score = calculate_scale_similarity(
        source_pattern.scale_metrics,
        target_context.scale_metrics
    )

    # Domain relevance (10%)
    domain_score = calculate_domain_relevance(
        source_pattern.domain,
        target_context.domain
    )

    return (
        tech_score * 0.4 +
        problem_score * 0.3 +
        scale_score * 0.2 +
        domain_score * 0.1
    )

Pattern Quality Assessment

Multi-dimensional Quality Metrics:

  1. Outcome Quality: Final result quality score (0-100)
  2. Process Efficiency: Time taken vs. expected time
  3. Error Rate: Number and severity of errors encountered
  4. Reusability: How easily the pattern can be applied elsewhere
  5. Adaptability: How much modification was needed for reuse

Quality Evolution Tracking:

  • Initial Quality: Quality when first captured
  • Evolved Quality: Updated quality after
Полный SKILL.md на GitHub

Установить contextual-pattern-learning в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл contextual-pattern-learning?

Advanced contextual pattern recognition with project fingerprinting, semantic similarity analysis, and cross-domain pattern matching for enhanced learning capabilities

Как установить скилл contextual-pattern-learning?

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

Скилл contextual-pattern-learning запускает скрипты?

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

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

Сравнить contextual-pattern-learning с