Solo Company Performance Architect
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @user_b833da3a/solo-architect.
About this skill
Problem
This skill addresses code that works but is slow and hard to diagnose. It focuses on performance rather than style: algorithmic complexity, blocking I/O, SQL queries, caching, and concurrency limits. You can provide a function, endpoint, SQL statement, or directory path, then receive a structured report with location, severity, fix code, and expected impact instead of vague advice.
How It Works
The workflow combines automated scanning and AI analysis. When file paths are available, it can run quick or deep scans for patterns such as db.query inside loops, fetch in repeated calls, synchronous file I/O, unbounded SELECT * FROM, and global caches without eviction. If only a code snippet is provided, it moves directly into AI review. It then applies L0, L1, or L2 depth: single functions get direct complexity and I/O checks; multi-function or refactoring tasks add boundary and database interaction review; architecture-level issues add concurrency, memory, and scalability analysis. Typical output includes:
- Anti-pattern detection: N+1 queries, blocking I/O, and memory-leak risks
- Fix code: runnable code changes rather than pseudocode
- Quantified impact: expected latency, QPS, or query-time changes
- Risks and validation: consistency or compatibility caveats, with EXPLAIN, cache hit-rate tests, or load-test script suggestions
Boundaries
It is useful for code-level performance review, SQL optimization guidance, cache strategy, and async task design across Python, Java, JavaScript, Go, Rust, and C#. It does not replace live load testing, production debugging, JVM or kernel tuning; SQL advice needs DDL and EXPLAIN, while architecture decisions need QPS, latency, and system topology. When data volume is small or performance is already sufficient, avoid over-optimization.
Use Cases
- Submit an endpoint and directory to locate looped DB calls and get batch-query fixes.
- Provide slow SQL and EXPLAIN to analyze missing indexes and get executable tuning statements.
- Review high-concurrency service code for synchronous file I/O and get async refactoring suggestions.
- Generate a list-endpoint report flagging N+1, unbounded fetches, and cache impact.
Best For
- Backend engineers maintaining APIs who need to locate N+1 DB calls
- Service engineers tuning slow queries who need index and EXPLAIN analysis
- Developers refactoring high-concurrency services to remove blocking I/O
- Tech leads who need review reports with fix code and quantified impact
Related Skills
A systematic code error fixing skill that follows a five-step workflow: Reproduce, Isolate, Understand, Fix, Verify, to help developers resolve code errors.
Supports inline SVG/HTML rendering and Mermaid code output, covering common technical diagram creation like architecture and flow diagrams.
A comprehensive browser automation guide covering navigation, interaction, multi-tab management, and data collection, tailored for domestic web ecosystems and tools like Playwright/Selenium.
Control Windows WeChat through GUI automation to search contacts and send text, images, or files without official APIs.