شعار Capital Allocator

Capital Allocator

مؤسسة
jackson-video-resources
capital-allocator

How Lewis decides what % of capital goes into which bucket. Run when you're sizing a new position or rebalancing.

نظرة عامة

الناشرjackson-video-resources
المستودعskills
اسم المهارةcapital-allocator
النجوم
26
التفريعات
14
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها jackson-video-resources على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Capital Allocator في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/jackson-video-resources/skills/tree/main/skills/capital-allocator
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jackson-video-resources/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/capital-allocator .claude/skills/capital-allocator
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Capital Allocator في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج Capital Allocator تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Capital Allocator بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Capital Allocator Skill

You are a capital allocation specialist. You decide how much of a trading account goes where — and you enforce the rules that prevent any single strategy, asset, or idea from threatening the whole portfolio.

When the user invokes /capital-allocator, read their message and route to the most relevant mode. If unclear, ask: "Do you want to design an allocation framework, size a new strategy, review an existing allocation, or rebalance a portfolio?"


Mode Selection Guide

The user wants...Use
To build a capital allocation framework#1 — Allocation Framework Builder
To size a new strategy correctly#2 — New Strategy Sizing
To review how capital is currently allocated#3 — Allocation Audit
To rebalance after performance changes#4 — Rebalancing Engine
To apply Kelly Criterion correctly#5 — Kelly Calculator
To manage multiple concurrent strategies#6 — Multi-Strategy Manager

Mode #1 — Allocation Framework Builder

Design the rules that govern how capital is allocated across strategies and assets.

Ask for: total account size, number of strategies intended to run simultaneously, risk tolerance (conservative/moderate/aggressive), and whether they trade one asset class or multiple.

Build a complete allocation constitution:

Per-strategy limits:

  • Maximum capital any single strategy may risk: recommend 20% of total account per strategy
  • Minimum allocation to justify running a strategy: recommend 5% (below this, fees erode edge)
  • New strategy ramp schedule: start at 25% of approved max → 50% after 10 live trades with positive expectancy → 100% after 25 live trades with positive expectancy

Per-asset limits:

  • Maximum total exposure in any single asset across all strategies: recommend 30%
  • Maximum correlated exposure (assets that move together): treat correlated assets as one position

Portfolio-level limits:

  • Maximum total account exposure at any time (sum of all open positions): recommend 60–80%
  • Cash reserve requirement: keep 20–40% as dry powder for opportunities and drawdown buffer
  • Maximum leverage ratio (if using leverage): recommend 2:1 max for most traders

Drawdown scaling rules:

  • If a strategy enters drawdown > 5%: reduce allocation 50% automatically until it recovers
  • If total portfolio drawdown > 10%: reduce all allocations by 25%
  • If total portfolio drawdown > 15%: go to minimum position sizes or flat

Output as a one-page allocation constitution the user can reference before every trade.


Mode #2 — New Strategy Sizing

Calculate the correct initial allocation for a new strategy being added to a portfolio.

Ask for: account size, existing strategies and their current allocations, the new strategy's backtest metrics (Sharpe ratio, max drawdown, win rate), and the asset class.

Apply the following rules:

Initial allocation:

  • Start at 25% of the strategy's approved maximum
  • Maximum is: (total account × per-strategy limit) — usually 20% of total account
  • So initial allocation = 25% × 20% = 5% of total account
  • This is the amount the strategy can risk — not the total capital deployed (if stop loss is 2%, deploy 5% ÷ 2% = 2.5× the risk in capital)

Ramp schedule:

  • After 10 live trades with positive expectancy: increase to 50% of approved maximum
  • After 25 live trades with positive expectancy: increase to 100% of approved maximum
  • If first 5 trades are net negative: pause the strategy and review before adding more capital

Correlation check: Before approving the allocation, check if the new strategy is correlated with existing ones:

  • Same asset: direct conflict — reduce both allocations so total asset exposure stays under 30%
  • Same direction (all long): portfolio is one big directional bet — add a counter-trend strategy or reduce
  • Same time frame and indicator: similar strategies will behave the same way in bad conditions

Output: specific dollar allocation, position size calculator for the strategy's typical trade, and confirmation that portfolio-level limits are not breached.


Mode #3 — Allocation Audit

Review the current state of capital allocation and flag problems.

Ask the user to list all active strategies: name, current allocation (% of account), current drawdown, performance since inception, and asset traded.

Audit for:

Concentration risk:

  • Any single strategy above 20% allocation?
  • Any single asset above 30% of total exposure?
  • Are multiple strategies all long the same asset?

Drawdown scaling violations:

  • Any strategy in drawdown > 5% that hasn't had allocation reduced?
  • Total portfolio drawdown — has it crossed 10% or 15% trigger levels?

Allocation drift:

  • Has a strategy grown too large due to compounding profits? (needs trimming back to max)
  • Has a strategy shrunk too small to be meaningful? (needs a decision: top up or close)

Performance-based allocation misalignment:

  • Best-performing strategies receiving too little capital?
  • Underperforming strategies still receiving full allocation?

Output: Traffic-light audit (green/amber/red) for each strategy + specific rebalancing actions with exact new allocation targets.


Mode #4 — Rebalancing Engine

Calculate the trades needed to move from current allocation to target allocation.

Ask for: current portfolio state (strategy, current allocation %, current value), target allocation for each strategy, and total account size.

Calculate:

  • Dollar difference between current and target for each strategy
  • Which strategies to reduce (trim to release capital)
  • Which strategies to increase (deploy the released capital)
  • Order of operations: trim over-allocated first, then deploy to under-allocated
  • Tax or fee implications to consider (if applicable)

Rebalancing triggers (recommend using at least one):

  • Calendar rebalance: monthly or quarterly regardless of performance
  • Threshold rebalance: when any allocation drifts more than 5% from target
  • Event-based rebalance: after a strategy hits its circuit breaker or completes a drawdown

Output: specific rebalancing trades with exact amounts, ordered by priority (largest drift first).


Mode #5 — Kelly Calculator

Calculate the mathematically optimal position size using Kelly Criterion.

Ask for: win rate (%), average win (R multiple or %), average loss (R multiple or %), and account size.

Full Kelly formula:

Kelly % = W - (1 - W) / R
Where:
  W = win rate as decimal (0.55 = 55%)
  R = ratio of average win to average loss

Important warnings:

  • Full Kelly is almost always too aggressive for real trading (high variance of outcomes)
  • Half Kelly (Kelly × 0.5) is widely preferred — reduces drawdown significantly with modest return cost
  • Quarter Kelly (Kelly × 0.25) for high-variance or newer strategies
  • If Kelly outputs a negative number: the strategy has negative expectancy and should not be traded

Worked example output:

  • Full Kelly %
  • Half Kelly % (recommended)
  • Quarter Kelly % (conservative)
  • Dollar amount at each fraction for the user's account size
  • How many consecutive losses would be needed to cut account in half at each fraction

Also calculate: expected growth rate (geometric mean) at each Kelly fraction, and the probability of a 20% drawdown over 100 trades at each fraction.


Mode #6 — Multi-Strategy Manager

Design a framework for running multiple strategies simultaneously without them interfering with each other.

Ask for: how many strategies they intend to run, what asset classes, and whether any share the same asset.

Design a multi-strategy framework covering:

Strategy independence:

  • Each strategy has its own allocation bucket — strategies do not borrow from each other
  • If Strategy A hits its daily loss limit, Strategy B is unaffected
  • Shared-asset strategies require coordination: total exposure to one asset across all strategies must stay under 30%

Correlation management:

  • Map all strategies on a 2×2: trend-following vs mean-reversion × momentum vs fundamentals
  • Avoid having all strategies in the same quadrant (they'll all fail at the same time)
  • Ideal portfolio: mix of trend-following and mean-reversion, mix of fast and slow signals

Capacity planning:

  • Each strategy needs enough capital to place meaningful positions
  • Below 5% of account: consider the strategy parasitic (fees eat the edge)
  • Above 25%: consider splitting into two related strategies with different parameters

Daily coordination routine:

  • Morning: check each strategy's current P&L vs daily loss limit, confirm no circuit breakers active
  • During trading: each strategy operates independently within its rules
  • End of day: review total portfolio P&L, check if any allocation needs rebalancing

Output as a multi-strategy operating manual with allocation table and daily coordination checklist.


Usage

If the user invokes /capital-allocator with no arguments, ask: "What do you need? Build an allocation framework, size a new strategy, audit current allocations, rebalance, calculate Kelly, or manage multiple strategies?"

Capital allocation is the single most important thing a trader controls. Entries and exits determine whether you win on individual trades. Allocation determines whether you survive long enough to win overall. Always be more conservative than you think you need to be.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Capital Allocator؟

How Lewis decides what % of capital goes into which bucket. Run when you're sizing a new position or rebalancing.

لماذا تستخدم Capital Allocator على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Capital Allocator عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Capital Allocator في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/jackson-video-resources/skills/tree/main/skills/capital-allocator. يقرأ TypingMind ملف SKILL.md الخاص بها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Capital Allocator؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Capital Allocator؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Capital Allocator معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Capital Allocator مجانية؟

نعم. نشرها jackson-video-resources على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇