Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
01c7d58
feat(world): WorldStore/RegionCache 架构与 runtime chunk streaming
jayli Apr 26, 2026
0ce534d
test(persistence): 更新 DB_VERSION 期望值为 2(WorldStore 架构)
jayli Apr 26, 2026
f13fa73
fix: close worldstore runtime streaming gaps
jayli Apr 26, 2026
27d179d
fix: tighten worldstore chunk ownership and flush isolation
jayli Apr 26, 2026
7386717
feat(world): overflow block 合并添加可诊断的统计信息
jayli Apr 26, 2026
c1d9bd3
feat(world): region-level worker pre-generation to eliminate duplicat…
jayli Apr 26, 2026
10ca6ea
fix(test): align worker mock response with region-level worker API
jayli Apr 26, 2026
f4937c4
test(world): mock full 8x8 region in worker to match generateRegion API
jayli Apr 26, 2026
211e7a9
fix(world): fix 4 P0 data-correctness defects in region pre-generation
jayli Apr 27, 2026
64be9d5
feat(persistence): add world_overflow store for cross-region overflow…
jayli Apr 27, 2026
957204f
feat(world-store): add cross-region overflow block read/write API
jayli Apr 27, 2026
b9a70a5
feat(world-worker): return unresolved cross-region overflow blocks fr…
jayli Apr 27, 2026
135c33d
feat(world-generation): collect, distribute, and persist cross-region…
jayli Apr 27, 2026
9105f03
test(world-generation): add cross-region overflow collect, distribute…
jayli Apr 27, 2026
bcdf6e1
perf(world): cross-region overflow pure-memory routing to unblock mai…
jayli Apr 27, 2026
f69e997
delete outdated files
jayli Apr 27, 2026
9a7fb12
perf(world): dedup concurrent region loads and add background prefetch
jayli Apr 27, 2026
4d44208
perf(chunk): add lightSourceCoords derived index for fast light sourc…
jayli Apr 27, 2026
017c13b
fix(chunk): populate pendingRuntimeEntities to restore runtime entiti…
jayli Apr 28, 2026
fe41479
fix(world): guard _runPrefetch against missing worldRuntime.prefetchR…
jayli Apr 28, 2026
d3234f1
docs: add runtime entities persistence design
jayli Apr 28, 2026
329f0e0
docs: add runtime entities persistence implementation plan
jayli Apr 28, 2026
74d69ec
docs(runtime-entities): update minecart dedup strategy to UUID-based …
jayli Apr 28, 2026
aaf79e8
docs(runtime-entities): rewrite design and plan after root-cause anal…
jayli Apr 28, 2026
822f55c
docs: revise runtime special entities persistence plan v3
jayli Apr 28, 2026
1f41200
fix(runtime-entities): repair session persistence for special entitie…
jayli Apr 28, 2026
5528b31
docs: add phase 2 unified persistence design spec for runtime entities
jayli Apr 28, 2026
0dbc361
docs: add phase 2 unified persistence implementation plan
jayli Apr 28, 2026
2dbb848
feat(runtime-entities): phase 2 unified persistence — draft implement…
jayli Apr 28, 2026
498a800
fix(runtime-entities): phase 2 persistence — close read/write loop fo…
jayli Apr 28, 2026
5212caa
perf(chunk): defer special entity restore and cache turret textures
jayli Apr 28, 2026
e573732
feat(runtime-entities): ShadowStore architecture with shared turret r…
jayli Apr 28, 2026
84c6808
fix(chunk): fallback to cache.entities for entity migration and add _…
jayli Apr 28, 2026
9401cdb
fix(chunk): remove ShadowStore state check and clean special entity c…
jayli Apr 28, 2026
64abd31
docs(commit): 优化 commit 技能格式 — Type 英文 + 正文中文
jayli Apr 29, 2026
a8bcd68
fix(shadow-store): handle worker partial failures and minecart chunkK…
jayli Apr 29, 2026
6078ade
fix(shadow-store): retry failed flushes, clear on empty load, wire fl…
jayli Apr 29, 2026
dd96c4f
refactor(persistence): 统一运行时写回路径,消除旧 session cache 双写
jayli Apr 29, 2026
182e94e
refactor(persistence): P1 推进 — 彻底解耦 flush 路径与 live chunk blockData
jayli Apr 29, 2026
092361d
fix(runtime-entities): 修复特殊实体销毁后无法重现的 bug
jayli Apr 29, 2026
9b6db3b
perf(world-runtime): 补齐 P1 热路径序列化缺口与 flush perf 埋点
jayli Apr 29, 2026
995282f
test(command): 添加 Playwright headless 测试运行脚本与 TDD 工作流文档
jayli Apr 29, 2026
ef96357
refactor(world-runtime): 移除 persistence cache.entities 回退路径,统一迁移至 Wor…
jayli Apr 29, 2026
33797e4
refactor(persistence): 统一 chunk 读写路径至 WorldStore/WorldRuntime,移除 pers…
jayli Apr 29, 2026
dbbb8e0
新增 unload-flush-smoothing.md 计划文档
jayli Apr 29, 2026
71f8b1a
perf(world-runtime): 引入 pendingUnloadFlushQueue 后台写盘,消除 unload 路径同步 I…
jayli Apr 29, 2026
fc0eba2
perf(chunk-assembly): 收敛 load/assembly 路径尖峰,loadFromRecord 改为异步装配队列
jayli Apr 29, 2026
b7e14ad
docs: add blockdata render cache design and plan
jayli Apr 30, 2026
ae27956
docs: revise blockdata render cache spec and plan to v2
jayli May 1, 2026
e396982
docs(frame-throttled-loading): 新增帧节流 chunk 加载设计与实施计划
jayli May 3, 2026
95d2dc9
docs(frame-throttled-loading): 完善帧节流 chunk 加载设计与计划 v2
jayli May 5, 2026
2af7b13
docs(plan): 新增 chunk-level read path 实现计划
jayli May 6, 2026
f21e55e
docs(plan): 完善 chunk-level read path 实现计划,补充设计约束与写路径缓存同步
jayli May 6, 2026
36b5e46
perf(chunk-read): 引入 chunk 级读取路径与 Worker 侧 region 缓存
jayli May 6, 2026
43f60d4
perf(chunk-assembly): 引入 chunk 装载全链路性能打点与监控体系
jayli May 6, 2026
3a21d7b
feat(world): 将运行期权威数据源从 IndexedDB 切换为 MemoryWorldStore
jayli May 6, 2026
354dd32
feat(world): 实现可中断 chunk 装配能力
jayli May 6, 2026
3f7b1b3
Merge branch 'gen-big-map-first' of github.com:jayli/mc-lite into gen…
jayli May 6, 2026
523d50c
fix(tests): 修复测试进度条停在最后可见位置的问题
jayli May 6, 2026
afa1f1b
perf(gc): 消除热路径中的每帧临时数组分配
jayli May 6, 2026
b25ac70
perf(world): 跳过 bootstrap 阶段冗余的 AO 计算
jayli May 6, 2026
7b2676e
docs: add AO refresh hot path plan
jayli May 7, 2026
71a3ad7
feat(health): 扩展至 iOS/multi-lang 支持,新增架构与可观测性等检查维度
jayli May 7, 2026
c8118ca
perf(ao): 优化 AO 热路径性能,消除大对象合并与冗余遍历
jayli May 7, 2026
6720d24
fix(ao): consolidation 后非脏方块 AO 丢失导致整 chunk 变暗
jayli May 7, 2026
ea77978
fix(ao): dirty 位置也保留旧 AO,无旧值的才同步补算
jayli May 7, 2026
0aafab6
docs: add blockdata authority unification design and plan
jayli May 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .claude/skills/commit/skill.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ Use this skill when the user runs `/commit` or asks to commit changes.

[optional body]
```
- Types: `feat`, `fix`, `docs`, `style`, `refactor`, `perf`, `test`, `build`, `ci`, `chore`.
- Scope is optional and should reflect the affected area.
- Description should be concise and imperative.
- **Type 使用英文**: `feat`, `fix`, `docs`, `style`, `refactor`, `perf`, `test`, `build`, `ci`, `chore`。
- Scope 为可选,应反映受影响的功能区域。
- **标题示例格式**: `feat(world): WorldStore/RegionCache 架构与 runtime chunk streaming`
- **正文尽量使用中文编写**,描述具体变更细节和原因。

4. **Execute Commit**:
- Run `git commit -m "generated_message"`.
Expand Down
426 changes: 367 additions & 59 deletions .claude/skills/health/SKILL.md

Large diffs are not rendered by default.

339 changes: 339 additions & 0 deletions .claude/skills/health/references/example.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,339 @@
# 项目健康检查报告

## 执行摘要

| 项目指标 | 数值 |
|---------|------|
| **检查时间** | 2026-03-16 |
| **项目类型** | Node.js (AI 创意内容生产平台) |
| **文件总数** | 921 |
| **代码行数** | 183,991 |
| **总体评分** | 58/100 |
| **问题统计** | 35 高 | 22 中 | 18 低 |

### 评分等级:🔴 差 (需要立即关注)

项目存在大量严重问题,特别是**安全性漏洞**和**代码结构问题**,需要优先修复。

---

## 详细检查结果

### 1. 代码结构

| 检查项 | 状态 | 严重程度 | 详情 | 建议 |
|--------|------|----------|------|------|
| 重复代码 | ⚠️ 警告 | 中 | HTTP Handler 类结构重复、状态枚举重复定义 | 提取公共基类和常量 |
| 大文件 | ❌ 发现问题 | 高 | **9 个文件 >2000 行**, 20+ 文件 >1000 行 | 按功能拆分模块 |
| 长函数 | ❌ 发现问题 | 高 | 10+ 函数超过 100 行 | 提取子函数 |
| 类复杂度 | ❌ 发现问题 | 高 | 5+ 类依赖注入和方法数过多 | 拆分职责 |
| 循环依赖 | ✅ 通过 | - | 未发现明显循环依赖 | - |

**超大文件列表 (Top 10):**

| 文件路径 | 行数 | 严重程度 |
|---------|------|---------|
| `client/src/pages/PPT1/MockData/multiPic-mock2.ts` | 4,616 | 🔴 高 |
| `client/src/pages/PPT1/MockData/multiPic-mock5.ts` | 3,289 | 🔴 高 |
| `server/src/functions/articleGenerateTask.ts` | 2,857 | 🔴 高 |
| `server/src/service/travelAnalysis.ts` | 2,759 | 🔴 高 |
| `server/src/service/bizImageTaskService.ts` | 2,576 | 🔴 高 |
| `client/src/pages/PPT1/MockData/multiPic-mock10.ts` | 2,440 | 🔴 高 |
| `client/src/pages/PPT1/MockData/itemPic-mock3.ts` | 2,281 | 🔴 高 |
| `client/src/pages/LightEffects/index.tsx` | 2,251 | 🔴 高 |
| `client/src/pages/VideoMerge/index.tsx` | 2,084 | 🔴 高 |
| `server/src/functions/commodity.ts` | 1,619 | 🔴 高 |

---

### 2. 命名规范

| 检查项 | 状态 | 严重程度 | 详情 | 建议 |
|--------|------|----------|------|------|
| 风格一致性 | ❌ 发现问题 | 中 | 混合使用 camelCase 和 snake_case | 统一使用 camelCase |
| 类命名 | ❌ 发现问题 | 高 | **9+ 类名未使用 PascalCase** | 修正类名大小写 |
| 常量命名 | ✅ 通过 | - | 大部分常量使用 UPPER_SNAKE_CASE | - |
| 缩写使用 | ⚠️ 警告 | 低 | 部分缩写不规范 | 遵循驼峰命名 |

**类命名不规范示例:**

| 当前命名 | 建议修正 |
|---------|---------|
| `uploadFileHandler` | `UploadFileHandler` |
| `videoAIHandler` | `VideoAIHandler` |
| `scenicSpotService` | `ScenicSpotService` |
| `privateIntenderuserService` | `PrivateIntendedUserService` |
| `commentService` | `CommentService` |

**文件命名问题:**

| 文件 | 问题 |
|------|------|
| `client/src/apis/covereTmplate.ts` | 拼写错误 (应为 coverTemplate) |
| `client/src/apis/knowlegde.ts` | 拼写错误 (应为 knowledge) |
| `client/src/apis/essaytask.ts` | 命名风格不一致 (应为 essayTask) |

---

### 3. 注释质量

| 检查项 | 状态 | 严重程度 | 详情 | 建议 |
|--------|------|----------|------|------|
| TODO/FIXME | ⚠️ 警告 | 低 | 发现 8 处 TODO 注释 | 定期 review 并处理 |
| 注释覆盖率 | ✅ 通过 | - | 复杂函数有基本注释 | - |
| 过期注释 | ✅ 通过 | - | 未发现明显过期注释 | - |

**TODO 列表:**

| 位置 | 内容 |
|------|------|
| `client/src/pages/Group/AccountWindow/index.tsx:308` | fetch sub table data |
| `client/src/pages/Matrix/PrivateLetter/ChatWindow/index.tsx:163` | 发送请求 |
| `server/src/functions/privateLetter.ts:968` | 适配批量发布和图片发布 |
| `server/src/functions/minolta.ts:56,95` | 针对环境域名映射 |
| `server/src/functions/contentInfo.ts:308` | 针对环境域名映射 |

---

### 4. 代码质量

| 检查项 | 状态 | 严重程度 | 详情 | 建议 |
|--------|------|----------|------|------|
| 嵌套层级 | ❌ 发现问题 | 中 | 存在超过 4 层的嵌套 | 使用提前返回或提取方法 |
| Magic Number | ⚠️ 警告 | 中 | 20+ 处魔法数字/字符串 | 提取为常量 |
| 死代码 | ✅ 通过 | - | 未发现明显死代码 | - |
| 未使用变量 | ✅ 通过 | - | 未发现明显未使用变量 | - |
| 拼写错误 | ❌ 发现问题 | 中 | 3+ 处拼写错误 | 修正拼写 |

**魔法数字示例:**

| 位置 | 问题 |
|------|------|
| `server/src/config/config.daily.ts:24` | `120 * 60 * 60 * 1000` (应定义为常量) |
| `server/src/config/config.daily.ts:11` | `port: "3306"` (应使用常量) |
| `server/src/config/config.daily.ts:33` | `port: 6379` (应使用常量) |

---

### 5. 安全性 (严重)

| 检查项 | 状态 | 严重程度 | 详情 | 建议 |
|--------|------|----------|------|------|
| 硬编码密钥 | ❌ 发现问题 | 🔴 高 | **25+ 处硬编码敏感信息** | 立即移至环境变量 |
| SQL 注入 | ⚠️ 警告 | 中 | LIKE 查询存在通配符注入风险 | 验证输入参数 |
| XSS 漏洞 | ⚠️ 警告 | 中 | 2 处潜在 XSS 风险 | 转义用户输入 |
| 输入验证 | ❌ 发现问题 | 中 | 缺乏统一输入验证框架 | 引入 class-validator |
| 认证绕过 | ❌ 发现问题 | 🔴 高 | **83 个 API 端点绕过登录** | 审查并修复 |
| HTTP 配置 | ❌ 发现问题 | 中 | 多处使用 HTTP 而非 HTTPS | 升级为 HTTPS |

**硬编码密钥汇总:**

| 类型 | 数量 | 位置示例 |
|------|------|---------|
| MySQL 密码 | 2 | `config.default.ts`, `config.daily.ts` |
| Redis 密码 | 2 | `config.default.ts`, `config.daily.ts` |
| OSS AccessKey | 2 | `config.default.ts` |
| EPaaS 密钥 | 2 | `config.default.ts` |
| ODPS 密钥 | 2 | `config.default.ts` |
| FAI API Key | 5+ | 多个 service 文件 |
| AccessToken | 8+ | `uploadFile.ts`, `toolbox.ts` 等 |

**认证绕过端点 (部分高风险):**

```typescript
// server/src/config/config.default.ts:38-118
// 以下敏感接口配置为无需登录即可访问
- /api/release/publish // 内容发布
- /api/open/account/list // 账号列表
- /api/open/account/authorization // 账号授权
- /api/open/private-letter/conversation/create // 私信创建
- /api/comment/conversation/remove // 评论删除
- /api/release/create // 内容创建
```

---

### 6. 依赖管理

| 检查项 | 状态 | 严重程度 | 详情 | 建议 |
|--------|------|----------|------|------|
| 过期依赖 | ⚠️ 警告 | 中 | TypeScript 4.1 (当前 5.5+) | 升级依赖版本 |
| 安全漏洞 | ❌ 发现问题 | 高 | 需运行 `npm audit` 确认 | 修复安全漏洞 |
| 重复依赖 | ⚠️ 警告 | 低 | `prettier-plugin-sort-imports` 重复 | 统一依赖位置 |
| 未使用依赖 | ⚠️ 警告 | 中 | `crypto` 为内置模块 | 移除不必要依赖 |

**依赖问题详情:**

| 问题 | 位置 | 建议 |
|------|------|------|
| 依赖分类错误 | `client/package.json` - `@trivago/prettier-plugin-sort-imports` 在 dependencies | 移至 devDependencies |
| 内置模块依赖 | `server/package.json` - `crypto` | 移除(Node.js 内置) |
| 版本不一致 | `typescript` - client 4.1.2 vs server 4.1.0 | 统一版本 |

---

### 7. 性能问题

| 检查项 | 状态 | 严重程度 | 详情 | 建议 |
|--------|------|----------|------|------|
| N+1 查询 | ✅ 通过 | - | 未发现明显 N+1 问题 | - |
| 不必要计算 | ⚠️ 警告 | 低 | 部分循环内重复计算 | 缓存计算结果 |
| 大对象创建 | ✅ 通过 | - | 未发现明显问题 | - |
| Math.random() | ⚠️ 警告 | 低 | 2 处使用 Math.random() 生成 ID | 使用 uuid 库 |

---

### 8. 测试质量

| 检查项 | 状态 | 严重程度 | 详情 | 建议 |
|--------|------|----------|------|------|
| 测试覆盖率 | ❌ 发现问题 | 高 | 未发现测试文件 | 添加单元测试 |
| 测试配置 | ❌ 发现问题 | 高 | 无测试框架配置 | 配置 jest/vitest |

---

### 9. 工程规范

| 检查项 | 状态 | 严重程度 | 详情 | 建议 |
|--------|------|----------|------|------|
| Lint 配置 | ⚠️ 警告 | 中 | Server 端缺少 ESLint 配置 | 添加 `.eslintrc.js` |
| Format 配置 | ⚠️ 警告 | 低 | Server 端缺少 Prettier 配置 | 添加 `.prettierrc` |
| Git 配置 | ✅ 通过 | - | `.gitignore` 配置完整 | - |
| CI/CD | ❌ 发现问题 | 中 | 缺少 GitLab CI 配置 | 添加 `.gitlab-ci.yml` |

---

### 10. 文档可维护性

| 检查项 | 状态 | 严重程度 | 详情 | 建议 |
|--------|------|----------|------|------|
| README | ❌ 发现问题 | 🔴 高 | 根目录缺少 README.md | 添加项目文档 |
| 架构文档 | ✅ 通过 | - | `CLAUDE.md` 存在 | 完善内容 |
| API 文档 | ⚠️ 警告 | 中 | 无 API 文档 | 添加接口文档 |
| CHANGELOG | ✅ 通过 | - | 通过 git commit 追踪 | - |

**现有文档:**

| 文件 | 状态 |
|------|------|
| `CLAUDE.md` | 简单项目结构说明 |
| `XHS_INTERACTION_SYSTEM.md` | 小红书互动系统详细文档 ✓ |
| `client/src/pages/PPT1/README.md` | PPT 组件重构说明 ✓ |

---

## 优先级问题列表

### 🔴 P0 - 必须立即修复

1. **[security]** `server/src/config/config.default.ts:17` - MySQL 密码硬编码 `Fliggy456789!`
2. **[security]** `server/src/config/config.default.ts:160` - Redis 密码硬编码
3. **[security]** `server/src/config/config.default.ts:153` - OSS AccessKeySecret 硬编码
4. **[security]** `server/src/config/config.default.ts:38-118` - **83 个 API 端点绕过登录认证**
5. **[security]** `server/src/service/travelAnalysis.ts:46` - FAI API Key 硬编码
6. **[code-quality]** `server/src/functions/articleGenerateTask.ts` - 文件长达 2,857 行
7. **[code-quality]** `server/src/service/travelAnalysis.ts` - 文件长达 2,759 行
8. **[naming]** `server/src/functions/uploadFile.ts:17` - 类名 `uploadFileHandler` 未使用 PascalCase
9. **[naming]** `server/src/functions/videoAI.ts:24` - 类名 `videoAIHandler` 未使用 PascalCase
10. **[docs]** 根目录缺少 `README.md`

### 🟡 P1 - 建议尽快修复

11. **[security]** `server/src/config/config.default.ts:7` - 使用 HTTP 而非 HTTPS (faiUrl)
12. **[security]** `client/src/pages/Matrix/PrivateLetter/ReceivedTable/index.tsx:66` - XSS 风险
13. **[code-quality]** `client/src/pages/LightEffects/index.tsx` - 文件长达 2,251 行
14. **[code-quality]** `server/src/service/bizImageTaskService.ts` - 文件长达 2,576 行
15. **[dependency]** `client/package.json` - `@trivago/prettier-plugin-sort-imports` 错误放在 dependencies
16. **[ci/cd]** 缺少 `.gitlab-ci.yml` 配置
17. **[config]** Server 端缺少 ESLint 配置
18. **[test]** 项目缺少测试框架和测试文件

### 🟢 P2 - 计划修复

19. **[code-quality]** 20+ 个魔法数字/字符串需要提取为常量
20. **[naming]** 3 处文件命名拼写错误 (knowlegde, covereTmplate)
21. **[code-quality]** 8 处 TODO 注释需要处理
22. **[config]** Server 端缺少 Prettier 配置
23. **[performance]** 2 处使用 Math.random() 生成 ID
24. **[docs]** 缺少 API 接口文档

---

## 修复建议

### 立即行动项 (本周内)

```bash
# 1. 将所有硬编码密钥移至环境变量
export DATABASE_PASSWORD="your-password"
export REDIS_PASSWORD="your-password"
export OSS_ACCESS_KEY_SECRET="your-secret"
export FAI_API_KEY="your-key"

# 2. 审查并修复认证绕过配置
# 编辑 server/src/config/config.default.ts
# 移除敏感接口的 bypassLogin 配置

# 3. 运行安全审计
npm audit fix
yarn audit fix
```

### 短期修复 (本月内)

1. **代码重构**: 将超大文件 (>2000 行) 拆分为多个模块
2. **命名规范**: 统一类名使用 PascalCase,修正拼写错误
3. **依赖整理**: 修正依赖分类,移除内置模块依赖
4. **添加测试**: 配置 Jest/Vitest,编写核心功能单元测试

### 中期优化 (下季度)

1. **引入统一输入验证**: 使用 `class-validator` + `class-transformer`
2. **配置安全中间件**: 添加 `helmet`, `express-rate-limit`
3. **完善文档**: 编写 README、API 文档、部署文档
4. **建立 CI/CD**: 配置自动化测试和部署流程

---

## 附录

### A. 技术栈信息

| 组件 | 版本 |
|------|------|
| Node.js | >= 16 |
| TypeScript | 4.1.x |
| 前端框架 | UmiJS 4 + React |
| 后端框架 | MidwayJS + FaaS |
| 数据库 | MySQL + Redis |
| 包管理器 | tnpm |

### B. 项目结构

```
aic-space/
├── client/ # 前端代码 (UmiJS)
│ ├── src/
│ │ ├── apis/ # API 接口
│ │ ├── pages/ # 页面组件
│ │ └── ...
│ └── package.json
├── server/ # 后端代码 (MidwayJS)
│ ├── src/
│ │ ├── functions/ # FaaS 函数
│ │ ├── service/ # 业务服务
│ │ └── config/ # 配置文件
│ └── package.json
├── CLAUDE.md # 项目说明
└── health_check/ # 健康检查报告
```

### C. 检查工具版本

- Health Check Skill v1.0
- 检查时间: 2026-03-16
- 检查范围: client/, server/ (排除 node_modules, .git)

---

**报告生成完成** - 建议优先修复 P0 级别问题,特别是安全漏洞。
1 change: 1 addition & 0 deletions .claude/skills/health/scripts/.go_architecture_issues.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SEVERITY:P2|FILE:项目结构|LINE:N/A|ISSUE:分层目录较少|CODE:3层|SUGGEST:补充缺失层
11 changes: 11 additions & 0 deletions .claude/skills/health/scripts/.ios_comments_issues.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
SEVERITY:P2|FILE:项目整体|LINE:N/A|ISSUE:TODO/FIXME较多|DETAIL: 44处|SUGGEST:定期review并处理
SEVERITY:P2|FILE:Src/ViewModel/FliggyHomeBaseViewModel.h|LINE:71|ISSUE:TODO/FIXME标记|DETAIL:|SUGGEST:review并处理
SEVERITY:P2|FILE:Src/ViewModel/FliggyHomeBaseViewModel.m|LINE:121|ISSUE:TODO/FIXME标记|DETAIL:|SUGGEST:review并处理
SEVERITY:P2|FILE:Src/Page/UI/TopView/HeaderCard/FliggyHomeHeaderCardTapEvent.m|LINE:68|ISSUE:TODO/FIXME标记|DETAIL:|SUGGEST:review并处理
SEVERITY:P2|FILE:Src/Page/UI/TopView/HeaderCard/FliggyHomeHeaderCardManager.m|LINE:127|ISSUE:TODO/FIXME标记|DETAIL:|SUGGEST:review并处理
SEVERITY:P2|FILE:Src/Page/UI/TopView/HeaderCard/FliggyHomeHeaderCardManager.m|LINE:141|ISSUE:TODO/FIXME标记|DETAIL:|SUGGEST:review并处理
SEVERITY:P2|FILE:Src/Page/UI/TopView/HeaderCard/FliggyHomeHeaderCardManager.m|LINE:149|ISSUE:TODO/FIXME标记|DETAIL:|SUGGEST:review并处理
SEVERITY:P2|FILE:Src/Page/UI/DXComponent/CustomDinamicComponents/FGuesslikeTabIndicatorLayoutView/TRIPHomeIndicatorLayoutView2021/TRIPHomeIndicatorTab2021View.m|LINE:289|ISSUE:TODO/FIXME标记|DETAIL:|SUGGEST:review并处理
SEVERITY:P2|FILE:Src/Page/UI/CustomView/TRIPHomeTitleBarView/TRIPHomeTitleBarView.m|LINE:769|ISSUE:TODO/FIXME标记|DETAIL:|SUGGEST:review并处理
SEVERITY:P2|FILE:Src/Page/Biz/Splash/FliggyCacheSplashScreenPageController.m|LINE:1040|ISSUE:TODO/FIXME标记|DETAIL:|SUGGEST:review并处理
SEVERITY:P2|FILE:Src/Page/Biz/Splash/TRIPWelcomePageController.m|LINE:398|ISSUE:TODO/FIXME标记|DETAIL:|SUGGEST:review并处理
16 changes: 16 additions & 0 deletions .claude/skills/health/scripts/.ios_complexity_issues.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
SEVERITY:P1|FILE:total|LINE:N/A|ISSUE:文件过大|DETAIL:74560行|SUGGEST:按功能拆分模块
SEVERITY:P1|FILE:Src/View/RootView/TRIPHomeViewController.m|LINE:N/A|ISSUE:文件过大|DETAIL:5170行|SUGGEST:按功能拆分模块
SEVERITY:P1|FILE:Src/Page/Data/TRIPHomeDataHelper/TRIPHomeDataHelper.m|LINE:N/A|ISSUE:文件过大|DETAIL:4660行|SUGGEST:按功能拆分模块
SEVERITY:P1|FILE:Src/Page/Data/TRIPHomeDataHelper/Biz/TRIPHomeDataHelper+SplashScreen.m|LINE:N/A|ISSUE:文件过大|DETAIL:1978行|SUGGEST:按功能拆分模块
SEVERITY:P1|FILE:Src/Page/Biz/Splash/FliggyCacheSplashScreenPageController.m|LINE:N/A|ISSUE:文件过大|DETAIL:1575行|SUGGEST:按功能拆分模块
SEVERITY:P1|FILE:Src/View/RootView/TRIPHomeViewController+Category/DX/DXWidget/TRIPHomeViewController+DX.m|LINE:N/A|ISSUE:文件过大|DETAIL:1164行|SUGGEST:按功能拆分模块
SEVERITY:P1|FILE:Src/Page/TRIPHomeViewController/HomeMultiPageContainer/BaseData/BaseHomeDXHelper.m|LINE:N/A|ISSUE:文件过大|DETAIL:1088行|SUGGEST:按功能拆分模块
SEVERITY:P1|FILE:Src/View/RootView/TRIPHomeViewController+Category/Other/TRIPHomeViewController+Additional.m|LINE:N/A|ISSUE:文件过大|DETAIL:1080行|SUGGEST:按功能拆分模块
SEVERITY:P1|FILE:Src/View/H5Container/FliggyH5TabController.m|LINE:N/A|ISSUE:文件过大|DETAIL:1019行|SUGGEST:按功能拆分模块
SEVERITY:P1|FILE:Src/Page/TRIPHomeViewController/HomeMultiPageContainer/DestinationTab/DestinationTabDataHelper/FliggyDestinationTabDataHelper+Category/Data/Request/FliggyDestinationTabDataHelper+Request.m|LINE:N/A|ISSUE:文件过大|DETAIL:998行|SUGGEST:按功能拆分模块
SEVERITY:P1|FILE:Src/Page/Utility/TRIPHomeOrangeHelper.m|LINE:N/A|ISSUE:文件过大|DETAIL:978行|SUGGEST:按功能拆分模块
SEVERITY:P1|FILE:Src/Page/UI/CustomView/TRIPHomeTitleBarView/TRIPHomeTitleBarView.m|LINE:N/A|ISSUE:文件过大|DETAIL:975行|SUGGEST:按功能拆分模块
SEVERITY:P1|FILE:Src/View/RootView/TRIPHomeViewController+Category/TopViews/TRIPHomeViewController+TopView.m|LINE:N/A|ISSUE:文件过大|DETAIL:949行|SUGGEST:按功能拆分模块
SEVERITY:P1|FILE:Src/Page/UI/DXComponent/CustomDinamicComponents/DXFliggyInspire/FliggyInspire.m|LINE:N/A|ISSUE:文件过大|DETAIL:936行|SUGGEST:按功能拆分模块
SEVERITY:P1|FILE:Src/Track/TRIPHomeTrackManager.m|LINE:N/A|ISSUE:文件过大|DETAIL:929行|SUGGEST:按功能拆分模块
SEVERITY:P2|FILE:头文件整体|LINE:N/A|ISSUE:前向声明不足|DETAIL:仅 48/ 317使用@class|SUGGEST:在.h中使用@class减少依赖
10 changes: 10 additions & 0 deletions .claude/skills/health/scripts/.ios_security_issues.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
SEVERITY:P1|FILE:Podfile|LINE:25|ISSUE:依赖未指定版本|CODE:|SUGGEST:指定具体版本号
SEVERITY:P1|FILE:Podfile|LINE:26|ISSUE:依赖未指定版本|CODE:|SUGGEST:指定具体版本号
SEVERITY:P1|FILE:Podfile|LINE:27|ISSUE:依赖未指定版本|CODE:|SUGGEST:指定具体版本号
SEVERITY:P1|FILE:Podfile|LINE:28|ISSUE:依赖未指定版本|CODE:|SUGGEST:指定具体版本号
SEVERITY:P1|FILE:Podfile|LINE:29|ISSUE:依赖未指定版本|CODE:|SUGGEST:指定具体版本号
SEVERITY:P1|FILE:Podfile|LINE:30|ISSUE:依赖未指定版本|CODE:|SUGGEST:指定具体版本号
SEVERITY:P1|FILE:Podfile|LINE:31|ISSUE:依赖未指定版本|CODE:|SUGGEST:指定具体版本号
SEVERITY:P1|FILE:Podfile|LINE:32|ISSUE:依赖未指定版本|CODE:|SUGGEST:指定具体版本号
SEVERITY:P1|FILE:Podfile|LINE:33|ISSUE:依赖未指定版本|CODE:|SUGGEST:指定具体版本号
SEVERITY:P1|FILE:Podfile|LINE:34|ISSUE:依赖未指定版本|CODE:|SUGGEST:指定具体版本号
Loading
Loading