---
inclusion: auto
---

# Analyse-O2C-C2S Standards

## Quality Gates (before every commit)

1. `gitleaks detect --source . --no-git` — no secrets in code
2. No personal data (emails, phone numbers) in exported team pages
3. All filenames OneDrive-safe (no brackets, &, @, #, +)
4. HTML outputs must be self-contained (no external CDN dependencies)

## Conventional Commits

```
feat(overview): add interactive team map
data(c2s): export BARD team pages
analysis(synergies): identify O2C-C2S overlap areas
fix(filenames): remove OneDrive-incompatible characters
docs(readme): update team counts
```

## Git

- Repo: https://git.tech.rz.db.de/AndreKnie/analyse-o2c-c2s
- Branch: main
- Push requires GITLAB_TOKEN_BESTELLSYSTEM (write scope)
- Git binary: `C:\Users\AndreKnie\AppData\Local\GitHubDesktop\app-3.5.8\resources\app\git\cmd\git.exe`

## Confluence Access

- Base: https://arija-confluence.jaas.service.deutschebahn.com/rest/api
- Auth: Bearer token (CONFLUENCE_TOKEN from workspace .secrets)
- CQL search: `/content/search?cql=<url-encoded>`
- Page content: `/content/<id>?expand=body.storage`
- Strip HTML to plain text before saving

## File Naming

- All filenames OneDrive-safe
- No brackets `()[]{}`, no `#%&@$+=~`
- Replace umlauts: ä→ae, ö→oe, ü→ue, ß→ss
- Use hyphens for word separation
- Team files: `Team-Name.md`
- Analysis files: `YYYY-MM-DD-topic.md`

## Security

- NEVER commit tokens or credentials
- Data exports must not contain personal data
- .gitignore excludes .secrets, .env, *.key

## Autonomous Mode

- Create feature branches for significant changes
- For data updates (new Confluence exports): commit directly to main is OK
- Report: `PROGRESS: X%` / `HELP: description`
