Cognitive task analysis

From curiositech/windags-skills · View interactive version

Cognitive task analysis is an AI agent skill from the GitHub repository curiositech/windags-skills. Methodology for eliciting expert knowledge about cognitive processes, decisions, and mental models in complex tasks

How to use this skill

Skill file

Cognitive Task Analysis for Agent Systems

Expert knowledge elicitation methodology focused on capturing procedural knowledge, identifying automation gaps, and matching elicitation methods to knowledge architectures.

DECISION POINTS

Primary Branch: Diagnosing Agent Performance Gaps

Is expert performance significantly better than agent performance on this task?
├─ YES: Automation gap likely
│   ├─ Agent has correct facts but wrong execution → Declarative/procedural mismatch
│   │   └─ Action: Use observational methods + process tracing
│   └─ Agent lacks pattern recognition skills → Missing classification procedures  
│       └─ Action: Use think-aloud with expert cases + critical decision method
└─ NO: Knowledge completeness issue
    ├─ Agent fails on edge cases → Incomplete coverage
    │   └─ Action: Expand expert pool + use multiple elicitation methods
    └─ Agent inconsistent on similar cases → Representation format mismatch
        └─ Action: Audit method-to-format coupling + redesign knowledge base

Secondary Branch: Method Selection

What type of knowledge does this task primarily require?
├─ Declarative ("knowing that" - facts, concepts, relationships)
│   └─ Use: Concept mapping, structured interviews, card sorting
├─ Procedural-Classification ("knowing which" - pattern recognition)
│   └─ Use: Think-aloud with cases, critical decision method, paired comparisons
└─ Procedural-Execution ("knowing how" - step sequences)
    ├─ Expert can explain steps → Use: Process tracing, task decomposition
    └─ Expert cannot explain → Use: Observational shadowing + protocol analysis

Tertiary Branch: Knowledge Base Quality Assessment

How was this knowledge captured?
├─ Single method used → High risk of knowledge gaps
│   ├─ Interview/self-report only → Missing automated procedures
│   └─ Observation only → Missing conceptual frameworks
├─ Multiple methods used → Check method-knowledge type alignment
│   └─ Methods match knowledge types → Proceed to validation
└─ Unknown/undocumented → Assume incomplete capture
    └─ Action: Re-elicit with method triangulation

FAILURE MODES

1. Automation Gap Blindness

Detection: Agent performs poorly on tasks experts handle effortlessly, despite having "complete" knowledge base built from expert interviews

Root Cause: Automated expert knowledge is inaccessible to self-report; interview methods only capture conscious, declarative layer

Fix: Add observational methods (shadowing, process tracing) and think-aloud protocols during actual task performance

2. Representation Bias

Detection: Knowledge base structure suspiciously mirrors intended output format (e.g., all knowledge fits cleanly into IF-THEN rules)

Root Cause: Output format drove method selection instead of knowledge type driving method selection

Fix: Re-elicit using methods matched to knowledge architecture, then adapt representation format to captured knowledge

3. Single-Method Tunnel Vision

Detection: All domain knowledge captured using one elicitation technique; gaps appear in specific contexts

Root Cause: Belief that one method can capture all knowledge types; ignores differential access hypothesis

Fix: Map knowledge types required by task, select complementary methods for each type, triangulate results

4. Expert Reconstruction Fallacy

Detection: Expert explanations are overly logical/linear; agent follows explanations but fails on expert-level cases

Root Cause: Experts construct plausible post-hoc narratives rather than reporting actual cognitive process

Fix: Use concurrent protocols (think-aloud during task) rather than retrospective explanations

5. Typological Skill Proliferation

Detection: Skill library grows continuously without consolidation; routing failures increase with library size

Root Cause: Skills organized by surface features rather than knowledge architecture; lacks theoretical organizing principle

Fix: Classify skills by knowledge type produced/consumed; consolidate using Hempel's reduction criterion

WORKED EXAMPLES

Example 1: Medical Diagnosis Agent Underperformance

Scenario: Radiologist expert can spot lung nodules in chest X-rays with 95% accuracy in 3 seconds. AI agent trained on same images achieves 78% accuracy with 30-second processing.

Expert Interview Attempt:

Initial Implementation: Rule-based system checking density thresholds, shape parameters, systematic scanning pattern. Performance: 65% accuracy.

CTA Method Application:

  1. Knowledge Type Analysis: Task requires procedural-classification (pattern recognition), not declarative facts
  2. Method Selection: Think-aloud during live cases + eye-tracking observation
  3. Key Finding: Expert gaze patterns showed 200ms fixations on suspicious regions before conscious recognition; automated pattern matching occurred before declarative knowledge activated

Outcome: Redesigned agent with pattern recognition model trained on expert gaze data + semantic features. Performance: 91% accuracy.

What Novice Missed: Assumed expert's verbal explanation captured actual recognition process

What Expert Caught: Distinguished between post-hoc explanation and real-time cognitive process

Example 2: Financial Trading Decision System

Scenario: Expert trader makes profitable split-second decisions on market volatility. Initial agent built from trading strategy documents performs poorly.

Document Analysis Approach: Extracted rules from strategy documents: "When VIX > 25 and S&P drops > 2%, buy volatility protection..."

Performance: 23% of trades profitable (random chance ≈ 30%)

CTA Method Application:

  1. Failure Mode Diagnosis: Automation gap - documents contain conscious strategies, not automated pattern recognition
  2. Method Selection: Concurrent protocol analysis during live trading + retrospective critical decision method
  3. Knowledge Architecture: Found three layers:

Key Discovery: Expert's profitable decisions came from recognizing subtle momentum patterns in real-time price action, not from following documented strategies.

Redesign: Hybrid system combining formal strategies (for position direction) with pattern recognition model (for timing and sizing).

Performance: 67% profitable trades.

Example 3: Customer Service Routing System

Scenario: Expert human router assigns customer inquiries to specialist teams with 94% first-contact resolution. Automated system achieves 71%.

Initial Approach: Keyword matching based on inquiry categories expert provided in interview.

CTA Application:

  1. Method: Concurrent think-aloud + case comparison method
  2. Discovery: Expert used multiple information sources simultaneously:

Critical Insight: Expert performed multi-dimensional classification, not single-category assignment. Keyword approach captured only one dimension.

Implementation: Multi-factor routing algorithm weighing content classification, sentiment analysis, customer history clustering, and real-time team capacity.

Result: 89% first-contact resolution.

QUALITY GATES

NOT-FOR BOUNDARIES

Do NOT use CTA for:

Delegate instead:

This skill is specifically for capturing expert cognitive processes that are:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.