用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/cwinvestments/memstack --skill project命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | project |
| description | Use when the user says 'save project', 'handoff', or when context is running low and state must be preserved. |
| version | 1.0.0 |
Save and restore project state between CC sessions for seamless handoffs.
When this skill activates, output:
💾 Project — Saving project state...
Then execute the protocol below.
Capture current state:
Run git status to capture uncommitted state
Save project context to SQLite:
Write the payload to a file, then pipe it in with - as the argument. A payload on stdin is never seen by the shell's parser, so a redirection operator inside your prose cannot be read as one.
cat context.json | python "$MEMSTACK_PATH/db/memstack-db.py" set-context -
context.json contains:
{"project":"<name>","status":"active","current_branch":"<branch>","last_session_date":"<YYYY-MM-DD>","known_issues":"<issues>","backlog":"<next tasks>"}
Also save markdown handoff to memory/projects/{project}-{date}.md
Present the ready-to-paste prompt for the next CC session
python "$MEMSTACK_PATH/db/memstack-db.py" get-context <project>
python "$MEMSTACK_PATH/db/memstack-db.py" get-sessions <project> --limit 3
python "$MEMSTACK_PATH/db/memstack-db.py" get-plan <project>
memory/projects/ for markdown handoffsUser: "context is running low — save project"
💾 Project — Saving project state...
Saved: memory/projects/adminstack-2026-02-18.md
--- PASTE INTO NEXT CC SESSION ---
Working directory: /path/to/your-project
Read $MEMSTACK_PATH/MEMSTACK.md
Resume AdminStack. Last session completed:
- Built CC Monitor page with auto-refresh
- Fixed API key validation
Next steps:
1. Build cc-reporter.js script
2. Add WebSocket updates
--- END HANDOFF ---