Логотип Cost Monitoring For Cloud Trading Infrastructure

Cost Monitoring For Cloud Trading Infrastructure

Спільнота
HimanshuJ16
cost-monitoring-for-cloud-trading-infrastructure

Використовуйте, коли потрібні сповіщення про різкі стрибки витрат на хмарні обчислення, вихідний трафік і ринкові дані, а також аналіз економіки одиниці продукту. Розраховує базові показники за ковзним z-рахунком на основі наданих вами телеметричних даних і лише формує звіти, нічого не зупиняючи.

Add to TypingMind

Огляд

ВидавецьHimanshuJ16
РепозиторійAlgo-Trading-Skills
Назва навичкиcost-monitoring-for-cloud-trading-infrastructure
Зірки
50
Форки
7
Файли в пакеті
5
ЛіцензіяApache-2.0
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 5

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: HimanshuJ16. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Cost Monitoring For Cloud Trading Infrastructure у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/HimanshuJ16/Algo-Trading-Skills/tree/main/skills/cost-monitoring-for-cloud-trading-infrastructure
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/HimanshuJ16/Algo-Trading-Skills.git /tmp/Algo-Trading-Skills
mkdir -p .claude/skills
cp -r /tmp/Algo-Trading-Skills/skills/cost-monitoring-for-cloud-trading-infrastructure .claude/skills/cost-monitoring-for-cloud-trading-infrastructure
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Cost Monitoring For Cloud Trading Infrastructure в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Cost Monitoring For Cloud Trading Infrastructure, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Cost Monitoring For Cloud Trading Infrastructure не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

When to Use

Use this skill in cloud-hosted quantitative trading architectures (AWS, GCP, Azure) to monitor infrastructure costs (Compute, Data Egress, Market Data Feeds, Databases) and detect unexpected spend anomalies. Runaway backtesting jobs, un-throttled market data streaming across Availability Zones (cross-AZ egress tax), or idle GPU instances can cause cloud bills to surge tenfold. This module calculates rolling baseline statistics and uses $Z$-score thresholds to flag cost anomalies.

When NOT to Use

  • You need real-time enforcement (budget kill switches, instance termination). This module classifies and reports on telemetry it is given; it does not connect to cloud APIs or actuate anything.
  • You need vendor-native anomaly detection. AWS Cost Anomaly Detection / GCP budget alerts already cover single-account baselines — use this when you need cross-cloud, trading-volume-normalized, environment-scoped analysis in your own pipeline.
  • You need to detect spend collapsing. The gates are one-sided: only positive deviations escalate. A market-data subscription that lapses or a feed handler that dies — spend dropping to $0 — reports NORMAL. Detect that with liveness monitoring, not this module.
  • You are forecasting or optimizing spend. Baseline statistics here are for spike detection, not capacity planning or rightsizing analysis.

Prerequisites

  • Daily or hourly cloud cost telemetry records categorized by service, category (Compute, Storage, NetworkEgress), and environment.
  • Baseline historical period (e.g. 14 days of spend history) for the same service AND environment as the record being analyzed.
  • The caller windows the history. analyze_service_cost filters by (service, environment) but does not sort by timestamp, deduplicate, or truncate — pass exactly the records that belong in the rolling window. Handing a year of history to a "14-day rolling baseline" silently widens it.

Workflow

  1. Telemetry Ingestion: Ingest cost records ($C_{t, \text{service}}$) and trading volume metrics ($V_t$). Costs may be negative (credits/refunds) but non-finite telemetry values are rejected — a NaN would otherwise make every threshold comparison False and silently classify the day as NORMAL.
  2. Rolling Baseline Calculation (scoped to service + environment — never mix PROD and DEV spend for the same service):
    • Compute rolling mean $\mu$ and population standard deviation $\sigma$ over baseline window $W$.
    • If $\sigma \approx 0$ (flat spend, e.g. reserved capacity), the Z-score degenerates to the absolute dollar deviation from the mean.
  3. Anomaly & Spike Audit:
    • Compute $Z$-score: $Z_t = \frac{C_t - \mu}{\sigma}$ (severity decisions use the unrounded value).
    • Flag CRITICAL if $Z_t \ge 3.0$ AND percentage increase vs mean $> 30%$ — the dual gate keeps a $2 deviation on a large flat baseline from paging anyone.
    • Flag WARNING if $Z_t \ge 2.0$ and the deviation is material. On a flat baseline the "Z" is a dollar deviation, so it is scale-dependent: +$3 on a $100,000/day reserved-capacity baseline reaches $Z = 3.0$ at +0.003%. A flat_baseline_min_pct_change floor (default 1%, constructor-tunable) gates WARNING in the flat case only — a small percentage move on a genuinely varying baseline can still be a real outlier and is never suppressed.
    • If no baseline history exists for the service+environment, status is reported as baseline-UNKNOWN (treated as NORMAL with an explicit recommendation) — a brand-new runaway service cannot be z-scored until a baseline accrues; watch it through direct budget alarms meanwhile.
    • A $0-mean baseline with positive spend reports an unbounded percentage increase (so the CRITICAL gate cannot be bypassed by a zero-cost baseline).
  4. Unit Economics Tracking:
    • Compute unit cost: $\text{Unit Cost} = \frac{C_{\text{total}}}{\text{Total Trades Executed}}$. Always pass the real trade volume — with the default volume of 1.0, unit cost silently equals raw spend. Zero trades with positive spend reports an infinite unit cost (the worst unit economics there is — a halted strategy still burning compute), never $0.00.
  5. FinOps Alert Generation: Produce remediation recommendations (e.g. terminate idle instances, pin microservices to single AZ).

Full procedure: see references/workflows.md. Standards reference: see references/standards.md. Printable pre-flight checklist: see assets/checklist.md.

Common Pitfalls

  • Evaluating Total Spend Without Volume Context: Flagging a cost spike during an extreme volatility market day when high trading volume naturally increases AWS Lambda / API gateway fees. Unit cost ($\frac{\text{Spend}}{\text{Trades}}$) must be evaluated.
  • Mixing Environments in One Baseline: baselining PROD spend against DEV/STAGING history for the same service distorts $\mu$ and $\sigma$ in both directions. Scope every baseline to (service, environment).
  • Ignoring Cross-AZ Network Egress: Failing to tag cross-Availability-Zone traffic. AWS charges inter-AZ data transfer at $0.01/GB per direction (source cited in references/standards.md) — a GB moved across AZs effectively bills ~$0.02, which is why market-data fan-out across zones doubles the "hidden tax".
  • 24-Hour Billing Delay: Relying exclusively on end-of-day cloud billing exports instead of hourly telemetry metrics.
  • Flat Baselines Paging On-Call: with $\sigma \approx 0$, any absolute deviation produces a huge Z, and that Z is denominated in dollars — so the same $3 blip scores 3.0 on a $100/day baseline and 3.0 on a $100,000/day one. Two separate relative gates exist for this: the CRITICAL >30%-mean-increase gate and the WARNING flat_baseline_min_pct_change floor. Don't remove either, and don't assume the CRITICAL gate alone silences flat-baseline noise — it does not gate WARNING.
  • Reading $0.00/Trade as Efficiency: a unit cost of zero means zero spend, not zero waste. Spend with no trades is reported as infinite unit cost; treat inf as an alert, not as missing data.

Verification

  • Instantiate CloudCostAnomalyDetector. Feed 14 days of baseline compute spend around $100/day ($\sigma \approx 5.0$). Submit a 15th day spend record of $500 (Z \approx 80$). Verify the detector flags a CRITICAL cost anomaly for Compute. Test normal day spend ($102) and verify status is NORMAL.
  • Add DEV-environment history records for the same service and verify the PROD baseline mean is unchanged (environment scoping).
  • Submit a spend record with no matching history and verify the recommendation reports baseline-UNKNOWN rather than a clean bill of health.
  • Feed 14 days of a perfectly flat $100,000/day baseline and submit $100,003. Verify the status is NORMAL (+0.003% is below the materiality floor) and the recommendation names the floor rather than reporting a clean bill of health.
  • Submit a record with trading_volume=0 and positive spend; verify unit_cost_usd is inf, not 0.0.
  • Run python -m unittest discover -s skills/cost-monitoring-for-cloud-trading-infrastructure/scripts.

Related Skills

  • cross-region-data-replication-lag-monitoring
  • cross-strategy-shared-infrastructure-resource-contention

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Cost Monitoring For Cloud Trading Infrastructure?

Використовуйте, коли потрібні сповіщення про різкі стрибки витрат на хмарні обчислення, вихідний трафік і ринкові дані, а також аналіз економіки одиниці продукту. Розраховує базові показники за ковзним z-рахунком на основі наданих вами телеметричних даних і лише формує звіти, нічого не зупиняючи.

Навіщо використовувати Cost Monitoring For Cloud Trading Infrastructure у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Cost Monitoring For Cloud Trading Infrastructure — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Cost Monitoring For Cloud Trading Infrastructure у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/HimanshuJ16/Algo-Trading-Skills/tree/main/skills/cost-monitoring-for-cloud-trading-infrastructure. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Cost Monitoring For Cloud Trading Infrastructure?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Cost Monitoring For Cloud Trading Infrastructure?

Зі скількома забажаєте. У TypingMind ви можете використовувати Cost Monitoring For Cloud Trading Infrastructure із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Cost Monitoring For Cloud Trading Infrastructure?

Так. На GitHub цю навичку публікує HimanshuJ16 за ліцензією Apache-2.0. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі
Логотип affaan-m

Deployment Patterns

affaan-m
СпільнотаПопулярне

Процеси розгортання, шаблони конвеєрів CI/CD, контейнеризація Docker, перевірки працездатності, стратегії відкату та контрольні списки готовності вебзастосунків до промислового…

39.1K
261.1K
Інструкції
Відкрити
Логотип affaan-m

Docker Patterns

affaan-m
СпільнотаПопулярне

Шаблони Docker і Docker Compose для локальної розробки, безпеки контейнерів, мережевої взаємодії, стратегій роботи з томами та оркестрації кількох сервісів.

39.1K
261.1K
Інструкції
Відкрити
Логотип affaan-m

Architecture Decision Records

affaan-m
СпільнотаПопулярне

Під час сеансів програмування фіксує архітектурні рішення у структурованих ADR, автоматично виявляючи моменти ухвалення рішень і записуючи контекст, розглянуті альтернативи та обґрунтування. Веде журнал ADR, щоб майбутні розробники розуміли, як формувалася кодова база.

39.1K
261.1K
Інструкції
Відкрити
Логотип affaan-m

Automation Audit Ops

affaan-m
СпільнотаПопулярне

Робочий процес для доказового обліку автоматизації ECC та аудиту дублювання. Використовуйте, коли потрібно з’ясувати, які завдання, хуки, конектори, MCP-сервери або обгортки працюють, зламані, дублюються чи відсутні, перш ніж щось виправляти.

39.1K
261.1K
Інструкції
Відкрити

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇