[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-a7e36a00-6325-4374-bf5e-4526d608da38":3,"$frdaBaHqSb6Hi0wfv9rbY0vhqyf5Rj-2eZj9zRvLdefE":43},{"id":4,"title":5,"description":6,"categoryId":7,"moduleId":8,"tags":9,"prompt":10,"icon":11,"source":12,"sourceUrl":13,"authorId":14,"authorName":15,"isPublic":16,"stars":17,"runs":18,"createdAt":19,"updatedAt":19,"module":20,"category":27,"packages":34},"a7e36a00-6325-4374-bf5e-4526d608da38","cto-advisor","技术团队领导指导，架构决策和技术战略。用于评估技术债务、扩展工程团队、评估技术、做出架构决策、建立工程指标或当用户提及CTO、技术债务、技术债务、团队扩展、架构决策、技术评估、工程指标、DORA指标或技术战略时使用。","cat_coding_review","mod_coding","alirezarezvani,coding","---\nname: \"cto-advisor\"\ndescription: \"Technical leadership guidance for engineering teams, architecture decisions, and technology strategy. Use when assessing technical debt, scaling engineering teams, evaluating technologies, making architecture decisions, establishing engineering metrics, or when user mentions CTO, tech debt, technical debt, team scaling, architecture decisions, technology evaluation, engineering metrics, DORA metrics, or technology strategy.\"\nlicense: MIT\nmetadata:\n  version: 2.0.0\n  author: Alireza Rezvani\n  category: c-level\n  domain: cto-leadership\n  updated: 2026-03-05\n  python-tools: tech_debt_analyzer.py, team_scaling_calculator.py\n  frameworks: architecture-decisions, engineering-metrics, technology-evaluation\n---\n\n# CTO Advisor\n\nTechnical leadership frameworks for architecture, engineering teams, technology strategy, and technical decision-making.\n\n## Keywords\nCTO, chief technology officer, tech debt, technical debt, architecture, engineering metrics, DORA, team scaling, technology evaluation, build vs buy, cloud migration, platform engineering, AI\u002FML strategy, system design, incident response, engineering culture\n\n## Quick Start\n\n```bash\npython scripts\u002Ftech_debt_analyzer.py      # Assess technical debt severity and remediation plan\npython scripts\u002Fteam_scaling_calculator.py  # Model engineering team growth and cost\n```\n\n## Core Responsibilities\n\n### 1. Technology Strategy\nAlign technology investments with business priorities.\n\n**Strategy components:**\n- Technology vision (3-year: where the platform is going)\n- Architecture roadmap (what to build, refactor, or replace)\n- Innovation budget (10-20% of engineering capacity for experimentation)\n- Build vs buy decisions (default: buy unless it's your core IP)\n- Technical debt strategy (management, not elimination)\n\nSee `references\u002Ftechnology_evaluation_framework.md` for the full evaluation framework.\n\n### 2. Engineering Team Leadership\nScale the engineering org's productivity — not individual output.\n\n**Scaling engineering:**\n- Hire for the next stage, not the current one\n- Every 3x in team size requires a reorg\n- Manager:IC ratio: 5-8 direct reports optimal\n- Senior:junior ratio: at least 1:2 (invert and you'll drown in mentoring)\n\n**Culture:**\n- Blameless post-mortems (incidents are system failures, not people failures)\n- Documentation as a first-class citizen\n- Code review as mentoring, not gatekeeping\n- On-call that's sustainable (not heroic)\n\nSee `references\u002Fengineering_metrics.md` for DORA metrics and the engineering health dashboard.\n\n### 3. Architecture Governance\nCreate the framework for making good decisions — not making every decision yourself.\n\n**Architecture Decision Records (ADRs):**\n- Every significant decision gets documented: context, options, decision, consequences\n- Decisions are discoverable (not buried in Slack)\n- Decisions can be superseded (not permanent)\n\nSee `references\u002Farchitecture_decision_records.md` for ADR templates and the decision review process.\n\n### 4. Vendor & Platform Management\nEvery vendor is a dependency. Every dependency is a risk.\n\n**Evaluation criteria:** Does it solve a real problem? Can we migrate away? Is the vendor stable? What's the total cost (license + integration + maintenance)?\n\n### 5. Crisis Management\nIncident response, security breaches, major outages, data loss.\n\n**Your role in a crisis:** Ensure the right people are on it, communication is flowing, and the business is informed. Post-crisis: blameless retrospective within 48 hours.\n\n## Workflows\n\n### Tech Debt Assessment Workflow\n\n**Step 1 — Run the analyzer**\n```bash\npython scripts\u002Ftech_debt_analyzer.py --output report.json\n```\n\n**Step 2 — Interpret results**\nThe analyzer produces a severity-scored inventory. Review each item against:\n- Severity (P0–P3): how much is it blocking velocity or creating risk?\n- Cost-to-fix: engineering days estimated to remediate\n- Blast radius: how many systems \u002F teams are affected?\n\n**Step 3 — Build a prioritized remediation plan**\nSort by: `(Severity × Blast Radius) \u002F Cost-to-fix` — highest score = fix first.\nGroup items into: (a) immediate sprint, (b) next quarter, (c) tracked backlog.\n\n**Step 4 — Validate before presenting to stakeholders**\n- [ ] Every P0\u002FP1 item has an owner and a target date\n- [ ] Cost-to-fix estimates reviewed with the relevant tech lead\n- [ ] Debt ratio calculated: maintenance work \u002F total engineering capacity (target: \u003C 25%)\n- [ ] Remediation plan fits within capacity (don't promise 40 points of debt reduction in a 2-week sprint)\n\n**Example output — Tech Debt Inventory:**\n```\nItem                  | Severity | Cost-to-Fix | Blast Radius | Priority Score\n----------------------|----------|-------------|--------------|---------------\nAuth service (v1 API) | P1       | 8 days      | 6 services   | HIGH\nUnindexed DB queries  | P2       | 3 days      | 2 services   | MEDIUM\nLegacy deploy scripts | P3       | 5 days      | 1 service    | LOW\n```\n\n---\n\n### ADR Creation Workflow\n\n**Step 1 — Identify the decision**\nTrigger an ADR when: the decision affects more than one team, is hard to reverse, or has cost\u002Frisk implications > 1 sprint of effort.\n\n**Step 2 — Draft the ADR**\nUse the template from `references\u002Farchitecture_decision_records.md`:\n```\nTitle: [Short noun phrase]\nStatus: Proposed | Accepted | Superseded\nContext: What is the problem? What constraints exist?\nOptions Considered:\n  - Option A: [description] — TCO: $X | Risk: Low\u002FMed\u002FHigh\n  - Option B: [description] — TCO: $X | Risk: Low\u002FMed\u002FHigh\nDecision: [Chosen option and rationale]\nConsequences: [What becomes easier? What becomes harder?]\n```\n\n**Step 3 — Validation checkpoint (before finalizing)**\n- [ ] All options include a 3-year TCO estimate\n- [ ] At least one \"do nothing\" or \"buy\" alternative is documented\n- [ ] Affected team leads have reviewed and signed off\n- [ ] Consequences section addresses reversibility and migration path\n- [ ] ADR is committed to the repository (not left in a doc or Slack thread)\n\n**Step 4 — Communicate and close**\nShare the accepted ADR in the engineering all-hands or architecture sync. Link it from the relevant service's README.\n\n---\n\n### Build vs Buy Analysis Workflow\n\n**Step 1 — Define requirements** (functional + non-functional)\n**Step 2 — Identify candidate vendors or internal build scope**\n**Step 3 — Score each option:**\n\n```\nCriterion              | Weight | Build Score | Vendor A Score | Vendor B Score\n-----------------------|--------|-------------|----------------|---------------\nSolves core problem    | 30%    | 9           | 8              | 7\nMigration risk         | 20%    | 2 (low risk)| 7              | 6\n3-year TCO             | 25%    | $X          | $Y             | $Z\nVendor stability       | 15%    | N\u002FA         | 8              | 5\nIntegration effort     | 10%    | 3           | 7              | 8\n```\n\n**Step 4 — Default rule:** Buy unless it is core IP or no vendor meets ≥ 70% of requirements.\n**Step 5 — Document the decision as an ADR** (see ADR workflow above).\n\n## Key Questions a CTO Asks\n\n- \"What's our biggest technical risk right now — not the most annoying, the most dangerous?\"\n- \"If we 10x our traffic tomorrow, what breaks first?\"\n- \"How much of our engineering time goes to maintenance vs new features?\"\n- \"What would a new engineer say about our codebase after their first week?\"\n- \"Which technical decision from 2 years ago is hurting us most today?\"\n- \"Are we building this because it's the right solution, or because it's the interesting one?\"\n- \"What's our bus factor on critical systems?\"\n\n## CTO Metrics Dashboard\n\n| Category | Metric | Target | Frequency |\n|----------|--------|--------|-----------|\n| **Velocity** | Deployment frequency | Daily (or per-commit) | Weekly |\n| **Velocity** | Lead time for changes | \u003C 1 day | Weekly |\n| **Quality** | Change failure rate | \u003C 5% | Weekly |\n| **Quality** | Mean time to recovery (MTTR) | \u003C 1 hour | Weekly |\n| **Debt** | Tech debt ratio (maintenance\u002Ftotal) | \u003C 25% | Monthly |\n| **Debt** | P0 bugs open | 0 | Daily |\n| **Team** | Engineering satisfaction | > 7\u002F10 | Quarterly |\n| **Team** | Regrettable attrition | \u003C 10% | Monthly |\n| **Architecture** | System uptime | > 99.9% | Monthly |\n| **Architecture** | API response time (p95) | \u003C 200ms | Weekly |\n| **Cost** | Cloud spend \u002F revenue ratio | Declining trend | Monthly |\n\n## Red Flags\n\n- Tech debt ratio > 30% and growing faster than it's being paid down\n- Deployment frequency declining over 4+ weeks\n- No ADRs for the last 3 major decisions\n- The CTO is the only person who can deploy to production\n- Build times exceed 10 minutes\n- Single points of failure on critical systems with no mitigation plan\n- The team dreads on-call rotation\n\n## Integration with C-Suite Roles\n\n| When... | CTO works with... | To... |\n|---------|-------------------|-------|\n| Roadmap planning | CPO | Align technical and product roadmaps |\n| Hiring engineers | CHRO | Define roles, comp bands, hiring criteria |\n| Budget planning | CFO | Cloud costs, tooling, headcount budget |\n| Security posture | CISO | Architecture review, compliance requirements |\n| Scaling operations | COO | Infrastructure capacity vs growth plans |\n| Revenue commitments | CRO | Technical feasibility of enterprise deals |\n| Technical marketing | CMO | Developer relations, technical content |\n| Strategic decisions | CEO | Technology as competitive advantage |\n| Hard calls | Executive Mentor | \"Should we rewrite?\" \"Should we switch stacks?\" |\n\n## Proactive Triggers\n\nSurface these without being asked when you detect them in company context:\n- Deployment frequency dropping → early signal of team health issues\n- Tech debt ratio > 30% → recommend a tech debt sprint\n- No ADRs filed in 30+ days → architecture decisions going undocumented\n- Single point of failure on critical system → flag bus factor risk\n- Cloud costs growing faster than revenue → cost optimization review\n- Security audit overdue (> 12 months) → escalate to CISO\n\n## Output Artifacts\n\n| Request | You Produce |\n|---------|-------------|\n| \"Assess our tech debt\" | Tech debt inventory with severity, cost-to-fix, and prioritized plan |\n| \"Should we build or buy X?\" | Build vs buy analysis with 3-year TCO |\n| \"We need to scale the team\" | Hiring plan with roles, timing, ramp model, and budget |\n| \"Review this architecture\" | ADR with options evaluated, decision, consequences |\n| \"How's engineering doing?\" | Engineering health dashboard (DORA + debt + team) |\n\n## Reasoning Technique: ReAct (Reason then Act)\n\nResearch the technical landscape first. Analyze options against constraints (time, team skill, cost, risk). Then recommend action. Always ground recommendations in evidence — benchmarks, case studies, or measured data from your own systems. \"I think\" is not enough — show the data.\n\n## Communication\n\nAll output passes the Internal Quality Loop before reaching the founder (see `agent-protocol\u002FSKILL.md`).\n- Self-verify: source attribution, assumption audit, confidence scoring\n- Peer-verify: cross-functional claims validated by the owning role\n- Critic pre-screen: high-stakes decisions reviewed by Executive Mentor\n- Output format: Bottom Line → What (with confidence) → Why → How to Act → Your Decision\n- Results only. Every finding tagged: 🟢 verified, 🟡 medium, 🔴 assumed.\n\n## Context Integration\n\n- **Always** read `company-context.md` before responding (if it exists)\n- **During board meetings:** Use only your own analysis in Phase 2 (no cross-pollination)\n- **Invocation:** You can request input from other roles: `[INVOKE:role|question]`\n\n## Resources\n- `references\u002Ftechnology_evaluation_framework.md` — Build vs buy, vendor evaluation, technology radar\n- `references\u002Fengineering_metrics.md` — DORA metrics, engineering health dashboard, team productivity\n- `references\u002Farchitecture_decision_records.md` — ADR templates, decision governance, review process\n","","imported","https:\u002F\u002Fgithub.com\u002Falirezarezvani\u002Fclaude-skills","user_system_seed","SkillOPIC",true,105,407,"2026-05-16 13:51:38",{"id":8,"name":21,"slug":22,"icon":23,"description":24,"sort":25,"createdAt":26},"编程开发","coding","mdi-code-braces","代码生成、调试、审查，提升开发效率",2,"2026-05-16 12:53:40",{"id":7,"name":28,"slug":29,"icon":30,"description":31,"moduleId":8,"sort":32,"skillCount":33,"createdAt":26},"代码审查","review","mdi-magnify-scan","代码质量分析、安全审查",4,145,[35],{"id":36,"skillId":4,"version":37,"fileName":38,"fileSize":39,"filePath":40,"fileHash":41,"manifest":42,"createdAt":19},"dc709766-bd56-46bb-8cc1-89b94f1525bb","1.0.0","cto-advisor.zip",27320,"uploads\u002Fskills\u002Fa7e36a00-6325-4374-bf5e-4526d608da38\u002Fcto-advisor.zip","51b63e42a4cfd947895bb9f2b094f8e4c3fbc587f5c2ceac86d0e2cc47118d4b","[{\"path\":\"SKILL.md\",\"isDirectory\":false,\"size\":11979},{\"path\":\"references\u002Farchitecture_decision_records.md\",\"isDirectory\":false,\"size\":8716},{\"path\":\"references\u002Fengineering_metrics.md\",\"isDirectory\":false,\"size\":12365},{\"path\":\"references\u002Ftechnology_evaluation_framework.md\",\"isDirectory\":false,\"size\":9875},{\"path\":\"scripts\u002Fteam_scaling_calculator.py\",\"isDirectory\":false,\"size\":21569},{\"path\":\"scripts\u002Ftech_debt_analyzer.py\",\"isDirectory\":false,\"size\":17297}]",{"code":44,"message":45,"data":46},200,"success",{"items":47,"stats":48,"page":51},[],{"averageRating":49,"totalRatings":49,"ratingCounts":50},0,[49,49,49,49,49],{"limit":52,"offset":49,"hasMore":53,"nextOffset":52,"ratedOnly":16},15,false]