Project

From cwinvestments/memstack · View interactive version

Project is an AI agent skill from the GitHub repository cwinvestments/memstack. Use when the user says 'save project', 'handoff', or when context is running low and state must be preserved.

How to use this skill

Skill file

💾 Project: Saving Project State...

Save and restore project state between CC sessions for seamless handoffs.

Activation

When this skill activates, output:

💾 Project: Saving project state...

Then execute the protocol below.

Protocol

Saving (handoff):

  1. Capture current state:
  1. Run git status to capture uncommitted state
  2. 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.

```bash

cat context.json | python "${CLAUDE_PLUGIN_ROOT}/db/memstack-db.py" set-context -

```

context.json contains:

```json

{"project":"<name>","status":"active","current_branch":"<branch>","last_session_date":"<YYYY-MM-DD>","known_issues":"<issues>","backlog":"<next tasks>"}

```

  1. Also save markdown handoff to memory/projects/{project}-{date}.md
  2. Present the ready-to-paste prompt for the next CC session

Loading (restore):

  1. Load project context from SQLite:

```bash

python "${CLAUDE_PLUGIN_ROOT}/db/memstack-db.py" get-context <project>

```

  1. Load recent sessions:

```bash

python "${CLAUDE_PLUGIN_ROOT}/db/memstack-db.py" get-sessions <project> --limit 3

```

  1. Load plan if exists:

```bash

python "${CLAUDE_PLUGIN_ROOT}/db/memstack-db.py" get-plan <project>

```

  1. Fallback: Check memory/projects/ for markdown handoffs
  2. Present combined state so CC can continue immediately

Inputs

Outputs

Example Usage

User: "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 ---

Level History

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.