Command Palette

Search for a command to run...

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

story-based-framing

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

This skill should be used when describing patterns or anti-patterns for detection by LLM agents across any domain (code analysis, business processes, security…

BbgnsurfTechот BbgnsurfTech★ 30 звёзд на GitHub

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

Story-Based Framing for Pattern Detection

Overview

Story-based framing uses narrative structure to describe patterns and anti-patterns across any domain, enabling LLM agents to identify them 70% faster than traditional approaches (checklists, formal specifications, or symptom-based descriptions). Experimental evidence from code analysis shows narrative descriptions requiring only 3 search steps versus 10 steps for refactoring-style descriptions.

The technique structures pattern descriptions as a causal story that mirrors the investigation thought process, frontloading the most distinctive criteria to eliminate false positives early. This approach is domain-independent - it works for code analysis, business process audits, security reviews, UX analysis, data quality checks, medical diagnosis, and any systematic pattern detection task.

When to Use This Skill

Use story-based framing when:

  • Creating pattern descriptions for LLM agents to identify in any domain
  • Documenting anti-patterns, failure modes, or problematic behaviors
  • Delegating pattern-finding tasks to sub-agents
  • Designing automated detection or review workflows
  • Building checklists that need to prioritize distinctive criteria
  • Teaching pattern recognition to humans or AI systems

Applies to any domain where patterns need to be detected:

  • Software: Code smells, architectural issues, security vulnerabilities
  • Business: Process inefficiencies, communication breakdowns, requirement gaps
  • Security: Misconfigurations, access control issues, compliance violations
  • UX/Design: Dark patterns, accessibility issues, false affordances
  • Data: Quality issues, pipeline failures, stale caches
  • Medical: Diagnostic patterns, symptom clusters, treatment protocols
  • Operations: Incident patterns, resource bottlenecks, failure cascades

Core Narrative Structure

Story-based pattern descriptions follow a four-act structure that establishes causal relationships:

flowchart TD
    Start([Pattern Detection Task]) --> Act1[Act 1: The Promise<br/>What the system claims to do<br/>or appears correct]
    Act1 --> Act2[Act 2: The Betrayal<br/>Where reality violates the promise]
    Act2 --> Act3[Act 3: The Consequences<br/>Observable symptoms from violation]
    Act3 --> Act4[Act 4: The Source<br/>Root cause explanation]
    Act4 --> Fix[The Fix<br/>Resolution approach]
    Fix --> End([Pattern Documented])

    Act1 -.->|Filters 90% non-matches| Search1[Search Impact: Most distinctive criterion]
    Act2 -.->|Narrows to true matches| Search2[Search Impact: Second distinctive criterion]
    Act3 -.->|Validates matches| Search3[Search Impact: Verification criteria]
    Act4 -.->|Informs fixes| Search4[Search Impact: Understand if isolated or systemic]

Act 1: The Promise

Describe what the system/process/code claims to do or appears to implement correctly at first glance.

Purpose: Establish the initial correct-looking state that creates false confidence.

Examples across domains:

  • Code: "A generic class Container(Generic[T]) promises to preserve type T throughout its operations."
  • Business: "The approval workflow promises that all requests are reviewed within 24 hours."
  • Security: "The firewall configuration claims to restrict access to authorized IP ranges only."
  • UX: "The 'Skip' button appears to offer users a choice to bypass the upsell."

Search Impact: Identifies the most distinctive structural criterion that filters 90% of non-matches immediately.

Act 2: The Betrayal

Reveal where the implementation/reality violates the promise.

Purpose: Show the specific point where correctness breaks down.

Examples across domains:

  • Code: "But the constructor accepts content: UnionType instead of content: T, storing a union type rather than the promised generic parameter."
  • Business: "But requests from certain departments bypass the approval queue entirely, going straight to completion."
  • Security: "But the configuration includes a rule allowing 0.0.0.0/0 that overrides all other restrictions."
  • UX: "But clicking 'Skip' actually selects the default upsell option and only skips the payment method selection."

Search Impact: Provides the second most distinctive criterion that narrows remaining candidates to true matches.

Act 3: The Consequences

Describe the observable symptoms that result from the violation.

Purpose: Provide verification criteria that confirm the pattern is present.

Examples across domains:

  • Code: "Methods contain isinstance() checks and # type: ignore comments to work around the type mismatch."
  • Business: "Teams report inconsistent response times, and audit logs show approval timestamps that don't match reality."
  • Security: "Penetration tests successfully access restricted resources from unauthorized networks."
  • UX: "Customer complaints increase by 40%, with users reporting 'hidden fees' and
Полный SKILL.md на GitHub

Установить story-based-framing в Claude Code и Claude Desktop

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

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

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

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

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

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

Вложенные файлы

assets/narrative_structure.txtassets/narrative_template.mdreferences/cross_domain_examples.mdresources/code-analysis/example_patterns.mdresources/code-analysis/experiment_results.mdresources/code-analysis/practical_guide.md

FAQ

Что делает скилл story-based-framing?

This skill should be used when describing patterns or anti-patterns for detection by LLM agents across any domain (code analysis, business processes, security audits, UX design, data quality, medical diagnosis, etc.). Uses narrative storytelling structure ("The Promise" → "The Betrayal" → "The Consequences" → "The Source") to achieve 70% faster pattern identification compared to checklist or formal specification approaches. Triggers when creating pattern descriptions for any systematic analysis, detection tasks, or when delegating pattern-finding to sub-agents.

Как установить скилл story-based-framing?

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

Скилл story-based-framing запускает скрипты?

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

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

Сравнить story-based-framing с