### Summary of Changes
1. Documentation Consolidation:
• Relocated the docs/ folder and all repository .md files (README.md, DEPLOYMENT.md, DOCKER_README.md,
DOMAINS_README.md, GETTING_STARTED.md, CI_CD_PORTAINER_GUIDE.md, ADMIN_DEPLOYMENT_SUMMARY.md,
SECURITY_PRIVATE_FILES.md, handoff.md, azure-project-plan.md, plus service-specific READMEs) into .
• Updated document links in README.md.
2. AI Agent Project Map:
• Created PROJECT_MAP.md in the project root containing complete architecture diagrams, service specs, ports, DB
schemas, environment variables, and developer workflows.
• Added PROJECT_MAP.md to .gitignore.
3. Monitoring UI & Infrastructure Integration:
• Added monitoring_ui service to docker-compose.yml (port 5175).
• Configured Gitea workflow docker-build.yml for monitoring_ui builds.
• Added CORS middleware headers in index.js.
• Added nginx.conf copy step in Dockerfile.
──────
### Recommended Commit Message
docs: consolidate project documentation into monitoring_ui and add agent project map
- Move all markdown documentation files and docs/ folder into monitoring_ui/docs/
- Update documentation hub index (monitoring_ui/docs/README.md) with relative paths
- Generate comprehensive AI agent reference map (PROJECT_MAP.md) in repository root
- Add PROJECT_MAP.md and monitoring_ui build output/env overrides to .gitignore
- Integrate monitoring_ui service into docker-compose.yml and Gitea CI workflow
- Configure CORS handling in employee_api for monitoring dashboard access
──────
### Alternative Short Commit Message
refactor(docs): move docs to monitoring_ui and create AI agent PROJECT_MAP.md
9.1 KiB
Important: This skill provides guidance and recommended instructions to assist the AI system. Outputs are not guaranteed to be complete, correct, secure, or applicable to every scenario. Results should be reviewed and validated by a human before being applied. The AI model may choose not to follow all instructions exactly, and additional verification may be required.
.NET / C# — Debug & Build Configuration
Covers .NET projects. Project-type-specific hosting (Functions, App Service, etc.) is defined in
project-types/{type}.md— this file covers the .NET runtime layer only.
Prerequisites
| Tool | Detection Command | Required For | Install Link |
|---|---|---|---|
| .NET SDK | dotnet --version |
Build and run .NET projects | dotnet.microsoft.com |
| C# extension | VS Code extension ms-dotnettools.csharp installed |
Contributes the coreclr debugger type required for F5 debugging |
Marketplace |
Debugger Properties
| Property | Value | Notes |
|---|---|---|
| Debug protocol | CoreCLR DAP |
.NET Core / .NET 5+ debug adapter protocol |
| VS Code debugger type | coreclr |
Contributed by the C# extension (ms-dotnettools.csharp) |
| Request mode | attach |
VS Code attaches to a running .NET process by processName |
| Base debug port | — | CoreCLR attach uses processName, not a port |
VS Code Problem Matchers
| Task | Watch Problem Matcher | Build Problem Matcher |
|---|---|---|
dotnet build |
— | $msCompile |
processName Determination
The coreclr debugger (request: attach) matches processName literally against the OS process list. Getting this wrong means F5 silently fails.
Cross-Platform Rules
| Platform | Process name | Example |
|---|---|---|
| Windows | {AssemblyName}.exe |
Scrapbook.Api.exe |
| macOS / Linux | {AssemblyName} (no extension) |
Scrapbook.Api |
⛔ Windows requires the
.exesuffix. Writing"Scrapbook.Api"instead of"Scrapbook.Api.exe"produces:No process with the specified name is currently running.
Deriving AssemblyName
The process name is derived from the project's .csproj:
- If
<AssemblyName>is defined, use that value - Otherwise, the
.csprojfilename without extension (e.g.,Functions.csproj→Functions) - The
.csprojMUST have<OutputType>Exe</OutputType>— otherwise no executable is produced and there's no target to debug
Verify before writing launch.json: after dotnet build, confirm the executable exists at {projectDir}/bin/Debug/{tfm}/{AssemblyName}[.exe].
❌ Do NOT use
${command:pickProcess}or${command:azureFunctions.pickProcess}— both pop a blocking dialog every F5. Use literalprocessName.
Build Chain
Tasks owned by this runtime: build. The startup task and its dependency wiring are provided by the project type's Runtime Wiring table — not this file.
Task label scoping: All task labels MUST be prefixed with the service ID (e.g.,
functions-api: dotnet build). See generate.md § Service ID Derivation.
Chain shape (startup task comes from the project type):
"{service-id}: {startup task}" ← from project-types/{type}.md Runtime Wiring
├── dependsOn: "{service-id}: dotnet build" ← this file
└── dependsOn: "Start Emulators" ← only when emulators are required
Build Commands
| Step | Task Label | Command | Purpose | Background? |
|---|---|---|---|---|
| build | {service-id}: dotnet build |
dotnet build {path-to-csproj} --configuration Debug |
Restore + compile | No |
{
"label": "{service-id}: dotnet build",
"type": "process",
"command": "dotnet",
"args": [
"build",
"${workspaceFolder}/{path-to-csproj}",
"--configuration",
"Debug"
],
"problemMatcher": "$msCompile",
"group": "build",
"runOptions": { "instanceLimit": 1, "instancePolicy": "silent" }
}
.NET does not have a watch-based incremental compile step in the debug chain (unlike TypeScript's
tsc --watch). Each F5 re-runsdotnet build.
See generate.md § Task runOptions Rules for how these build steps are rendered into VS Code task configuration.
Convenience Scripts
The plan's Convenience Scripts table specifies WHICH scripts to generate. This section covers HOW to register them for .NET projects.
Because .NET projects do not have a built-in script runner equivalent to npm run, convenience scripts live as standalone scripts under scripts/.
Script runner: Scripts in scripts/ directory
Run command pattern: Platform-dependent (see below)
Script Format
Generate scripts appropriate for the user's platform:
| Platform | File extension | Shebang / header | Make executable |
|---|---|---|---|
| macOS / Linux | .sh |
#!/bin/bash |
chmod +x |
| Windows | .ps1 |
— | — (PowerShell scripts run directly) |
When the platform is ambiguous, generate
.shscripts — they also work on Windows via Git Bash or WSL.
Common Script Implementations
Use these implementations when building scripts from the plan:
| Script Purpose | Typical Command | Notes |
|---|---|---|
| Start emulators | docker compose up -d |
Idempotent — safe to re-run |
| Stop emulators | docker compose down |
Stops and removes containers |
| Clean emulator data | Stop containers with volumes, then remove bind-mount data directories | Run docker compose down -v (-v also drops named volumes like Postgres's postgres_data), then remove {data-dirs} = ./.{name} bind-mount directories derived from docker-compose.yml volumes: mounts. Use platform-appropriate removal (e.g., rm -rf on macOS/Linux, Remove-Item -Recurse on Windows) |
| Run migrations | {migration tool CLI command} |
See migrations.md for how to determine the command |
VS Code Extension Recommendations (.vscode/extensions.json)
| Extension ID | Why Required |
|---|---|
ms-dotnettools.csharp |
Contributes the "type": "coreclr" debugger for .NET attach/launch |
ms-dotnettools.csdevkit |
C# Dev Kit — adds Solution Explorer, test discovery, and enhanced debugging experience |
Project-type-specific extensions (e.g.,
ms-azuretools.vscode-azurefunctionsfor Functions) are listed inproject-types/{type}.md.
VS Code Workspace Settings (.vscode/settings.json)
| Setting | Value | Why |
|---|---|---|
files.exclude: **/bin |
true |
Hide .NET build output from explorer |
files.exclude: **/obj |
true |
Hide .NET intermediate build files from explorer |
These exclusions reduce workspace noise. They are deep-merged with any existing
files.excludeentries — see generate.md § VS Code Workspace Settings.
Checklist — .NET Runtime Validation
⛔ MANDATORY — runs during Phase 3 validation after all artifacts are generated. You MUST verify every item below. Do NOT skip, assume, or approximate results.
After generating VS Code configuration, verify the following were produced correctly:
Post-Generation Checks
- ✅
dotnet buildtask exists intasks.jsonwith$msCompileproblem matcher - ✅
processNameinlaunch.jsonmatches theAssemblyNamederived from.csproj(platform-appropriate — see § processName Determination) - ✅
launch.jsonuses"type": "coreclr"with"request": "attach" - ✅
.vscode/extensions.jsonincludesms-dotnettools.csharpandms-dotnettools.csdevkit
Live Validation Checks
These checks run during Phase 3 validation (validation.md Step 7), after the ready signal is observed:
- ✅ Verify the target process exists for attachment — the
processNameinlaunch.jsonmust match a running OS process:- Windows PowerShell:
Get-Process -Name "<processName without .exe>" -ErrorAction SilentlyContinue→ must return a process - macOS/Linux:
pgrep -x "<processName>"→ must return a PID
- Windows PowerShell:
- ✅ On Windows, confirm
processNameincludes the.exesuffix (e.g.,"Scrapbook.Api.exe", NOT"Scrapbook.Api") - ✅ If process check fails, fix
launch.jsonbefore marking the config ✅
If the process is not found, the F5 attach WILL fail with:
"No process with the specified name is currently running"