bcquality/custom/setup/machine/CLAUDE.md
Michael Dieringer 90048bb262 v23: Feynman support-rolle — agent i rosteret + Mode C support-profil
- custom/agents/feynman.agent.md: ny support-navigator for ikke-udviklere.
  Strengt læsende, svar med kildehenvisning (kildetrappen: docs/specs ->
  projectmemory -> decisions -> kode -> Microsoft via MCP), Feynman-testen
  på alle svar, struktureret eskalering via Feynman-notatet (Columbo/
  al-triage-klar). Aktiveres med trigger-frasen 'Feynman:'.
- curabis-standard.agent.md v23: Feynman i artefakt-tabel, Mode A 4c,
  Mode B-tabel og CLAUDE.md-templaten (support-sektion der slår self-heal,
  AL MCP og BC MCP fra i support-sessioner + on-demand-entry). Ny MODE C:
  'Onboard en supportbruger til CURABIS Standard' — browser-only (claude.ai/
  Claude Code på web, ingen VS Code), GitHub read-only, GitHub MCP +
  Microsoft Learn MCP, ingen secrets, ingen QualityHub-adgang.
- templates/feynman-onboarding.md: dansk onboarding-dokument til
  supportbrugeren ({SUPPORT_NAME}/{REPO_LIST}/{SETUP_DATE}-tokens).
- machine/CLAUDE.md: tredje trigger-kommando tilføjet.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-30 09:57:49 +02:00

3.1 KiB

CURABIS — Global Claude Code Instructions

These instructions apply to every Claude Code session, regardless of project. BCQuality is a PRIVATE repo: all access is git-based via the channel clone at %USERPROFILE%\.claude\QualityHub (pinned to stable; auth = Git Credential Manager). No raw.githubusercontent URLs — they do not work and must not be used.

Auto-update BCQuality (runs at every session start)

If the current project has .github/.agents/bcquality.agent.md:

  1. Freshen the channel clone and read its SHA: git -C "$env:USERPROFILE\.claude\QualityHub" fetch origin stable --quiet git -C "$env:USERPROFILE\.claude\QualityHub" rev-parse origin/stable (If the clone is missing: run the machine self-heal from the project CLAUDE.md — two lines: git clone + Install-CurabisMachine.ps1.)
  2. Read stored SHA from ~/.claude/.bcquality-version (may not exist yet)
  3. If SHA is different (or file missing): a. git -C "$env:USERPROFILE\.claude\QualityHub" checkout -B stable origin/stable --quiet b. Execute Mode B from the clone: %USERPROFILE%\.claude\QualityHub\custom\setup\curabis-standard.agent.md c. Refresh the local knowledge mirror: powershell -ExecutionPolicy Bypass -File "$env:USERPROFILE\.claude\sync-bcquality-knowledge.ps1" (git-based; also writes the new SHA to the version marker) d. Report: "BCQuality opdateret til [short-sha] — [antal] filer tjekket"
  4. If SHA is unchanged: continue silently — do NOT re-run the sync script. One sync per actual upstream change covers every project worked on until the next one.

Do this silently and quickly — do not ask for permission, do not explain the process unless something actually changed.

BCQuality knowledge files — session start

At session start, read BCQuality rules from the local cache (fast — no network):

  • custom/ — always read in full: %USERPROFILE%\.claude\bcquality-knowledge\custom\**\*.md
  • community/ and microsoft/ — do NOT read in full (200+ files is too much to preload). Instead read %USERPROFILE%\.claude\bcquality-knowledge\INDEX.md first, and open only the files whose domain/keywords match the current task.

If the cache directory is missing or empty: run powershell -ExecutionPolicy Bypass -File "$env:USERPROFILE\.claude\sync-bcquality-knowledge.ps1" once, then proceed as above.

CURABIS Standard project setup

When the user says either of these commands, freshen the channel clone (see Auto-update step 1) and follow the setup agent read from:

%USERPROFILE%\.claude\QualityHub\custom\setup\curabis-standard.agent.md
  • "Konfigurer dette projekt til CURABIS Standard" → fuld setup af nyt repo
  • "Opdater CURABIS Standard fra BCQuality" → manuel opdatering
  • "Onboard en supportbruger til CURABIS Standard" → support-profil (Mode C, Feynman)

Identity

  • Organization: CURABIS ApS
  • BC MCP bridge is installed at ~/.claude/bc-mcp-bridge.js
  • BC MCP credentials are at ~/.bc-mcp.config.json (never commit this file)
  • User: [Your Name] (username: [your-username])