Agent skill
cognitive-architectures
Patterns from SOAR, ACT-R, and LIDA for advanced agent cognitive cycles
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/brain-andreibesleaga-gabbe-9
SKILL.md
Cognitive Architectures for Agents
Description
This skill provides implementation patterns derived from classic and modern Cognitive Architectures (SOAR, ACT-R, LIDA) to structure agent reasoning, memory, and decision-making processes beyond simple prompt engineering.
1. SOAR (State, Operator, And Result)
Core Idea: Intelligence is the ability to solve problems by navigating a "Problem Space" using "Operators."
Implementation Pattern: Proposal-Evaluation Cycle
Instead of a single "think" step, break agent reasoning into distinct phases:
- Elaboration: Calculate all immediate inferences from current state.
- Proposal: Generate candidate operators (actions/thoughts) for the current state.
- Evaluation: Score candidate operators using preferences (heuristics).
- Selection: Pick the best operator.
- Application: Execute it to change the state.
Code Metaphor:
def cognitive_cycle(state):
# 1. Elaboration
state = enrich_context(state)
# 2. Proposal
options = generate_candidates(state)
# 3. Evaluation
scored_options = evaluate_candidates(options, goal=state.goal)
# 4. Selection
best_op = select_winner(scored_options)
# 5. Application
new_state = apply_operator(state, best_op)
return new_state
2. ACT-R (Adaptive Control of Thought-Rational)
Core Idea: Human cognition relies on two distinct memory types: Declarative (Facts/Chunks) and Procedural (Production Rules).
Implementation Pattern: Activation-Based Retrieval
Do not retrieve all context. Retrieve context based on Activation (Recency + Frequency + Relevance).
- Base Level Activation: How often/recently was this chunk used?
- Associative Activation: How related is this chunk to the current focus?
Code Metaphor:
def retrieve_memory(query, memory_store):
for chunk in memory_store:
chunk.activation = log(chunk.frequency) - log(time_since_last_use) + similarity(query, chunk)
top_chunk = max(memory_store, key=lambda c: c.activation)
if top_chunk.activation > THRESHOLD:
return top_chunk
return None # Retrieval failure
3. LIDA (Learning Intelligent Distribution Agent)
Core Idea: The Cognitive Cycle of Perception -> Understanding -> Consciousness -> Action Selection. Implements Global Workspace Theory.
Implementation Pattern: The "Spotlight" of Consciousness
- Preconscious Buffers: Parallel agents process sensory data (e.g., visual, auditory, textual).
- Coalitions: Agents form "coalitions" of related information.
- Global Workspace: Coalitions compete for entry. The winner is "broadcast" to all other agents, recruiting resources to handle the current situation.
References
- Laird, J. (2012). The Soar Cognitive Architecture.
- Anderson, J. R. (2007). How Can the Human Mind Occur in the Physical Universe? (ACT-R).
- Franklin, S. (2006). The LIDA Architecture.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?