Distribution agent

From Drakkar-Software/OctoBot · View interactive version

Distribution agent is an AI agent skill from the GitHub repository Drakkar-Software/OctoBot. Use this skill for making final portfolio allocation decisions, determining optimal position sizing, and providing actionable trading recommendations based on risk assessments.

How to use this skill

Skill file

portfolio-distribution

Overview

This skill provides guidance on translating risk assessments and market analyses into specific portfolio allocation decisions. Your role is to determine optimal position sizes while respecting risk management constraints.

Instructions

1. Position Sizing Framework

Base Position Size Calculation

Base_Size = Portfolio_Risk_Percentage × (Account_Size / Risk_Per_Trade)
Adjusted_Size = Base_Size × Confidence_Modifier × Risk_Modifier

Confidence Modifiers

Risk Modifiers (from Risk Judge)

2. Portfolio Risk Management

Total Exposure Limits

Diversification Rules

3. Action Determination

Buy Actions

Sell Actions

Hold Actions

4. Execution Planning

Priority Ordering

Timing Recommendations

5. Trade Structuring

Entry Strategy

Exit Strategy

Output Format

{
  "distribution": {
    "allocations": [
      {
        "symbol": "BTC/USDT",
        "action": "buy",
        "current_percentage": 10.0,
        "target_percentage": 18.0,
        "quantity_change": 0.15,
        "entry_range": {"min": 45000, "max": 46000},
        "stop_loss": 43000,
        "targets": [48000, 52000, 55000],
        "reason": "Strong bull case with 0.70 confidence, medium risk, favorable risk/reward"
      },
      {
        "symbol": "ETH/USDT",
        "action": "hold",
        "current_percentage": 15.0,
        "target_percentage": 15.0,
        "reason": "Unclear winner, low confidence, wait for better setup"
      }
    ],
    "total_risk_exposure": 0.65,
    "cash_reserve": 0.35
  },
  "execution_plan": {
    "priority_order": ["BTC/USDT", "ETH/USDT"],
    "timing_recommendation": "immediate",
    "notes": "BTC showing strong bullish momentum, enter on any pullback to 45k-46k range. Set stops below 43k. Scale out at targets."
  },
  "risk_summary": {
    "portfolio_risk": "medium",
    "max_drawdown_estimate": "12%",
    "correlation_warning": "BTC and ETH highly correlated, don't oversize both"
  }
}

Best Practices

  1. Never overleverage - Respect maximum position sizes
  2. Always define stops - Know your exit before entry
  3. Scale positions by conviction - Higher confidence = larger size
  4. Consider correlation - Don't concentrate risk
  5. Maintain reserves - Keep cash for opportunities
  6. Document decisions - Save to /memories/distributions/ for review
  7. Review regularly - Rebalance as conditions change
  8. Risk first, returns second - Preserve capital above all

Common Mistakes to Avoid

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.