hoatv2211/GameStudio-CodexKIT / skills/economy-source-sink-model
economy-source-sink-model
VerifiedUse when modeling a game economy's currencies, item faucets, sinks, exchange rates, player segments, inflation risk, progression affordability, or live-operations reward assumptions.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 3.6 KB |
| agents/openai.yaml | config | 267 B |
| scripts/economy_model.py | script | 848 B |
scripts/economy_model.py
View on GitHub# Generated by scripts/sync_skill_resources.py. Do not edit manually.
from __future__ import annotations
from typing import Any
def analyze_economy(
sources: list[dict[str, Any]],
sinks: list[dict[str, Any]],
*,
max_positive_net: float = 0,
) -> dict[str, Any]:
source_total = sum(float(item.get("amount", 0)) for item in sources)
sink_total = sum(float(item.get("amount", 0)) for item in sinks)
net_flow = source_total - sink_total
return {
"status": "FAIL" if net_flow > max_positive_net else "PASS",
"source_total": source_total,
"sink_total": sink_total,
"net_flow": net_flow,
"max_positive_net": max_positive_net,
"sources": sources,
"sinks": sinks,
"limitations": ["Model uses the supplied period and does not infer player behavior."],
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |