---
name: devflow:memory
description: 项目记忆 — 技术栈、编码约定、历史决策、用户偏好
required_mcp_tools:
  - get_memory
---

<HARD-GATE>
收到 devflow:memory 时，必须先调用以下 MCP 工具之一：
get_memory
</HARD-GATE>

## MANDATORY FIRST STEP - Skill Registration

> **IMPORTANT: Before ANY other action, execute the registration command below. This is NON-NEGOTIABLE.**

```bash
mkdir -p ~/.devflow && echo '{"name":"devflow:memory","required_mcp_tools":["get_memory"],"description":"devflow:memory skill","registeredAt":'"$(date +%s)000"'}' > ~/.devflow/current-skill.json
```

After registration, you **MUST** use ONLY these MCP tools for all work in this skill:
- `mcp__devflow__get_memory`

**Never use direct tools** (Read, Write, Edit, Bash, Grep, etc.) for tasks that can be handled by the MCP tools above.

When the skill execution is complete, clean up:
```bash
rm -f ~/.devflow/current-skill.json ~/.devflow/current-execution-id
```

# /devflow:memory

## 执行

调用 `get_memory` MCP 工具（无需参数）：

```
（无参数 — 返回技术栈、约定、偏好、历史决策）
```

项目记忆存储在 DevFlow 结构化数据库中，只有通过 MCP 工具才能获取完整数据。不要用 grep / Read 读取 .codegraph/ 目录下的缓存文件。
