Install
$ agentstack add skill-vasilievyakov-miracle-infrastructure-memory-init ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Memory Init - Setup Wizard
Creates the full memory directory structure, configuration, and starter files. Safe to re-run (idempotent).
Step 1: Check existing setup
ls ~/.claude/memory/ 2>/dev/null
If the directory exists and has content, warn:
Memory system already exists at ~/.claude/memory/
Found: {N} dossiers, {N} observation files, MEMORY.md
Re-running will not overwrite existing files. Only missing pieces will be created.
Continue? (yes/no)
Wait for confirmation before proceeding.
Step 2: Create directory structure
mkdir -p ~/.claude/memory/projects
mkdir -p ~/.claude/memory/tests
Step 3: Create memory-config.json
Write ~/.claude/memory/memory-config.json
Content:
{
"memory_path": "~/.claude/memory",
"projects": {},
"fallback_project": "general",
"max_dossier_lines": 200,
"observation_types": ["decision", "bugfix", "feature", "discovery", "problem"]
}
Step 4: Auto-detect projects
Scan for git repositories to pre-populate the config:
find ~ -maxdepth 3 -name ".git" -type d 2>/dev/null | head -20
For each found repo:
- Extract the directory name as project slug
- Check for GitHub remote:
git -C {path} remote get-url origin 2>/dev/null - Generate keyword suggestions from the directory name
Present findings to user:
Found {N} git repositories. Want to add any to memory?
1. ~/projects/my-app (github.com/user/my-app)
2. ~/work/dashboard (no remote)
3. ~/experiments/chatbot (github.com/user/chatbot)
Enter numbers to add (e.g., 1 3), or skip:
For selected projects, update memory-config.json with entries:
{
"project-slug": {
"keywords": ["project", "slug"],
"github": "user/repo",
"path": "~/projects/my-app"
}
}
Step 5: Create starter MEMORY.md
Write ~/.claude/memory/MEMORY.md
Content:
# Memory Index
## Active Projects
| Project | Dossier | Observations | GitHub |
|---------|---------|-------------|--------|
| General | `projects/general.md` | `*.observations.md` (0 entries) | - |
## Open Problems
(none yet)
## Workflow
- On project mention: load dossier + observations from memory/projects/
- During work: record significant observations (auto-observe rule)
- End of session: run /session-save
## Infrastructure
- Config: ~/.claude/memory/memory-config.json
- Skills: session-save, search-memory, memory-health, project-status
- Rules: session-start, session-end, auto-observe
Step 6: Create general dossier and observations
Create the fallback "general" project:
Write ~/.claude/memory/projects/general.md
# General
## Status
Permanent. Catch-all for sessions not tied to a specific project.
## Description
Default dossier for miscellaneous work: infrastructure setup, research, experiments, one-off tasks.
## Current State
- Last session: {today}
- Done: Memory system initialized
- Uncommitted: no
## Unresolved Problems
(none)
## Decisions Made
- [{today}] Initialized Miracle Infrastructure memory system
## Next Steps
1. Add projects to memory-config.json
2. Start using /session-save at end of work sessions
## Session History
- [{today}] Memory system initialized
Write ~/.claude/memory/projects/general.observations.md
# Observations - general
## Index
| # | Date | Type | Summary | Files |
|---|------|------|---------|-------|
## Details
Step 7: Copy integrity tests
If the test file exists in the Miracle Infrastructure installation:
cp {miracle_infra_path}/packs/memory/tests/test_memory_integrity.py ~/.claude/memory/tests/
If not available, inform the user where to find it.
Step 8: Verify
Run a quick health check:
python3 ~/.claude/memory/tests/test_memory_integrity.py 2>&1
Step 9: Confirmation
Memory system initialized!
Created:
- ~/.claude/memory/MEMORY.md
- ~/.claude/memory/memory-config.json
- ~/.claude/memory/projects/general.md
- ~/.claude/memory/projects/general.observations.md
- ~/.claude/memory/tests/test_memory_integrity.py
{N} projects detected and added to config.
Quick start:
- Work on a project, then run /session-save
- Search past work with /search-memory
- Check integrity with /memory-health
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: vasilievyakov
- Source: vasilievyakov/miracle-infrastructure
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.