Skip to content
create-serena-memory-for-component logo

Create Serena Memory For Component

create-serena-memory-for-component

为任意组件或模块创建/更新 Serena memory 的工作流与格式规范。用于用户要求“源码级梳理并写入 Serena memory”的场景,例如“对 X 进行源码级梳理并写入 Y.md”,或者“分析 X 并生成Serena memory”。适用于组件类/接口名或模块名(如 OACModule_*),并要求输出包含概述/职责/涉及文件/架构/依赖/注意事项/调用方等章节。

SKILL.md

Full skill instructions

Create Serena Memory For Component

目标

  • 生成或更新某组件/模块的 Serena memory。
  • 保持与现有组件 memory 的格式一致与内容精炼。
  • 仅写入有依据的信息,不确定则标注或省略。

工作流(顺序)

  1. 解析目标与命名

    • 从用户请求中提取组件/模块名与目标 memory 文件名。
    • 若用户已给出 memory 文件名,直接使用。
    • 若是组件类/接口名(例如 CCrashpadService、ICrashpadService),去掉前缀 C/I 作为 memory 名(CrashpadService.md)。
    • 若是模块名(例如 OACModule_Crashpad),保持原名(OACModule_Crashpad.md)。
    • 若命名仍不明确,先向用户确认。
  2. 检查已有 memory

    • 使用 list_memories 检查是否已存在同名 memory。
    • 若已存在,先 read_memory 并以增量方式更新(edit_memory)。
    • 若用户强调“格式与其他组件一致”,读取一个相近组件的 memory 作为格式参考。
  3. 收集证据

    • 优先使用 Serena 工具做定点定位:get_symbols_overview → find_symbol → find_referencing_symbols。
    • 必要时使用 search_for_pattern 或 list_dir 限定范围。
    • 记录涉及文件的仓库相对路径,避免泛化描述。
  4. 写入 memory

    • 使用下方模板,保持标题与顺序固定。
    • 每个章节内容简洁、可追溯。
    • “调用方”仅在确认调用关系时填写。
  5. 落盘/更新

    • 新建:write_memory。
    • 更新:edit_memory,避免重复与冗余。

输出模板(固定结构)

# <组件或模块名>

## 概述
<一句话到两句话说明该组件/模块做什么>

## 职责
- <职责1>
- <职责2>

## 涉及文件 (不要带行号)
- <相对路径/文件1>
- <相对路径/文件2>

## 架构
<核心对象、模块划分、关键流程或调用链的简述,能有流程图的最好有流程图>

## 依赖
- <内部依赖或外部库>
- <配置/资源依赖(如有)>

## 注意事项
- <容易踩坑点/边界条件/性能问题/多线程竞态冲突/可能导致崩溃或预期外行为的地方>

## 调用方(可选)
- <已确认的调用方>

触发语句示例(用于匹配)

  • 对 OACEngine/​OACModuleManager 进行源码级梳理,并将该组件的概述/架构写入 Serena memory:OACModuleManager.md
  • 详细分析 OACModule\OACModule_Crashpad 并将该业务模块的概述/架构以 serena memory 的形式写入 OACModule_Crashpad.md
  • 对 OACEngine/​NetworkSystem 进行源码级梳理,并将该组件的概述/架构写入 Serena memory:NetworkSystem.md
  • 详细分析 GrahpicCaptureService 的架构/业务逻辑,并写入 Serena memory:GrahpicCaptureService.md

More Productivity & Planning skills

brainstorming logo
Productivity & Planning

brainstorming

Structured design dialogue that validates ideas before implementation begins.

295.4K 385.7K
View
ui-ux-pro-max logo
Productivity & Planning

ui-ux-pro-max

Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.

133.1K 383.9K
View
writing-plans logo
Productivity & Planning

writing-plans

Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.

295.4K 268K
View
using-superpowers logo
Productivity & Planning

using-superpowers

Introduction to the obra skills system with mandatory skill invocation rules and best practices.

295.4K 259.8K
View
executing-plans logo
Productivity & Planning

executing-plans

Execute a written implementation plan with critical review and task checkpoints.

295.4K 229.1K
View
dispatching-parallel-agents logo
Productivity & Planning

dispatching-parallel-agents

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View
using-git-worktrees logo
Productivity & Planning

using-git-worktrees

Isolated git worktrees with smart directory selection and safety verification.

295.4K 205.2K
View
webapp-testing logo
Productivity & Planning

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

179.7K 170.6K
View
content-strategy logo
Productivity & Planning

content-strategy

Plan searchable and shareable content that drives traffic, builds authority, and generates leads.

53.3K 150.9K
View
repo-intake-and-plan logo
Productivity & Planning

repo-intake-and-plan

README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.

497 139.6K
View
marketing-ideas logo
Productivity & Planning

marketing-ideas

Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.

53.3K 137.2K
View
site-architecture logo
Productivity & Planning

site-architecture

Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.

53.3K 112.8K
View

Productivity AI tools

Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View
SaveDay logo
Productivity

SaveDay

Capture, organize, and utilize your knowledge effortlessly.

Free
View
A
Productivity

Any Summary

Instant Summaries of Audio & Video Interviews with AnySummary

Freemium
View
M
Productivity

Map This

Transform PDFs into engaging mind maps.

Freemium
View
ChatPDF logo
Productivity

ChatPDF

Chat with any PDF instantly

Free
View
I
Productivity

intellisay

Create an optimal daily plan using your voice

Paid
View
A
Productivity

Aurora AI

A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.

Paid
View
AskYourPDF logo
Productivity

AskYourPDF

AskYourPDF Pricing Plans: Tailored to Your Needs

Free
View