Computer scientist analyst

From rysweet/amplihack · View interactive version

Computer scientist analyst is an AI agent skill from the GitHub repository rysweet/amplihack. Analyzes events through computer science lens using computational complexity, algorithms, data structures, systems architecture, information theory, and software engineering principles to evaluate feasibility, scalability, security. Provides insights on algorithmic efficiency, system design, computa

How to use this skill

Skill file

Computer Scientist Analyst Skill

Purpose

Analyze events through the disciplinary lens of computer science, applying computational theory (complexity, computability, information theory), algorithmic thinking, systems design principles, software engineering practices, and security frameworks to evaluate technical feasibility, assess scalability, understand computational limits, design efficient solutions, and identify systemic risks in computing systems.

When to Use This Skill

Core Philosophy: Computational Thinking

Computer science analysis rests on fundamental principles:

Algorithmic Thinking: Problems can be solved through precise, step-by-step procedures. Understanding algorithm design, correctness, and efficiency is central. "What is the algorithm?" is a key question.

Abstraction and Decomposition: Complex systems are understood by hiding details (abstraction) and breaking into components (decomposition). Interfaces define boundaries. Modularity enables reasoning about large systems.

Computational Complexity: Not all problems are equally hard. Understanding time and space complexity reveals fundamental limits. Some problems are intractable; efficient solutions may not exist.

Data Structures Matter: How data is organized profoundly affects efficiency. Choosing appropriate data structures is as important as choosing algorithms.

Correctness Before Optimization: Systems must first be correct (produce right answers, behave safely). "Premature optimization is the root of all evil." Prove correctness, then optimize bottlenecks.

Trade-offs are Inevitable: Computing involves constant trade-offs: time vs. space, generality vs. efficiency, security vs. usability, consistency vs. availability. No solution is optimal on all dimensions.

Formal Reasoning and Rigor: Specifications, proofs, and formal methods enable reasoning about correctness and properties. "Does this program do what we think?" requires rigor, not just testing.

Systems Thinking: Real computing systems involve hardware, software, networks, users, and environments interacting. Emergent properties and failure modes arise from interactions.

Security is Hard: Systems face adversaries actively trying to break them. Designing secure systems requires threat modeling, defense in depth, and assuming components will fail or be compromised.


Theoretical Foundations (Expandable)

Framework 1: Computational Complexity Theory

Core Questions:

Time Complexity (Big-O Notation):

Complexity Classes:

P (Polynomial Time): Problems solvable in polynomial time (O(nᵏ))

NP (Nondeterministic Polynomial Time): Problems where solutions can be verified in polynomial time

NP-Complete: Hardest problems in NP; if any one solvable in P, then P=NP

NP-Hard: At least as hard as NP-complete; may not be in NP

P vs. NP Question: "Can every problem whose solution can be quickly verified also be quickly solved?" (One of millennium problems; $1M prize)

Key Insights:

When to Apply:

Sources:

Framework 2: Theory of Computation and Computability

Core Questions:

Turing Machine: Abstract model of computation; defines what is "computable"

Decidable vs. Undecidable Problems:

Decidable: Algorithm exists that always terminates with correct answer

Undecidable: No algorithm can solve for all inputs

Rice's Theorem: Any non-trivial property of program behavior is undecidable

Key Insights:

When to Apply:

Sources:

Framework 3: Information Theory

Origin: Claude Shannon (1948) - "A Mathematical Theory of Communication"

Core Concepts:

Entropy: Measure of information content or uncertainty

Channel Capacity: Maximum rate information can be reliably transmitted over noisy channel

Data Compression: Reducing size of data by exploiting redundancy

Key Insights:

Applications:

When to Apply:

Sources:

Framework 4: Algorithms and Data Structures

Algorithms: Precise, step-by-step procedures for solving problems

Key Algorithm Paradigms:

Divide and Conquer: Break problem into subproblems, solve recursively, combine

Dynamic Programming: Solve overlapping subproblems once, reuse solutions

Greedy Algorithms: Make locally optimal choice at each step

Backtracking: Explore solution space, prune dead ends

Randomized Algorithms: Use randomness to achieve efficiency or simplicity

Approximation Algorithms: Find near-optimal solutions for intractable problems

Data Structures: Ways of organizing data for efficient access and modification

Basic Structures:

Tree Structures:

Graph Structures: Represent relationships; adjacency matrix or adjacency list

Key Insights:

When to Apply:

Sources:

Framework 5: Software Engineering Principles

Core Principles:

Modularity and Abstraction: Divide system into modules with well-defined interfaces

Design Patterns: Reusable solutions to common problems

SOLID Principles (Object-Oriented Design):

Testing and Verification:

Software Development Practices:

Technical Debt: Shortcuts taken for expediency that make future changes harder

Key Insights:

When to Apply:

Sources:

Framework 6: Distributed Systems and Networks

Core Challenges:

CAP Theorem (Brewer): Distributed system can provide at most two of:

Implication: Network partitions inevitable → Choose between consistency and availability

Consensus Problem: How do distributed nodes agree?

Scalability Dimensions:

Network Effects: Value increases with number of users

Key Insights:

When to Apply:

Sources:


Core Analytical Frameworks (Expandable)

Framework 1: Algorithm Analysis and Big-O

Purpose: Evaluate efficiency of algorithms as input size grows

Process:

  1. Identify input size (n)
  2. Count operations as function of n
  3. Express in Big-O notation (asymptotic upper bound)
  4. Compare alternatives

Common Complexities (from fastest to slowest for large n):

Example - Searching:

Example - Sorting:

Space Complexity: Memory used as function of input size

When to Apply:

Sources:

Framework 2: System Architecture Analysis

Purpose: Evaluate structure and design of complex computing systems

Architectural Patterns:

Monolithic: Single unified codebase and deployment

Microservices: System decomposed into small, independent services

Layered Architecture: System organized in layers (e.g., presentation, business logic, data)

Event-Driven: Components communicate through events

Design Considerations:

Scalability: Can system handle increased load?

Reliability: Does system continue working despite failures?

Performance: Response time, throughput, resource utilization

Security: Protection against threats

When to Apply:

Sources:

Framework 3: Database and Data Management Analysis

Database Models:

Relational (SQL): Tables with rows and columns; relationships via foreign keys

Document (NoSQL): Store documents (JSON-like objects)

Key-Value: Simple hash table

Graph: Nodes and edges represent entities and relationships

ACID Properties (Relational databases):

BASE Properties (Many NoSQL systems):

Data Processing Paradigms:

Batch Processing: Process large volumes of data at once

Stream Processing: Process continuous data streams in real-time

Data Trade-offs:

When to Apply:

Sources:

Framework 4: Security and Threat Modeling

Security Principles:

Confidentiality: Prevent unauthorized access to information

Integrity: Prevent unauthorized modification

Availability: Ensure system accessible to authorized users

CIA Triad: Confidentiality, Integrity, Availability

Authentication: Verify identity (username/password, biometrics, tokens)

Authorization: Determine what authenticated user can do (permissions, roles)

Threat Modeling: Systematic analysis of threats

STRIDE Framework (Microsoft):

Common Vulnerabilities:

Defense in Depth: Multiple layers of security controls

Zero Trust: Never trust, always verify

Cryptography:

When to Apply:

Sources:

Framework 5: AI and Machine Learning Analysis

Machine Learning Paradigms:

Supervised Learning: Learn from labeled examples

Unsupervised Learning: Find patterns in unlabeled data

Reinforcement Learning: Learn through trial and error

Deep Learning: Neural networks with many layers

Large Language Models (LLMs): Trained on massive text data

Key Concepts:

Training vs. Inference: Model learns from data (training) then makes predictions (inference)

Overfitting vs. Underfitting:

Bias-Variance Trade-off: Balancing model complexity

Data Quality: "Garbage in, garbage out"

Explainability: Many ML models are "black boxes"

Adversarial Examples: Inputs designed to fool model

AI Limitations:

When to Apply:

Sources:


Methodological Approaches (Expandable)

Method 1: Algorithm Design and Analysis

Purpose: Develop efficient algorithms and analyze their performance

Process:

  1. Problem specification: Define inputs, outputs, constraints
  2. Algorithm design: Choose paradigm (divide-conquer, greedy, dynamic programming, etc.)
  3. Correctness proof: Prove algorithm produces correct answer
  4. Complexity analysis: Analyze time and space as function of input size
  5. Implementation: Code and test
  6. Optimization: Profile and optimize bottlenecks

Proof Techniques:

When to Apply:

Method 2: Software Testing and Verification

Testing Levels:

Testing Strategies:

Test Coverage: Percentage of code executed by tests

Formal Verification: Mathematical proof of correctness

Limitations:

When to Apply:

Method 3: Performance Analysis and Optimization

Purpose: Identify and eliminate performance bottlenecks

Process:

  1. Measure: Profile to find hotspots (where time is spent)
  2. Analyze: Understand why bottleneck exists
  3. Optimize: Apply targeted improvements
  4. Measure again: Verify improvement

Profiling Tools: Measure execution time, memory usage, I/O

Common Bottlenecks:

Optimization Techniques:

Amdahl's Law: Speedup limited by serial portion

Premature Optimization: "Root of all evil" (Knuth)

When to Apply:

Method 4: System Design and Architecture

Purpose: Design large-scale computing systems

Process:

  1. Requirements: Functional (what) and non-functional (scalability, reliability, performance)
  2. High-level design: Components and interfaces
  3. Detailed design: Algorithms, data structures, protocols
  4. Evaluation: Analyze trade-offs (consistency vs. availability, etc.)
  5. Implementation: Build iteratively
  6. Testing and deployment: Validate and release

Design Patterns: Reusable solutions (see Framework 5 above)

Trade-off Analysis: No design is best on all dimensions

When to Apply:

Method 5: Computational Modeling and Simulation

Purpose: Use computation to model complex systems

Techniques:

Applications:

Validation: Compare simulations to real-world data

When to Apply:


Analysis Rubric

Domain-specific framework for analyzing events through computer science lens:

What to Examine

Algorithms and Complexity:

System Architecture:

Scalability:

Data Management:

Security and Privacy:

Questions to Ask

Feasibility Questions:

Performance Questions:

Reliability Questions:

Security Questions:

Maintainability Questions:

Factors to Consider

Computational Constraints:

System Constraints:

Human Factors:

Economic Factors:

Historical Parallels to Consider

Implications to Explore

Technical Implications:

Systemic Implications:

Societal Implications:


Step-by-Step Analysis Process

Step 1: Define the System and Question

Actions:

Outputs:

Step 2: Identify Relevant Computer Science Principles

Actions:

Outputs:

Step 3: Analyze Algorithms and Complexity

Actions:

Outputs:

Step 4: Evaluate System Architecture

Actions:

Outputs:

Step 5: Assess Scalability

Actions:

Outputs:

Step 6: Analyze Data Management

Actions:

Outputs:

Step 7: Evaluate Security and Privacy

Actions:

Outputs:

Step 8: Consider Software Engineering Quality

Actions:

Outputs:

Step 9: Ground in Evidence and Benchmarks

Actions:

Outputs:

Step 10: Identify Trade-offs

Actions:

Outputs:

Step 11: Synthesize and Provide Recommendations

Actions:

Outputs:


Usage Examples

Example 1: Evaluating Blockchain for Supply Chain Tracking

Claim: Blockchain will revolutionize supply chain management by providing transparent, immutable tracking of goods.

Analysis:

Step 1 - Define System:

Step 2 - CS Principles:

Step 3 - Complexity Analysis:

Step 4 - Architecture:

Step 5 - Scalability:

Step 6 - Data Management:

Step 7 - Security:

Step 8 - Software Engineering:

Step 9 - Evidence and Comparisons:

Step 10 - Trade-offs:

Step 11 - Synthesis:

Example 2: Analyzing Scalability of Social Media Platform

Scenario: Startup building social media platform; expecting rapid growth from 1,000 to 10,000,000 users.

Analysis:

Step 1-2 - System and Principles:

Step 3 - Complexity of Operations:

Step 4 - Architecture Evolution:

Phase 1 - Monolithic (1K users):

Phase 2 - Separate Services (10K-100K users):

Phase 3 - Distributed Architecture (100K-10M users):

Step 5 - Scalability Analysis:

Feed Generation Challenge:

Database Scaling:

Step 6 - Data Considerations:

Step 7 - Security:

Step 8 - Software Engineering:

Step 9 - Cost Analysis:

Step 10 - Trade-offs:

Step 11 - Synthesis:

Example 3: Evaluating AI Resume Screening System

Scenario: Company proposes AI system to screen resumes, claims to eliminate bias and improve efficiency.

Analysis:

Step 1-2 - System and AI Principles:

Step 3 - Algorithm Complexity:

Step 4 - Machine Learning Analysis:

Step 5 - Specific Risks:

Protected Attributes:

Amazon's Resume Screening Failure (real case, 2018):

Step 6 - Fairness Considerations:

Step 7 - Explainability:

Step 8 - Data Quality:

Step 9 - Validation:

Step 10 - Alternative Approaches:

Step 11 - Synthesis:


Reference Materials (Expandable)

Essential Resources

Association for Computing Machinery (ACM)
IEEE Computer Society
ArXiv Computer Science

Key Journals and Conferences

Journals:

Top Conferences (peer-reviewed, often more prestigious than journals in CS):

Seminal Works and Thinkers

Alan Turing (1912-1954)
Donald Knuth (1938-)
Edsger Dijkstra (1930-2002)
Barbara Liskov (1939-)
Tim Berners-Lee (1955-)

Educational Resources

Online Resources


Verification Checklist

After completing computer science analysis, verify:


Common Pitfalls to Avoid

Pitfall 1: Ignoring Computational Complexity

Pitfall 2: Premature Optimization

Pitfall 3: Ignoring Fundamental Limits

Pitfall 4: Assuming Distributed Systems Are Easy

Pitfall 5: Security as Afterthought

Pitfall 6: Trusting AI Without Understanding Limitations

Pitfall 7: One-Size-Fits-All Solutions

Pitfall 8: Ignoring Human Factors


Success Criteria

A quality computer science analysis:


Integration with Other Analysts

Computer science analysis complements other disciplinary perspectives:

Computer science is particularly strong on:


Continuous Improvement

This skill evolves as:

Share feedback and learnings to enhance this skill over time.


Skill Status: Pass 1 Complete - Comprehensive Foundation Established

Next Steps: Enhancement Pass (Pass 2) for depth and refinement

Quality Level: High - Comprehensive computer science analysis capability

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.