算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
review-software-architecture【设计与创意】Review software architecture for coupling, cohesion, SOLID principles, API design, scalability, and technical debt. Covers system-level evaluation, architecture decision record review, and improvement recommendations. Use when evaluating a proposed architecture before implementation, assessing an existing system for scalability or security, reviewing…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
於系等評軟構之質屬、設則之循、長之可守。
圖系界與介:
## System Context
- **Name**: [System name]
- **Purpose**: [One-line description]
- **Users**: [Who uses it and how]
- **Scale**: [Requests/sec, data volume, user count]
- **Age**: [Years in production, major versions]
- **Team**: [Size, composition]
## External Dependencies
| Dependency | Type | Criticality | Notes |
|-----------|------|-------------|-------|
| PostgreSQL | Database | Critical | Primary data store |
| Redis | Cache | High | Session store + caching |
| Stripe | External API | Critical | Payment processing |
| S3 | Object storage | High | File uploads |
得: 系行何與依何之明像 敗則: 若構文缺,自碼構、配、部署文導其境
審諸模相依之緊:
# Detect circular dependencies (JavaScript/TypeScript)
npx madge --circular src/
# Detect import patterns (Python)
# Look for deep cross-package imports
grep -r "from app\." --include="*.py" | sort | uniq -c | sort -rn | head -20
評各模有單明責乎:
| 耦合等 | 述 | 例 |
|---|---|---|
| 低(善) | 諸模由介通 | 服 A 呼服 B 之 API |
| 中 | 諸模共數構 | 共 DTO/模庫 |
| 高(憂) | 諸模引他內 | 諸模間直庫訪 |
| 病 | 諸模改他內態 | 全可變態 |
得: 耦合與凝聚已察附碼之具例 敗則: 若碼庫過大不能手審,取 3-5 要模與最常變之文
| 則 | 問 | 紅旗 |
|---|---|---|
| Single Responsibility | 各類/模有單變因乎? | 有 >5 公法於無關憂之類 |
| Open/Closed | 行可擴而不改現碼乎? | 為各新功常改核類 |
| Liskov Substitution | 子類可代基類而不破行乎? | 類察(instanceof)散於用碼 |
| Interface Segregation | 諸介專且少乎? | 「肥」介使用者施未用法 |
| Dependency Inversion | 高層依抽象,非依細乎? | 業邏中直立基設類 |
## SOLID Assessment
| Principle | Status | Evidence | Impact |
|-----------|--------|----------|--------|
| SRP | Concern | UserService handles auth, profile, notifications, and billing | High — changes to billing risk breaking auth |
| OCP | Good | Plugin system for payment providers | Low |
| LSP | Good | No type-checking anti-patterns found | Low |
| ISP | Concern | IRepository has 15 methods, most implementors use 3-4 | Medium |
| DIP | Concern | Controllers directly instantiate database repositories | Medium |
得: 各則以至少一具例察 敗則: 非凡則皆等施於諸構式。記則於少要時(如 ISP 於函碼庫較少要)
為示 API 之系(REST、GraphQL、gRPC):
## API Design Review
| Aspect | Status | Notes |
|--------|--------|-------|
| Naming consistency | Good | RESTful resource naming throughout |
| Versioning | Concern | No versioning strategy — breaking changes affect all clients |
| Error format | Good | RFC 7807 Problem Details used consistently |
| Auth | Good | JWT with role-based scopes |
| Rate limiting | Missing | No rate limiting on any endpoint |
| Documentation | Concern | OpenAPI spec exists but 6 months out of date |
得: API 設對常標審附具得 敗則: 若無 API 示,略此步而專注內模介
得: 擴與信對述非功需察 敗則: 若非功需未書,議為首步定之
## Technical Debt Inventory
| Item | Severity | Impact | Estimated Effort | Recommendation |
|------|----------|--------|-----------------|----------------|
| No database migrations | High | Schema changes are manual and error-prone | 1 sprint | Adopt Alembic/Flyway |
| Monolithic test suite | Medium | Tests take 45 min, developers skip them | 2 sprints | Split into unit/integration/e2e |
| Hardcoded config values | Medium | Environment-specific values in source code | 1 sprint | Extract to env vars/config service |
| No CI/CD pipeline | High | Manual deployment prone to errors | 1 sprint | Set up GitHub Actions |
得: 技債已錄附重、影、估力 敗則: 若債錄過大,依影/力比排前 5 入
若 ADR 存,評:
若 ADR 不存,議為要決立之。
## Architecture Review Report
### Executive Summary
[2-3 sentences: overall health, key concerns, recommended actions]
### Strengths
1. [Specific architectural strength with evidence]
2. ...
### Concerns (by severity)
#### Critical
1. **[Title]**: [Description, impact, recommendation]
#### Major
1. **[Title]**: [Description, impact, recommendation]
#### Minor
1. **[Title]**: [Description, recommendation]
### Technical Debt Summary
[Top 5 debt items with prioritized recommendations]
### Recommended Next Steps
1. [Actionable recommendation with clear scope]
2. ...
得: 審報可行附排序之議 敗則: 若審時限,明述所覆與所未察
code-reviewer 行 PR 等反security-audit-codebase — 安專之碼與配審configure-git-repository — 庫構與規design-serialization-schema — 數 schema 之設與化review-data-analysis — 析正之審(補視)