用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tools-only/X-Skills --skill cto-advisor命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Index of Build Systems Skills
Coordination patterns for distributed dataflow systems including barriers, epochs, and distributed snapshots
Windowing, sessionization, time-series aggregation, and late data handling for streaming systems
基于 SOC 职业分类
正在显示 SKILL.md
| name | cto-advisor |
| description | Run CTO-level technical review of the current execution plan - architecture, tech debt, engineering excellence |
| arguments | [{"name":"track_id","description":"Optional track ID to review (defaults to active track)","required":false}] |
| user_invocable | true |
Run CTO-level technical review of the current execution plan. Uses the cto-advisor skill to evaluate architecture decisions, tech debt implications, technology choices, and engineering excellence.
Run this command to get technical leadership guidance on:
# Review current track's plan
/cto-advisor
# Or manually specify track
/cto-advisor TRACK-001-core-feature
The command invokes the cto-plan-reviewer skill, which:
Loads Context
plan.md and spec.mdconductor/tech-stack.md for current technology decisionsconductor/product.md for product constraintsApplies CTO Advisor Frameworks
Generates Technical Review Report
## CTO Technical Review Report
**Track**: TRACK-001-core-feature
**Reviewer**: cto-plan-reviewer (using cto-advisor frameworks)
**Date**: YYYY-MM-DD
### Architecture Assessment
#### Design Decisions
- [x] Architecture pattern: Zustand store with React hooks — appropriate for client-side state
- [ ] CONCERN: No error boundary strategy for API failures
- Recommendation: Add React Error Boundaries around critical components
#### System Design
- [x] Component boundaries clear and well-defined
- [x] Separation of concerns maintained (state/UI/API separated)
- [ ] CONCERN: Tight coupling between generation and state management
- Recommendation: Extract state to separate store slice for independent evolution
### Tech Debt Analysis
#### Debt Introduction: LOW
- Debt items introduced:
1. Mock client for development — Severity: Low — Justification: Needed for parallel frontend work
2. Hardcoded templates — Severity: Medium — Justification: Will be moved to database in Phase 2
#### Mitigation Plan
- [x] Debt paydown plan documented in plan.md Phase 2
- [x] Capacity allocated: 15% in maintenance sprints — Aligns with cto-advisor 40/25/15 strategy
### Technology Evaluation
#### New Dependencies
| Library/Service | Necessity | Alternatives Considered | Lock-in Risk | Cost Impact |
|----------------|-----------|------------------------|--------------|-------------|
| API Service | High | Alternative A, Alternative B | Medium | $X/request |
| Utility Lib | High | alt-lib-1, alt-lib-2 | Low | None (open source) |
| State Manager | Medium | Redux, Jotai, Context API | Low | None (easy to migrate) |
#### Integration Assessment
- API design: Well-structured with proper error types
- Error handling: Good — includes retry logic and user-friendly messages
- Retry logic: Present with exponential backoff
Cost monitoring: Missing — Add API usage tracking before production
Coverage targets: 70% overall, 90% business logic — Meets cto-advisor 80% threshold for critical paths
TDD applicability: High for core logic
Test types planned: Unit (core logic), Integration (store), E2E (full flow)
Recommendation: Add E2E test for complete end-to-end flow
Load requirements: Defined per use case
Optimization strategy: Lazy loading, caching where appropriate
OWASP top 10 considered: Yes
Input validation: In place
Auth patterns: Appropriate for current phase
Monitoring: Missing — Add analytics
Logging: Present — Console logs for key steps
Alerting: Not applicable for Phase 1
Recommendation: Add structured logging for production debugging
Team capability match: Good
Knowledge distribution: Acceptable, documentation present
Onboarding impact: Low — clear component structure and naming
Technical docs needed: Key integration guides
ADR required: No (decisions documented in architecture doc)
Onboarding docs: Present in project docs
[List any red flags with actions]
| Metric | Current Target | Impact of Plan | Assessment |
|--------|---------------|----------------|------------|
| Deployment Frequency | >1/day | Positive | Trunk-based dev enables continuous deployment |
| Lead Time | <1 day | Neutral | Feature complexity appropriate for daily deployment |
| MTTR | <1 hour | Positive | Error boundaries and fallbacks reduce recovery time |
| Change Failure Rate | <15% | Positive | TDD on critical paths reduces defects |
[List blocking issues]
[List improvements]
[List enhancements]
: PASS | PASS WITH CONDITIONS | FAIL
: [Assessment summary]
---
:
Executor should address "Must Fix" items during implementation
Track these conditions in plan.md under "Technical Review Conditions"
Verify conditions met during Step 4 (Evaluate Execution)
This command is automatically invoked by the conductor during plan evaluation for technical tracks:
/conductor implement
→ detects technical track (keywords: architecture, API, database, etc.)
→ dispatches loop-plan-evaluator
→ invokes /cto-advisor automatically
→ aggregates standard checks + CTO review
→ PASS/FAIL verdict
You can also run it manually at any time to get CTO-level guidance on the current plan.
The conductor automatically includes CTO review when the track's spec.md or plan.md contains these keywords:
Technical Keywords:
If unsure whether your track needs CTO review, run it manually. It's better to over-review than under-review critical technical decisions.
/conductor implement
# CTO review runs automatically for technical tracks during plan evaluation
# Get CTO review anytime
/cto-advisor
# Review specific track
/cto-advisor TRACK-002-integration
# Get architecture guidance before planning
/cto-advisor
The command leverages these frameworks from the cto-advisor skill:
# Plan (incomplete technical thinking)
## Phase 1: Add Stripe Integration
- [ ] Install Stripe SDK
- [ ] Create checkout page
- [ ] Add webhook handler
- [ ] Update database with payment status
# Plan (enhanced with CTO guidance)
## Phase 1: Add Stripe Integration
### Technical Review Conditions
- [!] Add webhook signature verification (Security — prevents unauthorized payments)
- [!] Add idempotency keys (Reliability — prevents duplicate charges)
- [!] Add webhook retry logic with exponential backoff (Resilience — handles temporary failures)
- [!] Add Stripe event logging for audit trail (Observability — debugging and compliance)
- [!] Document webhook failure recovery process in runbook (Operations — incident response)
## Tasks
- [ ] Install Stripe SDK (v11.x — latest stable)
- [ ] Create checkout page
- Acceptance: Stripe Checkout redirects to success/cancel URLs
- Security: No card details stored client-side
- [ ] Add webhook handler at /api/webhooks/stripe
- Acceptance: Verifies signature, handles checkout.session.completed
- Resilience: Idempotent (can handle duplicate events)
- Observability: Logs all events to structured logger
- [ ] Update database with payment status
- Acceptance: Transaction recorded, user tier updated
- Consistency: Atomic transaction (payment + tier update)
- [ ] Add webhook failure recovery cron job
- Acceptance: Polls Stripe for missed events every 1 hour
- Resilience: Handles extended webhook downtime
Key Improvements from CTO Review:
.claude/skills/cto-plan-reviewer/SKILL.md — Full CTO review agent documentation.claude/skills/cto-advisor/SKILL.md — Core CTO advisor frameworks and tools/conductor implement — Automated loop that includes CTO reviewconductor/workflow.md — Evaluate-Loop process