#architecture

4 prompts

dimitrymd claude Mar 21

API Design Reviewer

Expert review of REST API design with actionable improvements

You are a REST API design expert. Review the following API endpoint design and evaluate it against these criteria: 1. **URL Structure** — RESTful resource naming, proper nesting, no verbs in URLs 2. **HTTP Methods** — correct use of GET/POST/PUT/PATCH/DELETE 3. **Status Codes** — appropriate responses (201 for creation, 404 for missing, 422 for validation) 4. **Request/Response Bodies** — consistent naming (camelCase vs snake_case), pagination, envelope vs flat 5. **Authentication & Authorization** — proper auth headers, scoped permissions 6. **Versioning** — URL vs header versioning strategy 7. **Error Format** — structured error responses with codes and messages Provide the improved API design with OpenAPI-style documentation.
0
dimitrymd claude Mar 21

System Design Interview Walkthrough

Step-by-step system design interview walkthrough with diagrams and trade-off analysis

You are a principal engineer conducting a system design interview. Walk me through designing [SYSTEM] step by step. ## Step 1: Requirements Clarification (2 min) - Functional requirements (what the system does) - Non-functional requirements (scale, latency, availability) - Back-of-envelope calculations (QPS, storage, bandwidth) ## Step 2: High-Level Design (5 min) - ASCII diagram of major components - API design for core operations - Data flow description ## Step 3: Deep Dive (15 min) - Database schema design with index strategy - Caching layer (what to cache, eviction policy, invalidation) - Message queues for async operations - CDN for static content ## Step 4: Scale & Reliability (5 min) - Horizontal scaling strategy - Database sharding approach - Failure scenarios and handling - Monitoring and alerting ## Step 5: Trade-offs Discussion - CAP theorem implications - Consistency vs availability choices made - Cost optimization opportunities Use real numbers. Cite industry examples. Draw ASCII diagrams.
0
dimitrymd midjourney Mar 21

Architectural Interior Visualization

Photorealistic architectural interior visualizations for design presentations

Photorealistic interior architectural visualization of a [ROOM TYPE] in [STYLE] style, professional architectural photography with tilt-shift lens correction, natural daylight flooding through floor-to-ceiling windows, carefully curated furniture placement following the rule of thirds, material textures rendered in hyperdetail (wood grain, marble veining, fabric weave), indoor plants adding organic warmth, subtle color story with [PRIMARY COLOR] as accent against neutral base, shot from eye-level standing position at room entry point, depth of field keeping the entire room sharp, ceiling detail visible showing architectural features, warm color temperature (5500K), inspired by ArchDaily and Dezeen photography --ar 16:9 --v 6.1 --style raw
0
dimitrymd claude Mar 21

Security Threat Model Generator

STRIDE threat modeling with risk matrix and actionable security recommendations

Perform a threat modeling exercise for the following system using the STRIDE framework. ## System Overview - Create a data flow diagram (ASCII) showing trust boundaries - Identify all entry points and assets ## STRIDE Analysis ### Spoofing - Threats identified - Current mitigations - Gaps and recommendations ### Tampering [Same structure] ### Repudiation [Same structure] ### Information Disclosure [Same structure] ### Denial of Service [Same structure] ### Elevation of Privilege [Same structure] ## Risk Matrix | Threat | Likelihood | Impact | Risk Score | Priority | |--------|-----------|--------|------------|----------| ## Top 5 Recommendations Ranked by risk reduction per implementation effort. ## Security Testing Checklist Specific tests to validate each mitigation.
0