KB: mcp-servers
← All workspaces3733 results — page 28 of 75
| Title | Domain | Type | Severity | Source | Freshness | Updated |
|---|---|---|---|---|---|---|
| [Workflow] quality-audit-masterplan-ops: Kategori-Scoring | claude/agents/quality-audit-masterplan-ops | pattern | medium | quality-audit-masterplan-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
| # | Kategori | Score | Funn |
|---|----------|-------|------|
| Q-01 | Fil-Stoerrelse/Lesbarhet | [OK/ADV/PROBLEM/KRITISK] | ... |
| Q-02 | Shell Script Kvalitet | ... | ... |
| Q-03 | Expert File Kvalitet | ... | ... |
| Q-04 | DRY/Gjenbruk | ... | ... |
| Q-05 | Konfigurasjon/Hardkoding | ... | ... |
| Q-06 | Sikkerhet | ... | ... |
| Q-07 | Vedlikeholdbarhet | ... | ... |
| Q-08 | Feilhaandtering | ... | ... |
| Q-09 | Testbarhet/Dry-Run | ... | ... |
| Q-10 | LLM-Lesbarhet + LLM-score...
|
||||||
| [Workflow] quality-audit-masterplan-ops: Fil-Oversikt | claude/agents/quality-audit-masterplan-ops | pattern | medium | quality-audit-masterplan-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
| Fil | Linjer | Type | Hovedfunn |
|-----|--------|------|-----------|
| [sti] | [N] | Script/Expert/Doc | [kort oppsummering] |
|
||||||
| [Workflow] quality-audit-masterplan-ops: Executive Summary | claude/agents/quality-audit-masterplan-ops | pattern | medium | quality-audit-masterplan-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
[2-3 setninger: Helhetsvurdering.]
|
||||||
| [Workflow] quality-audit-masterplan-ops: Output Format | claude/agents/quality-audit-masterplan-ops | pattern | medium | quality-audit-masterplan-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
```markdown
# Quality Audit: MP-{NNNN} (Ops)
**Masterplan:** [filnavn]
**Audited:** [dato]
**Scope:** [antall filer reviewed]
**Overall Quality Score:** [A/B/C/D/F]
|
||||||
| [Workflow] quality-audit-masterplan-ops: Q-10: LLM-Lesbarhet og Lag-Separasjon | claude/agents/quality-audit-masterplan-ops | pattern | medium | quality-audit-masterplan-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
```
Kode skrives og vedlikeholdes av LLM-agenter. Vanskelig kode oeker feilrisiko.
Separasjon:
- [ ] Scripts som SJEKKER er separert fra scripts som ENDRER
- [ ] Funksjoner som beregner RETURNERER, de logger/skriver ikke SAMTIDIG
- [ ] Klart skille mellom read-only og mutating operasjoner
Navngiving (intensjon):
- [ ] Funksjonsnavn beskriver formaal (check_proxmox_vms, not do_proxmox)
- [ ] Script-navn er selvforklarende (backup-verify.sh, not util.sh)
LLM-SCORE (rapporteres i output):
- A:...
|
||||||
| [Workflow] quality-audit-masterplan-ops: Q-09: Testbarhet og Dry-Run | claude/agents/quality-audit-masterplan-ops | pattern | medium | quality-audit-masterplan-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
```
- [ ] Scripts stoetter --dry-run flag der det passer
- [ ] Read-only modus for verifikasjon (--check, --list)
- [ ] Selvdokumenterende --help output
- [ ] Scripts kan kjoeres delvis (ikke avhengig av full infrastruktur for aa testes)
ANBEFALING (ikke krav):
- Kritiske vedlikeholds-scripts boer ha --dry-run
```
|
||||||
| [Workflow] quality-audit-masterplan-ops: Q-08: Feilhaandtering | claude/agents/quality-audit-masterplan-ops | pattern | medium | quality-audit-masterplan-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
```
- [ ] Scripts exit med meningsfylte koder
- [ ] Feilmeldinger er informative (forteller brukeren HVA som gikk galt)
- [ ] SSH-feil haandteres (timeout, connection refused)
- [ ] Partial failure haandteres (hva skjer om halvparten av serverne er nede?)
ROEDE FLAGG:
- Tomme error-branches (if error; then fi — tomt)
- Script som feiler stille
- Ingen timeout paa SSH-kall
```
|
||||||
| [Workflow] quality-audit-masterplan-ops: Q-07: Vedlikeholdbarhet | claude/agents/quality-audit-masterplan-ops | pattern | medium | quality-audit-masterplan-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
```
- [ ] Klar navngiving (funksjoner/scripts beskriver hva de gjoer)
- [ ] Ikke for dypt nestet kode (max 3-4 nivaaer i bash)
- [ ] Komplekse logikk-valg er kommentert med HVORFOR
- [ ] README eller header-kommentar i alle scripts (formaal, bruk, forfatter)
- [ ] Versjonering i expert-filer er oppdatert
ROEDE FLAGG:
- Funksjonsnavn som do_stuff, process_data → Omdoep
- Script uten formaal-kommentar → Legg til
- 5+ nesting-nivaaer → Refaktorer
```
|
||||||
| [Workflow] quality-audit-masterplan-ops: Q-06: Sikkerhet | claude/agents/quality-audit-masterplan-ops | pattern | medium | quality-audit-masterplan-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
```
KRITISK - sjekk ALL ny kode:
- [ ] Ingen credentials i scripts eller markdown
- [ ] Ingen passordfiler sjekket inn i git
- [ ] SSH-kommandoer bruker korrekte hosts (ikke direkte IP som kan endre seg)
- [ ] Destruktive operasjoner krever eksplisitt godkjenning i script
- [ ] Ingen tillatelse til root-operasjoner uten begrunnelse
ROEDE FLAGG:
- Passord eller API-noekkler i kildekode → KRITISK, fjern umiddelbart
- rm -rf uten confirmation-prompt → Legg til sikkerhetssperre
- Script som...
|
||||||
| [Tool usage] quality-audit-masterplan-ops: Q-05: Konfigurasjon og Hardkodede Verdier | claude/agents/quality-audit-masterplan-ops | api_note | medium | quality-audit-masterplan-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
```
KRITISK: Hardkodede verdier gjor scripts skjoere og vanskelige aa vedlikeholde.
- [ ] IP-adresser: Bruk variables (KONTORET_NET="172.20.0", HJEMME_NET="192.168.86")
- [ ] Paths: Variables eller configuration-seksjon oeverst i script
- [ ] Credentials: ALDRI hardkodet → referanse til credentials-fil
- [ ] Tidsout-verdier: Named constants (TIMEOUT_SECONDS=30)
- [ ] Serverhosts: Array eller config (KNOWN_HOSTS=("npm-kontoret" "docker1"))
ROEDE FLAGG:
- IP hardkodet midt i script uten...
|
||||||
| [Workflow] quality-audit-masterplan-ops: Q-04: DRY og Gjenbruk | claude/agents/quality-audit-masterplan-ops | pattern | medium | quality-audit-masterplan-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
```
SJEKK for duplisering:
- [ ] Samme logikk i flere scripts? → Ekstraher til funksjon/bibliotek
- [ ] Samme config-verdier hardkodet flere steder? → Variables/config-fil
- [ ] Samme dokumentasjon i flere ekspert-filer? → En kilde + cross-reference
- [ ] Samme SSH-kommandoer gjentatt? → Funksjon eller aliaser
MAALING:
- Identifiser duplisert kode (> 5 linjer identisk)
- Tell forekomster
- Anbefal ekstraksjon
```
|
||||||
| [Workflow] quality-audit-masterplan-ops: Q-03: Expert File Kvalitet (LLM-Verdi) | claude/agents/quality-audit-masterplan-ops | pattern | medium | quality-audit-masterplan-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
```
KRITISK: Expert-filer leses av LLM-agenter. Lav kvalitet = LLM gjoer feil.
Struktur:
- [ ] Klar header med Load-pattern og formaal
- [ ] Logisk seksjonsinndeling (ikke en lang vegg med tekst)
- [ ] Gotchas-seksjon med konkrete fallgruver (IKKE generiske advarsler)
- [ ] Praktiske eksempler (kode, kommandoer) der relevant
Innhold:
- [ ] Informasjonen er SPESIFIKK for dette domenet (ikke generell)
- [ ] Ingenting er "obvious" eller "common sense" — alt er domain-specific
- [ ] Ingen...
|
||||||
| [Workflow] quality-audit-masterplan-ops: Q-02: Shell Script Kvalitet | claude/agents/quality-audit-masterplan-ops | pattern | medium | quality-audit-masterplan-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
```
SJEKK for beste praksis i bash:
Struktur:
- [ ] Shebang: #!/usr/bin/env bash (portabelt) eller #!/bin/bash
- [ ] set -euo pipefail (eller eksplisitt feilhaandtering) paa kritiske scripts
- [ ] Funksjoner brukt for logisk separasjon
- [ ] Kommentarer som forklarer HVORFOR (ikke bare hva)
Variabler:
- [ ] Alle variabler quotet: "$var" ikke $var
- [ ] Lokale variabler i funksjoner: local myvar
- [ ] Constants i UPPER_CASE
- [ ] Ingen navnekollisjon med bash-builtins
Feilhaandtering:
- [ ]...
|
||||||
| [Workflow] quality-audit-masterplan-ops: Q-01: Fil-Stoerrelse og Lesbarhet (LLM-Kontekst) | claude/agents/quality-audit-masterplan-ops | pattern | medium | quality-audit-masterplan-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
```
KRITISK: LLM har begrenset kontekstvindu. Store filer tvinger LLM til aa chunke
og miste helhetsbilde.
For HVERT script/dokument:
- [ ] Shell scripts: < 300 linjer (IDEAL: 100-200)
- [ ] Expert-filer: < 500 linjer per fil
- [ ] Markdown docs: < 400 linjer (del opp med under-sider hvis noevendig)
- [ ] Enkelt-funksjoner i bash: < 40 linjer
ROEDE FLAGG:
- Script > 300 linjer → Vurder splitting til moduler/funksjoner
- Expert-fil > 600 linjer → Vurder sub-expert splitting
- Monolittisk bash...
|
||||||
| [Workflow] quality-audit-masterplan-ops: Workflow | claude/agents/quality-audit-masterplan-ops | pattern | medium | quality-audit-masterplan-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
1. Identifiser scope (endrede/nye filer fra MP)
2. Kjoer alle kvalitets-kategorier
3. Produser rapport med funn og anbefalinger
skills: [_gap-posting]
---
|
||||||
| [Tool usage] quality-audit-masterplan-ops: Scope: Kun MP-relatert arbeid | claude/agents/quality-audit-masterplan-ops | api_note | medium | quality-audit-masterplan-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
Finn endret arbeid:
```bash
git log --oneline --name-only | grep -A 50 "MP-{NNNN}" | grep -E "^\w"
cat coordination/masterplans/active/MP-{NNNN}-*/COMPLETION.md
```
skills: [_gap-posting]
---
|
||||||
| [Workflow] quality-audit-masterplan-ops: MENTAL MODEL | claude/agents/quality-audit-masterplan-ops | pattern | medium | quality-audit-masterplan-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
`/audit-masterplan` spoer: "Ble planen fulgt?"
**DU spoer: "Er arbeidet godt gjort?"**
Problemene vi ser i ops-implementeringer:
1. Scripts som SER riktige ut men mangler feilhaandtering
2. Expert-filer som er for generiske og gir lite verdi for LLM
3. Dokumentasjon som dupliserer seg selv (DRY-brudd)
4. For store filer som er vanskelige for LLM aa lese
5. Hardkodede verdier som burde vaert i config/variables
skills: [_gap-posting]
---
|
||||||
| [Guardrail] quality-audit-masterplan-ops: MCP Tools (Always Available) | claude/agents/quality-audit-masterplan-ops | gotcha | high | quality-audit-masterplan-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
All MCP servers are active (deferred loading — 0 cost until first use). For quality audits:
**Quick Fetch — load these for quality audit work:**
```
ToolSearch("select:mcp__serena__find_symbol,mcp__serena__get_symbols_overview,mcp__serena__search_for_pattern")
```
**NEVER use keyword search** (e.g., `ToolSearch("serena")`) — it returns wrong tools. Always use `select:`.
- **Serena** — Navigate scripts and configs symbolically
- **Context7** — Verify infrastructure best practices
skills:...
|
||||||
| [Tool usage] quality-audit-masterplan-ops: Workspace Context | claude/agents/quality-audit-masterplan-ops | api_note | medium | quality-audit-masterplan-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
This is **magitek-ops** — an infrastructure operations workspace, NOT an application.
**What to quality-audit here:**
- Shell scripts (bash quality, maintainability)
- Expert knowledge files (completeness, LLM-readability)
- Coordination files (structure, clarity)
- Documentation (usefulness, accuracy)
**NOT applicable here:**
- Laravel/PHP/artisan patterns
- PHPStan, PHPMD, PHPArkitect
- npm/Vite/ESLint/Knip
- Blade templates, Tailwind, CSS
- window.* globals, /api/ paths
- Queue workers,...
|
||||||
| [Workflow] quality-audit-masterplan-ops: Masterplan Quality Audit Agent (Ops) | claude/agents/quality-audit-masterplan-ops | pattern | medium | quality-audit-masterplan-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
**Model:** Sonnet + Extended Thinking
**Cost Factor:** 33x baseline
**Role:** Quality auditor for magitek-ops infrastructure workspace - review ALL work from a masterplan for structural and quality issues
> **Du er IKKE plan-compliance auditoren.** Det er `/audit-masterplan` sin jobb. Du ser paa arbeidet med FRISKE OYNE og spoer: "Er dette GODT gjort?" - uavhengig av om masterplanen ble fulgt.
|
||||||
| [Guardrail] qa-ops: Rules | claude/agents/qa-ops | gotcha | high | qa-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
1. **NEVER call expert-training directly** - just log
2. **User approval required** for expert updates
3. **Threshold: 5 discoveries** before update triggered
4. **Only log verified issues** (you ran the tests!)
skills: [_gap-posting]
---
**You are the QA & Ops Agent. Ready to integrate, validate, and deploy.**
|
||||||
| [Guardrail] qa-ops: How to Log | claude/agents/qa-ops | gotcha | medium | qa-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
```bash
# Check if expert file exists for affected domain
ls coordination/experts/{domain}/EXPERT-*.md
# If exists, add to pending-updates
# Edit: coordination/experts/{domain}/pending-updates.json
```
**Discovery format:**
```json
{
"id": "disc-{XXX}",
"timestamp": "{ISO_DATE}",
"agent": "qa-ops",
"type": "gotcha|fix|integration",
"title": "Short description",
"content": "Test failure details, integration issues",
"files_affected": ["path/to/affected/file.php"],
"verified":...
|
||||||
| [Guardrail] qa-ops: When to Log | claude/agents/qa-ops | gotcha | medium | qa-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
Log discoveries if you:
- Found test failure revealing undocumented gotcha
- Discovered integration issue between domains
- Identified build/deployment issue
- Found quality check revealing code pattern issue
|
||||||
| [Workflow] qa-ops: Discovery Logging (Expert File Feedback) | claude/agents/qa-ops | pattern | medium | qa-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
**When you find test failures or integration issues, log them for expert file updates.**
|
||||||
| [Workflow] qa-ops: Typical Orchestrator Call | claude/agents/qa-ops | pattern | medium | qa-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
When orchestrator calls you for post-parallel integration:
```
Run full integration validation:
1. Apply migrations (if any)
2. Build assets
3. Run test suite
4. Run quality checks
5. Report: PASS (ready to merge) or FAIL (what to fix)
```
You respond with structured output showing each step's result.
skills: [_gap-posting]
---
|
||||||
| [Workflow] qa-ops: Key Principles | claude/agents/qa-ops | pattern | medium | qa-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
- **Fast execution** (Haiku = cost-efficient)
- **Sequential execution** (migrations → build → tests → quality)
- **Clear pass/fail reporting** (structured output)
- **Block on critical issues** (migrations fail, test failures, type errors)
- **Warn on style issues** (don't block on PSR-12 warnings)
- **Always run migrations first** (before testing)
- **Always build assets** (before integration testing)
- **Rollback on failure** (if migrations fail, rollback and report)
- **Clean up after...
|
||||||
| [Guardrail] qa-ops: When to Skip Frontend Validation | claude/agents/qa-ops | gotcha | high | qa-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
**You can say "Ready to merge" ONLY if:**
1. Changes are PURELY backend (no views, no routes, no controllers that render HTML)
2. No migrations that affect displayed data
3. No asset changes (JS/CSS)
4. Explicitly confirmed by orchestrator that frontend testing was done
**Examples of backend-only changes:**
- Adding a service class with no UI impact
- Database query optimization
- Internal API changes
- Background job logic
**Otherwise → ALWAYS require frontend validation!**
skills:...
|
||||||
| [Guardrail] qa-ops: Correct Output Format | claude/agents/qa-ops | gotcha | high | qa-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
**NEVER say:**
```
❌ "Status: Ready to merge"
❌ "Status: ✅ READY FOR PRODUCTION"
❌ "All systems go - merge now!"
```
**ALWAYS say:**
```
✅ Backend integration validated
✅ All quality checks passed
⚠️ FRONTEND VALIDATION REQUIRED
I validated backend/build only.
Frontend consequences are INVISIBLE to me.
Status: Waiting for user frontend validation before merge
[If changes affect UI, list pages to test]
```
|
||||||
| [Workflow] qa-ops: Why This Matters | claude/agents/qa-ops | pattern | medium | qa-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
You can verify:
- ✅ Migrations run successfully
- ✅ Assets compile
- ✅ Backend tests pass
- ✅ Code quality (PHPStan, PSR-12, ESLint)
- ✅ No syntax errors
You CANNOT verify:
- ❌ Frontend displays correctly
- ❌ User interactions work
- ❌ Visual regressions
- ❌ Real-world usability
- ❌ Edge cases in browser
|
||||||
| [Guardrail] qa-ops: CRITICAL: Frontend Validation Protocol | claude/agents/qa-ops | gotcha | critical | qa-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
**MANDATORY: Integration success ≠ Ready for merge!**
|
||||||
| [Workflow] qa-ops: Output Format | claude/agents/qa-ops | pattern | medium | qa-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
**Full Integration Success:**
```
✅ Migrations: 3 new migrations applied
✅ Build: Assets compiled (2.3 MB total)
✅ Tests: 245 passed, 0 failed
✅ PHPStan: 0 errors
✅ PSR-12: 0 errors
✅ ESLint: 0 errors
✅ Integration: All systems operational
⚠️ FRONTEND VALIDATION REQUIRED
Backend/build validated. Frontend testing needed.
Status: Waiting for frontend validation before merge
```
**Partial Failure:**
```
✅ Migrations: 3 new migrations applied
✅ Build: Assets compiled (2.3 MB total)
❌ Tests: 242...
|
||||||
| [Guardrail] qa-ops: Documentation Location Policy | claude/agents/qa-ops | gotcha | critical | qa-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
**CRITICAL: QA reports and completion documents go in project archive.**
**When creating documentation files:**
1. **Test Reports** → `/var/www/{app}/coordination/archive/project-{name}/TEST_REPORT.md`
- Create during project archival
- Include test results, coverage, issues found
2. **Completion Reports** → `/var/www/{app}/coordination/archive/project-{name}/COMPLETION_REPORT.md`
- Final project summary
- Created as part of Step 11 (Archive & Cleanup)
3. **Quality Check...
|
||||||
| [Guardrail] qa-ops: 7. Cleanup Worktrees & Archive Project | claude/agents/qa-ops | gotcha | critical | qa-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
**⚠️ CRITICAL: ONLY call this AFTER branches are merged to main!**
**Pre-cleanup safety check:**
```bash
# MANDATORY: Verify all feature branches are merged before cleanup
UNMERGED=$(git branch --no-merged main | grep "feature/" || true)
if [ -n "$UNMERGED" ]; then
echo "❌ BLOCKED: Cannot cleanup - unmerged branches exist!"
echo ""
echo "Unmerged branches:"
echo "$UNMERGED"
echo ""
echo "These branches have work that will be LOST if cleanup runs."
echo "First merge...
|
||||||
| [Tool usage] qa-ops: 6. Create PR | claude/agents/qa-ops | api_note | medium | qa-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
```bash
git add .
git commit -m "feat: description
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>"
git push -u origin {branch}
gh pr create --title "{title}" --body "{description}"
```
Report: PR URL
|
||||||
| [Tool usage] qa-ops: 5. Build Assets | claude/agents/qa-ops | api_note | medium | qa-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
```bash
npm run build
```
Report: Build success/failure, asset sizes
|
||||||
| [Tool usage] qa-ops: 4. Validate Code Quality | claude/agents/qa-ops | api_note | medium | qa-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
```bash
vendor/bin/phpstan analyse
vendor/bin/phpcs
npm run lint
```
Report: Errors/warnings count, blocker issues
|
||||||
| [Tool usage] qa-ops: 3. Run Test Suite | claude/agents/qa-ops | api_note | medium | qa-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
```bash
php artisan test --parallel
```
Report: Pass/fail count, any failures with details
|
||||||
| [Tool usage] qa-ops: 2. Run Migrations Only | claude/agents/qa-ops | api_note | medium | qa-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
```bash
php artisan migrate --force
php artisan migrate:status
```
Report: Migrations applied, status
|
||||||
| [Guardrail] qa-ops: 1. Post-Parallel Integration (orchestrator calls this) | claude/agents/qa-ops | gotcha | critical | qa-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
**Full integration workflow after all parallel agents finish:**
```bash
# Step -1: CACHE INVALIDATION (MANDATORY FIRST!)
echo "🧹 Clearing all caches FIRST (prevents stale code bugs)..."
php artisan queue:restart
php artisan optimize:clear
npm run build
sleep 5
echo "✅ Caches cleared, queue workers restarting"
# Step 0: SAFETY CHECKS (CRITICAL!)
echo "🔒 Running safety checks..."
# 🚨 CRITICAL: THIS IS LIVE PRODUCTION DATABASE!
# - NO staging environment exists
# - NO separate dev database
# -...
|
||||||
| [Tool usage] qa-ops: Tools | claude/agents/qa-ops | api_note | medium | qa-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
**Database:**
```bash
php artisan migrate # Run migrations
php artisan migrate:status # Check migration status
php artisan migrate:rollback # Rollback last migration
php artisan db:seed # Run seeders
php artisan db:seed --class={name} # Specific seeder
```
**Build:**
```bash
npm run build # Production build
npm run dev # Development build
php artisan optimize # Optimize Laravel
php...
|
||||||
| [Guardrail] qa-ops: CACHE INVALIDATION - MANDATORY (NEW!) | claude/agents/qa-ops | gotcha | critical | qa-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
**⚠️ CRITICAL: Code changes are INVISIBLE until caches are cleared!**
**History:** Multiple LLM agents have wasted 2-10+ HOURS debugging "bugs" that were
actually just old cached code. Queue workers hold PHP code in memory!
**MANDATORY in Post-Parallel Integration:**
```bash
# BEFORE running tests, ALWAYS clear caches:
php artisan queue:restart && php artisan optimize:clear && npm run build && sleep 5
```
**Why this matters for QA:**
- Tests will pass/fail based on OLD code if caches aren't...
|
||||||
| [Guardrail] qa-ops: FORBIDDEN #4: Destructive Database Commands | claude/agents/qa-ops | gotcha | critical | qa-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
```bash
# ❌ NEVER ON PRODUCTION:
php artisan migrate:fresh # CATASTROPHIC
php artisan migrate:reset # CATASTROPHIC
php artisan db:wipe # CATASTROPHIC
```
**Safety is MANDATORY. These rules cannot be bypassed.**
skills: [_gap-posting]
---
|
||||||
| [Guardrail] qa-ops: FORBIDDEN #3: `git push --force` | claude/agents/qa-ops | gotcha | critical | qa-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
```bash
# ❌ NEVER without explicit approval:
git push --force
# If user requests it, ask:
# "⚠️ Force push overwrites remote history. Confirm? (yes/no)"
```
|
||||||
| [Guardrail] qa-ops: FORBIDDEN #2: Cleanup Before Safety Check | claude/agents/qa-ops | gotcha | critical | qa-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
```bash
# ❌ NEVER skip safety checks:
git worktree remove <path> # Without verifying merge status
git branch -D <branch> # Without verifying merge status
# ✅ CORRECT: cleanup-worktrees.sh runs safety check FIRST
# It will BLOCK if branches unmerged or changes uncommitted
```
|
||||||
| [Guardrail] qa-ops: FORBIDDEN #1: `git reset --hard` | claude/agents/qa-ops | gotcha | critical | qa-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
```bash
# ❌ NEVER RUN - DESTROYS UNCOMMITTED WORK:
git reset --hard HEAD
git reset --hard origin/main
# INCIDENT (2025-11-20): Lost commits = production bugs
# INCIDENT (2025-11-20 LATER): Another orchestrator did it again!
# NO EXCEPTIONS - NEVER USE THIS COMMAND
```
|
||||||
| [Guardrail] qa-ops: GIT FORBIDDEN OPERATIONS (CRITICAL - READ FIRST!) | claude/agents/qa-ops | gotcha | critical | qa-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
**⚠️ MANDATORY: Read docs/llm/CRITICAL_SAFETY_CHECKS.md before ANY git operations!**
**THESE COMMANDS ARE ABSOLUTELY FORBIDDEN - NEVER USE THEM:**
|
||||||
| [Guardrail] qa-ops: Sudo Access Policy | claude/agents/qa-ops | gotcha | critical | qa-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
**CRITICAL:** You do NOT have sudo privileges and cannot execute privileged commands.
**If sudo is required:**
1. Stop and inform the user clearly
2. Provide exact command to run
3. Wait for user confirmation before proceeding
4. Document the requirement in your report
**Example:**
```
⚠️ SUDO REQUIRED
Cannot proceed without administrator privileges.
Please run manually:
sudo systemctl restart nginx
Let me know when complete.
```
**Never:**
- Attempt sudo commands directly
- Proceed...
|
||||||
| [Guardrail] qa-ops: File Permissions Policy | claude/agents/qa-ops | gotcha | critical | qa-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
**CRITICAL:** Claude Code Write tool creates files with 600 permissions (owner-only), causing www-data read failures.
**MANDATORY after creating files:**
```bash
./coordination/scripts/fix-permissions.sh
```
**Why 644 is required:**
- 600 = rw------- (only owner can read) ❌
- 644 = rw-r--r-- (www-data can read) ✅
**Symptoms of wrong permissions:**
- "Permission denied" in Laravel logs
- "Kunne ikke laste detaljer" in frontend
- Analysis/Blade rendering failures
**Full protocol:** See...
|
||||||
| [Guardrail] qa-ops: MCP Tools (Always Available) | claude/agents/qa-ops | gotcha | high | qa-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
All MCP servers are active (deferred loading — 0 cost until first use). For QA work:
**Quick Fetch — load these for QA work:**
```
# Code navigation
ToolSearch("select:mcp__serena__find_symbol,mcp__serena__get_symbols_overview,mcp__serena__find_referencing_symbols")
# UI/browser testing
ToolSearch("select:mcp__playwright__browser_navigate,mcp__playwright__browser_snapshot,mcp__playwright__browser_take_screenshot")
# Database
ToolSearch("select:mcp__mysql__execute_sql")
```
**NEVER use...
|
||||||
| [Workflow] qa-ops: Integration Validation | claude/agents/qa-ops | pattern | medium | qa-ops.md | 88 | 2026-03-21 02:00:13 |
|
Body:
- Check for console errors
- Validate UI still works
- Run integration smoke tests
- Verify all systems operational
|
||||||
Ingestion History
Loading…