smithery.ai

init-memory

Initialize project memory for the current project. Creates context.json, sessions.json, and decisions.json. Triggers on: init memory, setup memory, initialize project memory, start tracking this project.

First seen Mar 20, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,869 B
  • docs SUMMARY.md 222 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Initialize Project Memory

Set up memory structure for a new project.


The Job

  1. Determine project name (from git remote, folder name, or ask user)
  2. Create memory directory at ~/aiconfig/memory/projects/{project-name}/
  3. Initialize three JSON files with project context

Steps

1. Get Project Name

# Try git remote first
git remote get-url origin 2>/dev/null | sed 's/.*\/\([^\/]*\)\.git/\1/'

# Fall back to current directory name
basename $(pwd)

Or ask the user: "What should I call this project?"

2. Create Directory

mkdir -p ~/aiconfig/memory/projects/{project-name}

3. Create context.json

{
  "project": "{project-name}",
  "created": "{ISO-date}",
  "tech_stack": [],
  "architecture": {
    "pattern": "",
    "key_modules": [],
    "data_flow": ""
  },
  "current_focus": "",
  "known_issues": []
}

Ask user to fill in tech_stack and architecture if they want.

4. Create sessions.json

{
  "sessions": []
}

5. Create decisions.json

{
  "decisions": []
}

Output

Initialized memory for project: {project-name}
Location: ~/aiconfig/memory/projects/{project-name}/

Created:
  - context.json (project context)
  - sessions.json (session history)
  - decisions.json (architectural decisions)

Use /log-session at end of sessions to record progress.
Use /recall to search past context.

Checklist

  • Project name determined
  • Directory created
  • context.json initialized
  • sessions.json initialized
  • decisions.json initialized
  • User informed of location