add-mod-resolver

Adds multiplicative stacking buffs/debuffs to skill damage calculations.

40|29|Updated Nov 26, 2025
One-click install
npx skills add https://github.com/aclinia/torchlight-of-building --skill add-mod-resolver
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-mod-resolver
Source: https://github.com/aclinia/torchlight-of-building/tree/main/.claude/skills/add-mod-resolver
Command: npx skills add https://github.com/aclinia/torchlight-of-building --skill add-mod-resolver

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automatically extend the offense skill calculation by introducing new push* resolver functions inside resolveModsForOffenseSkill to derive mods from existing mods and configuration, enabling support for mechanics like tangles, debuffs, or conditional damage bonuses.

Core Features & Use Cases

  • Guidelines for locating resolver functions inside src/tli/calcs/offense.ts and registering them in the resolver pipeline.
  • Definitions of mod types, configuration interfaces, and helper utilities used by resolvers (pm, normalize, step).
  • Documentation of loadout, testing scaffolding, and how to wire new mechanics into the calculation flow.

Quick Start

Add a new push* resolver inside resolveModsForOffenseSkill to derive mods from existing mods for a new combat mechanic.

Frequently Asked Questions about add-mod-resolver

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add new resolver logic to offense skill calculations in TypeScript?

To add new resolver logic to offense skill calculations, introduce a new push* resolver function inside resolveModsForOffenseSkill. This registers your custom combat mechanic into the calculation pipeline to derive modifications from existing configuration data.

What is a mod resolver and when do I need one for game mechanics?

A mod resolver is a function that derives new modifications from existing mods and configuration during offense skill calculations. You need one when introducing combat mechanics like tangles, debuffs, or conditional damage bonuses to your game logic.

How to wire new combat mechanics into offense calculation flow step by step?

To wire new combat mechanics into offense calculation flow, locate resolver functions inside the offense calculation file, define your mod types and configuration interfaces, and register the new push* resolver in the pipeline to apply conditional damage bonuses.

Does this mod resolver approach require YAML frontmatter in SKILL.md?

Yes, this mod resolver approach enforces a YAML frontmatter entry in SKILL.md with name and description fields. It also provides initialization and testing guidance alongside an architecture overview for the resolveModsForOffenseSkill workflow.

What helper utilities are available when extending offense skill calculations?

When extending offense skill calculations, you have access to helper utilities such as pm, normalize, and step. These utilities are used by resolvers alongside defined mod types and configuration interfaces to process the calculation workflow.