Skip to content
Back to skills

Cto Advisor

ASecurity

Technical leadership guidance for engineering teams, architecture decisions, and technology strategy. Use when assessing technical debt, scaling engineering teams, evaluating technologies, or making architecture decisions.

  • 1,271 stars
  • 0 votes
  • 0 copies
  • 8 views
  • Added May 27, 2026
data-aipythongobashtestinggitapidatabasedevopssecurityperformance

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add borghei/Claude-Skills --skill cto-advisor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cto Advisor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cto Advisor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/borghei-cto-advisor/badge)](https://www.skillsdirectory.com/skills/borghei-cto-advisor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cto-advisor
description: >
  Technical leadership guidance for engineering teams, architecture decisions,
  and technology strategy. Use when assessing technical debt, scaling engineering
  teams, evaluating technologies, or making architecture decisions.
license: MIT + Commons Clause
metadata:
  version: 1.0.0
  author: borghei
  category: c-level
  domain: cto-leadership
  updated: 2026-12-03
  python-tools: tech_debt_analyzer.py, team_scaling_calculator.py
  tech-stack: engineering-management, team-organization
  frameworks: DORA-metrics, architecture-decision-records, engineering-metrics
  tags:
    - cto
    - technical-debt
    - architecture
    - engineering-teams
    - technology-strategy
---
# CTO Advisor

Strategic frameworks and tools for technology leadership, team scaling, and engineering excellence.

## Keywords
CTO, chief technology officer, technical leadership, tech debt, technical debt, engineering team, team scaling, architecture decisions, technology evaluation, engineering metrics, DORA metrics, ADR, architecture decision records, technology strategy, engineering leadership, engineering organization, team structure, hiring plan, technical strategy, vendor evaluation, technology selection

## Clarify First

What most shapes CTO advice is the kind of technical decision being made and the size, criticality and constraints of the team and systems behind it. Settle the inputs below before advising. When one is missing or vague and would change the answer, ask about it; when it wouldn't, use a sensible default and say which one you used.

- **The decision type:** technical debt, team scaling, an architecture choice, a vendor or technology evaluation and engineering metrics each map to a different tool or reference. A request that spans several usually has one that matters first.
- **Team size and growth target:** the scaling calculator works from current headcount, role mix, target headcount and timeline. Ratios such as one manager per eight engineers and the 25% maximum quarterly growth rate only mean something against real numbers.
- **System criticality:** the debt analyzer weighs findings by how critical the system is, and the capacity split (40% for critical debt, less for lower severities) depends on that rating. Uptime and DORA targets also differ; hardware or embedded teams may need different benchmarks.
- **Constraints:** budget, timeline, compliance requirements and the existing stack are part of the requirements phase of any technology evaluation. They often rule options out before scoring starts.

If `~/.claude/company-context.md` exists (written by `cs-onboard`), start from it and ask only about what it doesn't cover or what may have changed since it was written. Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants an answer straight away, give it and state your assumptions at the top.

## Quick Start

### For Technical Debt Assessment
```bash
python3 scripts/tech_debt_analyzer.py assets/sample_system.json
```
Turns your team's 0-100 debt ratings for one system into a ranked debt register with a fix per item, a capacity share and a risk level. Copy `assets/sample_system.json` and replace the values with your own.

### For Team Scaling Planning
```bash
python3 scripts/team_scaling_calculator.py assets/sample_team.json
```
Checks your hiring plan against onboarding capacity, manager span, senior mix, attrition and budget, quarter by quarter. Copy `assets/sample_team.json` and replace the values with your own. Input schemas and exit codes are under [Tool Reference](#tool-reference).

### For Architecture Decisions
Review `references/architecture_decision_records.md` for ADR templates and examples.

### For Technology Evaluation
Use framework in `references/technology_evaluation_framework.md` for vendor selection.

### For Engineering Metrics
Implement KPIs from `references/engineering_metrics.md` for team performance tracking.

## Core Responsibilities

### 1. Technology Strategy

#### Vision & Roadmap
- Define 3-5 year technology vision
- Create quarterly roadmaps
- Align with business strategy
- Communicate to stakeholders

#### Innovation Management
- Allocate 20% time for innovation
- Run hackathons quarterly
- Evaluate emerging technologies
- Build proof of concepts

#### Technical Debt Strategy
```bash
# Assess current debt
python3 scripts/tech_debt_analyzer.py assets/sample_system.json
```

Capacity for debt work by overall debt score (heuristic, the analyzer applies it):
- Critical (80+): 40% capacity
- Medium-High (60-79): 30% capacity
- Medium (40-59): 20% capacity
- Below 40: 15% ongoing maintenance

### 2. Team Leadership

#### Scaling Engineering
```bash
# Calculate scaling needs
python3 scripts/team_scaling_calculator.py assets/sample_team.json
```

Ratios the calculator checks (heuristics, override under `policy` in the input):
- Engineers per engineering manager: 4 to 8
- Senior ICs (tech lead, senior, staff, principal): at least 25% of ICs
- Gross hires per quarter: at most 25% of current headcount
- Yearly attrition: at most 15%

#### Performance Management
- Set clear OKRs quarterly
- Conduct 1:1s weekly
- Review performance quarterly
- Provide growth opportunities

#### Culture Building
- Define engineering values
- Establish coding standards
- Create learning programs
- Foster collaboration

### 3. Architecture Governance

#### Decision Making
Use ADR template from `references/architecture_decision_records.md`:
1. Document context and problem
2. List all options considered
3. Record decision and rationale
4. Track consequences

#### Technology Standards
- Language choices
- Framework selection
- Database standards
- Security requirements
- API design guidelines

#### System Design Review
- Weekly architecture reviews
- Design documentation standards
- Prototype requirements
- Performance criteria

### 4. Vendor Management

#### Evaluation Process
Follow framework in `references/technology_evaluation_framework.md`:
1. Gather requirements (Week 1)
2. Market research (Week 1-2)
3. Deep evaluation (Week 2-4)
4. Decision and documentation (Week 4)

#### Vendor Relationships
- Quarterly business reviews
- SLA monitoring
- Cost optimization
- Strategic partnerships

### 5. Engineering Excellence

#### Metrics Implementation
From `references/engineering_metrics.md`:

**DORA Metrics** (Deploy to production targets):
- Deployment Frequency: >1/day
- Lead Time: <1 day
- MTTR: <1 hour
- Change Failure Rate: <15%

**Quality Metrics**:
- Test Coverage: >80%
- Code Review: 100%
- Technical Debt: <10%

**Team Health**:
- Sprint Velocity: ±10% variance
- Unplanned Work: <20%
- On-call Incidents: <5/week

## Weekly Cadence

### Monday
- Leadership team sync
- Review metrics dashboard
- Address escalations

### Tuesday
- Architecture review
- Technical interviews
- 1:1s with directs

### Wednesday
- Cross-functional meetings
- Vendor meetings
- Strategy work

### Thursday
- Team all-hands (monthly)
- Sprint reviews (bi-weekly)
- Technical deep dives

### Friday
- Strategic planning
- Innovation time
- Week recap and planning

## Quarterly Planning

### Q1 Focus: Foundation
- Annual planning
- Budget allocation
- Team goal setting
- Technology assessment

### Q2 Focus: Execution
- Major initiatives launch
- Mid-year hiring push
- Performance reviews
- Architecture evolution

### Q3 Focus: Innovation
- Hackathon
- Technology exploration
- Team development
- Process optimization

### Q4 Focus: Planning
- Next year strategy
- Budget planning
- Promotion cycles
- Debt reduction sprint

## Crisis Management

### Incident Response
1. **Immediate** (0-15 min):
   - Assess severity
   - Activate incident team
   - Begin communication

2. **Short-term** (15-60 min):
   - Implement fixes
   - Update stakeholders
   - Monitor systems

3. **Resolution** (1-24 hours):
   - Verify fix
   - Document timeline
   - Customer communication

4. **Post-mortem** (48-72 hours):
   - Root cause analysis
   - Action items
   - Process improvements

### Types of Crises

#### Security Breach
- Isolate affected systems
- Engage security team
- Legal/compliance notification
- Customer communication plan

#### Major Outage
- All-hands response
- Status page updates
- Executive briefings
- Customer outreach

#### Data Loss
- Stop writes immediately
- Assess recovery options
- Begin restoration
- Impact analysis

## Stakeholder Management

### Board/Executive Reporting
**Monthly**:
- KPI dashboard
- Risk register
- Major initiatives status

**Quarterly**:
- Technology strategy update
- Team growth and health
- Innovation highlights
- Budget review

### Cross-functional Partners

#### Product Team
- Weekly roadmap sync
- Sprint planning participation
- Technical feasibility reviews
- Feature estimation

#### Sales/Marketing
- Technical sales support
- Product capability briefings
- Customer reference calls
- Competitive analysis

#### Finance
- Budget management
- Cost optimization
- Vendor negotiations
- Capex planning

## Strategic Initiatives

### Digital Transformation
1. Assess current state
2. Define target architecture
3. Create migration plan
4. Execute in phases
5. Measure and adjust

### Cloud Migration
1. Application assessment
2. Migration strategy (7Rs)
3. Pilot applications
4. Full migration
5. Optimization

### Platform Engineering
1. Define platform vision
2. Build core services
3. Create self-service tools
4. Enable team adoption
5. Measure efficiency

### AI/ML Integration
1. Identify use cases
2. Build data infrastructure
3. Develop models
4. Deploy and monitor
5. Scale adoption

## Communication Templates

### Technology Strategy Presentation
```
1. Executive Summary (1 slide)
2. Current State Assessment (2 slides)
3. Vision & Strategy (2 slides)
4. Roadmap & Milestones (3 slides)
5. Investment Required (1 slide)
6. Risks & Mitigation (1 slide)
7. Success Metrics (1 slide)
```

### Team All-hands
```
1. Wins & Recognition (5 min)
2. Metrics Review (5 min)
3. Strategic Updates (10 min)
4. Demo/Deep Dive (15 min)
5. Q&A (10 min)
```

### Board Update Email
```
Subject: Engineering Update - [Month]

Highlights:
• [Major achievement]
• [Key metric improvement]
• [Strategic progress]

Challenges:
• [Issue and mitigation]

Next Month:
• [Priority 1]
• [Priority 2]

Detailed metrics attached.
```

## Tools & Resources

### Essential Tools
- **Architecture**: Draw.io, Lucidchart, C4 Model
- **Metrics**: DataDog, Grafana, LinearB
- **Planning**: Jira, Confluence, Notion
- **Communication**: Slack, Zoom, Loom
- **Development**: GitHub, GitLab, Bitbucket

### Key Resources
- **Books**: 
  - "The Manager's Path" - Camille Fournier
  - "Accelerate" - Nicole Forsgren
  - "Team Topologies" - Skelton & Pais
  
- **Frameworks**:
  - DORA metrics
  - SPACE framework
  - Team Topologies
  
- **Communities**:
  - CTO Craft
  - Engineering Leadership Slack
  - LeadDev community

## Success Indicators

✅ **Technical Excellence**
- System uptime >99.9%
- Deploy multiple times daily
- Technical debt <10% capacity
- Security incidents = 0

✅ **Team Success**
- Team satisfaction >8/10
- Attrition <10%
- Filled positions >90%
- Diversity improving

✅ **Business Impact**
- Features on-time >80%
- Engineering enables revenue
- Cost per transaction decreasing
- Innovation driving growth

## Red Flags to Watch

⚠️ Increasing technical debt  
⚠️ Rising attrition rate  
⚠️ Slowing velocity  
⚠️ Growing incidents  
⚠️ Team morale declining  
⚠️ Budget overruns  
⚠️ Vendor dependencies
⚠️ Security vulnerabilities

---

## Tool Reference

Both tools read a JSON file (positional path, `--input FILE`, or `-` for stdin), print text by default or JSON with `--format json` (`--json` is a legacy alias), and run on built-in example data only with `--demo`, which is labelled `DEMO DATA`. Neither tool fills a missing value with a default: what was read and what was missing are listed at the top of every report. Standard library only, no network.

| Exit code | Meaning |
|---|---|
| `0` | `PASS`: no findings |
| `1` | `FIX n issues`: findings to act on, each with the input value, the rule, and a fix |
| `2` | `BLOCKED: <reason>`: missing, empty, non-JSON or wrong-shape input (one line, no traceback) |

All thresholds are internal heuristics, not external benchmarks, and are labelled that way in the output.

### 1. tech_debt_analyzer.py

Rates one system's debt across five weighted categories (architecture 25%, code quality 20%, infrastructure 20%, security 20%, performance 15%) from the team's 0-100 indicator ratings (0 = no debt, 100 = severe). Produces a paste-ready debt register ranked by rating x category weight x business-context boost, a capacity share for debt work, and a risk level that combines the debt score with system criticality.

```bash
python3 scripts/tech_debt_analyzer.py assets/sample_system.json              # exit 0
python3 scripts/tech_debt_analyzer.py assets/flawed_system.json              # exit 1
python3 scripts/tech_debt_analyzer.py assets/flawed_system.json --format json
python3 scripts/tech_debt_analyzer.py assets/malformed_system.json           # exit 2
```

**Input schema** (full version in `--help`):

| Key | Type | Notes |
|---|---|---|
| `system` | text | optional |
| `system_criticality` | `low` / `medium` / `high`, optional | raises the risk level |
| `team_size` | number, optional | turns the capacity share into engineers |
| `business_context` | object, optional | `growth_phase: "rapid"` boosts performance and architecture, `compliance_required: true` security, `cost_pressure: true` infrastructure |
| `architecture` | object | `tight_coupling`, `legacy_patterns`, `shared_database`, `no_api_contracts`, `monolith_scaling_limits`, `synchronous_only` |
| `code_quality` | object | `low_test_coverage`, `high_complexity`, `code_duplication`, `no_documentation`, `inconsistent_standards`, `legacy_language` |
| `infrastructure` | object | `manual_deployments`, `no_ci_cd`, `single_points_failure`, `no_monitoring`, `no_auto_scaling`, `outdated_servers` |
| `security` | object | `outdated_dependencies`, `no_security_scans`, `plain_text_secrets`, `no_encryption`, `missing_auth`, `no_audit_logs` |
| `performance` | object | `slow_response_times`, `no_caching`, `inefficient_queries`, `memory_leaks`, `no_load_testing`, `blocking_operations` |

**Findings** (heuristics): an indicator rated 60 or more (critical at 80); `plain_text_secrets`, `missing_auth` or `no_encryption` rated 40 or more (direct exposure); a category with no rated indicator. The overall score needs three of five categories rated. Unknown indicator keys are listed as ignored, not scored.

Excerpt from `assets/flawed_system.json`:

```text
FIX 11 issues: Brightline Order Platform technical debt
Read: 12 of 30 indicators in 4 of 5 categories; business context: growth_phase="rapid", compliance_required=true
Capacity for debt work: 30% of engineering time = 2.4 of 8 engineers (heuristic)
| 1 | security.outdated_dependencies | 88 | critical | 52.8 | Turn on automated dependency-update pull requests, fail CI on known critical vulnerabilities, and clear the current critical and high backlog. | below 40 |
| 3 | security.plain_text_secrets | 50 | critical | 30.0 | Move every secret to a secrets manager, rotate each one that was ever in code or config, and add a pre-commit secret scanner. | below 40 |
```

### 2. team_scaling_calculator.py

Simulates the hiring plan quarter by quarter (gross hires including attrition backfills, capped by onboarding capacity), builds the target role mix (yours, or today's mix scaled to the target), checks manager span and senior share today and in the plan, and prices the plan when salary bands are given. Salary figures come only from your input; the tool ships no salary data.

```bash
python3 scripts/team_scaling_calculator.py assets/sample_team.json              # exit 0
python3 scripts/team_scaling_calculator.py assets/flawed_team.json              # exit 1
python3 scripts/team_scaling_calculator.py assets/flawed_team.json --format json
python3 scripts/team_scaling_calculator.py assets/malformed_team.json           # exit 2
```

**Input schema** (full version in `--help`):

| Key | Type | Notes |
|---|---|---|
| `current.roles` | object | `{role: count}`; `engineering_manager` counts as a manager; `tech_lead`, `senior_engineer`, `staff_engineer`, `principal_engineer` as senior |
| `current.headcount` | number, optional | checked against the sum of roles |
| `current.annual_attrition_pct` | number, optional | absent = no backfills planned (reported as missing) |
| `target.headcount` | number | required unless `target.roles` is given |
| `target.timeline_quarters` | number | 1-20 |
| `target.roles` | object, optional | planned mix; absent = today's mix scaled |
| `policy` | object, optional | `max_quarterly_growth_pct` (25), `max_span` (8), `min_span` (4), `min_senior_share_pct` (25), `max_attrition_pct` (15) |
| `budget` | object, optional | `salary_bands` `{role: annual}`, optional `loaded_cost_multiplier`, `recruiting_fee_pct`, `annual_limit` |

**Findings** (heuristics): target unreachable at 25% gross hires per quarter (fix: the number of quarters that works, or the reachable target); more than 8 or fewer than 4 engineers per manager (fix: managers to add or merge); senior ICs below 25% of the plan (fix: how many planned hires to make senior); attrition above 15% (fix: gross hires to budget); plan cost above `annual_limit` (fix: the hires the limit funds); roles not summing to the stated headcount.

Excerpt from `assets/flawed_team.json`:

```text
FIX 7 issues: Brightline Robotics Engineering scaling plan
Headcount 25 -> target 70, reachable 51 (32 gross hires, 6 expected leavers)
| Q1 | 6 | 1 | 6 | 30 |
...
1. [onboarding-capacity] 25 -> 70 in 4 quarters; capped at 25% gross hires per quarter you reach 51
   Rule: gross hires above 25% of headcount per quarter (heuristic)
   Fix: Extend the timeline to 6 quarters, or set target.headcount to 51 for Q4.
```

`assets/contract.json` declares every sample run and its expected exit code; check it with `python3 scripts/skill_contract_check.py --skill c-level-advisor/cto-advisor` from the repository root.

---

## Troubleshooting

| Problem | Likely Cause | Resolution |
|---------|-------------|------------|
| Tech debt score increasing despite dedicated sprints | Debt reduction not keeping pace with new debt creation | Implement debt prevention gates (code review, architecture review); track debt creation rate alongside reduction rate |
| DORA metrics improving but customer satisfaction declining | Shipping faster but not shipping the right things | Add customer-impact metrics alongside DORA; review feature adoption rates; reconnect with product team on priorities |
| Team scaling plan keeps missing hiring targets | Unrealistic timeline, insufficient recruiting capacity, or poor employer brand | Run the calculator: its onboarding-capacity finding gives the number of quarters that works at 25% gross hires per quarter; add recruiting resources (1 per 50 annual hires, heuristic) |
| A tool prints `BLOCKED:` and exits 2 | Input is missing, not JSON, or a field has the wrong type or range | Fix the field named in the message; compare with the matching `assets/sample_*.json` |
| Architecture decisions not documented or followed | No ADR process or ADRs created but not referenced | Implement lightweight ADR template; make ADR review part of design review; link ADRs to relevant code |
| Engineering team morale declining during rapid growth | Culture dilution, unclear expectations, or insufficient onboarding | Implement structured onboarding; maintain 1:8 manager ratio; run quarterly team health surveys |
| Vendor lock-in creating strategic risk | No evaluation framework or over-reliance on single vendor | Run technology evaluation for critical vendors; implement abstraction layers; maintain exit strategies |

---

## Success Criteria

- Tech debt score below 40 (Medium-Low) across all categories
- DORA metrics at "High" or "Elite" performance tier (deployment frequency > weekly, lead time < 1 week, MTTR < 1 day, change failure rate < 15%)
- Team scaling calculator passes: 4-8 engineers per manager and senior ICs at 25%+ of the plan
- Architecture decisions documented via ADRs for all significant technical choices
- System uptime exceeds 99.9% for production systems
- Engineering team satisfaction above 8/10 with attrition below 10%
- Innovation time (hackathons, exploration) maintained at 15-20% of engineering capacity

---

## Scope & Limitations

**In scope:** Technology strategy and vision, technical debt assessment and reduction planning, engineering team scaling and structure design, architecture governance (ADRs, design reviews), vendor management and evaluation, engineering metrics (DORA, quality, team health), crisis management (incident response, security breach, data loss), stakeholder management and board reporting, and strategic initiatives (cloud migration, platform engineering, AI/ML integration).

**Out of scope:** Hands-on coding or code review (use engineering/ skills), product feature prioritization (use cpo-advisor), security architecture and compliance (use ciso-advisor or ra-qm-team/), HR policy and compensation design (use chro-advisor or hr-operations/), and financial planning for engineering budget (use cfo-advisor). Tools analyze engineering data snapshots; continuous metrics tracking requires integration with DevOps platforms.

**Limitations:** Tech debt scoring depends on self-reported indicator data; automated code analysis tools provide more objective measures. Team scaling budget projections are only as good as the salary bands you supply, and price the target run-rate rather than a month-by-month ramp. DORA benchmarks assume standard software delivery practices; hardware or embedded systems teams may need different targets.

---

## Integration Points

- **ceo-advisor** -- Technology strategy aligns with business direction; engineering capacity enables or constrains strategic bets
- **cpo-advisor** -- Technical feasibility co-owned with CPO; features vs platform trade-offs require joint decision-making
- **cfo-advisor** -- Engineering budget, headcount costs, and vendor spend feed financial planning
- **coo-advisor** -- System reliability and incident response intersect with operational excellence
- **ciso-advisor** -- Security architecture, vulnerability management, and compliance require CISO partnership
- **engineering/** -- CTO strategy cascades to engineering team execution; architecture decisions guide implementation

Files in this skill

  • SKILL.md14.8 KB
  • references/architecture_decision_records.md8.5 KB
  • references/engineering_metrics.md12.1 KB
  • references/technology_evaluation_framework.md9.6 KB
  • scripts/team_scaling_calculator.py19.5 KB
  • scripts/tech_debt_analyzer.py16.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in data-ai →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.