A context layer for multi-repo workspaces. Maps features across repositories with product definitions, engineering contracts, and implementation docs β designed for AI-assisted development with Claude Code.
basemap sits on top of your repos and gives AI agents (and humans) a structured way to understand features that span multiple services. Each feature gets three files:
- product.md β what the feature does, use cases, business rules
- engineering.md β technical contracts, key interfaces, constraints
- implementation.md β how it's actually built today, key files, flows
Commands and agents use these files to implement new use cases, review contracts, and map existing code β all without losing context across repos.
# 1. Clone basemap as your workspace
git clone git@github.com:nicolasse/basemap.git my-workspace
cd my-workspace
# 2. Set up your project context
cd features
git init # or clone an existing features repo
cd ..
# 3. Clone your repos
cd repositories
git clone git@github.com:your-org/repo-a.git
git clone git@github.com:your-org/repo-b.git
cd ..
# 4. Open Claude Code
claudebasemap separates the framework from the project context from the code:
my-workspace/ β basemap git (the framework)
.claude/
commands/ β bm- prefixed commands
agents/ β worker agents
features/ β project context git (your team's knowledge)
CLAUDE.md β part of basemap
_template/ β part of basemap
follow-up/ β your project context
payments/ β your project context
repositories/ β each repo has its own git
repo-a/
repo-b/
| Layer | What it is | Who shares it |
|---|---|---|
| basemap (root git) | Framework: commands, agents, templates | Everyone using basemap |
| features/ (its own git) | Project context: product, engineering, implementation docs | Your team working on this project |
| repositories/ (each its own git) | The actual code | Depends on the repo |
This means you can:
- Update basemap independently (pull new commands/agents)
- Share project context with your team without coupling it to basemap
- Use the same basemap setup for completely different projects
| Command | What it does |
|---|---|
/bm-add-feature |
Design and implement a new feature from scratch |
/bm-add-use-case |
Add a use case to an existing feature with contract validation |
/bm-map-feature-product |
Explores repos + talks to you β generates product.md |
/bm-map-feature-engineering |
Explores repos β extracts technical contracts into engineering.md |
/bm-map-feature-implementation |
Explores repos β maps current implementation into implementation.md |
| Agent | Color | What it does |
|---|---|---|
feature-implementer |
π΅ blue | Writes code scoped to a feature, respecting its contracts |
contract-reviewer |
π‘ yellow | Validates code against product and engineering contracts (read-only) |
New feature (doesn't exist in code):
/bm-add-featureβ designs product + engineering, implements, validates, documents
Existing feature (already in code, needs context files):
/bm-map-feature-productβ generatesproduct.md/bm-map-feature-engineeringβ generatesengineering.md/bm-map-feature-implementationβ generatesimplementation.md
Adding behavior to an existing feature:
/bm-add-use-caseβ implements, validates contracts, updates context files