{
  "project_context": {
    "name": "Design System Swarm",
    "type": "design_system_platform",
    "architecture": "MCP-first",
    "knowledge_base": ".knowledge/"
  },
  "preferred_tools": [
    "Read structured JSON from .knowledge/ directory for project context",
    "Use MCP memory graph for cross-session knowledge",
    "Prefer structured data over natural language documentation"
  ],
  "documentation_strategy": "Structured data in .knowledge/, natural language only for admin-ui/",
  "immutability": {
    "status": "active",
    "policy": "simple",
    "protected_core_files": [
      ".knowledge/dss-principles.json",
      ".knowledge/dss-architecture.json",
      ".knowledge/dss-coding-standards.json",
      ".clauderc"
    ],
    "ai_instructions": [
      "NEVER modify the files listed in 'protected_core_files' - these define DSS core architecture.",
      "If you believe a core file must be changed, STOP and ask the user for explicit approval.",
      "The user can approve changes by setting ALLOW_CORE_CHANGES=true when committing.",
      "All other files can be freely modified as part of normal development.",
      "ALWAYS follow coding standards defined in .knowledge/dss-coding-standards.json:",
      "  - Use Shadow DOM for ALL web components (attachShadow)",
      "  - NEVER use inline event handlers (onclick, onmouseover, etc.)",
      "  - Extract inline styles to <style> blocks in Shadow DOM",
      "  - Use semantic HTML (<button> not <div onclick>)",
      "  - Add proper ARIA attributes and keyboard support",
      "  - Use logger utility instead of console.log",
      "  - Sanitize user input with ComponentHelpers.escapeHtml()",
      "  - Event delegation pattern with data-action attributes",
      "  - Clean up listeners in disconnectedCallback"
    ]
  },
  "coding_standards": {
    "source": ".knowledge/dss-coding-standards.json",
    "enforcement": "pre-commit hooks via scripts/verify-quality.sh",
    "reference_implementations": [
      "admin-ui/js/workdesks/base-workdesk.js",
      "admin-ui/js/components/metrics/ds-frontpage.js",
      "admin-ui/js/components/metrics/ds-metric-card.js"
    ]
  }
  }
}
