一键导入
add-new-passive
Adding passive skill / inner way code changes (modifier engine, skill context, types, not data)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Adding passive skill / inner way code changes (modifier engine, skill context, types, not data)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Writing and running Playwright E2E tests for the web app
Modifying or adding damage calculation formulas (damageFormula.ts + damageCalculator.ts)
Adding new stats to the game (constants.ts + types.ts + gear/OCR/tune files)
Editing game data through admin panel (skills, passives, inner ways, martial arts, rotations)
Running and writing tests for the project (vitest, node env, globals)
Working with gear tune features (tune variants, success rate, tune history in optimizer + UI)
| name | add-new-passive |
| description | Adding passive skill / inner way code changes (modifier engine, skill context, types, not data) |
Use when adding or modifying passive skill or inner way logic in code (not data editing via admin panel).
Data (skills, passives, inner ways, martial arts, rotations) lives in Supabase static_data table. Edit via Admin UI at /admin. Do NOT edit local JSON files.
Code changes needed only when:
app/domain/skill/modifierEngine.ts:
computeRotationBonuses() — applies flat/scale modifierscomputeIncludedInStatsGearBonus() — passives with includedInStats: trueapp/domain/skill/passiveSkillTypes.ts — types if new shape neededapp/domain/skill/skillContext.ts — conditional overrides (e.g. UmbrellaBallistic)app/domain/skill/skillDamage.ts — if affects skill damageapp/types.ts — InputStats if new stat neededtests/skillDamage.spec.tstests/formula.spec.tspnpm test