# Cognitive Consolidate

> 记忆巩固（Headless，睡眠期巩固等效）。不被用户直接触发，由后台调度脚本每7天执行一次。将积压的成熟L2碎片批量整合进L1，conflict类碎片记录到待完成清单由用户决策。触发词（人工触发时）：「执行记忆巩固」「批量整合积压碎片」「cognitive-consolidate」。

- **Type:** Skill
- **Install:** `agentstack add skill-tashangkd-cognitive-os-cognitive-consolidate`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [TashanGKD](https://agentstack.voostack.com/s/tashangkd)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [TashanGKD](https://github.com/TashanGKD)
- **Source:** https://github.com/TashanGKD/cognitive-os/tree/main/skills/cognitive-consolidate

## Install

```sh
agentstack add skill-tashangkd-cognitive-os-cognitive-consolidate
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# cognitive-consolidate（记忆巩固 / 睡眠期巩固等效）

> **对应认知活动**：睡眠期记忆巩固（海马体→皮层长期存储）——定期将积压的L2碎片批量整合进L1，完成情节记忆→语义记忆的转化
>
> **认知五维坐标（COG-TAX）**：
> - 意识程度：隐性（用户不参与，后台自动）
> - 脑网络：DMN（离线加工，记忆重激活）
> - 记忆系统：情节记忆→语义记忆的转化（海马体→皮层）
> - 执行功能：无（自动化批处理）
> - 双系统：系统1（自动批处理，不需要有意识的决策）
>
> **理论依据**：Stickgold (2005) 睡眠依赖性记忆巩固；Wilson & McNaughton (1994) 海马体重激活；McClelland et al. (1995) 互补学习系统理论
>
> **调用方式**：后台脚本，每7天执行一次（headless模式）
> **人工触发**（可选）：「执行记忆巩固」「批量整合积压碎片」

---

## 知识导航表

| 层级 | 文档 | 用途 |
|------|------|------|
| D0 碎片索引 | `cognitive/L2_fragments/fragment_index.md` | 找到所有「待整合且已成熟」的碎片 |
| D0 L1 目标 | `cognitive/L1_knowledge/[各维度文档]` | 整合的目标文档 |
| D0 L0 地图 | `cognitive/L0_brain_map.md` | 了解文档间依赖关系 |

---

## 激活后立即执行（Headless 模式，所有决策使用默认策略）

```
Step 0  成熟度检查（安全退出点）
        Read: cognitive/L2_fragments/fragment_index.md
        → 筛选条件：状态=🔲待整合 AND capture_time 5条）→ **A信号**（Skill改进：整合效率/碎片归属策略可能有优化空间）
- conflict类碎片积累 ≥ 3条 → **G信号**（结构性根因：L1文档结构或碎片归因机制存在系统性问题）
- 执行完成无异常 → 无独立信号（通路A内部完成，不额外产生信号）

---

## 变更记录

### v0.1 — 2026-03-23 — 从全量认知Skill规范.md Skill 10 复现

**来源**：会话 a55a4e9e（认知体系完善规划），全量规范 §Skill 10
**路径映射**：原 _内部总控/ 路径已替换为 cognitive/ 通用路径
**状态**：🟡 待审核（Gate A/B/C 尚未通过）
**存放位置**：pending-skills/（非正式部署区）

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [TashanGKD](https://github.com/TashanGKD)
- **Source:** [TashanGKD/cognitive-os](https://github.com/TashanGKD/cognitive-os)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-tashangkd-cognitive-os-cognitive-consolidate
- Seller: https://agentstack.voostack.com/s/tashangkd
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
