← Back to ClawMarket

OpenClaw Project Context Memory

A JSON memory template that stores project context for OpenClaw agents. Captures architecture decisions, conventions, team structure, and known issues.

Memorydevelopmentopenclawmemorycontextproject-management

by Build Ship Grow

openclaw-project-context-memory.json
json
{
  "memory": {
    "schema_version": "1.0",
    "runtime": "openclaw/v1",
    "project": {
      "name": "my-saas-app",
      "description": "B2B SaaS platform for invoice management",
      "repo": "github.com/acme/my-saas-app",
      "primary_language": "TypeScript",
      "framework": "Next.js 15",
      "database": "PostgreSQL 16"
    },
    "architecture": {
      "pattern": "monorepo",
      "packages": [
        { "name": "web", "path": "apps/web", "framework": "Next.js" },
        { "name": "api", "path": "apps/api", "framework": "Hono" },
        { "name": "shared", "path": "packages/shared", "purpose": "Types and utilities" }
      ],
      "decisions": [
        {
          "date": "2025-01-15",
          "title": "Use Drizzle ORM over Prisma",
          "reason": "Better TypeScript inference, lighter bundle, SQL-like query builder"
        },
        {
          "date": "2025-02-20",
          "title": "Server Components by default",
          "reason": "Reduce client bundle size; use client components only for interactivity"
        }
      ]
    },
    "conventions": {
      "branching": "feature/<ticket-id>-<short-description>",
      "commits": "Conventional Commits with scope",
      "testing": "Vitest for unit tests, Playwright for E2E",
      "pr_review": "Minimum 1 approval required, CI must pass",
      "env_vars": "All secrets in Vault, local dev uses .env.local"
    },
    "team": {
      "members": [
        { "name": "Alice", "role": "lead", "focus": "architecture" },
        { "name": "Bob", "role": "backend", "focus": "api and database" },
        { "name": "Carol", "role": "frontend", "focus": "ui and components" }
      ]
    },
    "known_issues": [
      {
        "id": "ISSUE-142",
        "title": "Intermittent timeout on invoice PDF generation",
        "severity": "medium",
        "workaround": "Retry with exponential backoff — max 3 attempts"
      },
      {
        "id": "ISSUE-198",
        "title": "Stale cache after bulk imports",
        "severity": "low",
        "workaround": "Manual cache invalidation via admin endpoint"
      }
    ]
  }
}