[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EDEFWKAA27WM09WQH8G9GC":3,"skill-same:01M7EDEFWKAA27WM09WQH8G9GC":49},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":13,"repositoryHtmlUrl":25,"repositoryHomepageUrl":6,"ownerHtmlUrl":26,"ownerBlogUrl":6,"ownerDescription":27,"updatedAt":28,"install":29,"resources":42},"01M7EDEFWKAA27WM09WQH8G9GC","senior-architect",null,"jonahthan433\u002FCortexOS","jonahthan433","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F211465495?v=4","01M7ECH9HPHGA89DCXHHJBTS3C","jonah.ai","01M7ECH9JCEM45DZMWPT7148S1",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fimported\u002Fproductivity\u002Fsenior-architect\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# senior-architect\n\n# Senior Architect\n\nArchitecture design and analysis tools for making informed technical decisions.\n\n## Table of Contents\n\n- [Quick Start](#quick-start)\n- [Tools Overview](#tools-overview)\n  - [Architecture Diagram Generator](#1-architecture-diagram-generator)\n  - [Dependency Analyzer](#2-dependency-analyzer)\n  - [Project Architect](#3-project-architect)\n- [Decision Workflows](#decision-workflows)\n  - [Database Selection](#database-selection-workflow)\n  - [Architecture Pattern Selection](#architecture-pattern-selection-workflow)\n  - [Monolith vs Microservices](#monolith-vs-microservices-decision)\n- [Reference Documentation](#reference-documentation)\n- [Tech Stack Coverage](#tech-stack-coverage)\n- [Common Commands](#common-commands)\n\n---\n\n## Quick Start\n\n```bash\n# Generate architecture diagram from project\npython scripts\u002Farchitecture_diagram_generator.py .\u002Fmy-project --format mermaid\n\n# Analyze dependencies for issues\npython scripts\u002Fdependency_analyzer.py .\u002Fmy-project --output json\n\n# Get architecture assessment\npython scripts\u002Fproject_architect.py .\u002Fmy-project --verbose\n```\n\n---\n\n## Tools Overview\n\n### 1. Architecture Diagram Generator\n\nGenerates architecture diagrams from project structure in multiple formats.\n\n**Solves:** \"I need to visualize my system architecture for documentation or team discussion\"\n\n**Input:** Project directory path\n**Output:** Diagram code (Mermaid, PlantUML, or ASCII)\n\n**Supported diagram types:**\n- `component` - Shows modules and their relationships\n- `layer` - Shows architectural layers (presentation, business, data)\n- `deployment` - Shows deployment topology\n\n**Usage:**\n```bash\n# Mermaid format (default)\npython scripts\u002Farchitecture_diagram_generator.py .\u002Fproject --format mermaid --type component\n\n# PlantUML format\npython scripts\u002Farchitecture_diagram_generator.py .\u002Fproject --format plantuml --type layer\n\n# ASCII format (terminal-friendly)\npython scripts\u002Farchitecture_diagram_generator.py .\u002Fproject --format ascii\n\n# Save to file\npython scripts\u002Farchitecture_diagram_generator.py .\u002Fproject -o architecture.md\n```\n\n**Example output (Mermaid):**\n```mermaid\ngraph TD\n    A[API Gateway] --> B[Auth Service]\n    A --> C[User Service]\n    B --> D[(PostgreSQL)]\n    C --> D\n```\n\n---\n\n### 2. Dependency Analyzer\n\nAnalyzes project dependencies for coupling, circular dependencies, and outdated packages.\n\n**Solves:** \"I need to understand my dependency tree and identify potential issues\"\n\n**Input:** Project directory path\n**Output:** Analysis report (JSON or human-readable)\n\n**Analyzes:**\n- Dependency tree (direct and transitive)\n- Circular dependencies between modules\n- Coupling score (0-100)\n- Outdated packages\n\n**Supported package managers:**\n- npm\u002Fyarn (`package.json`)\n- Python (`requirements.txt`, `pyproject.toml`)\n- Go (`go.mod`)\n- Rust (`Cargo.toml`)\n\n**Usage:**\n```bash\n# Human-readable report\npython scripts\u002Fdependency_analyzer.py .\u002Fproject\n\n# JSON output for CI\u002FCD integration\npython scripts\u002Fdependency_analyzer.py .\u002Fproject --output json\n\n# Check only for circular dependencies\npython scripts\u002Fdependency_analyzer.py .\u002Fproject --check circular\n\n# Verbose mode with recommendations\npython scripts\u002Fdependency_analyzer.py .\u002Fproject --verbose\n```\n\n**Example output:**\n```\nDependency Analysis Report\n==========================\nTotal dependencies: 47 (32 direct, 15 transitive)\nCoupling score: 72\u002F100 (moderate)\n\nIssues found:\n- CIRCULAR: auth → user → permissions → auth\n- OUTDATED: lodash 4.17.15 → 4.17.21 (security)\n\nRecommendations:\n1. Extract shared interface to break circular dependency\n2. Update lodash to fix CVE-2020-8203\n```\n\n---\n\n### 3. Project Architect\n\nAnalyzes project structure and detects architectural patterns, code smells, and improvement opportunities.\n\n**Solves:** \"I want to understand the current architecture and identify areas for improvement\"\n\n**Input:** Project directory path\n**Output:** Architecture assessment report\n\n**Detects:**\n- Architectural patterns (MVC, layered, hexagonal, microservices indicators)\n- Code organization issues (god classes, mixed concerns)\n- Layer violations\n- Missing architectural components\n\n**Usage:**\n```bash\n# Full assessment\npython scripts\u002Fproject_architect.py .\u002Fproject\n\n# Verbose with detailed recommendations\npython scripts\u002Fproject_architect.py .\u002Fproject --verbose\n\n# JSON output\npython scripts\u002Fproject_architect.py .\u002Fproject --output json\n\n# Check specific aspect\npython scripts\u002Fproject_architect.py .\u002Fproject --check layers\n```\n\n**Example output:**\n```\nArchitecture Assessment\n=======================\nDetected pattern: Layered Architecture (confidence: 85%)\n\nStructure analysis:\n  ✓ controllers\u002F  - Presentation layer detected\n  ✓ services\u002F     - Business logic layer detected\n  ✓ repositories\u002F - Data access layer detected\n  ⚠ models\u002F       - Mixed domain and DTOs\n\nIssues:\n- LARGE FILE: UserService.ts (1,847 lines) - consider splitting\n- MIXED CONCERNS: PaymentController contains business logic\n\nRecommendations:\n1. Split UserService into focused services\n2. Move business logic from controllers to services\n3. Separate domain models from DTOs\n```\n\n---\n\n## Decision Workflows\n\n### Database Selection Workflow\n\nUse when choosing a database for a new project or migrating existing data.\n\n**Step 1: Identify data characteristics**\n| Characteristic | Points to SQL | Points to NoSQL |\n|----------------|---------------|-----------------|\n| Structured with relationships | ✓ | |\n| ACID transactions required | ✓ | |\n| Flexible\u002Fevolving schema | | ✓ |\n| Document-oriented data | | ✓ |\n| Time-series data | | ✓ (specialized) |\n\n**Step 2: Evaluate scale requirements**\n- \u003C1M records, single region → PostgreSQL or MySQL\n- 1M-100M records, read-heavy → PostgreSQL with read replicas\n- >100M records, global distribution → CockroachDB, Spanner, or DynamoDB\n- High write throughput (>10K\u002Fsec) → Cassandra or ScyllaDB\n\n**Step 3: Check consistency requirements**\n- Strong consistency required → SQL or CockroachDB\n- Eventual consistency acceptable → DynamoDB, Cassandra, MongoDB\n\n**Step 4: Document decision**\nCreate an ADR (Architecture Decision Record) with:\n- Context and requirements\n- Options considered\n- Decision and rationale\n- Trade-offs accepted\n\n**Quick reference:**\n```\nPostgreSQL → Default choice for most applications\nMongoDB    → Document store, flexible schema\nRedis      → Caching, sessions, real-time features\nDynamoDB   → Serverless, auto-scaling, AWS-native\nTimescaleDB → Time-series data with SQL interface\n```\n\n---\n\n### Architecture Pattern Selection Workflow\n\nUse when designing a new system or refactoring existing architecture.\n\n**Step 1: Assess team and project size**\n| Team Size | Recommended Starting Point |\n|-----------|---------------------------|\n| 1-3 developers | Modular monolith |\n| 4-10 developers | Modular monolith or service-oriented |\n| 10+ developers | Consider microservices |\n\n**Step 2: Evaluate deployment requirements**\n- Single deployment unit acceptable → Monolith\n- Independent scaling needed → Microservices\n- Mixed (some services scale differently) → Hybrid\n\n**Step 3: Consider data boundaries**\n- Shared database acceptable → Monolith or modular monolith\n- Strict data isolation required → Microservices with separate DBs\n- Event-driven communication fits → Event-sourcing\u002FCQRS\n\n**Step 4: Match pattern to requirements**\n\n| Requirement | Recommended Pattern |\n|-------------|-------------------|\n| Rapid MVP development | Modular Monolith |\n| Independent team deployment | Microservices |\n| Complex domain logic | Domain-Driven Design |\n| High read\u002Fwrite ratio difference | CQRS |\n| Audit trail required | Event Sourcing |\n| Third-party integrations | Hexagonal\u002FPorts & Adapters |\n\nSee `references\u002Farchitecture_patterns.md` for detailed pattern descriptions.\n\n---\n\n### Monolith vs Microservices Decision\n\n**Choose Monolith when:**\n- [ ] Team is small (\u003C10 developers)\n- [ ] Domain boundaries are unclear\n- [ ] Rapid iteration is priority\n- [ ] Operational complexity must be minimized\n- [ ] Shared database is acceptable\n\n**Choose Microservices when:**\n- [ ] Teams can own services end-to-end\n- [ ] Independent deployment is critical\n- [ ] Different scaling requirements per component\n- [ ] Technology diversity is needed\n- [ ] Domain boundaries are well understood\n\n**Hybrid approach:**\nStart with a modular monolith. Extract services only when:\n1. A module has significantly different scaling needs\n2. A team needs independent deployment\n3. Technology constraints require separation\n\n---\n\n## Reference Documentation\n\nLoad these files for detailed information:\n\n| File | Contains | Load when user asks about |\n|------|----------|--------------------------|\n| `references\u002Farchitecture_patterns.md` | 9 architecture patterns with trade-offs, code examples, and when to use | \"which pattern?\", \"microservices vs monolith\", \"event-driven\", \"CQRS\" |\n| `references\u002Fsystem_design_workflows.md` | 6 step-by-step workflows for system design tasks | \"how to design?\", \"capacity planning\", \"API design\", \"migration\" |\n| `references\u002Ftech_decision_guide.md` | Decision matrices for technology choices | \"which database?\", \"which framework?\", \"which cloud?\", \"which cache?\" |\n\n---\n\n## Tech Stack Coverage\n\n**Languages:** TypeScript, JavaScript, Python, Go, Swift, Kotlin, Rust\n**Frontend:** React, Next.js, Vue, Angular, React Native, Flutter\n**Backend:** Node.js, Express, FastAPI, Go, GraphQL, REST\n**Databases:** PostgreSQL, MySQL, MongoDB, Redis, DynamoDB, Cassandra\n**Infrastructure:** Docker, Kubernetes, Terraform, AWS, GCP, Azure\n**CI\u002FCD:** GitHub Actions, GitLab CI, CircleCI, Jenkins\n\n---\n\n## Common Commands\n\n```bash\n# Architecture visualization\npython scripts\u002Farchitecture_diagram_generator.py . --format mermaid\npython scripts\u002Farchitecture_diagram_generator.py . --format plantuml\npython scripts\u002Farchitecture_diagram_generator.py . --format ascii\n\n# Dependency analysis\npython scripts\u002Fdependency_analyzer.py . --verbose\npython scripts\u002Fdependency_analyzer.py . --check circular\npython scripts\u002Fdependency_analyzer.py . --output json\n\n# Architecture assessment\npython scripts\u002Fproject_architect.py . --verbose\npython scripts\u002Fproject_architect.py . --check layers\npython scripts\u002Fproject_architect.py . --output json\n```\n\n---\n\n## Getting Help\n\n1. Run any script with `--help` for usage information\n2. Check reference documentation for detailed patterns and workflows\n3. Use `--verbose` flag for detailed explanations and recommendations\n",{},"main","38b32c99e7ed0b8e215d638e92cfa452c1ec3079","skills\u002Fimported\u002Fproductivity\u002Fsenior-architect","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS","https:\u002F\u002Fgithub.com\u002Fjonahthan433","AI Consultant","2026-10-24 05:13:39",{"source":7,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add jonahthan433\u002FCortexOS --skill senior-architect",{"tool":35,"command":36},"bunx","bunx skills add jonahthan433\u002FCortexOS --skill senior-architect",{"tool":38,"command":39},"pnpm","pnpm dlx skills add jonahthan433\u002FCortexOS --skill senior-architect","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fimported\u002Fproductivity\u002Fsenior-architect\u002FSKILL.md",true,[43],{"path":44,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":48},"skill.json","REFERENCE","参考文档",609,"https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fimported\u002Fproductivity\u002Fsenior-architect\u002Fskill.json",[50,56,62,68,74,80],{"skillNo":51,"name":52,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":18},"01M7EDQZDQX3Q8Y7GCQX6KN9V7","opportunity-brief","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fsales\u002Fopportunity-brief\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":18},"01M7EDQYA0V9Y99VKBREJJ3MRT","morning-intel","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fmorning-intel\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M7EDQVX1JVY0B6PDHKKGM19G","decision-brief","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fdecision-brief\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M7EDQV1GENZAC2SZSD8KZ3GM","weekly-review","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fweekly-review\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M7EDQT2KETJ1Y3CGVN9EKW2J","system-health","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fops\u002Fsystem-health\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M7EDQQN2JK3XPWMS1M4T0F3K","backup-restore","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fops\u002Fbackup-restore\u002FSKILL.md",[],[]]