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★ 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: UnionTypeinstead ofcontent: 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: ignorecomments 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
Установить story-based-framing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic