UT记忆

nhan03bit2026-10-28查看 316复制 1307

显式将一段记忆保存到 UltraThink 持久化大脑中

Download (.md)

📘如何使用这个技能

  1. 1
    复制技能内容·点击上方「Copy SKILL.md」复制全部内容,或 Download 下载到本地
  2. 2
    打开你的 AI 客户端·支持 Claude Code、Trae、Cursor、ChatGPT、DeepSeek、Kimi 等任意 AI 助手
  3. 3
    粘贴为系统提示/知识文件·Claude Code:放入 .claude/skills/ 目录;普通对话:作为首条消息发送并说「请严格按这份技能文档执行」
  4. 4
    直接提出你的需求·AI 会按技能定义的工作流、格式和约束来处理,无需再解释背景

💡 提示:技能生效后,每次对话只需一句需求,AI 会按 SKILL.md 的流程执行。

SKILL.md2543 chars
---
name: ut-remember
version: 1.0.0
layer: utility
triggers:
  - /ut-remember
  - remember this
  - save to memory
  - persist this
description: Explicitly save a memory to the UltraThink persistent brain
linksTo:
  - ut-recall
linkedFrom:
  - cook
  - plan
preferredNextSkills:
  - ut-recall
---

# ut-remember — Explicit Memory Save

## Purpose

Save a specific piece of information to the UltraThink persistent brain. This is the **manual override** for the auto-memory system — use it when you want to ensure something specific is remembered.

## Usage

```
/ut-remember <what to remember>
```

## Behavior

1. Parse the user's input to extract the memory content
2. Determine the best category: `preference`, `decision`, `pattern`, `solution`, `convention`, `architecture`, `insight`
3. Assign importance (1-10) based on how broadly useful this is
4. Write the memory JSON file to `/tmp/ultrathink-memories/`

The Stop hook will automatically flush it to the database.

## Memory File Format

Write to `/tmp/ultrathink-memories/<timestamp>-<short-slug>.json`:

```json
{
  "content": "User prefers bun over npm for all package management",
  "category": "preference",
  "importance": 8,
  "confidence": 1.0,
  "scope": "global",
  "tags": ["#preference", "#tooling"]
}
```

## Category Guide

| Category | When to Use | Example |
|----------|-------------|---------|
| `preference` | User explicitly states a preference | "Always use bun" |
| `decision` | Architectural or tech choice made | "Chose Drizzle over Prisma" |
| `pattern` | Recurring code/workflow pattern | "Uses barrel exports in /lib" |
| `solution` | Bug fix or workaround found | "Fix: pgvector needs CREATE EXTENSION" |
| `convention` | Project naming/structure convention | "Components use PascalCase" |
| `architecture` | System design choice | "Microservices with event bus" |
| `insight` | General observation | "Build takes 45s on this project" |

## Importance Guide

| Score | Meaning | Example |
|-------|---------|---------|
| 9-10 | Critical — affects every session | "User is building a SaaS product" |
| 7-8 | Important — affects many sessions | "Always use TypeScript strict mode" |
| 5-6 | Useful — affects some sessions | "Project uses Tailwind v4" |
| 3-4 | Minor — occasionally relevant | "Prefers 2-space indentation" |
| 1-2 | Trivial — rarely needed | "Tested on Chrome 120" |

## Response

After saving, confirm briefly:

> Saved to memory: "[content summary]" (category: preference, importance: 8)

Do NOT be verbose about it. One line is enough.
来源:skillsdirectory

评论0

登录后参与评论

还没有评论,来抢沙发吧