Commodity pricing

From tinh2/skills-hub-registry · View interactive version

Commodity pricing is an AI agent skill from the GitHub repository tinh2/skills-hub-registry. Analyze commodity pricing and trading systems including forward curves, option models, position management, risk metrics, and regulatory reporting. Triggers: 'review pricing models', 'audit trading system', 'evaluate VaR implementation', 'check commodity risk management'.

How to use this skill

Skill file

You are in AUTONOMOUS MODE. Do NOT ask questions. Evaluate every component of the commodity pricing and trading system systematically.

INPUT

$ARGUMENTS (optional). If no arguments provided, analyze the entire commodity pricing codebase in the current working directory.


PHASE 0: SYSTEM DISCOVERY

Auto-detect the commodity trading system architecture.

Tech Stack

Trading Components

Produce a system architecture map before proceeding.


PHASE 1: PRICING MODEL EVALUATION

1.1 Forward Curve Construction

1.2 Option Pricing

1.3 Monte Carlo Simulation

1.4 Physical Asset Valuation

For each finding: file path, model component, severity, description, recommendation.


PHASE 2: MARKET DATA MANAGEMENT

2.1 Real-Time Feeds

2.2 Historical Data

2.3 Curve Management

2.4 Reference Data


PHASE 3: POSITION MANAGEMENT AND P&L

3.1 Trade Capture

3.2 Position Aggregation

3.3 P&L Calculation

3.4 Hedge Accounting


PHASE 4: RISK MANAGEMENT

4.1 Value at Risk (VaR)

4.2 Greeks Calculation

4.3 Stress Testing

4.4 Credit Risk

4.5 Limit Management


PHASE 5: REGULATORY REPORTING AND COMPLIANCE

5.1 EMIR / Dodd-Frank Reporting

5.2 REMIT (EU Energy Market)

5.3 Position Limits

5.4 Settlement and Delivery


PHASE 6: SYSTEM OPERATIONS AND DATA INTEGRITY

6.1 End-of-Day Processing

6.2 Data Integrity

6.3 Audit and Controls


============================================================

SELF-HEALING VALIDATION (max 2 iterations)

============================================================

After producing output, validate data quality and completeness:

  1. Verify all output sections have substantive content (not just headers).
  2. Verify every finding references a specific file, code location, or data point.
  3. Verify recommendations are actionable and evidence-based.
  4. If the analysis consumed insufficient data (empty directories, missing configs),

note data gaps and attempt alternative discovery methods.

IF VALIDATION FAILS:

IF STILL INCOMPLETE after 2 iterations:

OUTPUT FORMAT

## Commodity Pricing and Trading System Analysis Report

**System:** [name/description]
**Stack:** [detected technologies]
**Commodity Markets:** [detected: power, gas, oil, metals, agricultural]
**Trading Types:** [physical, financial, derivatives]

### Summary

| Category | Status | Findings | Critical |
|----------|--------|----------|----------|
| Pricing Models | [PASS/WARN/FAIL] | N | N |
| Market Data | [PASS/WARN/FAIL] | N | N |
| Position/P&L | [PASS/WARN/FAIL] | N | N |
| Risk Management | [PASS/WARN/FAIL] | N | N |
| Regulatory Reporting | [PASS/WARN/FAIL] | N | N |
| Operations/Integrity | [PASS/WARN/FAIL] | N | N |

### Pricing Model Coverage

| Product Type | Model | Validation | Greeks | Status |
|-------------|-------|------------|--------|--------|
| Forwards/Futures | | | | |
| European options | | | | |
| Asian options | | | | |
| Spread options | | | | |
| Swing/storage | | | | |

### Risk Coverage Matrix

| Risk Metric | Implemented | Validated | Monitored | Gap |
|-------------|-------------|-----------|-----------|-----|
| VaR (historical) | | | | |
| VaR (Monte Carlo) | | | | |
| CVaR / ES | | | | |
| Greeks | | | | |
| Stress testing | | | | |
| Credit exposure | | | | |

### Detailed Findings

For each category with WARN or FAIL:

| # | Severity | File | Description | Impact | Recommendation |
|---|----------|------|-------------|--------|----------------|

### Remediation Priority
[Ordered list by financial exposure and regulatory risk]

RULES


NEXT STEPS

============================================================

SELF-EVOLUTION TELEMETRY

============================================================

After producing output, record execution metadata for the /evolve pipeline.

Check if a project memory directory exists:

Entry format:

### /commodity-pricing — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}

Only log if the memory directory exists. Skip silently if not found.

Keep entries concise — /evolve will parse these for skill improvement signals.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.