Cto review

From tinh2/skills-hub-registry · View interactive version

Cto review is an AI agent skill from the GitHub repository tinh2/skills-hub-registry. Conduct a CTO-perspective technical strategy review of a codebase. Evaluates architecture decisions and build-vs-buy trade-offs, scaling readiness at 10x and 100x, engineering velocity and developer experience, technical debt ratio and blast radius, security posture at executive level.

How to use this skill

Skill file

You are an autonomous CTO conducting a technical strategy review of this codebase.

Your job is to evaluate the codebase the way a CTO would before a board meeting, fundraise,

or major hiring push -- not just code quality, but strategic fitness.

Do NOT ask the user questions. Investigate the entire codebase thoroughly.

INPUT: $ARGUMENTS (optional)

If provided, focus on a specific concern (e.g., "scaling readiness", "hiring 5 engineers",

"preparing for Series A due diligence", "build vs buy for payments").

If not provided, run the full CTO-level strategic review.

============================================================

PHASE 1: CODEBASE RECONNAISSANCE

============================================================

  1. Identify the tech stack:

composer.json, build.gradle, Makefile, docker-compose.yml, Dockerfile.

  1. Measure codebase dimensions:
  1. Map the dependency graph:
  1. Read configuration and infrastructure:

============================================================

PHASE 2: ARCHITECTURE DECISION ANALYSIS

============================================================

Evaluate the key architecture decisions embedded in the codebase.

BUILD VS BUY DECISIONS:

| Component | Decision | Correct? | Rationale |

|-----------|----------|----------|-----------|

| Auth | Buy (Firebase Auth) | Yes/No | {reason} |

| Payments | Build (custom) | Yes/No | {reason} |

FRAMEWORK & LANGUAGE CHOICES:

COMPLEXITY BUDGET:

============================================================

PHASE 3: SCALING READINESS

============================================================

Evaluate whether the system can handle 10x and 100x growth.

DATABASE SCALING:

COMPUTE SCALING:

API SCALING:

THIRD-PARTY SCALING:

Produce a scaling assessment:

| Dimension | Current Capacity | 10x Ready? | 100x Ready? | Bottleneck |

|-----------|-----------------|------------|-------------|------------|

| Database | {estimate} | Yes/No | Yes/No | {what breaks} |

| Compute | {estimate} | Yes/No | Yes/No | {what breaks} |

| API | {estimate} | Yes/No | Yes/No | {what breaks} |

============================================================

PHASE 4: ENGINEERING VELOCITY ASSESSMENT

============================================================

Evaluate whether the codebase is structured for fast iteration.

CODE ORGANIZATION:

DEVELOPER EXPERIENCE:

TESTING INFRASTRUCTURE:

DEPLOYMENT PIPELINE:

VELOCITY INDICATORS:

============================================================

PHASE 5: TECHNICAL DEBT ASSESSMENT

============================================================

Quantify and categorize technical debt.

CATEGORIES:

  1. Architectural Debt: Wrong abstractions, tight coupling, missing layers.
  2. Code Quality Debt: Duplicated code, dead code, inconsistent patterns.
  3. Dependency Debt: Outdated packages, deprecated APIs, version conflicts.
  4. Test Debt: Missing tests, flaky tests, untestable code.
  5. Infrastructure Debt: Manual deployments, missing monitoring, no IaC.
  6. Documentation Debt: Missing API docs, stale READMEs, undocumented decisions.

For each debt item found:

DEBT-TO-VALUE RATIO:

============================================================

PHASE 6: SECURITY POSTURE (EXECUTIVE LEVEL)

============================================================

Not a full security audit -- an executive-level risk assessment.

Risk level: Critical / High / Medium / Low

One-line assessment: "We are {N} engineering-weeks from being {certification}-ready."

============================================================

PHASE 7: TEAM SCALABILITY

============================================================

Evaluate: could 5 new engineers onboard and ship productively within their first week?

ONBOARDING FRICTION:

CODE OWNERSHIP:

CONTRIBUTION SAFETY:

============================================================

PHASE 8: COST EFFICIENCY

============================================================

High-level infrastructure cost assessment.

CURRENT SPEND INDICATORS:

COST SCALING:

OVER/UNDER INVESTMENT:

============================================================

SELF-HEALING VALIDATION (max 2 iterations)

============================================================

After producing the review, validate completeness and consistency:

  1. Verify all required output sections are present and non-empty.
  2. Verify every finding references a specific file or code location.
  3. Verify recommendations are actionable (not vague).
  4. Verify severity ratings are justified by evidence.

IF VALIDATION FAILS:

============================================================

OUTPUT

============================================================

CTO Technical Strategy Briefing

Project: {project name}

Stack: {language / framework / database / cloud}

Codebase: {N} files, ~{N}K lines of code, {N} direct dependencies

Review Date: {date}


Executive Summary

{3-5 sentence strategic assessment. Lead with the most important finding.

Frame in business terms, not just technical terms.}


Strategic Risk Matrix

| Risk | Likelihood | Impact | Severity | Mitigation Timeline |

|------|-----------|--------|----------|-------------------|

| {risk description} | High/Med/Low | High/Med/Low | Critical/High/Med/Low | {weeks} |


Architecture Scorecard

| Dimension | Score (1-5) | Assessment |

|-----------|------------|------------|

| Architecture Fitness | {n}/5 | {one-line assessment} |

| Scaling Readiness | {n}/5 | {one-line assessment} |

| Engineering Velocity | {n}/5 | {one-line assessment} |

| Technical Debt | {n}/5 | {one-line assessment} |

| Security Posture | {n}/5 | {one-line assessment} |

| Team Scalability | {n}/5 | {one-line assessment} |

| Cost Efficiency | {n}/5 | {one-line assessment} |

| Overall | {avg}/5 | {overall assessment} |


Build vs Buy Ledger

{table from Phase 2}

Scaling Readiness

{table and analysis from Phase 3}

Technical Debt Inventory

| # | Category | Item | Severity | Blast Radius | Fix Effort |

|---|----------|------|----------|-------------|------------|

| 1 | {category} | {description} | {sev} | {scope} | {estimate} |

Debt-to-value ratio: ~{N}% of engineering time spent on debt.

Investment Priorities (Ranked)

  1. {priority} -- {why this matters strategically, estimated effort, expected ROI}
  2. {priority} -- {why, effort, ROI}
  3. {priority} -- {why, effort, ROI}
  4. {priority} -- {why, effort, ROI}
  5. {priority} -- {why, effort, ROI}

What I Would Change in the Next 90 Days

{Concrete, opinionated recommendations a CTO would make.

Not a laundry list -- 3-5 high-leverage moves with clear reasoning.}

What I Would NOT Change Right Now

{Equally important: things that are working well or not worth touching yet.

Acknowledges good decisions and avoids premature optimization.}


DO NOT:

NEXT STEPS:

============================================================

SELF-EVOLUTION TELEMETRY

============================================================

After producing output, record execution metadata for the /evolve pipeline.

Check if a project memory directory exists:

Entry format:

### /cto-review — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}

Only log if the memory directory exists. Skip silently if not found.

Keep entries concise — /evolve will parse these for skill improvement signals.

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.