Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

cognitive-foundations认知基础

Agent Skill

cognitive-foundations 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

517

周安装

22

GitHub Stars

35

下载量

181
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:cognitive-foundations(认知基础)
来源仓库:https://github.com/petekp/claude-code-setup
仓库路径:skills/cognitive-foundations
安装命令:
npx skills add https://github.com/petekp/claude-code-setup --skill cognitive-foundations
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/petekp/claude-code-setup --skill cognitive-foundations

简介

cognitive-foundations 提供认知科学的底层原理与设计应用合约。

  • 适用于在 Codex、Claude、Cursor、Gemini CLI 中 grounding 设计决策于实证研究。
  • 输出单原则分析报告,链接 Fitts、Hick-Hyman 等定律到具体场景。
  • 支持注意力、感知与记忆失败的模式诊断。
  • 需结合领域知识选择适用原则,避免脱离上下文使用。

SKILL.md

Cognitive Foundations

The science of how minds work, and what that means for design.

When to Use This Skill

  • Explaining *why* a design works or fails (grounded in research, not opinion)
  • Evaluating cognitive load or working memory demands
  • Predicting user performance (Fitts, Hick-Hyman)
  • Diagnosing mental model misalignment
  • Justifying design decisions to stakeholders with evidence
  • Understanding attention, perception, or memory failures

Output Contracts

For Single-Principle Analysis

## Cognitive Principle: [Name]

**Principle**: [1-sentence explanation]

**Evidence in Design**: [Where/how this applies]

**Implication**: [Specific, actionable recommendation]

**Confidence**: [High/Medium/Low] — [rationale]

For Cognitive Audit (Comprehensive)

## Cognitive Audit: [Screen/Flow Name]

### Working Memory Load
- Items requiring recall: [count]
- Cross-screen memory demands: [Y/N]
- Verdict: [Acceptable / High / Overloaded]

### Attention Demands
- Preattentive features for critical info: [Y/N]
- Competing attention demands: [list]
- Change blindness risk: [areas where changes may go unnoticed]

### Mental Model Alignment
- Expected user model: [what users likely think]
- System behavior: [what actually happens]
- Gap: [mismatch, if any]

### Predictive Laws
- Fitts's Law concerns: [target size/distance issues]
- Hick's Law concerns: [choice overload areas]

### Gulf Analysis
- Gulf of Execution: [unclear how to act?]
- Gulf of Evaluation: [unclear what happened?]

### Violations of Nielsen's Heuristics
| Heuristic | Violation | Severity |
|-----------|-----------|----------|
| ... | ... | 1-4 |

### Recommendations
1. [Highest priority fix]
2. [Second priority]
3. [Third priority]

For Explaining a Failure

## Failure Analysis: [What Went Wrong]

**Observed Behavior**: [What users did]

**Cognitive Explanation**: [Which principle explains this]

**Root Cause**: [Design element that caused it]

**Fix**: [Specific change]

Quick Reference: Predictive Laws

LawFormulaRule of Thumb
Fitts's LawMT = a + b × log₂(2D/W)Bigger + closer = faster. Screen edges are infinite.
Hick-HymanRT = a + b × log₂(n+1)More choices = slower. Reduce or organize options.
Steering LawT = a + b × (A/W)Narrow paths are slow. Cascading menus are hard.
Power LawT = a × N^(-b)Practice helps. Design for learnability.

Quick Reference: Nielsen's 10 Heuristics

#HeuristicQuick Test
1Visibility of system statusCan user always tell what's happening?
2Match system ↔ real worldLanguage familiar? Metaphors sensible?
3User control and freedomEasy undo? Clear exits?
4Consistency and standardsSame words/actions mean same things?
5Error preventionConstraints prevent errors before they occur?
6Recognition over recallOptions visible? No memory required?
7Flexibility and efficiencyShortcuts for experts?
8Aesthetic and minimalistOnly relevant info? No clutter?
9Error recoveryErrors explained in plain language with fix?
10Help and documentationSearchable, task-focused, concise?

Quick Reference: Working Memory

  • Capacity: ~4 chunks (not 7)
  • Duration: ~20 seconds without rehearsal
  • Test: Count items user must hold in mind across screens/steps

Red flags:

  • "Remember this code and enter it on the next page"
  • Multi-step forms without visible progress/state
  • Complex comparisons requiring mental tracking

Quick Reference: Preattentive Features

Detected in <200ms, no focused attention required:

  • Color (hue, saturation)
  • Size (length, area)
  • Orientation (angle)
  • Motion (flicker, direction)
  • Shape (curvature, enclosure)

Use for: Critical info, errors, changes, status Don't use for: Everything (loses signal value)


Cognitive Load Checklist

Quick assessment for any interface:

FactorLow LoadHigh Load
Choices visible2-4 options10+ options
Memory demandsRecognitionRecall
Steps to goal1-3 clicks5+ clicks
InterruptionsNoneFrequent modals
Novel elementsFamiliar patternsNew conventions
Error recoveryClear undoDestructive actions
Visual complexityClean, groupedDense, undifferentiated

Scoring: Each "High Load" = +1. Score >3 = redesign needed.


Common Violations → Principle

SymptomLikely ViolationFix
Users don't notice changesChange blindnessAnimate, highlight transitions
Users can't find the buttonPoor Fitts's LawIncrease size, reduce distance
Users freeze at optionsHick's Law overloadReduce choices, progressive disclosure
Users forget mid-taskWorking memory exceededShow state, don't require recall
Users misunderstand stateGulf of EvaluationBetter feedback, visibility
Users click wrong thingPoor affordance/signifierClearer visual treatment
Users make same error repeatedlyMode errorVisible mode indicators
Users abandon complex formsCognitive loadChunk, scaffold, save progress

Process

  1. Identify cognitive demands — What is the interface asking the user to perceive, remember, decide, or do?
  2. Match to principles — Which cognitive constraints or laws apply?
  3. Evaluate alignment — Does the design respect or violate these?
  4. Recommend changes — Specific modifications grounded in the principle

Deep Reference Files

For comprehensive principles and research:

  • PSYCHOLOGY.md — Perception, memory, attention, biases, emotion, motivation
  • HCI-THEORY.md — Norman's model, predictive laws, error theory, research methods, heuristics

Primary Sources


Key Researchers

  • Don Norman: Affordances, gulfs, emotional design
  • Daniel Kahneman: Dual process theory, heuristics and biases
  • Stuart Card: GOMS, information foraging, Fitts's Law
  • Anne Treisman: Feature integration, preattentive processing
  • Jakob Nielsen: Usability heuristics, discount usability
  • Ben Shneiderman: Direct manipulation, golden rules

Remember

  • Cognitive science explains *why* design principles work
  • Individual differences exist—design for variability, not averages
  • Lab findings may not generalize (ecological validity matters)
  • Theory informs but doesn't replace observing real users
  • When in doubt, reduce cognitive load—users have less capacity than you think

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.4%
按下载量换算62

Claude

29.88%
按下载量换算54

Cursor

18.1%
按下载量换算33

Gemini CLI

9.29%
按下载量换算17

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills