AI Agent Hub
Back to skills
Project Memory Management icon

Project Memory Management

AI Agent Updated 2026.08.29

Paste the following prompt into your AI chat to install this skill:

Please follow https://skillhub.cn/install/skillhub.md to install @user_1ae97d99/project-memory.

About this skill

Problem

When an LLM works across multiple sessions on the same project, two engineering problems appear often: context gets buried under stale details, and the model recreates components, utilities, APIs, or database tables that already exist. Putting everything into one project-memory.md makes the file grow quickly; storing nothing causes the next session to lose established conventions.

How the Skill Works

The skill replaces a single monolithic memory file with a modular file structure:

  • project-memory.md keeps only phase state, key decisions, and entry points, ideally under 30 lines.
  • dev-docs/index.md maintains a compact index of components, hooks, utils, APIs, and database tables.
  • Folders such as dev-docs/components, dev-docs/api, and dev-docs/database store full definitions and are read on demand.
  • init_memory.py creates the directory layout, read_memory.py loads the main file and index by default, update_memory.py updates memory and rebuilds the index, and archive_phase.py archives a phase and summarizes existing assets.

When creating a new component, the skill checks the index for similar definitions, writes the doc first, then implements the code. When modifying an existing component, it also updates the doc first, reducing drift between code and memory.

Boundaries

It fits projects with front-end components, APIs, and schema definitions, especially multi-session development. For one-off scripts or small tasks without stable assets, the folder structure adds maintenance overhead. The docs still need human or Agent synchronization; otherwise the index can lag behind the real code.

Use Cases

  • When resuming an e-commerce project across sessions, load project-memory.md and dev-docs/index.md to recover components, APIs, and table structures.
  • Before creating a login form, check dev-docs/components for similar components, write the component doc first, then implement the code.
  • When archiving phase 2, use archive_phase.py to summarize phase results, task status, and the dev-docs asset list.
  • After changing an API or database table, update the related dev-docs file and rebuild the index to keep new-session context consistent.

Best For

  • Front-end engineers maintaining a component library who want new sessions to stop recreating buttons, forms, or hooks.
  • Agent engineers running multi-phase projects who want project state, component definitions, and decisions in lightweight memory files.
  • Full-stack engineers coordinating front-end and back-end work who need indexed APIs, table schemas, and utilities for context.
  • Engineering leads with project archiving needs who want phase outputs, existing assets, and decision records summarized regularly.