A mathematical optimization tool designed to calculate the most efficient purchase combinations in Harry Potter Magic Awakened.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install hpm-solver
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install hpm-solver using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The HPM Solver is a specialized utility for players of Harry Potter Magic Awakened (HPM) that solves for the optimal combination of items to meet specific gold or diamond targets. By leveraging a multi-variable linear equation model, it helps users maximize their in-game currency efficiency. This technical tool is a standout among Openclaw Skills for its ability to handle complex game-specific economic variables like food and plant coefficients.
At its core, the skill uses a sophisticated v5 algorithm that includes equivalence grouping and divisibility filtering. This ensures that even with a large catalog of items, the solver remains performant and accurate. Whether you are looking for a perfect solution with zero residual value or the closest possible match, this Openclaw Skills asset provides clear, actionable results for competitive players.
Download the source package and integrate the solver.js utility into your project. For WeChat Mini-program developers, ensure the following structure:
# Extract the hpm-miniprogram-v13.tar.gz package
# Place solver.js into your utils folder
Initialize the solver within your application logic:
const { HPMSolver } = require('../../utils/solver');
const solver = new HPMSolver(prices, prices.maxQuantities);
const result = solver.solve(7500, 0, 1.5, 1.0);
The skill utilizes a structured JSON format for price management and solving results:
| Component | Description |
|---|---|
| Base Prices | Nested object containing gold and diamond prices for 'foods' and 'plants'. |
| Max Quantities | Limits on how many of each specific item can be purchased. |
| Multipliers | p (Food) and q (Plant) coefficients used to calculate actual prices. |
| Solver Output | Returns groups, totalCost, residual, and success status (isPerfect). |
Detailed stats including goldItemsBefore and goldGroupsAfter are provided to track optimization efficiency.
Loading
A professional career development API that generates data-driven, personalized learning roadmaps for supply chain professionals.

A professional career roadmap platform that generates personalized learning paths and specialization guidance for veterinary science professionals.

A diagnostic and verification skill for VeriClaw that identifies and resolves cases where AI agents falsely claim task completion.

A professional career development tool that generates customized entrepreneurship roadmaps based on individual skills, experience, and business goals.

A foundational governance framework defining mandates, permissions, and performance standards for autonomous AI agents.

A conceptual framework skill for transparent, multi-perspective AI dispute resolution featuring a 12-juror parallel AI panel and human oversight.








































