
Engineer Analyst
- 241 installs
- 70 repo stars
- Updated July 26, 2026
- rysweet/amplihack
engineer-analyst is an amplihack Claude Code skill that stress-tests project scope from an engineering feasibility perspective covering architecture, complexity, and dependencies before amplihack agents commit to an impl
About
engineer-analyst is an amplihack planning skill that evaluates proposed work through an engineering feasibility lens before autonomous agents finalize implementation plans. The skill stress-tests architecture assumptions, estimates complexity hotspots, maps dependency risks, and surfaces scope tradeoffs that product briefs often omit. Engineering leads and agent orchestrators reach for engineer-analyst when amplihack or similar agents are about to commit to a build plan and the team needs a reality check on technical viability. Output informs go/no-go scope decisions, phased delivery options, and dependency ordering rather than writing production code directly.
- Feasibility review
- Architecture risk flags
- Dependency mapping
- Complexity estimates
- Pre-build engineering gate
Engineer Analyst by the numbers
- 241 all-time installs (skills.sh)
- +1 installs in the week ending Jul 26, 2026 (Skillselion tracking)
- Ranked #2,570 of 16,556 AI & Agent Building skills by installs in the Skillselion catalog
- Data as of Aug 2, 2026 (Skillselion catalog sync)
npx skills add https://github.com/rysweet/amplihack --skill engineer-analystAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 241 |
|---|---|
| repo stars | ★ 70 |
| Last updated | July 26, 2026 |
| Repository | rysweet/amplihack ↗ |
How do you validate engineering feasibility before implementation?
Stress-test scope from an engineering feasibility lens—architecture, complexity, dependencies—before amplihack agents commit to an implementation plan.
Who is it for?
Engineering leads and agent orchestrators validating technical scope before amplihack agents lock an implementation plan.
Skip if: Developers who already have approved architecture docs and only need OAuth, CSS, or MSVC build configuration help.
When should I use this skill?
The user or an agent workflow needs engineering feasibility analysis, scope stress-testing, or dependency risk review before implementation.
What you get
Feasibility assessment, complexity risk map, dependency analysis, and scoped implementation recommendation.
- Feasibility assessment document
- Dependency risk map
- Scoped implementation recommendation
Files
Engineer Analyst Skill
Purpose
Analyze technical systems, problems, and designs through the disciplinary lens of engineering, applying established frameworks (systems engineering, design thinking, optimization theory), multiple methodological approaches (first principles analysis, failure mode analysis, design of experiments), and evidence-based practices to understand how systems work, why they fail, and how to design reliable, efficient, and scalable solutions.
When to Use This Skill
- System Design: Architect new systems, subsystems, or components with clear requirements
- Technical Feasibility: Assess whether proposed solutions are technically viable
- Performance Optimization: Improve speed, efficiency, throughput, or resource utilization
- Failure Analysis: Diagnose why systems fail and prevent recurrence
- Trade-off Analysis: Evaluate competing design options with multiple constraints
- Scalability Assessment: Determine whether systems can grow to meet future demands
- Requirements Engineering: Clarify, decompose, and validate technical requirements
- Reliability Engineering: Design for high availability, fault tolerance, and resilience
Core Philosophy: Engineering Thinking
Engineering analysis rests on several fundamental principles:
First Principles Reasoning: Break complex problems down to fundamental truths and reason up from there. Don't rely on analogy or convention when fundamentals matter.
Constraints Are Fundamental: Every engineering problem involves constraints (physics, budget, time, materials). Design happens within constraints, not despite them.
Trade-offs Are Inevitable: No design optimizes everything. Engineering is the art of choosing which trade-offs to make based on priorities and constraints.
Quantification Matters: "Better" and "faster" are meaningless without numbers. Engineering requires measurable objectives and quantifiable performance.
Systems Thinking: Components interact in complex ways. Local optimization can harm global performance. Always consider the whole system.
Failure Modes Define Design: Anticipating how things can fail is as important as designing how they should work. Robust systems account for failure modes explicitly.
Iterative Refinement: Perfect designs rarely emerge fully formed. Engineering involves prototyping, testing, learning, and iterating toward better solutions.
Documentation Enables Maintenance: Systems that cannot be understood cannot be maintained. Clear documentation is engineering deliverable, not afterthought.
---
Theoretical Foundations (Expandable)
Foundation 1: First Principles Analysis
Core Principles:
- Break problems down to fundamental physical laws, constraints, and truths
- Reason up from foundations rather than by analogy or precedent
- Question assumptions and conventional wisdom
- Rebuild understanding from ground up
- Identify true constraints vs. artificial limitations
Key Insights:
- Analogies can mislead when contexts differ fundamentally
- Conventional approaches may be path-dependent, not optimal
- True constraints (physics, mathematics) vs. historical constraints (how things have been done)
- First principles enable breakthrough innovations by questioning inherited assumptions
- Computational limits, thermodynamic limits, information-theoretic limits are real boundaries
Famous Practitioner: Elon Musk
- Approach: "Boil things down to their fundamental truths and reason up from there"
- Example: Rocket cost analysis - question inherited aerospace pricing assumptions, rebuild from material costs
- Application: Battery costs, rocket reusability, tunneling costs
When to Apply:
- Novel problems without clear precedents
- When existing solutions seem unnecessarily expensive or complex
- Challenging conventional wisdom or industry norms
- Fundamental redesigns or paradigm shifts
- Assessing theoretical limits on performance
Sources:
Foundation 2: Systems Engineering and V-Model
Core Principles:
- Structured approach to designing complex systems
- Requirements flow down; verification flows up
- Left side: Decomposition (requirements → architecture → detailed design)
- Right side: Integration (components → subsystems → system → validation)
- Each decomposition level has corresponding integration/test level
- Traceability from requirements through implementation to testing
Key Insights:
- Early requirements errors are exponentially expensive to fix later
- Integration problems arise from interface mismatches, not component failures
- System validation requires end-to-end testing, not just component tests
- Iterative refinement within V-model improves quality
- Agile approaches can be integrated into V-model framework
Process Stages:
1. Concept of Operations: What should system do? For whom? 2. Requirements Analysis: Functional, performance, interface, constraint requirements 3. System Architecture: High-level structure, subsystem boundaries, interfaces 4. Detailed Design: Component-level specifications 5. Implementation: Build/code components 6. Integration: Assemble components into subsystems, subsystems into system 7. Verification: Does system meet requirements? (testing) 8. Validation: Does system solve user's problem? (acceptance)
When to Apply:
- Complex systems with many interacting components
- Safety-critical or high-reliability systems
- Multi-disciplinary engineering projects (hardware + software + human)
- Large teams requiring coordination
- Long development timelines
Sources:
Foundation 3: Design Optimization and Trade-off Analysis
Core Principles:
- Every design involves multiple objectives (cost, performance, reliability, size, weight)
- Objectives often conflict (faster vs. cheaper, lighter vs. stronger)
- Pareto frontier: Set of designs where improving one objective requires degrading another
- Optimal design depends on relative priorities and weights
- Sensitivity analysis reveals which parameters matter most
Key Insights:
- No single "best" design without specifying priorities
- Designs on Pareto frontier are non-dominated; all others are suboptimal
- Constraints reduce feasible space; relaxing constraints enables better designs
- Robustness (performance despite variability) vs. optimality trade-off
- Multi-objective optimization requires either weighted objectives or Pareto analysis
Optimization Methods:
- Linear Programming: Linear objectives and constraints, efficient algorithms
- Nonlinear Optimization: Gradient-based methods (interior point, SQP), global methods (genetic algorithms, simulated annealing)
- Multi-Objective Optimization: Pareto front calculation, weighted sum method, ε-constraint method
- Design of Experiments (DOE): Systematically explore design space, identify important factors
- Response Surface Methods: Build surrogate models from expensive simulations
When to Apply:
- Design choices with competing objectives
- Performance tuning of complex systems
- Resource allocation under constraints
- Assessing sensitivity to parameter variations
- Exploring large design spaces systematically
Sources:
Foundation 4: Failure Modes and Effects Analysis (FMEA)
Core Principles:
- Systematically identify potential failure modes for each component/function
- Assess severity, occurrence likelihood, and detectability of each failure
- Prioritize failures by Risk Priority Number (RPN) = Severity × Occurrence × Detection
- Implement design changes or controls to mitigate high-priority risks
- Document rationale for accepting residual risks
Key Insights:
- Failures at component level propagate to system level
- Single points of failure (SPOF) are critical vulnerabilities
- Redundancy, fault tolerance, and graceful degradation mitigate failures
- Detection mechanisms (alarms, monitors, diagnostics) reduce failure impact
- Human factors failures (operator error) often dominate
- Common cause failures violate independence assumptions
FMEA Process:
1. Identify functions: What does system/component do? 2. Identify failure modes: How can each function fail? 3. Assess effects: What happens if this failure occurs? 4. Assign severity: How bad is the effect? (1-10 scale) 5. Assess occurrence: How likely is this failure? (1-10 scale) 6. Assess detectability: Can we detect before consequences? (1-10 scale) 7. Calculate RPN: Severity × Occurrence × Detection 8. Prioritize: Address highest RPN failures first 9. Implement controls: Design changes, testing, redundancy, alarms 10. Recalculate: Verify RPN reduced to acceptable level
When to Apply:
- Safety-critical systems (medical, aerospace, automotive)
- High-reliability requirements (data centers, infrastructure)
- Complex systems with many potential failure modes
- New designs without operational history
- Root cause analysis after failures occur
Sources:
Foundation 5: Scalability Analysis and Performance Engineering
Core Principles:
- Scalability: System's ability to handle growth (users, data, traffic, complexity)
- Vertical scaling (bigger machines) vs. horizontal scaling (more machines)
- Amdahl's Law: Speedup limited by serial fraction of workload
- Bottlenecks shift as systems scale (CPU → memory → I/O → network)
- Performance requires measurement, not guessing
Key Insights:
- Premature optimization is wasteful; measure first, optimize bottlenecks
- Algorithmic complexity (Big-O) determines scalability at large scale
- Caching, replication, partitioning are fundamental scaling strategies
- Coordination overhead increases with parallelism (network calls, locks, consensus)
- Load balancing, auto-scaling, and elastic resources enable horizontal scaling
- CAP theorem: Can't have consistency, availability, partition-tolerance simultaneously
Scalability Patterns:
- Stateless services: Enable horizontal scaling without coordination
- Database sharding: Partition data across multiple databases
- Caching layers: Reduce load on backend systems (CDN, Redis, memcached)
- Async processing: Decouple request handling from heavy work (message queues)
- Read replicas: Scale read-heavy workloads
- Microservices: Independently scalable components
When to Apply:
- Systems expecting high growth
- Performance problems with existing systems
- Capacity planning and infrastructure sizing
- Choosing architectures for new systems
- Evaluating whether design will scale
Sources:
---
Analytical Frameworks (Expandable)
Framework 1: Requirements Engineering (MoSCoW Prioritization)
Overview: Systematic approach to eliciting, documenting, and validating requirements.
MoSCoW Method:
- Must Have: Non-negotiable requirements; system fails without them
- Should Have: Important but not critical; workarounds possible
- Could Have: Desirable if time/budget permits
- Won't Have (this time): Explicitly deferred to future versions
Requirements Types:
- Functional: What system must do (features, capabilities)
- Performance: How fast, how much, how many
- Interface: How system interacts with users, other systems
- Operational: Deployment, maintenance, monitoring requirements
- Constraint: Limits on technology, budget, schedule
Validation Techniques:
- Prototyping and mockups
- Use cases and scenarios
- Requirements reviews with stakeholders
- Traceability matrices
- Acceptance criteria definition
When to Use: Beginning of any project, clarifying feature requests, evaluating feasibility
Sources:
Framework 2: Design Thinking (Double Diamond)
Overview: Human-centered iterative design process with divergent and convergent phases.
Four Phases:
1. Discover (Diverge): Research users, context, problem space 2. Define (Converge): Synthesize insights, frame problem clearly 3. Develop (Diverge): Ideate many solutions, prototype concepts 4. Deliver (Converge): Test, refine, implement best solution
Key Principles:
- Empathy with users drives design
- Rapid prototyping and iteration
- Divergent thinking generates options; convergent thinking selects
- Fail fast and learn from failures
- Multidisciplinary collaboration
Tools and Techniques:
- User interviews and observation
- Persona development
- Journey mapping
- Brainstorming and sketching
- Rapid prototyping (paper, digital, physical)
- Usability testing
When to Use: User-facing products, unclear requirements, innovation projects, interdisciplinary teams
Sources:
Framework 3: Root Cause Analysis (5 Whys and Fishbone Diagrams)
Overview: Systematic techniques for identifying underlying causes of problems.
5 Whys Method:
- Ask "Why?" five times (or until reaching root cause)
- Each answer becomes input to next "Why?"
- Reveals chain of causation from symptom to root
- Simple but effective for relatively straightforward problems
Example:
1. Why did server crash? → Ran out of memory 2. Why out of memory? → Memory leak in application 3. Why memory leak? → Objects not properly deallocated 4. Why not deallocated? → Missing cleanup in error handling path 5. Why missing? → Error path not adequately tested
Fishbone (Ishikawa) Diagram:
- Visual tool organizing potential causes into categories
- Common categories: People, Process, Technology, Environment, Materials, Measurement
- Brainstorm causes in each category
- Reveals multiple contributing factors
When to Use: Production incidents, recurring failures, quality problems, process breakdowns
Sources:
Framework 4: Load and Stress Testing
Overview: Systematic testing of system behavior under various load conditions.
Testing Types:
- Load Testing: Performance at expected load (normal operating conditions)
- Stress Testing: Performance at or beyond maximum capacity (breaking point)
- Spike Testing: Response to sudden large increases in load
- Soak Testing: Sustained operation over long periods (memory leaks, degradation)
- Scalability Testing: Performance as load increases incrementally
Key Metrics:
- Throughput: Requests per second, transactions per second
- Latency: Response time (mean, median, p95, p99, max)
- Error Rate: Failed requests as percentage of total
- Resource Utilization: CPU, memory, disk, network usage
- Saturation Point: Load level where performance degrades significantly
Tools:
- JMeter, Gatling, Locust (application load testing)
- wrk, Apache Bench (HTTP benchmarking)
- fio (storage I/O testing)
- iperf (network throughput testing)
When to Use: Before production launch, capacity planning, performance regression detection, SLA validation
Sources:
Framework 5: Cost-Benefit Analysis for Technical Decisions
Overview: Quantifying costs and benefits of technical alternatives to guide decisions.
Components:
- Development Cost: Engineering time, tools, licenses
- Infrastructure Cost: Servers, bandwidth, storage (ongoing)
- Maintenance Cost: Bug fixes, updates, monitoring
- Opportunity Cost: Other features not built
- Benefits: Revenue, cost savings, risk reduction, user value
Analysis Steps:
1. Enumerate alternatives: Include status quo as baseline 2. Estimate costs: One-time and recurring for each alternative 3. Estimate benefits: Quantify value created (revenue, time saved, errors prevented) 4. Time horizon: Choose analysis period (1 year, 3 years, 5 years) 5. Discount rate: Account for time value of money 6. Calculate NPV: Net Present Value = Benefits - Costs (discounted) 7. Sensitivity analysis: How do conclusions change if estimates vary?
When to Use: Build vs. buy decisions, infrastructure choices, major refactoring decisions, technology selection
Sources:
---
Methodologies (Expandable)
Methodology 1: Prototyping and Iterative Development
Description: Build simplified versions early to validate concepts and gather feedback.
Types of Prototypes:
- Proof of Concept: Demonstrates technical feasibility of key risk
- Throwaway Prototype: Quick mockup to explore ideas (discard afterward)
- Evolutionary Prototype: Iteratively refined into final system
- Horizontal Prototype: Broad but shallow (UI mockup without backend)
- Vertical Prototype: Narrow but deep (end-to-end single feature)
Benefits:
- Validates assumptions before heavy investment
- Uncovers hidden requirements and edge cases
- Enables user feedback early when changes are cheap
- Reduces risk of building wrong thing
When to Apply: High uncertainty, unclear requirements, new technology exploration
Methodology 2: Design of Experiments (DOE)
Description: Systematic approach to understanding how input variables affect outputs.
Process:
1. Identify factors: Which variables might affect outcomes? 2. Choose levels: What values will we test for each factor? 3. Select design: Full factorial (test all combinations) vs. fractional factorial (test subset) 4. Randomize runs: Prevent confounding with uncontrolled factors 5. Collect data: Measure outputs for each configuration 6. Analyze: Determine which factors matter, interaction effects 7. Validate: Test predictions on new data
Applications: Performance tuning, A/B testing, optimization, understanding complex systems
Sources: Design and Analysis of Experiments - Montgomery
Methodology 3: Capacity Planning with Queueing Theory
Description: Mathematical modeling of systems with arrival processes and service times.
Key Concepts:
- Arrival rate (λ): Requests per unit time
- Service rate (μ): Requests handled per unit time
- Utilization (ρ): λ/μ (must be < 1 for stability)
- Queue length: Average number waiting
- Response time: Wait time + service time
Little's Law: L = λW (average queue length = arrival rate × average wait time)
Insights:
- As utilization approaches 100%, response time explodes
- Safe operating range typically 60-70% utilization
- Variability in arrivals or service time increases queuing
- Parallel servers reduce response time sublinearly
When to Apply: Capacity planning, performance modeling, resource sizing
Sources: Queueing Systems - Kleinrock
Methodology 4: Fault Tree Analysis (FTA)
Description: Top-down deductive analysis of system failures.
Process:
1. Define top event: Undesired system failure 2. Identify immediate causes: What directly causes top event? 3. Use logic gates: AND (all must occur), OR (any can cause) 4. Decompose recursively: Break causes into sub-causes 5. Identify basic events: Atomic failures (component fails, human error) 6. Calculate probabilities: If component failure rates known
Insights:
- Reveals combinations of failures that cause system failure
- AND gates create redundancy (both must fail)
- OR gates create single points of failure (either fails)
- Minimal cut sets: Smallest combinations causing top event
When to Apply: Safety analysis, reliability engineering, risk assessment
Sources: Fault Tree Analysis - NASA
Methodology 5: Benchmarking and Performance Profiling
Description: Measuring actual system performance to identify bottlenecks.
Profiling Types:
- CPU Profiling: Which functions consume CPU time?
- Memory Profiling: Memory allocation patterns, leaks
- I/O Profiling: Disk and network operations
- Lock Profiling: Contention on synchronization primitives
Process:
1. Establish baseline: Measure current performance 2. Identify bottleneck: Where is most time spent? 3. Hypothesize fix: What change might improve bottleneck? 4. Implement and measure: Did performance improve? 5. Iterate: Move to next bottleneck
Profiling Tools:
- perf, flamegraphs (Linux CPU profiling)
- Valgrind, heaptrack (memory profiling)
- strace, ltrace (system call tracing)
- Chrome DevTools, Firefox Profiler (web performance)
When to Apply: Performance problems, optimization efforts, understanding system behavior
Sources: Systems Performance - Gregg
---
Detailed Examples (Expandable)
Example 1: Microservice Architecture vs. Monolith Trade-off Analysis
Situation: Company with monolithic application considering microservices migration. CTO asks for technical analysis.
Engineering Analysis:
System Context:
- Current: Monolith serving 10K users, 3 engineers, 2-week release cycle
- Growth: Expecting 10x growth over 2 years
- Team: Plans to hire to 15 engineers
Monolith Characteristics:
- Pros: Simple deployment, easier debugging, no network latency between modules, single database transactions
- Cons: All-or-nothing deploys, scaling requires scaling entire app, merge conflicts increase with team size, technology lock-in
Microservices Characteristics:
- Pros: Independent deployment and scaling, technology flexibility, team autonomy, fault isolation
- Cons: Distributed system complexity (eventual consistency, partial failures), operational overhead (more services to monitor), network latency, more difficult debugging
Trade-off Analysis:
| Criterion | Monolith | Microservices | Weight | Score M | Score MS |
|---|---|---|---|---|---|
| Dev Velocity (small team) | High | Low | 0.3 | 9 | 4 |
| Dev Velocity (large team) | Low | High | 0.25 | 4 | 8 |
| Scalability | Poor | Excellent | 0.2 | 3 | 9 |
| Operational Complexity | Low | High | 0.15 | 8 | 3 |
| Reliability | Medium | Medium | 0.1 | 6 | 6 |
| Weighted Score (today) | 6.75 | 5.5 | |||
| Weighted Score (2 yrs) | 5.35 | 6.85 |
First Principles Analysis:
- Conway's Law: System structure mirrors communication structure
- Network calls are orders of magnitude slower than in-process calls
- Distributed transactions are hard; eventual consistency is complex but scales
- Coordination overhead grows with team size
Recommendation:
1. Stay monolith short-term (next 6-12 months) 2. Prepare for transition:
- Enforce module boundaries within monolith
- Design for async communication patterns
- Build monitoring and observability infrastructure
- Document domain boundaries
3. Extract strategically (12-24 months):
- Start with independently scalable components (e.g., image processing)
- Keep core business logic together initially
- Avoid premature decomposition
4. Criteria for extraction: Extract when (a) clear domain boundary, (b) different scaling needs, (c) team wants autonomy, (d) release independence valuable
Key Insight: Microservices are optimization for organizational scaling, not just technical scaling. Premature microservices slow small teams; delayed microservices bottleneck large teams.
Sources:
Example 2: Database Index Design for Query Performance
Situation: E-commerce application has slow product search queries. Need to optimize without over-indexing.
Engineering Analysis:
Query Patterns (from application logs):
- 40%: Search by category + price range
- 25%: Search by brand + availability
- 20%: Full-text search on product name/description
- 10%: Filter by multiple attributes (color, size, rating)
- 5%: Sort by popularity or recency
Current Schema:
products (id, name, description, brand, category, price, stock, created_at, popularity_score)Current Indexes:
- Primary key on
id - No other indexes (table scan for all queries!)
Performance Measurements:
- Category + price query: 2.3 seconds (unacceptable)
- Brand + availability: 1.8 seconds
- Full-text search: 4.1 seconds
First Principles Analysis:
- Index trade-offs: Faster reads vs. slower writes and storage overhead
- Composite index can serve queries on prefixes (index on [A, B] helps "A" and "A+B" queries, not "B")
- Covering index includes all query columns (no table lookup needed)
- Write amplification: Each insert/update must update all indexes
Index Design:
High-Priority Indexes (cover 65% of queries):
1. Composite: (category, price)
- Serves most common query pattern
- Enables range scans on price within category
- ~5 MB size (acceptable)
2. Composite: (brand, stock)
- Covers second most common pattern
- Stock column for availability filter
- ~3 MB size
Medium-Priority: 3. Full-text index: (name, description)
- Specialized index type for text search
- Larger (20 MB) but essential for search functionality
Deferred:
- Multi-attribute filter queries (10% traffic) - acceptable to be slower
- Can add later if specific combinations prove common
Optimization Strategy:
- Add indexes 1 and 2 immediately (biggest impact)
- Monitor query performance for 1 week
- Add full-text index if search traffic grows
- Use query explain plans to verify index usage
Expected Results:
- Category + price: 2.3s → 0.05s (46x faster)
- Brand + availability: 1.8s → 0.04s (45x faster)
- Write throughput: -10% (acceptable trade-off)
- Storage overhead: +8 MB (+0.8%)
Validation:
- Load test with production traffic distribution
- Monitor p95/p99 latencies, not just averages
- Set up alerting for slow queries
Key Insight: Index design requires understanding query patterns from actual usage, not guessing. Composite indexes are powerful but order matters. Write amplification means you can't index everything.
Sources:
Example 3: Failure Analysis of Cloud Service Outage
Situation: SaaS application experienced 4-hour outage affecting 30% of customers. Conduct root cause analysis and recommend preventions.
Timeline (simplified):
- 02:00 - Deploy new API version to production
- 02:15 - Monitoring shows elevated error rates (5% → 12%)
- 02:20 - Error rate continues climbing (20%)
- 02:30 - Pager alerts wake on-call engineer
- 02:45 - Investigation begins: Errors in payment processing service
- 03:15 - Attempted rollback fails (database migration ran, incompatible)
- 04:00 - Emergency fix deployed
- 05:30 - System fully recovered
- 06:00 - Post-incident review begins
Root Cause Analysis (5 Whys):
Why did payment processing fail? → New code made database queries incompatible with schema
Why were incompatible queries deployed? → Integration tests didn't catch schema incompatibility
Why didn't tests catch it? → Test database had new schema; production had old schema
Why did schema differ? → Migration ran immediately on deploy; gradual rollout not possible
Why couldn't we roll back? → Migration was irreversible (dropped column); no rollback procedure tested
Root Causes Identified:
1. Tight coupling: Code deploy coupled to database migration 2. Test environment drift: Test database not representative of production 3. Irreversible migration: No rollback plan 4. Slow detection: 30 minutes to page engineer 5. Insufficient monitoring: Error rates not broken down by service
Failure Mode Analysis:
Contributing Factors:
- Process: No staged rollout (deployed to 100% immediately)
- Technology: No feature flags to disable problematic code path
- People: Deployment at 2am with minimal staffing
- Monitoring: Alerts tuned too high (12% errors before alerting)
Single Points of Failure:
- Single payment processing service (no fallback)
- Database schema migration in critical path
- One on-call engineer (no backup)
Recommended Mitigations:
Immediate (1 week):
1. Decouple migrations: Separate schema changes from code deploys
- Deploy backward-compatible schema first
- Deploy code using new schema
- Remove old schema in later migration (if needed)
2. Canary deployments: Deploy to 5% of traffic, monitor 30min, proceed gradually
- Automated rollback if error rate threshold exceeded
3. Feature flags: Wrap new code paths in flags for instant disable
4. Alert tuning: Page at 5% error rate increase, not 12%
Medium-term (1 month): 5. Chaos engineering: Regularly test failure scenarios in staging
- Rollback procedures tested weekly
- Database restoration drills
6. Improved monitoring:
- Service-level dashboards
- Distributed tracing for request flows
- Synthetic monitoring of critical paths
7. Runbooks: Document response procedures for common incidents
Long-term (3 months): 8. Circuit breakers: Graceful degradation when downstream services fail 9. Multi-region redundancy: Failover capability for major outages 10. Blameless post-mortems: Culture of learning from failures
FMEA Re-assessment:
| Failure Mode | Severity | Occurrence (Before) | Detection (Before) | RPN (Before) | Occurrence (After) | Detection (After) | RPN (After) |
|---|---|---|---|---|---|---|---|
| Incompatible code/schema | 9 | 6 | 5 | 270 | 2 | 2 | 36 |
| Failed rollback | 10 | 7 | 8 | 560 | 3 | 2 | 60 |
Key Insight: Most outages result from combinations of small failures, not single catastrophic errors. Defense in depth (staged rollout, feature flags, decoupled migrations, fast detection) prevents cascading failures. Practicing failure scenarios is as important as preventing them.
Sources:
---
Analysis Process
When using the engineer-analyst skill, follow this systematic 9-step process:
Step 1: Clarify Requirements and Constraints
- What is the technical objective? (Performance? Reliability? Cost? Scale?)
- What are hard constraints? (Physics, budget, timeline, compatibility)
- What are priorities when trade-offs inevitable?
Step 2: Gather System Context
- How does current system work? (Architecture, technologies, interfaces)
- What are usage patterns? (Load profiles, user behaviors, edge cases)
- What are existing performance characteristics and bottlenecks?
Step 3: First Principles Analysis
- Break problem down to fundamental truths
- Question assumptions and conventional approaches
- Identify true constraints vs. inherited limitations
- Calculate theoretical limits where applicable
Step 4: Enumerate Alternatives
- What design options exist?
- Include status quo as baseline for comparison
- Consider both incremental improvements and radical redesigns
- Note which alternatives violate hard constraints (discard those)
Step 5: Model and Estimate
- Quantify expected performance of alternatives
- Use back-of-envelope calculations, queueing theory, prototypes
- Identify uncertainties and sensitivity to assumptions
- Build simplified models before complex simulations
Step 6: Trade-off Analysis
- Score alternatives against multiple objectives
- Identify Pareto-optimal designs
- Assess sensitivity to priorities (what if weights change?)
- Consider robustness vs. optimality trade-off
Step 7: Failure Mode Analysis
- How can each alternative fail?
- What are consequences of failures?
- Can failures be detected quickly?
- What mitigation strategies exist?
Step 8: Prototype and Validate
- Build minimal prototypes to test key assumptions
- Measure actual performance (don't rely solely on estimates)
- Validate with realistic data and usage patterns
- Iterate based on learnings
Step 9: Document and Communicate
- State recommendation with clear justification
- Present trade-offs transparently
- Document assumptions and sensitivities
- Provide fallback options if recommendation proves infeasible
---
Quality Standards
A thorough engineering analysis includes:
✓ Clear requirements: Objectives, constraints, and priorities specified quantitatively ✓ Baseline measurements: Current system performance documented with numbers ✓ Multiple alternatives: At least 3 options considered, including status quo ✓ Quantified estimates: Performance, cost, and reliability estimated numerically ✓ Trade-off analysis: Multi-objective scoring with explicit priorities ✓ Failure analysis: FMEA or similar systematic failure mode identification ✓ Validation plan: How will we verify design meets requirements? ✓ Assumptions documented: Sensitivities to key assumptions noted ✓ Scalability considered: Will design work at 10x scale? ✓ Maintainability assessed: Can others understand and modify this design?
---
Common Pitfalls to Avoid
Premature optimization: Optimizing before measuring creates complexity without benefit. Measure first, optimize bottlenecks.
Over-engineering: Designing for scale you'll never reach wastes resources. Start simple, scale when needed.
Under-engineering: Ignoring known future requirements creates costly rewrites. Balance current simplicity with anticipated needs.
Analysis paralysis: Endless analysis without building delays learning. Prototype early to validate assumptions.
Not invented here: Rejecting existing solutions in favor of custom builds. Prefer boring proven technology.
Resume-driven development: Choosing technologies for career benefit rather than project fit. Choose right tool for job.
Ignoring operational costs: Focusing on development cost while ignoring ongoing infrastructure, maintenance, and support costs.
Cargo culting: Copying approaches without understanding context. What works for Google may not work for your startup.
Assuming zero failure rate: All systems fail. Design for graceful degradation, not perfection.
Ignoring human factors: Systems will be operated by humans. Design for usability and operability, not just technical elegance.
---
Key Resources
Engineering Fundamentals
Systems Engineering
- NASA Systems Engineering Handbook
- INCOSE - Systems Engineering Resources
- Stevens Institute - Systems Engineering
Software Engineering
Performance Engineering
- Brendan Gregg's Blog - Performance and observability
- High Scalability - Architecture case studies
Reliability Engineering
- Google SRE Books - Site Reliability Engineering
- Resilience Engineering Association
Professional Organizations
- IEEE - Electrical and Electronics Engineers
- ACM - Association for Computing Machinery
- ASME - American Society of Mechanical Engineers
---
Integration with Amplihack Principles
Ruthless Simplicity
- Start with simplest design that could work
- Add complexity only when justified by measurements
- Prefer boring, proven technology over exciting novelty
Modular Design
- Clear interfaces between components
- Independent testability and deployability
- Loose coupling, high cohesion
Zero-BS Implementation
- No premature abstraction
- Every component must serve clear purpose
- Delete dead code aggressively
Evidence-Based Practice
- Measure, don't guess
- Prototype to validate assumptions
- Benchmark before and after optimizations
---
Version
Current Version: 1.0.0 Status: Production Ready Last Updated: 2025-11-16
Engineer Analyst - Quick Reference
TL;DR
Analyzes technical systems through engineering frameworks using first principles, systems thinking, optimization theory, and failure analysis. Provides quantitative assessment of feasibility, performance, reliability, and trade-offs.
When to Use
- System design and architecture decisions
- Performance optimization and bottleneck analysis
- Failure analysis and root cause investigation
- Scalability assessment and capacity planning
- Technical feasibility evaluation
- Trade-off analysis between design alternatives
Core Frameworks
1. First Principles Analysis - Break to fundamentals, question assumptions 2. Systems Engineering (V-Model) - Requirements → Design → Implementation → Testing 3. Design Optimization - Pareto frontiers, multi-objective trade-offs 4. FMEA - Failure Mode and Effects Analysis 5. Scalability Analysis - Amdahl's Law, bottleneck identification
Theoretical Foundations
- First Principles: Reason from fundamental truths, not analogy
- Systems Engineering: Structured decomposition and integration
- Optimization Theory: Constraints, trade-offs, Pareto optimality
- Failure Analysis: FMEA, fault trees, root cause analysis
- Performance Engineering: Profiling, benchmarking, capacity planning
Quick Analysis Process
1. Clarify Requirements - Objectives, constraints, priorities (quantified) 2. Gather Context - Current system, usage patterns, measurements 3. First Principles - Break to fundamentals, identify true constraints 4. Enumerate Alternatives - 3+ options including status quo 5. Model and Estimate - Quantify performance, cost, reliability 6. Trade-off Analysis - Score against multiple objectives 7. Failure Analysis - FMEA, single points of failure 8. Prototype - Validate key assumptions empirically 9. Document - Recommendation with justification and trade-offs
Key Questions
Requirements:
- What is the technical objective? (Performance? Reliability? Cost?)
- What are hard constraints? (Physics, budget, timeline, compatibility)
- What are priorities when trade-offs inevitable?
System Analysis:
- How does current system work? (Architecture, bottlenecks)
- What are usage patterns and load profiles?
- What are theoretical limits? (Physics, algorithms, network)
Design Evaluation:
- What alternatives exist? (Include status quo)
- How do alternatives score on multiple objectives?
- Which designs are Pareto-optimal?
- What are sensitivities to assumptions?
Failure Modes:
- How can each component fail?
- What are consequences? (Severity)
- How likely? (Occurrence)
- Can we detect quickly? (Detectability)
- What mitigations exist?
Scalability:
- Will design work at 10x scale?
- Where will bottlenecks shift?
- Is this vertical or horizontal scaling problem?
Applied Frameworks
Requirements Engineering:
- MoSCoW: Must have, Should have, Could have, Won't have
- Types: Functional, Performance, Interface, Operational, Constraint
Root Cause Analysis:
- 5 Whys: Ask "Why?" repeatedly until reaching root cause
- Fishbone: Organize causes by category (People, Process, Technology, Environment)
FMEA Process:
1. Identify failure modes 2. Assess Severity (1-10) 3. Assess Occurrence (1-10) 4. Assess Detectability (1-10) 5. Calculate RPN = S × O × D 6. Prioritize highest RPN 7. Implement mitigations
Load Testing:
- Load Test: Performance at expected load
- Stress Test: Performance at/beyond max capacity
- Spike Test: Sudden load increases
- Soak Test: Sustained operation (memory leaks, degradation)
Common Mistakes to Avoid
- Premature optimization: Optimize before measuring
- Over-engineering: Designing for scale you'll never reach
- Under-engineering: Ignoring known future requirements
- Analysis paralysis: Endless analysis without building
- Not invented here: Rejecting proven solutions for custom builds
- Resume-driven development: Choosing tech for career, not project
- Ignoring ops costs: Focusing on dev cost, ignoring infrastructure/maintenance
- Cargo culting: Copying Google/Facebook without understanding context
- Assuming zero failures: All systems fail; design for degradation
- Ignoring human factors: Operators use systems; design for usability
Essential Resources
Systems Engineering:
- NASA SE Handbook: https://www.nasa.gov/seh/
- INCOSE: https://www.incose.org/
Software Architecture:
- System Design Primer: https://github.com/donnemartin/system-design-primer
- AOSA: https://aosabook.org/
Performance:
- Brendan Gregg: https://www.brendangregg.com/
- High Scalability: http://highscalability.com/
Reliability:
- Google SRE: https://sre.google/books/
Key Principles
First Principles (Musk): "Boil things down to fundamental truths and reason up from there"
Conway's Law: "Organizations design systems that mirror their communication structure"
Amdahl's Law: Speedup limited by serial fraction: Speedup ≤ 1 / (1 - P + P/N)
Little's Law: L = λW (queue length = arrival rate × wait time)
CAP Theorem: Can't have Consistency, Availability, Partition-tolerance simultaneously
Pareto Principle: 80% of effects from 20% of causes (focus optimization efforts)
Design Trade-offs
| Objective 1 | vs. | Objective 2 |
|---|---|---|
| Performance | ← → | Cost |
| Reliability | ← → | Simplicity |
| Flexibility | ← → | Performance |
| Consistency | ← → | Availability |
| Latency | ← → | Throughput |
| Vertical Scaling | ← → | Horizontal Scaling |
Scalability Patterns
Stateless Services: Enable horizontal scaling without coordination Database Sharding: Partition data across databases Caching: Reduce backend load (CDN, Redis, memcached) Async Processing: Decouple request from heavy work (message queues) Read Replicas: Scale read-heavy workloads Microservices: Independently scalable components
Performance Metrics
Throughput: Requests/transactions per second Latency: Response time (mean, p50, p95, p99, max) Error Rate: Failed requests as % of total Utilization: CPU, memory, disk, network usage Saturation: Load level where performance degrades
Success Criteria
✓ Requirements quantified (not vague goals) ✓ Baseline measurements documented ✓ 3+ alternatives evaluated ✓ Numerical estimates (performance, cost, reliability) ✓ Trade-offs explicit with scoring ✓ Failure modes identified (FMEA) ✓ Assumptions and sensitivities noted ✓ Validation plan defined ✓ Scalability assessed (10x growth) ✓ Maintainability considered
Decision Matrix Template
| Criterion | Weight | Alt 1 Score | Alt 2 Score | Alt 3 Score |
|---|---|---|---|---|
| Performance | 0.3 | |||
| Reliability | 0.25 | |||
| Cost | 0.2 | |||
| Maintainability | 0.15 | |||
| Scalability | 0.1 | |||
| Weighted Total |
Capacity Planning Rules
- Never run at 100% utilization (queuing explodes)
- Safe range: 60-70% utilization under normal load
- Headroom for spikes: 2-3x normal load capacity
- Monitor p95/p99, not just averages
- Load test before launch: Realistic traffic patterns
---
For full details, see SKILL.md
Engineer Analyst Skill
Analyze technical systems through rigorous engineering frameworks to design reliable, efficient, and scalable solutions.
Overview
The Engineer Analyst skill enables Claude to perform sophisticated technical system analysis. Drawing on established engineering frameworks, design methodologies, and quantitative analysis, this skill provides insights into:
- System Design: Architecture, components, interfaces, and trade-offs
- Performance Analysis: Bottlenecks, scalability, optimization opportunities
- Failure Analysis: Root causes, failure modes, mitigation strategies
- Trade-off Evaluation: Multi-objective optimization with constraints
- Feasibility Assessment: Technical viability and risk identification
- Requirements Engineering: Clarification, decomposition, and validation
What Makes This Different
Unlike general technical analysis, engineer analysis:
1. Quantitative Rigor: Numbers, measurements, and calculations drive decisions 2. First Principles: Breaks problems to fundamentals rather than relying on analogy 3. Systems Thinking: Considers interactions and emergent behaviors, not just components 4. Trade-off Explicit: Acknowledges competing objectives; no perfect solutions 5. Failure-Aware: Designs for resilience and graceful degradation 6. Evidence-Based: Prototypes and measurements validate assumptions
Use Cases
System Design
- Microservices vs. monolith architecture decisions
- Database selection and schema design
- API design and versioning strategies
- Caching architectures and content delivery
- Message queue and event-driven architectures
Performance Optimization
- Database query optimization and indexing
- Application profiling and bottleneck identification
- Load balancing and auto-scaling strategies
- Caching strategies to reduce backend load
- Algorithm optimization and complexity analysis
Reliability Engineering
- Failure mode and effects analysis (FMEA)
- High availability and disaster recovery design
- Circuit breakers and graceful degradation
- Monitoring, alerting, and observability
- Chaos engineering and resilience testing
Capacity Planning
- Resource sizing for expected load
- Scalability analysis and growth projections
- Cost optimization for cloud infrastructure
- Performance testing and load simulation
Engineering Frameworks Available
Core Theoretical Approaches
- First Principles Analysis: Breaking problems to fundamental truths
- Systems Engineering (V-Model): Requirements → Design → Implementation → Testing
- Design Optimization: Pareto frontiers, multi-objective trade-offs
- FMEA: Systematic failure mode identification and mitigation
- Scalability Analysis: Amdahl's Law, bottleneck shifting, horizontal/vertical scaling
Applied Frameworks
- Requirements Engineering: MoSCoW prioritization, functional/non-functional requirements
- Design Thinking: Double diamond process, rapid prototyping, user-centered design
- Root Cause Analysis: 5 Whys, Fishbone diagrams, fault tree analysis
- Load Testing: Performance under expected and extreme loads
- Cost-Benefit Analysis: NPV, opportunity cost, trade-off quantification
Methodologies
- Prototyping: POC, throwaway, evolutionary, horizontal/vertical
- Design of Experiments: Systematic parameter space exploration
- Queueing Theory: Capacity planning, response time modeling
- Performance Profiling: CPU, memory, I/O, lock contention analysis
- Benchmarking: Baseline measurements, A/B testing, regression detection
Quick Start
Basic Usage
Claude, use the engineer-analyst skill to analyze [TECHNICAL SYSTEM/PROBLEM].
Examples:
- "Use engineer-analyst to evaluate microservices vs. monolith for our application."
- "Analyze database performance issues using engineer-analyst skill."
- "Use engineer skill to conduct failure analysis of last week's outage."Advanced Usage
"Use engineer-analyst to optimize query performance with first principles analysis
and load testing validation."
"Apply engineer-analyst with FMEA methodology to assess reliability of proposed
architecture."
"Use engineer-analyst to conduct trade-off analysis between three database options
considering cost, performance, and operational complexity."Analysis Process
1. Clarify Requirements - Objectives, constraints, priorities 2. Gather Context - Current system, usage patterns, bottlenecks 3. First Principles - Break to fundamentals, question assumptions 4. Enumerate Alternatives - Multiple design options including status quo 5. Model and Estimate - Quantify expected performance 6. Trade-off Analysis - Multi-objective scoring, Pareto optimality 7. Failure Analysis - FMEA, single points of failure 8. Prototype and Validate - Test key assumptions empirically 9. Document and Communicate - Clear recommendations with justification
Example Analyses
Example 1: Microservices vs. Monolith
Decision: Stay monolith short-term, prepare for strategic extraction Reasoning: Small team benefits from monolith simplicity; plan transition as team grows
Example 2: Database Index Design
Problem: Slow product search queries Solution: Add composite indexes on (category, price) and (brand, stock) Result: 45x query performance improvement with minimal write overhead
Example 3: Cloud Outage Root Cause
Cause: Coupled code deploy and database migration, no rollback plan Mitigations: Decouple migrations, canary deployments, feature flags, improved monitoring
Quality Standards
✓ Quantified requirements with measurable objectives ✓ Baseline measurements of current system ✓ Multiple alternatives evaluated (3+ options) ✓ Numerical estimates of performance, cost, reliability ✓ Explicit trade-offs with multi-objective scoring ✓ Failure mode analysis (FMEA or equivalent) ✓ Validation plan to verify design ✓ Documented assumptions and sensitivities ✓ Scalability assessment at 10x growth ✓ Maintainability considerations
Resources
Systems Engineering
- NASA Systems Engineering Handbook: https://www.nasa.gov/seh/
- INCOSE: https://www.incose.org/
Software Architecture
- System Design Primer: https://github.com/donnemartin/system-design-primer
- AOSA: https://aosabook.org/ (Architecture of Open Source Applications)
Performance
- Brendan Gregg: https://www.brendangregg.com/ (Performance engineering)
- High Scalability: http://highscalability.com/ (Case studies)
Reliability
- Google SRE Books: https://sre.google/books/
- Resilience Engineering: https://www.resilience-engineering-association.org/
Integration with Other Skills
- Decision Logger: Document technical decisions and rationale
- Module Spec Generator: Create engineering specifications for systems
- Philosophy Guardian: Ensure ruthless simplicity in designs
- Test Gap Analyzer: Identify testing gaps in engineered systems
Version
Current Version: 1.0.0 Status: Production Ready Last Updated: 2025-11-16
Engineer Analyst - Domain Validation Quiz
Purpose
This quiz validates that the engineer analyst applies engineering principles correctly, identifies technical constraints and failure modes, and provides evidence-based system design analysis. Each scenario requires demonstration of engineering reasoning, quantitative analysis, and safety-critical thinking.
---
Scenario 1: Bridge Structural Failure Investigation
Event Description: A 45-year-old steel truss bridge carrying 85,000 vehicles daily experiences catastrophic failure during evening rush hour, collapsing into the river below. Thirteen people die, 47 are injured. Preliminary investigation reveals: (1) A critical gusset plate connecting truss members was undersized by 50% (original design error), (2) The bridge underwent deck resurfacing 8 times over its life, adding 20% dead load beyond design specifications, (3) Annual inspections consistently rated the bridge as "fair" condition with minor corrosion noted but no structural concerns flagged, (4) The state DOT had classified the bridge as "structurally deficient" 15 years ago but "functionally adequate," placing it low on replacement priority list, (5) Failure occurred during construction work that concentrated heavy equipment on one span.
Analysis Task: Analyze the bridge failure from an engineering perspective and identify systemic issues.
Expected Analysis Elements
- [ ] Structural Analysis and Failure Mechanics:
- Gusset plate undersizing: 50% reduction in load-bearing capacity
- Dead load increase: 20% additional weight from repeated resurfacing (cumulative oversight)
- Stress concentration: Construction equipment created localized overload
- Truss behavior: Loss of one member triggers progressive collapse
- Buckling vs. tensile failure: Compression members vulnerable to buckling
- Factor of safety erosion: Combination of defects reduced safety margin below 1.0
- [ ] Design and Construction Phase Failures:
- Original design error: Gusset plate undersizing (calculation error or drawing mistake)
- Design review gaps: Error not caught during plan check
- Construction quality control: As-built verification
- Design assumptions: Did not anticipate repeated resurfacing load accumulation
- Engineering judgment: Conservative design would have provided buffer
- [ ] Inspection and Maintenance Issues:
- Inspector qualifications: Did inspectors have structural analysis expertise?
- Visual inspection limitations: Gusset plate internal stress not visible
- Rating system: "Structurally deficient" label did not convey urgency
- Load rating: Did inspections include load capacity analysis?
- Corrosion assessment: Minor corrosion noted but not integrated with stress analysis
- Inspection frequency: Annual adequate for critical infrastructure?
- [ ] Risk Assessment and Prioritization Failures:
- "Structurally deficient but functionally adequate": Confusing classification
- Replacement prioritization: 85,000 daily vehicles (high consequence) not weighted adequately
- Budget constraints: Deferred maintenance/replacement due to funding
- Risk matrix: Probability x consequence not properly evaluated
- Resilience: No redundancy (single-point failure mode)
- [ ] Systemic and Institutional Issues:
- Aging infrastructure: 45-year-old bridge beyond typical design life (50 years for modern)
- Underfunding: Infrastructure investment gap
- Regulatory gaps: No requirement for detailed structural analysis between design and failure
- Institutional knowledge: Original design error not identified over 45 years
- Communication failures: Engineer concerns (if any) not escalated to decision-makers
- [ ] Engineering Ethics and Professional Responsibility:
- Public safety: Engineers' paramount obligation (NSPE Code of Ethics)
- Duty to report: Should inspectors have raised alarms?
- Whistleblowing: Were concerns suppressed or ignored?
- Professional liability: Design engineers, inspection engineers, DOT engineers
- Standard of care: Did engineers meet reasonable standard given era and knowledge?
- [ ] Lessons and Recommendations:
- Immediate: Emergency inspections of similar truss bridges with gusset plates
- Short-term: Non-destructive testing (ultrasonic, radiographic) for hidden defects
- Long-term: Structural health monitoring systems (sensors, real-time data)
- Systemic: Increase infrastructure funding, improve inspection protocols
- Design: Redundancy, fail-safe design, higher factors of safety
- Institutional: Better risk communication, prioritize high-traffic bridges
- [ ] Historical Context:
- I-35W Mississippi River Bridge collapse (Minneapolis, 2007): Undersized gusset plates, 13 deaths
- Tacoma Narrows Bridge (1940): Aerodynamic flutter, design flaw
- Silver Bridge collapse (1967): Eyebar failure, 46 deaths, led to NBIS
- Morandi Bridge (Genoa, 2018): Corrosion, maintenance failures, 43 deaths
- ASCE Infrastructure Report Card: Consistent "D" grades for US bridges
- Engineering codes: AASHTO LRFD Bridge Design Specifications
Evaluation Criteria
- Domain Accuracy (0-10): Correct application of structural engineering, failure analysis principles
- Analytical Depth (0-10): Thoroughness of technical, systemic, and institutional analysis
- Insight Specificity (0-10): Clear engineering recommendations, specific design and inspection improvements
- Historical Grounding (0-10): References to bridge failures, engineering codes, best practices
- Reasoning Clarity (0-10): Logical flow from failure mechanics to root causes to prevention
Minimum Passing Score: 35/50
---
Scenario 2: Software System Critical Failure
Event Description: A major airline's flight booking and check-in system experiences complete failure at 6:00 AM on a Monday, grounding 3,400 flights globally and stranding 450,000 passengers. The system remains down for 14 hours, costing the airline $180 million in direct losses and incalculable reputation damage. Post-incident analysis reveals: (1) A routine database maintenance script contained a logic error that corrupted the primary database, (2) Automated failover to backup database did not occur because backup was in inconsistent state (replication lag undetected), (3) Restoration from backup required 14 hours due to data volume (8TB) and lack of recent recovery rehearsals, (4) The maintenance script had been used successfully 40+ times over 3 years, but this time encountered an edge case with a new data schema deployed 2 weeks prior, (5) Testing of the script with new schema was performed but did not include the specific data pattern that triggered the failure.
Analysis Task: Analyze the software system failure and identify engineering and operational issues.
Expected Analysis Elements
- [ ] Failure Analysis and Root Cause:
- Immediate cause: Database corruption from maintenance script logic error
- Underlying cause: Script not validated against new schema edge case
- Contributing factors: Replication lag, backup inconsistency, slow recovery
- Failure mode: Single point of failure (primary database)
- Cascading failure: Backup failover did not work as designed
- Mean Time To Recovery (MTTR): 14 hours (unacceptable for critical system)
- [ ] Software Engineering Issues:
- Testing gaps: Incomplete test coverage, edge cases not identified
- Schema change management: Database migration not fully validated with all scripts
- Code review: Was script change reviewed? Did reviewers have sufficient context?
- Regression testing: New schema should trigger full regression suite including maintenance scripts
- Error handling: Script did not detect or gracefully handle unexpected data pattern
- Idempotency and atomicity: Script should be safe to retry, rollback on error
- [ ] High Availability and Disaster Recovery Failures:
- Single point of failure: Primary database corruption brought down entire system
- Backup strategy: Replication lag undetected (monitoring gap)
- Failover mechanism: Automated failover did not work (design or configuration issue?)
- Backup consistency: Backup in inconsistent state (integrity checks missing)
- Recovery time objective (RTO): 14 hours far exceeds acceptable for airline operations (target: minutes to hours)
- Recovery point objective (RPO): Data loss tolerance not met
- [ ] Operational and DevOps Issues:
- Change management: Maintenance script executed without adequate validation
- Monitoring: Replication lag not detected in real-time
- Alerting: Backup inconsistency should have triggered alert before failure
- Runbooks: Was recovery procedure documented and rehearsed?
- Recovery rehearsals: Lack of recent practice led to slow restoration (muscle memory)
- Incident response: 14-hour recovery suggests process inefficiencies
- [ ] Systemic and Organizational Issues:
- Risk assessment: Routine maintenance viewed as low-risk (complacency)
- Production environment: Was maintenance performed during low-traffic window? (No, 6 AM Monday is high traffic)
- Separation of duties: Who approved script execution?
- Documentation: Was schema change impact fully documented and communicated?
- Organizational learning: Have past incidents informed improvements?
- [ ] Engineering Best Practices Violated:
- Defense in depth: Multiple layers of protection missing
- Redundancy: Backup should be independent, not rely on same replication
- Graceful degradation: System should continue partial operation during failure
- Chaos engineering: Proactive failure injection to test resilience
- Observability: Insufficient monitoring of system health
- Immutable infrastructure: Database changes should be versioned, reversible
- [ ] Recommendations:
- Immediate: Emergency rollback procedures, hot standbys
- Short-term: Comprehensive testing with new schema, fix backup replication
- Long-term: Multi-region redundancy, active-active failover, sub-hour RTO target
- Systemic: Chaos engineering practice, quarterly DR drills, improved monitoring
- Cultural: Blameless post-mortems, learning from failures
- [ ] Historical Context:
- Delta Air Lines outage (2016): Power failure, 2,300 cancellations, $150M loss
- Southwest Airlines outage (2016): Router failure, 2,000 cancellations
- British Airways outage (2017): Power surge, 75,000 passengers stranded
- Facebook outage (2021): BGP misconfiguration, 6-hour global outage
- AWS S3 outage (2017): Typo in command, cascading failure
- Netflix Chaos Monkey: Proactive resilience engineering
- Site Reliability Engineering (SRE): Google's approach to operations
Evaluation Criteria
- Domain Accuracy (0-10): Correct application of software engineering, reliability principles
- Analytical Depth (0-10): Thoroughness of technical, operational, organizational analysis
- Insight Specificity (0-10): Clear engineering recommendations, specific resilience improvements
- Historical Grounding (0-10): References to system failures, SRE practices, reliability patterns
- Reasoning Clarity (0-10): Logical flow from failure to root cause to prevention
Minimum Passing Score: 35/50
---
Scenario 3: Chemical Plant Safety Incident
Event Description: A petrochemical plant experiences a runaway exothermic reaction in a reactor vessel, leading to overpressure, vapor release, and explosion. Four workers die, 23 are injured, and 12,000 nearby residents are evacuated. The incident occurs at 2:30 AM during a transition from Batch A (routine) to Batch B (new formulation). Investigation reveals: (1) Operators bypassed a safety interlock to increase throughput, believing it was overly conservative, (2) Temperature monitoring sensors had calibration drift (reading 5°C low), (3) Emergency cooling system activated but was undersized for the heat generation rate of the new formulation, (4) Process Hazard Analysis (PHA) was conducted 6 years ago and not updated for new formulation, (5) Operators were not trained on the new formulation's different reaction kinetics, (6) Alarm fatigue: 40-50 alarms per shift (operators frequently ignored or silenced alarms).
Analysis Task: Analyze the chemical plant incident from a process safety engineering perspective.
Expected Analysis Elements
- [ ] Chemical Process Safety Analysis:
- Runaway reaction: Exothermic reaction rate exceeded heat removal capacity
- Thermodynamics: Heat generation vs. heat removal imbalance
- Reaction kinetics: New formulation had faster reaction rate (higher heat release)
- Overpressure: Pressure relief system unable to handle vapor generation
- Consequences: Explosion, toxic vapor release, fire/blast hazards
- Layers of protection: Multiple safeguards failed (Swiss cheese model)
- [ ] Immediate Causes:
- Sensor calibration drift: Temperature read 5°C low (operators unaware of actual temperature)
- Cooling system undersized: Emergency cooling inadequate for new formulation
- Safety interlock bypass: Operators disabled critical safeguard
- Operator training gap: Not trained on new formulation hazards
- New formulation: Different reaction kinetics not fully characterized
- [ ] Systemic Safety Management Failures:
- Management of Change (MOC): New formulation introduced without adequate safety review
- Process Hazard Analysis (PHA): Outdated (6 years old), not updated for new formulation
- Pre-Startup Safety Review (PSSR): Did not identify cooling system inadequacy
- Operating procedures: Not updated for new formulation
- Training: Operators lacked knowledge of new formulation's hazards
- Maintenance: Sensor calibration program inadequate
- [ ] Human Factors and Safety Culture:
- Normalization of deviance: Interlock bypass routine practice (cultural drift)
- Production pressure: Throughput prioritized over safety
- Alarm fatigue: 40-50 alarms/shift desensitized operators to warnings
- Risk perception: Operators believed interlock was "overly conservative" (misunderstanding of risk)
- Incident-free period: Complacency from past success
- Management accountability: Were safety violations tolerated?
- [ ] Safeguards and Defense in Depth:
- Inherent safety: Could formulation be less hazardous? (Reduce, substitute)
- Passive safeguards: Pressure relief valves (undersized), vessel design pressure
- Active safeguards: Emergency cooling (inadequate), safety interlocks (bypassed)
- Procedural safeguards: Operating procedures (not updated), training (inadequate)
- Administrative safeguards: PHA (outdated), MOC (not followed)
- Multiple failures: All layers failed simultaneously (Swiss cheese alignment)
- [ ] Regulatory and Standards Compliance:
- OSHA Process Safety Management (PSM) standard: Violations likely (PHA, training, MOC)
- EPA Risk Management Program (RMP): Chemical accident prevention
- Inherently Safer Design: Hierarchy of controls not applied
- Industry standards: CCPS guidelines, NFPA codes
- Enforcement: Regulatory inspections missed violations?
- [ ] Recommendations:
- Immediate: Halt new formulation until full PHA completed, re-train all operators
- Short-term: Fix sensor calibration, upgrade cooling capacity, alarm rationalization
- Long-term: Safety culture transformation, MOC enforcement, inherent safety redesign
- Systemic: Independent safety audits, behavioral safety programs, leadership accountability
- [ ] Historical Context:
- Bhopal disaster (1984): MIC release, 3,800+ deaths, multiple safeguard failures
- Texas City refinery explosion (2005): 15 deaths, cost-cutting, safety culture failures
- Deepwater Horizon (2010): 11 deaths, blowout preventer failure, risk underestimation
- Fukushima nuclear disaster (2011): Defense in depth failures, external hazard
- Process Safety Management (PSM): OSHA standard following major chemical accidents
- Swiss cheese model (James Reason): Layered defenses, alignment of holes leads to accident
Evaluation Criteria
- Domain Accuracy (0-10): Correct application of process safety, chemical engineering principles
- Analytical Depth (0-10): Thoroughness of technical, human factors, organizational analysis
- Insight Specificity (0-10): Clear safety recommendations, specific safeguard improvements
- Historical Grounding (0-10): References to chemical incidents, safety standards, frameworks
- Reasoning Clarity (0-10): Logical flow from incident to root causes to prevention
Minimum Passing Score: 35/50
---
Scenario 4: Renewable Energy Grid Integration
Event Description: A regional power grid with 35% renewable energy (25% wind, 10% solar) experiences cascading blackouts affecting 1.2 million customers over a 6-hour period. The incident occurs on a hot summer afternoon when solar generation is high (8 GW) and electricity demand peaks (12 GW). Sequence of events: (1) A sudden weather front causes wind generation to drop from 4 GW to 0.5 GW in 15 minutes, (2) Grid operators command natural gas peaker plants to ramp up, but several plants fail to start due to maintenance issues, (3) Grid frequency drops from 60.00 Hz to 59.85 Hz, triggering automatic load shedding to prevent further instability, (4) Cascading outages occur as transmission lines trip offline due to overloads, (5) Grid restoration takes 6 hours due to complexity of black-start procedures and coordination across multiple utilities.
Analysis Task: Analyze the grid stability incident and renewable energy integration challenges.
Expected Analysis Elements
- [ ] Power System Fundamentals:
- Grid frequency: 60 Hz in North America (50 Hz Europe), indicates balance of generation-load
- Frequency drop: 59.85 Hz indicates generation shortfall (demand exceeds supply)
- Load shedding: Automatic disconnection of load to prevent collapse
- Cascading failure: Overloaded lines trip, redistributing load to other lines, causing further trips
- Black-start: Restoration of grid from complete blackout (complex, time-consuming)
- Inertia: Rotational energy in synchronous generators provides frequency stability
- [ ] Renewable Energy Variability:
- Wind variability: 4 GW to 0.5 GW in 15 minutes (87% reduction)
- Solar intermittency: Cloud cover, diurnal cycle (zero at night)
- Forecasting: Weather-dependent, prediction errors
- Lack of inertia: Wind and solar are inverter-based, don't provide rotational inertia
- Capacity factor: Wind ~35%, solar ~20% (vs. fossil 85%+)
- Geographic diversity: Distributed wind reduces correlated variability (but not fully)
- [ ] Grid Flexibility and Ramping Requirements:
- Ramp rate: Speed at which conventional generation can increase output
- Natural gas peaker plants: Fast-ramping (10-30 min to full power) but failed to start
- Coal/nuclear: Slow ramping (hours), cannot respond quickly
- Duck curve: Solar causes net load (demand - renewables) to ramp rapidly in evening
- 15-minute drop: Extremely fast variability, exceeding grid's ramping capability
- [ ] Operational and Reliability Issues:
- Peaker plant failures: Maintenance backlog, insufficient testing, low capacity factor → reliability issues
- Inadequate reserves: Not enough spinning reserve or fast-response capacity
- Transmission congestion: Lines overloaded, triggering protective relays
- Coordination failures: Multiple utilities, ISOs, need real-time coordination
- Situational awareness: Grid operators need better visibility into renewable output and forecasts
- [ ] Solutions - Grid Modernization:
- Energy storage: Batteries (lithium-ion, flow batteries) provide fast response, smooth variability (4-hour duration typical)
- Demand response: Controllable loads (HVAC, water heaters) reduce demand during shortfall
- Grid-scale batteries: 1-4 hour duration, instant response (0.1 second), provide inertia equivalent
- Pumped hydro storage: Large-scale (GWh), slower response but long duration
- Transmission expansion: Interconnect distant renewables, geographic diversity reduces variability
- [ ] Solutions - Flexible Generation:
- Natural gas peakers: Maintain reliability through regular testing, adequate maintenance funding
- Combined cycle gas turbines (CCGT): Faster ramping than coal, cleaner than simple cycle
- Hydrogen combustion turbines: Zero-carbon dispatchable generation (emerging)
- Nuclear SMRs (Small Modular Reactors): Load-following capability (future)
- [ ] Solutions - Advanced Grid Technologies:
- Grid-forming inverters: Provide synthetic inertia from renewables and batteries
- Wide-area monitoring: Phasor measurement units (PMUs) for real-time grid state
- Advanced forecasting: Machine learning for renewable output prediction (reduce uncertainty)
- Microgrids: Localized grid islands that can operate independently during disturbances
- HVDC transmission: High-voltage DC for long-distance, asynchronous grid interconnection
- [ ] Policy and Market Design:
- Capacity markets: Pay for reliability, not just energy (incentivize peaker maintenance)
- Ancillary services markets: Value fast-response resources (batteries, demand response)
- Renewable integration standards: Require renewables to provide grid services
- Grid interconnection: FERC Order 2023 (US) streamlining interconnection queues
- Clean energy standards: 100% targets require grid flexibility planning
- [ ] Historical Context:
- California rolling blackouts (2020): Heat wave, insufficient capacity, solar duck curve
- Texas grid failure (2021): Winter storm, frozen gas plants, wind turbines, demand surge
- South Australia blackout (2016): High wind penetration, storm, cascading failure
- Germany Energiewende: 50%+ renewables, grid flexibility investments
- ERCOT grid: Isolated, limited interconnection, reliability challenges
- NERC (North American Electric Reliability Corporation): Grid reliability standards
Evaluation Criteria
- Domain Accuracy (0-10): Correct application of power systems, renewable energy engineering
- Analytical Depth (0-10): Thoroughness of variability, flexibility, reliability analysis
- Insight Specificity (0-10): Clear engineering solutions, specific grid modernization measures
- Historical Grounding (0-10): References to grid incidents, renewable integration examples
- Reasoning Clarity (0-10): Logical flow from incident to causes to solutions
Minimum Passing Score: 35/50
---
Scenario 5: Autonomous Vehicle Sensor Failure
Event Description: An autonomous vehicle (SAE Level 4) operating in a geofenced urban area strikes and kills a pedestrian crossing mid-block at night. The pedestrian was wearing dark clothing and crossed outside a crosswalk. Investigation reveals: (1) LiDAR sensor failed to detect pedestrian (sensor misclassified pedestrian as non-obstacle due to low reflectivity), (2) Radar detected object but algorithm assigned low confidence (stationary object filtering), (3) Camera system did not detect pedestrian (low light conditions, inadequate illumination), (4) Sensor fusion algorithm weighted LiDAR and camera highly, discounted radar, (5) Vehicle was traveling 35 mph (speed limit), did not brake or swerve, (6) Safety driver was present but inattentive (watching movie on phone), failed to intervene, (7) Emergency braking could have reduced impact to 15 mph if activated 1.5 seconds earlier. Company had 2.5 million miles of testing with no previous serious incidents.
Analysis Task: Analyze the autonomous vehicle incident from a systems engineering and safety perspective.
Expected Analysis Elements
- [ ] Sensor Systems and Failure Modes:
- LiDAR: Time-of-flight laser ranging, 3D point clouds, misclassified pedestrian (low reflectivity)
- Radar: Doppler/range, good in low visibility, but filtered out stationary objects
- Camera: Visual, context-rich, failed in low light despite being sensitive to humans
- Sensor fusion: Combining multiple sensors should provide redundancy, but algorithm had flawed logic
- Single-point failure: No single sensor should be able to cause miss-detection
- [ ] Perception and Decision-Making Failures:
- Object classification: LiDAR misclassified pedestrian as "non-obstacle" (training data gap?)
- Confidence scoring: Radar's detection assigned low confidence, discarded by fusion
- Sensor weighting: Algorithm over-weighted LiDAR/camera, under-weighted radar
- Stationary object filtering: Radar filtered out "stationary" objects to reduce false positives (but pedestrian was moving slowly)
- Algorithm validation: Did testing include dark-clothed pedestrians at night?
- Edge case: Combination of low reflectivity, low light, mid-block crossing
- [ ] System Safety and Redundancy:
- Defense in depth: Multiple sensors should provide redundancy, but fusion logic negated this
- Graceful degradation: System should slow/stop when sensor confidence is low
- Conservative decision-making: Unclear obstacle should trigger cautious behavior (slow down)
- Fail-safe design: Default to braking when uncertain
- Operational design domain (ODD): Was night operation in ODD? If so, should be safe.
- [ ] Human Factors and Safety Driver Role:
- Safety driver: Present but inattentive (automation complacency)
- Monitoring task: Boring, sustained attention difficult (research shows human vigilance decays)
- Takeover time: 1.5 seconds needed, but safety driver was not monitoring road
- Level 4 autonomy: System should not require human intervention in ODD (but company still included driver)
- Liability: Is inattentive safety driver liable? Or company for inadequate monitoring?
- [ ] Testing and Validation Issues:
- 2.5 million miles: Seems extensive, but rare edge cases require billions of miles
- Scenario coverage: Were dark-clothed pedestrians in low light tested?
- Simulation: Did virtual testing include this scenario?
- Test-driven development: Use crash scenarios to expand test suite
- Statistical significance: Autonomous vehicles must be provably safer than humans (human rate: 1 fatality per 100M miles)
- [ ] Regulatory and Ethical Considerations:
- SAE levels: Level 4 means full autonomy in defined ODD (company's system failed this requirement)
- NHTSA oversight: Minimal AV regulation in US (self-certification)
- Public trust: High-profile fatalities erode confidence in AV technology
- Liability: Is manufacturer liable for algorithm failures? Safety driver for inattention?
- Trolley problem: Not directly relevant (this was perception failure, not ethical dilemma)
- [ ] Recommendations:
- Immediate: Halt operations, investigate all sensor fusion logic, expand test scenarios
- Short-term: Conservative decision-making (brake when uncertain), redundant sensor validation
- Long-term: Remove safety driver (if system is truly L4) or make monitoring task engaging, night operation restrictions if safety cannot be assured
- Systemic: Industry-wide sensor fusion best practices, mandatory scenario testing, independent safety audits
- [ ] Historical Context:
- Uber AV fatality (Tempe, 2018): Pedestrian struck at night, sensor detected but classified incorrectly, safety driver inattentive
- Tesla Autopilot crashes: Multiple fatalities, L2 system misused as L4/5
- Waymo: 20M+ miles, no fatalities (as of incident date), extensive simulation
- NHTSA Standing General Order: Reporting of AV crashes
- ISO 26262: Functional safety standard for automotive
- Sensor fusion literature: Bayesian estimation, Kalman filters, multi-hypothesis tracking
Evaluation Criteria
- Domain Accuracy (0-10): Correct application of autonomous systems, sensor fusion, safety engineering
- Analytical Depth (0-10): Thoroughness of technical, human factors, validation analysis
- Insight Specificity (0-10): Clear engineering recommendations, specific safety improvements
- Historical Grounding (0-10): References to AV incidents, safety standards, sensor technologies
- Reasoning Clarity (0-10): Logical flow from sensor failure to system design to prevention
Minimum Passing Score: 35/50
---
Overall Quiz Assessment
Scoring Summary
| Scenario | Max Score | Passing Score |
|---|---|---|
| 1. Bridge Structural Failure | 50 | 35 |
| 2. Software System Failure | 50 | 35 |
| 3. Chemical Plant Safety | 50 | 35 |
| 4. Renewable Energy Grid | 50 | 35 |
| 5. Autonomous Vehicle Sensor | 50 | 35 |
| Total | 250 | 175 |
Passing Criteria
To demonstrate engineer analyst competence:
- Minimum per scenario: 35/50 (70%)
- Overall minimum: 175/250 (70%)
- Must pass at least 4 of 5 scenarios
Evaluation Dimensions
Each scenario is scored on:
1. Domain Accuracy (0-10): Correct application of engineering principles and methods 2. Analytical Depth (0-10): Thoroughness and sophistication of technical analysis 3. Insight Specificity (0-10): Clear, actionable engineering recommendations 4. Historical Grounding (0-10): Use of precedents, standards, best practices 5. Reasoning Clarity (0-10): Logical flow, coherent technical argument
What High-Quality Analysis Looks Like
Excellent (45-50 points):
- Applies engineering principles accurately (mechanics, thermodynamics, systems theory)
- Considers technical, human factors, organizational, and regulatory dimensions
- Makes specific, prioritized engineering recommendations with quantitative justification
- Cites relevant failures, standards, and research literature
- Clear logical flow from failure to root cause to prevention
- Acknowledges uncertainties and trade-offs
- Identifies non-obvious failure modes and solutions
Good (35-44 points):
- Applies key engineering concepts correctly
- Considers main technical and safety factors
- Makes reasonable engineering recommendations
- References some precedents or standards
- Clear reasoning
- Provides useful engineering insights
Needs Improvement (<35 points):
- Misapplies engineering concepts or principles
- Ignores critical failure modes or safety factors
- Vague or technically incorrect recommendations
- Lacks grounding in engineering precedents or standards
- Unclear or illogical reasoning
- Superficial technical analysis
---
Using This Quiz
For Self-Assessment
1. Attempt each scenario analysis 2. Compare your analysis to expected elements 3. Score yourself honestly on each dimension 4. Identify areas for improvement
For Automated Testing (Claude Agent SDK)
from claude_agent_sdk import Agent, TestHarness
agent = Agent.load("engineer-analyst")
quiz = load_quiz_scenarios("tests/quiz.md")
results = []
for scenario in quiz.scenarios:
analysis = agent.analyze(scenario.event)
score = evaluate_analysis(analysis, scenario.expected_elements)
results.append({"scenario": scenario.name, "score": score})
assert sum(r["score"] for r in results) >= 175 # Overall passing
assert sum(1 for r in results if r["score"] >= 35) >= 4 # At least 4 scenarios passFor Continuous Improvement
- Add new scenarios as engineering failures occur
- Update expected elements as standards and practices evolve
- Refine scoring criteria based on analyst performance patterns
- Use failures to improve engineer analyst skill
---
Quiz Version: 1.0.0 Last Updated: 2025-11-16 Status: Production Ready
Related skills
FAQ
What does engineer-analyst evaluate?
engineer-analyst evaluates proposed scope for architecture viability, complexity hotspots, and dependency risks, producing feasibility guidance before amplihack agents commit to an implementation plan.
When should I use engineer-analyst in an agent workflow?
Use engineer-analyst before autonomous agents finalize build plans, when scope needs engineering stress-testing to catch architecture or dependency issues early.