/cursor-supermemory:memory-initfrom Supermemory
Deep codebase exploration to initialize project memory. Detects ecosystem, maps architecture, and saves structured memory for new projects.
Ships in Supermemory. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Explore this codebase deeply, then save architecture, tech stack, conventions, and how to run as separate add_memory calls.
Pass containerTag on every add_memory call, using the container tag from the <supermemory-context> block injected at session start.
Before anything else, determine the primary tech stack by checking which manifest files exist:
Glob for these patterns at the repo root (and one level deep):
*.sln, *.csproj, Directory.Build.props, global.json → .NET/C#
package.json → JS/TS
Cargo.toml → Rust
pyproject.toml, setup.py, requirements.txt → Python
go.mod → Go
pom.xml, build.gradle, build.gradle.kts → Java/Kotlin
Gemfile → Ruby
composer.json → PHP
Package.swift → Swift
mix.exs → Elixir
Note the detected ecosystem(s). A repo may use multiple (e.g., a JS frontend + Go backend). Use the Ecosystem Reference below to guide all subsequent phases.
Use this table based on the ecosystem(s) detected in Phase 0. For each phase, look up what to search for.
| Ecosystem | Manifests | Config Files |
|---|---|---|
| .NET/C# | *.sln, *.csproj, Directory.Build.props, Directory.Packages.props, global.json, nuget.config | appsettings.json, appsettings.*.json, launchSettings.json, .editorconfig |
| JS/TS | package.json, package-lock.json, yarn.lock, pnpm-lock.yaml | tsconfig.json, .eslintrc*, vite.config.*, next.config.*, webpack.config.* |
| Rust | Cargo.toml, Cargo.lock | rust-toolchain.toml, .cargo/config.toml |
| Python | pyproject.toml, setup.py, setup.cfg, requirements*.txt, Pipfile | tox.ini, pytest.ini, .flake8, mypy.ini |
| Go | go.mod, go.sum | .golangci.yml |
| Java/Kotlin | pom.xml, build.gradle, build.gradle.kts, settings.gradle* | application.properties, application.yml, logback.xml |
| Ruby | Gemfile, Gemfile.lock, *.gemspec | config/database.yml, config/routes.rb, .rubocop.yml |
| PHP | composer.json, composer.lock | .env, config/*.php, phpunit.xml |
| Swift | Package.swift, *.xcodeproj, *.xcworkspace | Info.plist, .swiftlint.yml, *.xcconfig |
| Elixir | mix.exs, mix.lock | config/config.exs, config/runtime.exs, .formatter.exs, .credo.exs |
| Ecosystem | Entry Points | Architectural Patterns to Find |
|---|---|---|
| .NET/C# | Program.cs, Startup.cs | DI registrations (IServiceCollection), middleware pipeline (app.Use*), Controllers or Minimal API endpoints, DbContext subclasses, project references in *.csproj |
| JS/TS | index.ts, main.ts, App.tsx, server.ts | Route definitions, React/Vue/Svelte components, API handlers, module exports |
| Rust | main.rs, lib.rs | mod.rs modules, trait definitions, impl blocks, feature flags in Cargo.toml |
| Python | main.py, app.py, __main__.py, wsgi.py, asgi.py | Decorators (@app.route, @router), __init__.py structure, ORM models, management commands |
| Go | main.go, cmd/*/main.go | Interface definitions, package structure, handler functions, middleware chains |
| Java/Kotlin | *Application.java, Main.java, App.kt | @SpringBootApplication, @RestController, @Service, @Repository annotations, dependency injection |
| Ruby | config.ru, app/controllers/application_controller.rb | Rails MVC structure (app/models, app/controllers, app/views), routes, migrations, gems |
| PHP | public/index.php, artisan | Laravel service providers, routes (routes/web.php, routes/api.php), Eloquent models, middleware |
| Swift | Sources/*/main.swift, App.swift, *App.swift | SwiftUI @main app struct, UIKit AppDelegate/SceneDelegate, SPM targets in Package.swift, module structure under Sources/ |
| Elixir | lib/*/application.ex, lib/*_web/endpoint.ex | OTP supervision trees, Phoenix endpoint/router/controllers, Ecto schemas and repos, GenServer modules, context modules |
| Ecosystem | What to Look For |
|---|---|
| .NET/C# | Namespace-per-folder structure, src//tests/ split, IOptions<T> configuration pattern, attribute-based routing, extension method conventions (*Extensions.cs) |
| JS/TS | Import style (ESM vs CJS), component file naming, barrel exports (index.ts), path aliases, monorepo structure |
| Rust | Module hierarchy, error handling patterns (Result, ?), derive macro usage, visibility modifiers |
| Python | Package structure, type hint usage, decorator patterns, test organization (tests/), linter/formatter choice |
| Go | Package naming, error return patterns, interface placement, table-driven tests |
| Java/Kotlin | Package hierarchy, annotation usage, builder patterns, DTO/entity separation |
| Ruby | Rails conventions (CoC), concern modules, service objects, RSpec vs Minitest |
| PHP | PSR standards, namespace structure, facade usage, artisan commands |
| Swift | Protocol-oriented design, @Observable/@State/@Binding patterns, access control (public/internal/private), Swift concurrency (async/await/actor) |
| Elixir | use/import/alias conventions, pipe operator chains, pattern matching in function heads, context-based module organization (Phoenix contexts), test structure (test/) |
| Ecosystem | Important Files & Patterns |
|---|---|
| .NET/C# | ServiceCollectionExtensions or DI setup, middleware classes, DbContext + migrations, AutoMapper/Mapster profiles, MediatR handlers, appsettings.json structure |
| JS/TS | Auth middleware, database client setup, API client wrappers, shared utilities, state management (Redux store, Context providers) |
| Rust | Error types, trait implementations, build scripts (build.rs), integration test structure |
| Python | Settings/config module, ORM models, serializers, middleware, celery tasks, management commands |
| Go | HTTP handlers, database layer, middleware, config loading, wire/dependency injection |
| Java/Kotlin | Security config, JPA entities, repository interfaces, service layer, exception handlers |
| Ruby | ApplicationController, model validations/callbacks, initializers, service objects, background jobs |
| PHP | Service providers, form requests, policies, event/listener pairs, scheduled tasks |
| Swift | Protocol definitions, view models, network/API layer, Core Data / SwiftData models, dependency injection setup, Package.swift target dependencies |
| Elixir | Application module (supervision tree), Repo module (Ecto), router and pipeline definitions, context modules with public API functions, migration files, LiveView modules |
Read and note the manifest and config files identified by the Ecosystem Reference above, plus:
README.md.github/workflows/, Jenkinsfile, .gitlab-ci.yml, etc.)Dockerfile, docker-compose.yml)Gather: project name, purpose, tech stack, how to run/build/test
Explore and note:
Gather: architecture, key modules, data flow
Analyze and note:
git log --oneline -20Gather: coding conventions, patterns to follow
Read and note the ecosystem-specific key files from the reference table, plus:
Gather: where important logic lives
After exploring all phases, save findings with separate add_memory calls — do not combine them into one memory. Prefix each with the area it belongs to. Each call must pass containerTag from <supermemory-context>:
Confirm: "Codebase indexed — [N] memories saved about [project name]"
node_modules, bin, obj, target, vendor, __pycache__, .gradle, build, .build, _build, deps, generated files, and lockfilesWhat SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/memory-saveSave important information to persistent memory. Use when user explicitly asks to remember something, or when you've solved a significant problem worth preserving./memory-searchSearch persistent memory for relevant information from past coding sessions. Use when user asks about previous work, past bugs, architectural decisions, or anything that may have been worked on before.Claude Code refuses to install this plugin
.claude-plugin/plugin.json: hooks: Invalid string: must start with "./", commands: Invalid input, agents: Invalid string: must start with "./", agents: Invalid string: must end with ".md", skills: Invalid string: must start with "./", mcpServers: Invalid string: must start with "./"
.claude-plugin/plugin.json: hooks: Invalid string: must start with "./", commands: Invalid input, agents: Invalid string: must start with "./", agents: Invalid string: must end with ".md", skills: Invalid string: must start with "./", mcpServers: Invalid string: must start with "./"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
Other plugins' skills for the same job