Engineer analyst

From rysweet/amplihack · View interactive version

Engineer analyst is an AI agent skill from the GitHub repository rysweet/amplihack. Analyzes technical systems and problems through engineering lens using first principles, systems thinking, design methodologies, and optimization frameworks. Provides insights on feasibility, performance, reliability, scalability, and trade-offs. Use when: System design, technical feasibility, optim

How to use this skill

Skill file

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

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:

Key Insights:

Famous Practitioner: Elon Musk

When to Apply:

Sources:

Foundation 2: Systems Engineering and V-Model

Core Principles:

Key Insights:

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:

Sources:

Foundation 3: Design Optimization and Trade-off Analysis

Core Principles:

Key Insights:

Optimization Methods:

When to Apply:

Sources:

Foundation 4: Failure Modes and Effects Analysis (FMEA)

Core Principles:

Key Insights:

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:

Sources:

Foundation 5: Scalability Analysis and Performance Engineering

Core Principles:

Key Insights:

Scalability Patterns:

When to Apply:

Sources:


Analytical Frameworks (Expandable)

Framework 1: Requirements Engineering (MoSCoW Prioritization)

Overview: Systematic approach to eliciting, documenting, and validating requirements.

MoSCoW Method:

Requirements Types:

Validation Techniques:

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:

Tools and Techniques:

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:

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:

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:

Key Metrics:

Tools:

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:

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:

Benefits:

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:

Little's Law: L = λW (average queue length = arrival rate × average wait time)

Insights:

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:

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:

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:

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:

Monolith Characteristics:

Microservices Characteristics:

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:

Recommendation:

  1. Stay monolith short-term (next 6-12 months)
  2. Prepare for transition:
  1. Extract strategically (12-24 months):
  1. 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):

Current Schema:

products (id, name, description, brand, category, price, stock, created_at, popularity_score)

Current Indexes:

Performance Measurements:

First Principles Analysis:

Index Design:

High-Priority Indexes (cover 65% of queries):

  1. Composite: (category, price)
  1. Composite: (brand, stock)

Medium-Priority: 3. Full-text index: (name, description)

Deferred:

Optimization Strategy:

Expected Results:

Validation:

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):

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:

Single Points of Failure:

Recommended Mitigations:

Immediate (1 week):

  1. Decouple migrations: Separate schema changes from code deploys
  1. Canary deployments: Deploy to 5% of traffic, monitor 30min, proceed gradually
  1. Feature flags: Wrap new code paths in flags for instant disable
  1. Alert tuning: Page at 5% error rate increase, not 12%

Medium-term (1 month): 5. Chaos engineering: Regularly test failure scenarios in staging

  1. Improved monitoring:
  1. 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

Step 2: Gather System Context

Step 3: First Principles Analysis

Step 4: Enumerate Alternatives

Step 5: Model and Estimate

Step 6: Trade-off Analysis

Step 7: Failure Mode Analysis

Step 8: Prototype and Validate

Step 9: Document and Communicate


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

Software Engineering

Performance Engineering

Reliability Engineering

Professional Organizations


Integration with Amplihack Principles

Ruthless Simplicity

Modular Design

Zero-BS Implementation

Evidence-Based Practice


Version

Current Version: 1.0.0

Status: Production Ready

Last Updated: 2025-11-16

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.