跳到正文
cccskills
免费在 GitHub 公开

session-memory-manager

Manages the entire session lifecycle: from context loading (PRD, Tech Stack) at startup, to maintaining project memory during active sessions, and creating ultra-compact checkpoints for handoff. / Mengelola siklus hidup sesi: dari pemuatan konteks awal, pemeliharaan memori proyek, hingga pembuatan checkpoint ringkas untuk handoff.

中文简介正在准备中。当前显示原文说明。

集成工具Supabase
查看安装方法

包含的文件(1)

  • SKILL.md6.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Session Memory Manager

English | Bahasa Indonesia


<a name="english"></a>

English

Orchestration & Integration

Connects and orchestrates with relevant domain skills like brainstorming and zero-to-prod-orchestrator to ensure cohesive execution across the entire session lifecycle.

Description

This skill acts as the agent's memory controller. It handles loading project context at session startup, dynamically updating the context map and learning graph during the session, and seamlessly generating ultra-compact handoff checkpoints at session end.

1. Session Start (Ingestion)

Activate this phase IMMEDIATELY on a new session, or when the user says "start session" or "load context". Do not answer primary requests until complete.

Workflow:

  1. Discover Files: Search the root or .docs/ using list_dir, grep_search, or view_file for: CONTEXT_MAP.md, LEARNING_GRAPH.md, PRD.md, BLUEPRINT.md (or ARCHITECTURE.md), and CHECKPOINT.md. Also read tech stack identifiers (TECH_STACK.md, package.json, go.mod, etc.).
  2. Internalize: Read the contents. Grasp the architectural constraints, user stylistic preferences, hard-learned lessons, and the current goal/milestone.
  3. Acknowledge: Briefly confirm to the user what context was loaded, stating the Tech Stack and immediate goal. Proceed to address the actual request.

2. Active Session (Run)

Maintain project memory actively to prevent context exhaustion and hallucination.

Maintain Context Map (CONTEXT_MAP.md)

  • A highly compressed index (bullet points) of architecture, dependency graphs, and state locations.
  • Rules: Do not store full code; use only file paths and 1-sentence responsibilities. Use BM25/grep_search before modifying. Append new major components/routes immediately upon creation.

Maintain Learning Graph (LEARNING_GRAPH.md)

  • Triggers: When the user corrects code style, states a strong preference, or after resolving a complex bug.
  • Rules: Physically write lessons to the memory file under categories: User Stylistic Preferences, Hard-Learned Lessons, Architectural Decisions. Do not just promise to remember.
  • Global Memory: For issues spanning multiple projects, document the root cause/solution into a global context directory (e.g., <appDataDir>/knowledge). Inject this historical context proactively in future tasks.

3. Session End (Handoff)

Triggers: Session is very long (>30 messages or >70% context used), major milestone reached, or user says "save checkpoint" / "handoff".

Action: Generate an ultra-compact YAML checkpoint block (<200 tokens).

Checkpoint Format:

# CHECKPOINT — [Project Name] — [Date]
project: "[Name]"
goal: "[One-line goal]"
status: "[e.g., 60% — backend API done]"
stack: "[Tech Stack]"
last_completed:
  - "[Most recent task]"
next_tasks:
  - "[Immediate next task]"
blockers: "[Blockers or 'none']"
key_files:
  - "[path/to/critical.ts]"
env_needed: "[List of vars]"
notes: "[Critical context]"

Cross-Model Handoff Prompt: Use this universal template when moving across models (Gemini, Claude, GPT):

## RESUME CONTEXT — [Project Name]
**Goal**: [One-sentence goal]
**Current Status**: [Status]
**Tech Stack**: [Stack]
**Completed**: [Done items]
**Next Tasks**: 1. [Task 1] 2. [Task 2]
**Critical Files to Read First**: [File paths & reasons]
**Known Constraints**: [Constraints]
**Do NOT**: [Anti-patterns to avoid]
Start by reading the critical files, then confirm understanding before proceeding.

Checkpoint Storage Hierarchy:

  1. CHECKPOINT.md in project root (Primary).
  2. .agents/CHECKPOINT.md (Alternative).
  3. Clipboard or Supabase notes table (Cross-device).

<a name="bahasa-indonesia"></a>

Bahasa Indonesia

Integrasi Orkestrasi

Terhubung dan mengorkestrasi skill domain seperti brainstorming dan zero-to-prod-orchestrator untuk memastikan eksekusi kohesif selama siklus hidup sesi.

Deskripsi

Skill ini mengatur memori agen: memuat konteks di awal sesi, memperbarui peta proyek dan grafik pembelajaran selama sesi berjalan, dan membuat checkpoint ringkas untuk perpindahan sesi (handoff).

1. Awal Sesi (Ingestion)

Aktifkan SEGERA pada sesi baru, atau saat diminta "mulai sesi" / "muat konteks".

Alur Kerja:

  1. Temukan File: Cari di root atau .docs/: CONTEXT_MAP.md, LEARNING_GRAPH.md, PRD.md, BLUEPRINT.md, CHECKPOINT.md, dan file identifikasi tech stack (package.json, dsb).
  2. Pahami: Baca isinya. Pahami batasan arsitektur, preferensi pengguna, pelajaran penting, dan tujuan/milestone saat ini.
  3. Konfirmasi: Beritahu pengguna secara singkat bahwa konteks dimuat, sebutkan Tech Stack dan tujuan langsung, lalu proses permintaan utama.

2. Sesi Berjalan (Run)

Pertahankan memori proyek agar tidak terjadi halusinasi dan hemat token.

Pelihara Peta Konteks (CONTEXT_MAP.md)

  • Indeks super padat berisi arsitektur, lokasi file penting, dan graf dependensi.
  • Aturan: Jangan simpan kode lengkap, hanya path dan tanggung jawab singkat. Gunakan BM25/grep_search sebelum mengedit. Tambahkan entri baru saat membuat komponen/rute besar.

Pelihara Grafik Pembelajaran (LEARNING_GRAPH.md)

  • Pemicu: Pengguna mengoreksi gaya koding, menyatakan preferensi, atau setelah mengatasi bug rumit.
  • Aturan: Catat langsung ke file dalam kategori: Preferensi Gaya, Pelajaran Berharga, Keputusan Arsitektur.
  • Memori Global: Ekstrak solusi masalah lintas-proyek ke direktori pengetahuan global (<appDataDir>/knowledge). Gunakan pengetahuan masa lalu secara proaktif dengan menyebutkannya.

3. Akhir Sesi (Handoff)

Pemicu: Pesan > 30, jendela konteks > 70% terpakai, milestone tercapai, atau pengguna berkata "simpan checkpoint".

Tindakan: Hasilkan blok YAML super ringkas (<200 token) berisi: project, goal, status, stack, last_completed, next_tasks, blockers, key_files, env_needed, dan notes.

Prompt Handoff Lintas-Model: Gunakan template universal saat berpindah model: Berikan konteks proyek (Tujuan, Status, Stack, Tugas Selesai, Tugas Berikutnya), daftar file kritis untuk dibaca pertama kali, batasan, dan apa yang JANGAN dilakukan. Minta konfirmasi sebelum lanjut.

Hierarki Penyimpanan Checkpoint:

  1. CHECKPOINT.md di root proyek (Utama).
  2. .agents/CHECKPOINT.md (Alternatif).
  3. Clipboard / Catatan Supabase (Lintas perangkat).

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Expert guide for automated and manual Web Accessibility (a11y) testing — axe-core, Pa11y, Playwright a11y, screen reader testing, and WCAG 2.2 Level AA/AAA compliance / Panduan ahli pengujian aksesibilitas web.

中文简介正在准备中。当前显示原文说明。

roedyrustam/vibes-plug772026年10月18日 更新

Expert guide for intelligent model cascading and routing — complexity-scored task routing from Flash/Haiku to Sonnet/Opus/Astra, dynamic escalation with quality gates, 40-60% token cost reduction while maintaining output quality / Panduan ahli untuk kaskade dan routing model cerdas — routing tugas berbasis skor kompleksitas dari Flash/Haiku ke Sonnet/Opus/Astra, eskalasi dinamis dengan gerbang kualitas, pengurangan biaya token 40-60% dengan kualitas output terjaga.

中文简介正在准备中。当前显示原文说明。

roedyrustam/vibes-plug772026年10月18日 更新

Expert guide for Affective Computing, emotional AI, and real-time sentiment analysis through native multimodal tokens (voice intonation and facial micro-expressions) / Panduan ahli komputasi afektif, AI emosional, dan analisis sentimen real-time melalui token multimodal native.

中文简介正在准备中。当前显示原文说明。

roedyrustam/vibes-plug772026年10月18日 更新

Expert guide for AI-assisted coding workflows — agentic code generation, multi-agent code swarms, self-healing CI/CD, automated PR review, spec-to-code pipelines, codebase knowledge graphs, and human-in-the-loop approval gates / Panduan ahli untuk workflow pengkodean berbasis AI — generasi kode agentic, code swarm multi-agen, CI/CD self-healing, review PR otomatis, pipeline spec-to-code, knowledge graph codebase, dan gate persetujuan human-in-the-loop.

中文简介正在准备中。当前显示原文说明。

roedyrustam/vibes-plug772026年10月18日 更新

Expert guide for autonomous Machine-to-Machine (M2M) agent settlement, dual-rail fiat & stablecoin micro-clearing, dynamic budget envelopes, and cryptographic agent invoicing / Panduan ahli settlement otonom antar-agen (M2M), kliring mikro dual-rail fiat & stablecoin, pagu anggaran dinamis, dan penagihan agen kriptografis.

中文简介正在准备中。当前显示原文说明。

roedyrustam/vibes-plug772026年10月18日 更新

Expert guide for long-term episodic memory integration (Mem0 v2, Letta/MemGPT, Zep v2), memory tier architecture, pgvector HNSW storage, and unified context management for autonomous AI agents / Panduan ahli untuk integrasi memori episodik jangka panjang (Mem0 v2, Letta/MemGPT, Zep v2), arsitektur tier memori, penyimpanan pgvector HNSW, dan manajemen konteks terpadu untuk agen AI otonom.

中文简介正在准备中。当前显示原文说明。

roedyrustam/vibes-plug772026年10月18日 更新

查看 roedyrustam 的全部技能

报告此技能的问题