dev-mem: Transforming AI Coding Pitfalls and Debugging into Retrievable Experience

Introduction

When using AI to write code, similar error messages often lead to repeatedly searching documentation and retrying prompts. Once a conversation is closed, the context is lost. Notes can be written manually, but they are difficult to align with IDE conversations and logs, and retrieval often relies on memory. Below is an introduction to the SkillHub community skill dev-mem (@user_4b39a996/dev-mem): it can be triggered with fixed phrases or @emem during conversations to extract pitfalls, multi-turn debugging processes, and effective prompts into structured entries. It also supports per-project statistics and one-click backup.

What This Is

dev-mem is positioned as “AI programming experience accumulation and intelligent retrieval”: it turns effective information from conversations into reusable experience assets that can be retained long-term and called again. Current version 1.0.8, category dev-programming, source community, published by user_4b39a996. The SkillHub page marks requires_api_key=false, so no separate API key configuration is needed after installation. SkillHub statistics (based on page scraping): score 100000, downloads 749, installs 2.

Official links:

  • SkillHub display page: https://www.skillhub.cn/skills/user_4b39a996/dev-mem
  • API coordinate page: https://api.skillhub.cn/user_4b39a996/dev-mem

Core Features

The following capabilities come from the official introduction. Implementation details not mentioned in the materials (such as storage paths, index formats, etc.) are not speculated here.

Experience Accumulation and Retrieval

Automatically or based on your intent, it distills pitfalls, debugging conclusions, useful prompts, etc., into structured entries, so that later questions like “is there something similar?” or “how did I fix this last time?” can be answered through retrieval and reuse.

Triggers

Forced trigger: when @emem appears in a message, this skill is invoked immediately, with higher priority than Agent built-in capabilities.

Natural-language triggers (phrases listed by the official source):

  • Recording: “记一下” (“note this down”), “存一下” (“save this”)
  • Process: “踩了个坑” (“hit a pitfall”), “终于搞定了” (“finally got it working”)
  • Retrieval: “上次这个怎么搞来着” (“how did I fix this last time?”), “有没有类似的” (“is there something similar?”)
  • Review: “帮我复盘” (“help me review”), “整理今天的” (“organize today’s”)
  • Directly pasting an error message or log will also trigger it

Backup and Project Statistics

  • Say “备份” (“backup”): one-click backup of the knowledge base.
  • Say “查 {项目名} 的统计” (“check {project name}’s statistics”): aggregate experience entries by project dimension (the exact presentation depends on the skill’s runtime results).

Installation and Activation

SkillHub recommends two methods: use the CLI to install into the current Agent’s skills directory, or send the installation prompt to the AI and let it execute according to the official documentation.

1. Install the SkillHub CLI (if not already installed)

First check whether the CLI is already available:

command -v skillhub && skillhub --version

If it is not installed, you can use the official script for a full installation (CLI + default Skill):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

Install only the CLI:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

2. Install dev-mem

During installation, you must use --dir to point to the skills directory actually read by the current Agent; otherwise it will default to ./skills/, which the Agent may not be able to recognize. The official installation instructions are at: https://skillhub.cn/install/skillhub.md

The coordinate is @user_4b39a996/dev-mem. Example (replace <skills 目录> with your environment’s path):

skillhub install user_4b39a996/dev-mem --dir <skills 目录>

Common client skills directories (excerpted from the SkillHub installation documentation):

Environment Directory
Cursor ~/.cursor/skills/
Claude Code ~/.claude/skills/
Codex ~/.codex/skills/ or .agents/skills/ under the project
Windsurf ~/.codeium/windsurf/skills/ or .windsurf/skills/ under the project

You can also follow the prompts on the SkillHub page and have the AI install @user_4b39a996/dev-mem according to https://skillhub.cn/install/skillhub.md. After installing or updating the Skill, restart or refresh the Agent according to your client’s requirements so that SKILL.md is loaded.

Typical Usage

The examples below correspond to the officially published trigger semantics and can be reproduced in any conversation where dev-mem is enabled.

1. Forced invocation in a conversation

Write @emem in the message, then describe what you want to record or query, for example, organizing the build error you just resolved.

2. Natural-language experience accumulation

After debugging, send:

终于搞定了,记一下:pnpm 在 Node 20 下需要 corepack enable 才能对齐 packageManager 字段。

(The latter part is example content, only demonstrating the “phrase + conclusion” usage; the actual entry is distilled by the Skill based on the conversation context.)

3. Retrieve past experience

上次这个怎么搞来着?还是同一个项目的 Docker 构建缓存问题。

4. Back up the knowledge base

备份

5. View statistics by project

查 my-api 的统计

Replace my-api with your project name.

Use Cases and Notes

Who it is for: developers who have been doing AI pair programming for a long time and want to retain “verified conclusions” across sessions instead of repeatedly trial-and-error; developers who need to review experience entries by project across multiple repositories.

Usage notes:

  • Trigger words and @emem follow the official introduction; different Agents may differ slightly in skill priority and @-mention parsing, so rely on the actual conversation.
  • Backup and statistics depend on the knowledge base maintained by this Skill; for important conclusions, it is still recommended to incorporate them into your team’s existing documentation or version-control workflows.
  • This is a community-sourced Skill; before upgrading, you can check on SkillHub whether version 1.0.8 has any update notes.
  • The materials do not describe differences in dev-mem behavior among Codex CLI, Claude Code, and Cursor; except for the skills directory path, all three can be used with the same trigger semantics.

Conclusion

dev-mem turns “记一下” (“note this down”) and “有没有类似的” (“is there something similar?”) from casual remarks into a searchable, backable, and per-project-statistics-capable layer of programming experience. It requires no API key—just install it via SkillHub into the corresponding skills directory to enable it. See SkillHub for details and installation prompts: https://www.skillhub.cn/skills/user_4b39a996/dev-mem

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye