.claude/skills/pre-production/SKILL.md
Pre-Production Security & Quality Check with Strix AI. Use BEFORE deploying to production to catch vulnerabilities and issues.
npx skillsauth add lucidlabs-hq/agent-kit pre-productionInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Führe Security- und Quality-Checks durch bevor Code in Production geht.
┌─────────────────────────────────────────────────────────────────┐
│ │
│ MVP / Staging PRODUCTION DELIVERY │
│ ───────────── ─────────────────── │
│ /pre-production mvp /pre-production production │
│ │
│ ✅ Quick Security Scan ✅ Full Security Audit │
│ ✅ Basic Vulnerability Check ✅ Deep Vulnerability Scan │
│ ✅ Essential E2E Tests ✅ Full E2E Test Suite │
│ ✅ Build Verification ✅ Performance Check │
│ │
│ Dauer: ~5 Minuten Dauer: ~15-30 Minuten │
│ │
│ Für: Interne Demos, Für: Echte User, │
│ Beta Testing, Paid Customers, │
│ Staging Deploy Final Release │
│ │
└─────────────────────────────────────────────────────────────────┘
# Via curl
curl -sSL https://strix.ai/install | bash
# Oder via pipx
pipx install strix-agent
# Environment Variables
export STRIX_LLM="anthropic/claude-sonnet-4-20250514"
export LLM_API_KEY="your-api-key"
/pre-production mvp)Schneller Check für interne Demos und Staging:
cd frontend && pnpm run build
cd frontend && pnpm run validate
# Lokaler Code-Scan
strix --target ./frontend --scan-mode quick -n
# Oder gegen Staging URL
strix --target https://staging.your-app.com --scan-mode quick -n
cd frontend && pnpm run test:e2e -- --grep "@critical"
/pre-production production)Vollständiger Check vor echtem Production Deploy:
cd frontend && pnpm run build
cd frontend && pnpm run validate
cd frontend && pnpm run test
# Vollständiger Scan gegen Production-ähnliche Umgebung
strix --target https://staging.your-app.com \
--instruction-file .strix/production-check.md \
-n
# Mit spezifischen Anweisungen
strix --target https://staging.your-app.com \
--instruction "Focus on: authentication bypass, injection attacks, access control, XSS, SSRF"
cd frontend && pnpm run test:e2e
# Lighthouse via agent-browser
agent-browser open https://staging.your-app.com
agent-browser evaluate "JSON.stringify(window.performance.timing)"
Erstelle .strix/production-check.md für konsistente Checks:
# Production Security Check
## Target Information
- Next.js 16 Application
- Convex Database
- Better Auth Authentication
## Focus Areas
### Authentication
- Test login/logout flows
- Check session handling
- Verify JWT/token security
- Test password reset flow
### Authorization
- Test role-based access
- Verify API endpoint protection
- Check for IDOR vulnerabilities
### Injection
- Test all input fields
- Check API parameters
- Verify SQL/NoSQL injection protection
### Client-Side
- Check for XSS in user inputs
- Verify CSP headers
- Test for open redirects
### API Security
- Check rate limiting
- Verify CORS configuration
- Test for SSRF
## Exclude
- /api/health (public)
- Static assets
Development Staging Production
─────────── ─────── ──────────
/visual-verify → /pre-production → /pre-production
mvp production
Schnell Quick Check Full Audit
UI Focus Security Basics Complete Security
/pre-production mvp
/pre-production production
| Issue | Aktion | |-------|--------| | SQL/NoSQL Injection | STOP - Sofort fixen | | Auth Bypass | STOP - Sofort fixen | | RCE Vulnerability | STOP - Sofort fixen |
| Issue | Aktion | |-------|--------| | XSS (Stored) | Fix vor Production | | IDOR | Fix vor Production | | SSRF | Fix vor Production |
| Issue | Aktion | |-------|--------| | XSS (Reflected) | Dokumentieren, zeitnah fixen | | Missing Rate Limit | Dokumentieren, zeitnah fixen |
| Issue | Aktion | |-------|--------| | Information Disclosure | Backlog | | Missing Headers | Backlog |
development
Deploy invoice-accounting-assistant to HQ server. Runs tests first (TDD), then builds and deploys. Use when ready to push changes to staging/production.
testing
Visual UI verification with agent-browser. Use after implementing UI components to take screenshots, verify interactions, and self-check your work. FASTER than E2E tests.
documentation
Update README with current project status and features. Use after completing features.
tools
--- name: time-report description: Cross-project time report. Aggregates all session data from ~/.claude-time/sessions/. Use to see how much time was spent across all projects. disable-model-invocation: true allowed-tools: Bash, Read argument-hint: [all | this-week | this-month | last-month | {project-name}] --- # Time Report: Cross-Project Session Overview ## Objective Read ALL session files from `~/.claude-time/sessions/*.json` and produce an aggregated time report. Supports filtering by pe