cognitive-architectures

Design modular cognitive architectures with memory, action spaces, and decision loops for language agents.

Updated Feb 20, 2026
One-click install
npx skills add https://github.com/KrystianYCSilva/math-theory-lib --skill cognitive-architectures
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cognitive-architectures
Source: https://github.com/KrystianYCSilva/math-theory-lib/tree/main/.codex/skills/cognitive-architectures
Command: npx skills add https://github.com/KrystianYCSilva/math-theory-lib --skill cognitive-architectures

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps engineers and researchers move beyond stateless prompt-response interactions by defining modular, stateful cognitive architectures that manage memory, perception, action selection, and planning to produce reliable, goal-directed language agents.

Core Features & Use Cases

  • Modular Memory Models: Patterns for working, episodic, semantic, and procedural memory with recommendations for hybrid (keyword + vector) retrieval and memory decay.
  • Action Space & Tool Integration: Guidance on defining external and internal actions, token-efficient tool descriptions, and structured outputs (JSON) for tool arguments.
  • Decision Loop & Safety: Decision-making templates (ReAct, OODA, Plan-and-Solve), reflection strategies, retry/fallback controls, and mitigation for context overflow and action loops.
  • Use Case: Build an autonomous assistant that preserves long-term user preferences, plans multi-step tasks, and safely integrates APIs and knowledge stores.

Quick Start

Design an agent that records the last 10 interactions in episodic memory, summarizes them into semantic memory, and uses a ReAct-style decision loop to select tools and actions.

Frequently Asked Questions about cognitive-architectures

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a stateful LLM agent with memory and planning?

A cognitive architecture for language agents provides modular memory layers, action-space definitions, and decision-loop orchestration like ReAct or OODA to manage perception, action selection, and planning for reliable, goal-directed behavior.

What is the best way to implement memory management for autonomous agents?

The best way to implement memory management for autonomous agents is using modular patterns for working, episodic, semantic, and procedural memory, combined with hybrid keyword and vector retrieval strategies and memory decay to preserve long-term user preferences.

How do decision loops like ReAct and OODA work for tool-enabled workflows?

Decision loops like ReAct and OODA work for tool-enabled workflows by orchestrating action selection through structured templates, applying reflection strategies, and executing retry or fallback controls to mitigate context overflow and action loops during multi-step tasks.

Can I use structured JSON outputs for tool integration in cognitive architectures?

Yes, you can use structured JSON outputs for tool integration in cognitive architectures. The design provides guidance on defining external and internal actions, token-efficient tool descriptions, and structured JSON arguments for safe API and knowledge store integrations.

How do I prevent context overflow and infinite action loops in LLM agents?

You prevent context overflow and infinite action loops in LLM agents by applying decision-making templates with built-in reflection strategies, retry and fallback controls, and specific mitigations designed for agentic behaviors within the cognitive architecture.

Does this approach support hybrid retrieval strategies for long-term memory?

Yes, this approach supports hybrid retrieval strategies for long-term memory by defining patterns that combine keyword and vector retrieval across semantic and episodic memory layers, ensuring efficient recall and memory decay for autonomous assistants.