{
  "schemaVersion": "1.0",
  "item": {
    "slug": "afrexai-investment-engine",
    "name": "Investment Analysis & Portfolio Management Engine",
    "source": "tencent",
    "type": "skill",
    "category": "数据分析",
    "sourceUrl": "https://clawhub.ai/1kalin/afrexai-investment-engine",
    "canonicalUrl": "https://clawhub.ai/1kalin/afrexai-investment-engine",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/afrexai-investment-engine",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-investment-engine",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/afrexai-investment-engine"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/afrexai-investment-engine",
    "agentPageUrl": "https://openagent3.xyz/skills/afrexai-investment-engine/agent",
    "manifestUrl": "https://openagent3.xyz/skills/afrexai-investment-engine/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/afrexai-investment-engine/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Investment Analysis & Portfolio Management Engine",
        "body": "Complete investment analysis, portfolio construction, risk management, and trade execution methodology. Works across stocks, crypto, ETFs, bonds, and alternatives. Zero dependencies — pure agent skill."
      },
      {
        "title": "Quick Health Check (/8)",
        "body": "Before any investment activity, score your current state:\n\nSignal✅ Healthy❌ Fix FirstInvestment thesis documentedWritten with edge + invalidation\"I think it'll go up\"Position sizing calculatedKelly/fixed-fractional with max cap\"I'll put in $5K\"Stop-loss definedPrice or thesis invalidation triggerNo exit planPortfolio heat trackedTotal exposure known, <15%Unknown aggregate riskAsset correlation checkedNo >40% correlated concentrationAll tech / all cryptoRebalance schedule setMonthly or threshold-basedNever rebalancedTax impact consideredHarvesting losses, holding periodsTax-blind tradingPerformance trackedBenchmarked vs buy-and-hold\"I think I'm up\"\n\nScore /8. Below 5 = fix fundamentals before any new positions."
      },
      {
        "title": "Phase 1: Investment Thesis Development",
        "body": "Every position starts with a thesis. No thesis = no trade."
      },
      {
        "title": "Thesis Brief Template",
        "body": "thesis:\n  ticker: \"AAPL\"\n  asset_class: \"equity\"  # equity | crypto | etf | bond | commodity | real_estate\n  date: \"2026-02-22\"\n  \n  # THE EDGE — why does this opportunity exist?\n  edge:\n    type: \"mispricing\"  # mispricing | catalyst | trend | mean_reversion | structural\n    description: \"Market pricing in worst-case regulation; actual impact is 5-10% revenue, not 30%\"\n    why_others_miss_it: \"Headline risk scaring generalists; specialists still buying\"\n    \n  # THESIS STATEMENT (one sentence)\n  thesis_statement: \"AAPL is undervalued by 20% due to regulatory FUD; earnings growth will re-rate within 2 quarters\"\n  \n  # TIMEFRAME\n  timeframe:\n    horizon: \"3-6 months\"\n    catalyst_date: \"2026-04-15\"  # earnings, FDA, macro event\n    catalyst_type: \"earnings_beat\"\n    \n  # BULL / BASE / BEAR\n  scenarios:\n    bull:\n      probability: 30\n      target_price: 245\n      thesis: \"Regulation light + Services acceleration\"\n    base:\n      probability: 50\n      target_price: 215\n      thesis: \"Regulation moderate, priced in by Q3\"\n    bear:\n      probability: 20\n      target_price: 165\n      thesis: \"Full regulatory impact + macro downturn\"\n      \n  # EXPECTED VALUE\n  # EV = (P_bull × R_bull) + (P_base × R_base) + (P_bear × R_bear)\n  current_price: 190\n  expected_value: 213.5  # (0.3×245 + 0.5×215 + 0.2×165)\n  ev_vs_current: \"+12.4%\"\n  \n  # INVALIDATION — when you're WRONG\n  invalidation:\n    price_stop: 175  # -7.9% from entry\n    thesis_stop: \"Revenue decline >10% YoY in any segment\"\n    time_stop: \"No catalyst by 2026-07-01\"\n    \n  # CONVICTION (1-5)\n  conviction: 4\n  conviction_factors:\n    - \"3 independent data sources confirm undervaluation\"\n    - \"Insider buying last 90 days\"\n    - \"Valuation below 5Y average on EV/EBITDA\""
      },
      {
        "title": "Edge Type Framework",
        "body": "Edge TypeDescriptionValidation MethodDecay RateMispricingMarket wrong on fundamentalsComp analysis + modelSlow (months)CatalystKnown upcoming eventCalendar + probabilityFast (event-driven)TrendMomentum / technicalPrice action + volumeMedium (weeks)Mean ReversionExtreme deviation from normZ-score + historyMediumStructuralMarket structure creates opportunityFlow analysisSlow"
      },
      {
        "title": "Thesis Quality Checklist",
        "body": "Edge clearly articulated (not just \"it's cheap\")\n Bull/base/bear with probabilities summing to 100%\n Expected value positive vs current price\n At least 2 independent data sources\n Invalidation criteria defined (price + thesis + time)\n Timeframe realistic for the edge type\n Not just consensus view repackaged\n Considered \"what if I'm wrong?\""
      },
      {
        "title": "Equity Analysis Framework",
        "body": "Valuation Metrics (collect all, weight by sector)\n\nvaluation:\n  # Price Multiples\n  pe_ratio: null          # Price / Earnings (TTM)\n  forward_pe: null        # Price / Forward Earnings\n  peg_ratio: null         # PE / Earnings Growth Rate\n  ps_ratio: null          # Price / Sales\n  pb_ratio: null          # Price / Book\n  ev_ebitda: null         # Enterprise Value / EBITDA\n  ev_revenue: null        # Enterprise Value / Revenue\n  fcf_yield: null         # Free Cash Flow / Market Cap\n  \n  # Compare to:\n  sector_median: null\n  historical_5y_avg: null\n  historical_range: [null, null]  # [low, high]\n  \n  # Verdict\n  valuation_score: null   # 1-10 (1=very expensive, 10=very cheap)\n  relative_to_sector: null  # premium | inline | discount\n\nFinancial Health Scorecard\n\nDimensionMetricHealthyWarningDangerProfitabilityGross Margin>50%30-50%<30%ProfitabilityNet Margin>15%5-15%<5%ProfitabilityROE>15%8-15%<8%ProfitabilityROIC>12%6-12%<6%GrowthRevenue YoY>15%5-15%<5%GrowthEPS YoY>10%0-10%DecliningGrowthFCF Growth>10%0-10%DecliningLeverageDebt/Equity<0.50.5-1.5>1.5LeverageInterest Coverage>8x3-8x<3xLeverageNet Debt/EBITDA<2x2-4x>4xLiquidityCurrent Ratio>1.51-1.5<1LiquidityQuick Ratio>1.00.5-1<0.5EfficiencyAsset Turnover>0.80.4-0.8<0.4EfficiencyInventory Days<6060-120>120QualityFCF/Net Income>80%50-80%<50%QualityAccruals Ratio<5%5-10%>10%\n\nScore each dimension 1-3. Total /48. Above 36 = strong. Below 24 = avoid.\n\nMoat Assessment (0-25 points)\n\nMoat SourceScore 0-5Evidence RequiredNetwork EffectsUsers increase value for other usersSwitching CostsPainful to leave (data lock-in, integrations)Cost AdvantagesStructural cost below competitorsIntangible AssetsBrand, patents, regulatory licensesEfficient ScaleMarket only supports limited competitors\n\nScore /25. Above 15 = wide moat. 8-15 = narrow. Below 8 = no moat."
      },
      {
        "title": "Crypto Analysis Framework",
        "body": "crypto_analysis:\n  # Network Fundamentals\n  network:\n    daily_active_addresses: null\n    transaction_volume_24h: null\n    hash_rate_trend: null        # BTC/PoW\n    staking_ratio: null          # PoS chains\n    developer_activity: null     # GitHub commits 90d\n    tvl: null                    # DeFi protocols\n    tvl_trend_30d: null\n    \n  # Tokenomics\n  tokenomics:\n    supply_schedule: null        # inflationary | deflationary | fixed\n    circulating_vs_total: null   # % circulating\n    unlock_schedule: null        # upcoming unlocks\n    concentration: null          # top 10 holders %\n    \n  # On-Chain Signals\n  on_chain:\n    exchange_reserves_trend: null  # decreasing = bullish\n    whale_accumulation: null       # large wallet changes\n    realized_profit_loss: null     # NUPL\n    mvrv_ratio: null               # Market Value / Realized Value\n    \n  # Market Structure\n  market:\n    funding_rate: null           # perpetuals funding\n    open_interest_trend: null\n    spot_vs_derivatives_volume: null\n    correlation_to_btc: null\n    correlation_to_sp500: null"
      },
      {
        "title": "Crypto Valuation Methods",
        "body": "MethodBest ForFormulaStock-to-FlowBTCPrice = 0.4 × S2F^3 (check vs actual)NVT RatioL1 chainsNetwork Value / Daily Transaction ValueTVL RatioDeFiMarket Cap / TVL (below 1 = undervalued)Fee Revenue MultipleRevenue-generatingMC / Annualized FeesMetcalfe's LawNetwork tokensValue ∝ n² (active addresses)"
      },
      {
        "title": "Price Action Framework",
        "body": "technical_analysis:\n  ticker: \"BTC-USD\"\n  timeframe: \"daily\"\n  date: \"2026-02-22\"\n  \n  # TREND\n  trend:\n    primary: \"uptrend\"    # uptrend | downtrend | range\n    higher_highs: true\n    higher_lows: true\n    above_200ma: true\n    above_50ma: true\n    ma_alignment: \"bullish\"  # 20 > 50 > 200 = bullish\n    \n  # KEY LEVELS\n  levels:\n    resistance: [105000, 110000, 120000]\n    support: [95000, 88000, 80000]\n    current_price: 98500\n    distance_to_resistance: \"+6.6%\"\n    distance_to_support: \"-3.6%\"\n    \n  # MOMENTUM\n  momentum:\n    rsi_14: 58           # <30 oversold, >70 overbought\n    rsi_divergence: null # bullish_div | bearish_div | none\n    macd_signal: \"bullish\"  # bullish | bearish | neutral\n    macd_histogram_trend: \"increasing\"\n    \n  # VOLUME\n  volume:\n    vs_20d_avg: \"+15%\"\n    trend: \"increasing_on_up_days\"  # confirms trend\n    \n  # PATTERN\n  pattern:\n    current: \"ascending_triangle\"\n    reliability: \"high\"\n    target: 112000\n    invalidation: 93000"
      },
      {
        "title": "Signal Scoring Matrix",
        "body": "FactorBullish (+)Neutral (0)Bearish (-)Trend (weight 3x)Above 200MA, higher highsRangingBelow 200MA, lower lowsMomentum (weight 2x)RSI 40-60 rising, MACD bull crossRSI 45-55 flatRSI >75 or bearish divVolume (weight 2x)Rising on up movesAverageRising on down movesSupport/Resistance (weight 1x)Near strong supportMid-rangeNear strong resistancePattern (weight 1x)Bullish continuationNo patternBearish reversal\n\nScore -9 to +9. Above +5 = strong buy signal. Below -5 = strong sell signal."
      },
      {
        "title": "Position Sizing Rules (MANDATORY)",
        "body": "risk_rules:\n  # Per-Trade Risk\n  max_risk_per_trade: 2%       # of total equity\n  max_risk_aggressive: 3%      # only with 5/5 conviction\n  \n  # Portfolio Heat\n  max_portfolio_heat: 15%      # total risk across all positions\n  max_correlated_exposure: 25% # in correlated assets\n  max_single_position: 10%     # of total equity\n  \n  # Position Size Formula\n  # Position Size = (Account × Risk%) / (Entry - Stop Loss)\n  # Example: ($100K × 2%) / ($190 - $175) = $2,000 / $15 = 133 shares\n  \n  # Kelly Criterion (optional, aggressive)\n  # f* = (bp - q) / b\n  # b = win/loss ratio, p = win probability, q = 1-p\n  # ALWAYS use Half-Kelly or Quarter-Kelly (full Kelly = too aggressive)"
      },
      {
        "title": "Position Size Calculator",
        "body": "Account Equity:     $___________\nRisk Per Trade:     ___% (max 2%)\nDollar Risk:        $___________  (equity × risk%)\nEntry Price:        $___________\nStop Loss Price:    $___________\nRisk Per Share:     $___________  (entry - stop)\nPosition Size:      ___________ shares (dollar risk / risk per share)\nPosition Value:     $___________  (shares × entry)\nPortfolio Weight:   ___%          (position value / equity)\n\nCHECK: Portfolio weight < 10%?  ☐ Yes ☐ No (reduce if no)\nCHECK: Portfolio heat < 15%?    ☐ Yes ☐ No (reduce if no)\nCHECK: Correlated exposure ok?  ☐ Yes ☐ No (reduce if no)"
      },
      {
        "title": "Stop-Loss Decision Tree",
        "body": "Is this a TREND trade?\n├── YES → Trailing stop below swing low (ATR-based: 2× ATR)\n│         Initial stop: Below last higher low\n│         Trail: Move stop to below each new higher low\n│\n└── NO → Is this a CATALYST trade?\n    ├── YES → Time-based + price stop\n    │         Price: Below pre-catalyst support\n    │         Time: Close if no move within 2 days post-catalyst\n    │\n    └── Is this a VALUE trade?\n        ├── YES → Thesis invalidation stop\n        │         Price: Below bear case scenario price\n        │         Thesis: Close if fundamental thesis breaks\n        │         Time: Close if no re-rating in stated timeframe\n        │\n        └── MEAN REVERSION → Tight stop\n            Price: If moves further from mean (wider Z-score)\n            Target: Mean / fair value level"
      },
      {
        "title": "Risk Management Hard Rules",
        "body": "Never average down without a plan — Adding to losers kills accounts. Only add if: thesis intact AND price at predetermined add level AND total position still within limits\nCut losses fast, let winners run — Asymmetric payoff is the goal. 1:3 risk/reward minimum\nNo revenge trading — After a loss, wait 24 hours before next trade\nDaily loss limit — Stop trading for the day after -3% account drawdown\nWeekly loss limit — Reduce position sizes by 50% after -5% weekly drawdown\nMonthly loss limit — Go to cash if -10% monthly drawdown. Review all positions.\nCorrelation check — Before every new position, check correlation to existing holdings\nBlack swan rule — If any asset moves >15% in 24h, review ALL positions immediately"
      },
      {
        "title": "Asset Allocation Framework",
        "body": "portfolio:\n  name: \"Growth + Income\"\n  target_allocation:\n    # Core (60-70% — low turnover)\n    core:\n      us_large_cap: 25%      # S&P 500 / quality growth\n      international: 10%      # Developed markets\n      fixed_income: 15%       # Bonds / treasuries\n      bitcoin: 10%            # Digital gold thesis\n      real_estate: 5%         # REITs\n      \n    # Satellite (20-30% — active management)\n    satellite:\n      growth_stocks: 15%      # Individual stock picks\n      crypto_alts: 5%         # L1s, DeFi\n      thematic: 5%            # AI, clean energy, etc.\n      \n    # Cash (5-15%)\n    cash: 10%                 # Dry powder for opportunities\n    \n  # Rebalance Rules\n  rebalance:\n    method: \"threshold\"       # calendar | threshold | hybrid\n    threshold: 5%             # Rebalance when drift >5% from target\n    calendar_check: \"monthly\" # Review allocations monthly\n    tax_aware: true           # Use new contributions to rebalance first"
      },
      {
        "title": "Portfolio Models by Risk Profile",
        "body": "ProfileStocksBondsCryptoAltsCashExpected ReturnMax DrawdownConservative30%40%5%10%15%6-8%-15%Balanced50%20%10%10%10%8-12%-25%Growth60%10%15%10%5%12-18%-35%Aggressive50%0%30%15%5%15-25%-50%Degen20%0%50%25%5%20-40%+-70%+"
      },
      {
        "title": "Correlation Matrix Template",
        "body": "Track correlations between holdings. Target: no two positions with >0.7 correlation exceeding 20% combined weight.\n\nSPY    BTC    ETH    AAPL   MSFT   GLD    TLT\nSPY      1.00\nBTC      0.35   1.00\nETH      0.30   0.85   1.00\nAAPL     0.82   0.25   0.20   1.00\nMSFT     0.85   0.28   0.22   0.78   1.00\nGLD     -0.10  -0.05  -0.08  -0.12  -0.10   1.00\nTLT     -0.35  -0.15  -0.12  -0.30  -0.32   0.40   1.00"
      },
      {
        "title": "Trade Journal Template",
        "body": "trade:\n  id: \"T-2026-042\"\n  date_opened: \"2026-02-22\"\n  date_closed: null\n  \n  # WHAT\n  ticker: \"BTC-USD\"\n  direction: \"long\"\n  asset_class: \"crypto\"\n  \n  # SIZING\n  entry_price: 98500\n  position_size: 0.15  # BTC\n  position_value: 14775\n  portfolio_weight: \"8.2%\"\n  \n  # RISK\n  stop_loss: 93000\n  risk_amount: 825   # (98500-93000) × 0.15\n  risk_percent: \"0.82%\"  # of portfolio\n  \n  # TARGETS\n  target_1: 105000   # 50% of position\n  target_2: 115000   # 30% of position\n  target_3: 130000   # 20% of position (runner)\n  risk_reward: \"1:3.8\"  # avg target vs risk\n  \n  # THESIS\n  thesis: \"BTC consolidating above 200MA, halving supply reduction, ETF inflows accelerating\"\n  edge_type: \"trend + structural\"\n  conviction: 4\n  \n  # EXECUTION\n  entry_type: \"limit\"  # market | limit | scaled\n  scale_plan: null     # or: [{\"price\": 97000, \"size\": \"50%\"}, {\"price\": 95000, \"size\": \"50%\"}]\n  \n  # RESULT (fill on close)\n  exit_price: null\n  exit_reason: null    # target_hit | stop_hit | thesis_invalidated | time_stop | manual\n  pnl_dollar: null\n  pnl_percent: null\n  r_multiple: null     # PnL / initial risk\n  \n  # REVIEW\n  followed_plan: null  # yes | partially | no\n  lessons: null\n  mistakes: null\n  grade: null          # A-F"
      },
      {
        "title": "Execution Checklist (Before EVERY Trade)",
        "body": "Thesis documented with edge, invalidation, timeframe\n Position size calculated (≤2% risk, ≤10% portfolio weight)\n Stop-loss set (price + thesis + time)\n At least 2 take-profit targets defined\n Risk/reward ≥1:2 (preferably 1:3+)\n Portfolio heat check (total risk <15%)\n Correlation check (not adding to concentrated exposure)\n No emotional driver (revenge, FOMO, boredom)\n Checked economic calendar (no surprise events imminent)\n Entry type decided (market/limit/scaled)"
      },
      {
        "title": "Order Types Decision",
        "body": "SituationOrder TypeWhyStrong conviction, want in nowMarketSpeed over priceGood setup, not urgentLimit at supportBetter entryHigh-conviction, want scale inScaled limits (3 levels)Average entry, reduce timing riskBreakout tradeStop-limit above resistanceOnly enter if breakout confirmsCatalyst tradeLimit pre-catalystPosition before event"
      },
      {
        "title": "Daily Dashboard",
        "body": "daily_dashboard:\n  date: \"2026-02-22\"\n  \n  # PORTFOLIO SNAPSHOT\n  portfolio:\n    total_equity: null\n    daily_pnl: null\n    daily_pnl_percent: null\n    weekly_pnl: null\n    monthly_pnl: null\n    ytd_pnl: null\n    \n  # POSITIONS\n  open_positions: 0\n  portfolio_heat: \"0%\"  # sum of all position risks\n  cash_percent: \"100%\"\n  \n  # BENCHMARK\n  benchmark:\n    sp500_ytd: null\n    btc_ytd: null\n    portfolio_vs_sp500: null\n    portfolio_vs_btc: null\n    \n  # ACTIVITY\n  trades_today: 0\n  alerts_triggered: []"
      },
      {
        "title": "Performance Metrics (Track Weekly)",
        "body": "MetricFormulaTargetWin RateWinning trades / Total trades>50%Average RAverage R-multiple of all trades>1.5RProfit FactorGross profit / Gross loss>2.0Expectancy(Win% × Avg Win) - (Loss% × Avg Loss)PositiveMax DrawdownPeak to trough decline<-15%Sharpe Ratio(Return - RFR) / Std Dev>1.5Sortino Ratio(Return - RFR) / Downside Dev>2.0Calmar RatioAnnual Return / Max Drawdown>1.0Recovery FactorNet Profit / Max Drawdown>3.0"
      },
      {
        "title": "Monthly Review Template",
        "body": "monthly_review:\n  month: \"2026-02\"\n  \n  # PERFORMANCE\n  portfolio_return: null\n  benchmark_return: null  # vs S&P 500\n  alpha: null             # portfolio - benchmark\n  \n  # TRADING STATS\n  total_trades: 0\n  winning_trades: 0\n  losing_trades: 0\n  win_rate: null\n  average_winner: null\n  average_loser: null\n  largest_winner: null\n  largest_loser: null\n  profit_factor: null\n  \n  # RISK STATS\n  max_drawdown: null\n  avg_portfolio_heat: null\n  risk_rule_violations: 0\n  \n  # BEHAVIOR ANALYSIS\n  followed_plan_rate: null    # % of trades that followed the plan\n  emotional_trades: 0          # trades driven by FOMO/revenge/boredom\n  early_exits: 0               # cut winners short\n  late_exits: 0                # held losers too long\n  \n  # TOP 3 LESSONS\n  lessons:\n    - null\n    - null\n    - null\n    \n  # ADJUSTMENTS FOR NEXT MONTH\n  adjustments:\n    - null"
      },
      {
        "title": "Regime Framework",
        "body": "RegimeCharacteristicsStrategyPosition SizeBull TrendRising 200MA, breadth >60%, VIX <20Trend following, buy dipsFull sizeBear TrendFalling 200MA, breadth <40%, VIX >30Short / inverse, raise cashHalf sizeRange/ChopFlat 200MA, breadth 40-60%Mean reversion, sell premiumQuarter sizeHigh VolVIX >35, large daily swingsReduce exposure, hedgeMinimum sizeEuphoriaVIX <12, extreme bullish sentimentTake profits, hedgeScale downPanicVIX >50, capitulation signalsAccumulate qualityScale in slowly"
      },
      {
        "title": "Macro Checklist (Weekly)",
        "body": "Fed funds rate / next meeting: ___\n US 10Y yield trend: ___\n Dollar (DXY) trend: ___\n VIX level: ___\n Credit spreads: ___ (tightening/widening)\n Yield curve: ___ (inverted/flat/steep)\n Leading indicators: ___ (improving/declining)\n Global liquidity trend: ___ (expanding/contracting)\n Sector rotation: ___ (risk-on/risk-off)\n Crypto market cap trend: ___"
      },
      {
        "title": "Sentiment Indicators",
        "body": "IndicatorExtreme Fear (Buy)NeutralExtreme Greed (Sell)CNN Fear & Greed<2040-60>80AAII Bull-Bear>-30% spread±10%>+30% spreadPut/Call Ratio>1.20.7-0.9<0.5VIX Term StructureBackwardationFlatSteep contangoCrypto Fear & Greed<1540-60>85BTC Funding RatesDeeply negativeNeutral>0.05%"
      },
      {
        "title": "Dividend Quality Score (0-100)",
        "body": "FactorWeightScoringYield vs Sector15At/above median = 15, below = proportionalPayout Ratio20<50% = 20, 50-75% = 15, 75-100% = 5, >100% = 0Growth Rate (5Y CAGR)20>10% = 20, 5-10% = 15, 0-5% = 10, declining = 0Consecutive Years15>25y = 15 (Aristocrat), 10-25 = 10, 5-10 = 5, <5 = 0FCF Coverage15FCF/Div >1.5 = 15, 1-1.5 = 10, <1 = 0Debt/EBITDA15<2 = 15, 2-4 = 10, >4 = 5\n\nScore /100. Above 75 = excellent income pick. Below 40 = dividend at risk."
      },
      {
        "title": "Income Portfolio Construction",
        "body": "Core income (60%): Dividend Aristocrats, quality REITs, investment-grade bonds\nGrowth income (25%): Dividend growers (low yield, high growth rate)\nHigh yield (15%): Higher risk, higher yield (junk bonds, BDCs, covered calls)\nYield target: 4-6% blended, growing 5-8% annually"
      },
      {
        "title": "Tax-Loss Harvesting Rules",
        "body": "When: Position down >10% from cost basis AND held <12 months\nHow: Sell the position, immediately buy a correlated (not substantially identical) replacement\nWash sale rule: Cannot buy back the same security within 30 days (before or after)\nReplacement examples: SPY→VOO, AAPL→QQQ, BTC spot→BTC futures ETF\nTrack: Cumulative harvested losses, offset against gains + $3K income deduction"
      },
      {
        "title": "Holding Period Optimization",
        "body": "Holding PeriodTax Rate (US)Strategy<1 yearOrdinary income (up to 37%)Only for high-conviction short-term trades>1 yearLong-term CG (0/15/20%)Default for all positions when possible>5 years (QOZ)Reduced + deferredQualified Opportunity Zone investments"
      },
      {
        "title": "Tax-Efficient Account Allocation",
        "body": "Account TypeBest ForWhyTaxableLong-term holds, tax-loss harvestingCapital gains treatmentTraditional IRA/401kBonds, REITs, high-dividendDefer high-tax incomeRoth IRAHighest growth potentialTax-free growthHSAAggressive growthTriple tax advantage"
      },
      {
        "title": "Stock Screener Criteria Templates",
        "body": "Value Screen:\n\nP/E < sector median\nP/B < 1.5\nDebt/Equity < 0.5\nROE > 12%\nFCF positive 5 consecutive years\nInsider buying last 90 days\n\nGrowth Screen:\n\nRevenue growth > 20% YoY\nEPS growth > 15% YoY\nGross margin > 50%\nNet retention > 110% (SaaS)\nTAM > $10B\n\nDividend Screen:\n\nDividend yield > 3%\nPayout ratio < 60%\nDividend growth > 5% CAGR (5Y)\nConsecutive increases > 10 years\nDebt/EBITDA < 3\n\nCrypto Screen:\n\nMarket cap > $1B (avoid micro-caps)\nDaily volume > $50M\nActive development (GitHub commits)\nNot >90% held by top 10 wallets\nClear revenue model or adoption metrics"
      },
      {
        "title": "Research Sources (No API Required)",
        "body": "SourceURLBest ForYahoo Financefinance.yahoo.comFundamentals, quotesFinvizfinviz.comScreening, heatmapsMacrotrendsmacrotrends.netHistorical financialsCoinGeckocoingecko.comCrypto dataDeFiLlamadefillama.comDeFi TVL, yieldsFREDfred.stlouisfed.orgMacro dataTradingViewtradingview.comCharts, technicalsSEC EDGARsec.gov/edgarFilings, insider tradesGlassnodeglassnode.comOn-chain dataFear & Greedalternative.meCrypto sentiment"
      },
      {
        "title": "Options Basics (for hedging)",
        "body": "StrategyWhenRiskRewardProtective PutOwn stock, want downside protectionPremium paidUnlimited upside, limited downsideCovered CallOwn stock, willing to cap upsideCapped gainsPremium incomeCash-Secured PutWant to buy at lower priceMust buy at strikePremium + lower entryCollarWant protection, willing to cap upsideCapped both waysLow/no cost protection"
      },
      {
        "title": "DCA (Dollar Cost Averaging) Framework",
        "body": "dca_plan:\n  asset: \"BTC\"\n  frequency: \"weekly\"           # daily | weekly | biweekly | monthly\n  amount: 250                   # per purchase\n  day: \"Monday\"                 # specific day\n  duration: \"indefinite\"        # or end date\n  \n  # SMART DCA (optional — buy more when cheap)\n  smart_dca:\n    enabled: true\n    base_amount: 250\n    multiplier_rules:\n      - condition: \"price < 200MA\"\n        multiplier: 1.5          # buy 50% more\n      - condition: \"RSI < 30\"\n        multiplier: 2.0          # double buy\n      - condition: \"price > 200MA × 1.5\"\n        multiplier: 0.5          # buy less in euphoria"
      },
      {
        "title": "Rebalancing Decision Tree",
        "body": "Is any allocation >5% from target?\n├── NO → No action needed. Check again next month.\n│\n└── YES → Is it a tax-advantaged account?\n    ├── YES → Rebalance by selling overweight, buying underweight\n    │\n    └── NO (taxable) → Can you rebalance with new contributions?\n        ├── YES → Direct new money to underweight positions\n        │\n        └── NO → Are there tax losses to harvest?\n            ├── YES → Sell losers (harvest), redirect to underweight\n            │\n            └── NO → Is the drift >10%?\n                ├── YES → Rebalance (accept tax hit for risk control)\n                └── NO → Wait for next contribution or year-end"
      },
      {
        "title": "10 Cognitive Biases That Kill Returns",
        "body": "BiasTrapDefenseLoss AversionHolding losers, cutting winnersPre-set stops, mechanical exitsConfirmation BiasOnly seeing data that supports thesisActively seek disconfirming evidenceRecency BiasExtrapolating recent performanceLook at full cycle data (10+ years)AnchoringFixating on purchase priceFocus on current value vs alternativesFOMOChasing after 50%+ moveStick to your screener, your edgeOverconfidenceToo large positions after winsFixed position sizing rulesDisposition EffectSelling winners too earlyTrailing stops, let runners runHerdingBuying because everyone isContrarian checkpointsSunk Cost\"I've held this long, can't sell now\"Would you buy this TODAY at this price?Hindsight\"I knew it all along\"Review trade journal honestly"
      },
      {
        "title": "Trading Psychology Checklist (Daily)",
        "body": "Am I calm? (no anger, fear, or euphoria)\n Am I following my system? (not improvising)\n Am I within risk limits? (checked portfolio heat)\n Am I trading my plan? (not reacting to noise)\n Have I done my analysis? (not trading on tips)"
      },
      {
        "title": "Quality Scoring (0-100)",
        "body": "DimensionWeightCriteriaThesis Quality20Clear edge, documented invalidation, realistic timeframeRisk Management25Position sizing, stops, portfolio heat, correlationAnalysis Depth15Fundamental + technical + macro consideredExecution15Entry/exit discipline, order type selection, patienceRecord Keeping10Trade journal, performance metrics, monthly reviewsPsychology10Emotional control, bias awareness, plan adherenceTax Efficiency5Harvesting, account allocation, holding periods\n\nScore /100. Above 80 = professional-grade process. Below 50 = gambling."
      },
      {
        "title": "Natural Language Commands",
        "body": "CommandAction\"Analyze [ticker]\"Full fundamental + technical analysis\"Compare [ticker1] vs [ticker2]\"Side-by-side comparison\"Build thesis for [ticker]\"Generate thesis brief template\"Size position for [ticker] at [price]\"Calculate position size with risk\"Portfolio health check\"Score current portfolio /8\"Monthly review\"Generate performance review template\"Screen for [value/growth/dividend/crypto]\"Apply screening criteria\"What's the market regime?\"Assess current macro environment\"Tax harvest opportunities\"Identify positions for loss harvesting\"DCA plan for [asset]\"Generate dollar cost averaging plan\"Dividend score for [ticker]\"Run dividend quality analysis\"Risk report\"Portfolio heat, correlations, exposure summary\n\nBuilt by AfrexAI — turning market noise into signal. 🖤💛"
      }
    ],
    "body": "Investment Analysis & Portfolio Management Engine\n\nComplete investment analysis, portfolio construction, risk management, and trade execution methodology. Works across stocks, crypto, ETFs, bonds, and alternatives. Zero dependencies — pure agent skill.\n\nQuick Health Check (/8)\n\nBefore any investment activity, score your current state:\n\nSignal\t✅ Healthy\t❌ Fix First\nInvestment thesis documented\tWritten with edge + invalidation\t\"I think it'll go up\"\nPosition sizing calculated\tKelly/fixed-fractional with max cap\t\"I'll put in $5K\"\nStop-loss defined\tPrice or thesis invalidation trigger\tNo exit plan\nPortfolio heat tracked\tTotal exposure known, <15%\tUnknown aggregate risk\nAsset correlation checked\tNo >40% correlated concentration\tAll tech / all crypto\nRebalance schedule set\tMonthly or threshold-based\tNever rebalanced\nTax impact considered\tHarvesting losses, holding periods\tTax-blind trading\nPerformance tracked\tBenchmarked vs buy-and-hold\t\"I think I'm up\"\n\nScore /8. Below 5 = fix fundamentals before any new positions.\n\nPhase 1: Investment Thesis Development\n\nEvery position starts with a thesis. No thesis = no trade.\n\nThesis Brief Template\nthesis:\n  ticker: \"AAPL\"\n  asset_class: \"equity\"  # equity | crypto | etf | bond | commodity | real_estate\n  date: \"2026-02-22\"\n  \n  # THE EDGE — why does this opportunity exist?\n  edge:\n    type: \"mispricing\"  # mispricing | catalyst | trend | mean_reversion | structural\n    description: \"Market pricing in worst-case regulation; actual impact is 5-10% revenue, not 30%\"\n    why_others_miss_it: \"Headline risk scaring generalists; specialists still buying\"\n    \n  # THESIS STATEMENT (one sentence)\n  thesis_statement: \"AAPL is undervalued by 20% due to regulatory FUD; earnings growth will re-rate within 2 quarters\"\n  \n  # TIMEFRAME\n  timeframe:\n    horizon: \"3-6 months\"\n    catalyst_date: \"2026-04-15\"  # earnings, FDA, macro event\n    catalyst_type: \"earnings_beat\"\n    \n  # BULL / BASE / BEAR\n  scenarios:\n    bull:\n      probability: 30\n      target_price: 245\n      thesis: \"Regulation light + Services acceleration\"\n    base:\n      probability: 50\n      target_price: 215\n      thesis: \"Regulation moderate, priced in by Q3\"\n    bear:\n      probability: 20\n      target_price: 165\n      thesis: \"Full regulatory impact + macro downturn\"\n      \n  # EXPECTED VALUE\n  # EV = (P_bull × R_bull) + (P_base × R_base) + (P_bear × R_bear)\n  current_price: 190\n  expected_value: 213.5  # (0.3×245 + 0.5×215 + 0.2×165)\n  ev_vs_current: \"+12.4%\"\n  \n  # INVALIDATION — when you're WRONG\n  invalidation:\n    price_stop: 175  # -7.9% from entry\n    thesis_stop: \"Revenue decline >10% YoY in any segment\"\n    time_stop: \"No catalyst by 2026-07-01\"\n    \n  # CONVICTION (1-5)\n  conviction: 4\n  conviction_factors:\n    - \"3 independent data sources confirm undervaluation\"\n    - \"Insider buying last 90 days\"\n    - \"Valuation below 5Y average on EV/EBITDA\"\n\nEdge Type Framework\nEdge Type\tDescription\tValidation Method\tDecay Rate\nMispricing\tMarket wrong on fundamentals\tComp analysis + model\tSlow (months)\nCatalyst\tKnown upcoming event\tCalendar + probability\tFast (event-driven)\nTrend\tMomentum / technical\tPrice action + volume\tMedium (weeks)\nMean Reversion\tExtreme deviation from norm\tZ-score + history\tMedium\nStructural\tMarket structure creates opportunity\tFlow analysis\tSlow\nThesis Quality Checklist\n Edge clearly articulated (not just \"it's cheap\")\n Bull/base/bear with probabilities summing to 100%\n Expected value positive vs current price\n At least 2 independent data sources\n Invalidation criteria defined (price + thesis + time)\n Timeframe realistic for the edge type\n Not just consensus view repackaged\n Considered \"what if I'm wrong?\"\nPhase 2: Fundamental Analysis\nEquity Analysis Framework\nValuation Metrics (collect all, weight by sector)\nvaluation:\n  # Price Multiples\n  pe_ratio: null          # Price / Earnings (TTM)\n  forward_pe: null        # Price / Forward Earnings\n  peg_ratio: null         # PE / Earnings Growth Rate\n  ps_ratio: null          # Price / Sales\n  pb_ratio: null          # Price / Book\n  ev_ebitda: null         # Enterprise Value / EBITDA\n  ev_revenue: null        # Enterprise Value / Revenue\n  fcf_yield: null         # Free Cash Flow / Market Cap\n  \n  # Compare to:\n  sector_median: null\n  historical_5y_avg: null\n  historical_range: [null, null]  # [low, high]\n  \n  # Verdict\n  valuation_score: null   # 1-10 (1=very expensive, 10=very cheap)\n  relative_to_sector: null  # premium | inline | discount\n\nFinancial Health Scorecard\nDimension\tMetric\tHealthy\tWarning\tDanger\nProfitability\tGross Margin\t>50%\t30-50%\t<30%\nProfitability\tNet Margin\t>15%\t5-15%\t<5%\nProfitability\tROE\t>15%\t8-15%\t<8%\nProfitability\tROIC\t>12%\t6-12%\t<6%\nGrowth\tRevenue YoY\t>15%\t5-15%\t<5%\nGrowth\tEPS YoY\t>10%\t0-10%\tDeclining\nGrowth\tFCF Growth\t>10%\t0-10%\tDeclining\nLeverage\tDebt/Equity\t<0.5\t0.5-1.5\t>1.5\nLeverage\tInterest Coverage\t>8x\t3-8x\t<3x\nLeverage\tNet Debt/EBITDA\t<2x\t2-4x\t>4x\nLiquidity\tCurrent Ratio\t>1.5\t1-1.5\t<1\nLiquidity\tQuick Ratio\t>1.0\t0.5-1\t<0.5\nEfficiency\tAsset Turnover\t>0.8\t0.4-0.8\t<0.4\nEfficiency\tInventory Days\t<60\t60-120\t>120\nQuality\tFCF/Net Income\t>80%\t50-80%\t<50%\nQuality\tAccruals Ratio\t<5%\t5-10%\t>10%\n\nScore each dimension 1-3. Total /48. Above 36 = strong. Below 24 = avoid.\n\nMoat Assessment (0-25 points)\nMoat Source\tScore 0-5\tEvidence Required\nNetwork Effects\t\tUsers increase value for other users\nSwitching Costs\t\tPainful to leave (data lock-in, integrations)\nCost Advantages\t\tStructural cost below competitors\nIntangible Assets\t\tBrand, patents, regulatory licenses\nEfficient Scale\t\tMarket only supports limited competitors\n\nScore /25. Above 15 = wide moat. 8-15 = narrow. Below 8 = no moat.\n\nCrypto Analysis Framework\ncrypto_analysis:\n  # Network Fundamentals\n  network:\n    daily_active_addresses: null\n    transaction_volume_24h: null\n    hash_rate_trend: null        # BTC/PoW\n    staking_ratio: null          # PoS chains\n    developer_activity: null     # GitHub commits 90d\n    tvl: null                    # DeFi protocols\n    tvl_trend_30d: null\n    \n  # Tokenomics\n  tokenomics:\n    supply_schedule: null        # inflationary | deflationary | fixed\n    circulating_vs_total: null   # % circulating\n    unlock_schedule: null        # upcoming unlocks\n    concentration: null          # top 10 holders %\n    \n  # On-Chain Signals\n  on_chain:\n    exchange_reserves_trend: null  # decreasing = bullish\n    whale_accumulation: null       # large wallet changes\n    realized_profit_loss: null     # NUPL\n    mvrv_ratio: null               # Market Value / Realized Value\n    \n  # Market Structure\n  market:\n    funding_rate: null           # perpetuals funding\n    open_interest_trend: null\n    spot_vs_derivatives_volume: null\n    correlation_to_btc: null\n    correlation_to_sp500: null\n\nCrypto Valuation Methods\nMethod\tBest For\tFormula\nStock-to-Flow\tBTC\tPrice = 0.4 × S2F^3 (check vs actual)\nNVT Ratio\tL1 chains\tNetwork Value / Daily Transaction Value\nTVL Ratio\tDeFi\tMarket Cap / TVL (below 1 = undervalued)\nFee Revenue Multiple\tRevenue-generating\tMC / Annualized Fees\nMetcalfe's Law\tNetwork tokens\tValue ∝ n² (active addresses)\nPhase 3: Technical Analysis\nPrice Action Framework\ntechnical_analysis:\n  ticker: \"BTC-USD\"\n  timeframe: \"daily\"\n  date: \"2026-02-22\"\n  \n  # TREND\n  trend:\n    primary: \"uptrend\"    # uptrend | downtrend | range\n    higher_highs: true\n    higher_lows: true\n    above_200ma: true\n    above_50ma: true\n    ma_alignment: \"bullish\"  # 20 > 50 > 200 = bullish\n    \n  # KEY LEVELS\n  levels:\n    resistance: [105000, 110000, 120000]\n    support: [95000, 88000, 80000]\n    current_price: 98500\n    distance_to_resistance: \"+6.6%\"\n    distance_to_support: \"-3.6%\"\n    \n  # MOMENTUM\n  momentum:\n    rsi_14: 58           # <30 oversold, >70 overbought\n    rsi_divergence: null # bullish_div | bearish_div | none\n    macd_signal: \"bullish\"  # bullish | bearish | neutral\n    macd_histogram_trend: \"increasing\"\n    \n  # VOLUME\n  volume:\n    vs_20d_avg: \"+15%\"\n    trend: \"increasing_on_up_days\"  # confirms trend\n    \n  # PATTERN\n  pattern:\n    current: \"ascending_triangle\"\n    reliability: \"high\"\n    target: 112000\n    invalidation: 93000\n\nSignal Scoring Matrix\nFactor\tBullish (+)\tNeutral (0)\tBearish (-)\nTrend (weight 3x)\tAbove 200MA, higher highs\tRanging\tBelow 200MA, lower lows\nMomentum (weight 2x)\tRSI 40-60 rising, MACD bull cross\tRSI 45-55 flat\tRSI >75 or bearish div\nVolume (weight 2x)\tRising on up moves\tAverage\tRising on down moves\nSupport/Resistance (weight 1x)\tNear strong support\tMid-range\tNear strong resistance\nPattern (weight 1x)\tBullish continuation\tNo pattern\tBearish reversal\n\nScore -9 to +9. Above +5 = strong buy signal. Below -5 = strong sell signal.\n\nPhase 4: Position Sizing & Risk Management\nPosition Sizing Rules (MANDATORY)\nrisk_rules:\n  # Per-Trade Risk\n  max_risk_per_trade: 2%       # of total equity\n  max_risk_aggressive: 3%      # only with 5/5 conviction\n  \n  # Portfolio Heat\n  max_portfolio_heat: 15%      # total risk across all positions\n  max_correlated_exposure: 25% # in correlated assets\n  max_single_position: 10%     # of total equity\n  \n  # Position Size Formula\n  # Position Size = (Account × Risk%) / (Entry - Stop Loss)\n  # Example: ($100K × 2%) / ($190 - $175) = $2,000 / $15 = 133 shares\n  \n  # Kelly Criterion (optional, aggressive)\n  # f* = (bp - q) / b\n  # b = win/loss ratio, p = win probability, q = 1-p\n  # ALWAYS use Half-Kelly or Quarter-Kelly (full Kelly = too aggressive)\n\nPosition Size Calculator\nAccount Equity:     $___________\nRisk Per Trade:     ___% (max 2%)\nDollar Risk:        $___________  (equity × risk%)\nEntry Price:        $___________\nStop Loss Price:    $___________\nRisk Per Share:     $___________  (entry - stop)\nPosition Size:      ___________ shares (dollar risk / risk per share)\nPosition Value:     $___________  (shares × entry)\nPortfolio Weight:   ___%          (position value / equity)\n\nCHECK: Portfolio weight < 10%?  ☐ Yes ☐ No (reduce if no)\nCHECK: Portfolio heat < 15%?    ☐ Yes ☐ No (reduce if no)\nCHECK: Correlated exposure ok?  ☐ Yes ☐ No (reduce if no)\n\nStop-Loss Decision Tree\nIs this a TREND trade?\n├── YES → Trailing stop below swing low (ATR-based: 2× ATR)\n│         Initial stop: Below last higher low\n│         Trail: Move stop to below each new higher low\n│\n└── NO → Is this a CATALYST trade?\n    ├── YES → Time-based + price stop\n    │         Price: Below pre-catalyst support\n    │         Time: Close if no move within 2 days post-catalyst\n    │\n    └── Is this a VALUE trade?\n        ├── YES → Thesis invalidation stop\n        │         Price: Below bear case scenario price\n        │         Thesis: Close if fundamental thesis breaks\n        │         Time: Close if no re-rating in stated timeframe\n        │\n        └── MEAN REVERSION → Tight stop\n            Price: If moves further from mean (wider Z-score)\n            Target: Mean / fair value level\n\nRisk Management Hard Rules\nNever average down without a plan — Adding to losers kills accounts. Only add if: thesis intact AND price at predetermined add level AND total position still within limits\nCut losses fast, let winners run — Asymmetric payoff is the goal. 1:3 risk/reward minimum\nNo revenge trading — After a loss, wait 24 hours before next trade\nDaily loss limit — Stop trading for the day after -3% account drawdown\nWeekly loss limit — Reduce position sizes by 50% after -5% weekly drawdown\nMonthly loss limit — Go to cash if -10% monthly drawdown. Review all positions.\nCorrelation check — Before every new position, check correlation to existing holdings\nBlack swan rule — If any asset moves >15% in 24h, review ALL positions immediately\nPhase 5: Portfolio Construction\nAsset Allocation Framework\nportfolio:\n  name: \"Growth + Income\"\n  target_allocation:\n    # Core (60-70% — low turnover)\n    core:\n      us_large_cap: 25%      # S&P 500 / quality growth\n      international: 10%      # Developed markets\n      fixed_income: 15%       # Bonds / treasuries\n      bitcoin: 10%            # Digital gold thesis\n      real_estate: 5%         # REITs\n      \n    # Satellite (20-30% — active management)\n    satellite:\n      growth_stocks: 15%      # Individual stock picks\n      crypto_alts: 5%         # L1s, DeFi\n      thematic: 5%            # AI, clean energy, etc.\n      \n    # Cash (5-15%)\n    cash: 10%                 # Dry powder for opportunities\n    \n  # Rebalance Rules\n  rebalance:\n    method: \"threshold\"       # calendar | threshold | hybrid\n    threshold: 5%             # Rebalance when drift >5% from target\n    calendar_check: \"monthly\" # Review allocations monthly\n    tax_aware: true           # Use new contributions to rebalance first\n\nPortfolio Models by Risk Profile\nProfile\tStocks\tBonds\tCrypto\tAlts\tCash\tExpected Return\tMax Drawdown\nConservative\t30%\t40%\t5%\t10%\t15%\t6-8%\t-15%\nBalanced\t50%\t20%\t10%\t10%\t10%\t8-12%\t-25%\nGrowth\t60%\t10%\t15%\t10%\t5%\t12-18%\t-35%\nAggressive\t50%\t0%\t30%\t15%\t5%\t15-25%\t-50%\nDegen\t20%\t0%\t50%\t25%\t5%\t20-40%+\t-70%+\nCorrelation Matrix Template\n\nTrack correlations between holdings. Target: no two positions with >0.7 correlation exceeding 20% combined weight.\n\n         SPY    BTC    ETH    AAPL   MSFT   GLD    TLT\nSPY      1.00\nBTC      0.35   1.00\nETH      0.30   0.85   1.00\nAAPL     0.82   0.25   0.20   1.00\nMSFT     0.85   0.28   0.22   0.78   1.00\nGLD     -0.10  -0.05  -0.08  -0.12  -0.10   1.00\nTLT     -0.35  -0.15  -0.12  -0.30  -0.32   0.40   1.00\n\nPhase 6: Trade Execution\nTrade Journal Template\ntrade:\n  id: \"T-2026-042\"\n  date_opened: \"2026-02-22\"\n  date_closed: null\n  \n  # WHAT\n  ticker: \"BTC-USD\"\n  direction: \"long\"\n  asset_class: \"crypto\"\n  \n  # SIZING\n  entry_price: 98500\n  position_size: 0.15  # BTC\n  position_value: 14775\n  portfolio_weight: \"8.2%\"\n  \n  # RISK\n  stop_loss: 93000\n  risk_amount: 825   # (98500-93000) × 0.15\n  risk_percent: \"0.82%\"  # of portfolio\n  \n  # TARGETS\n  target_1: 105000   # 50% of position\n  target_2: 115000   # 30% of position\n  target_3: 130000   # 20% of position (runner)\n  risk_reward: \"1:3.8\"  # avg target vs risk\n  \n  # THESIS\n  thesis: \"BTC consolidating above 200MA, halving supply reduction, ETF inflows accelerating\"\n  edge_type: \"trend + structural\"\n  conviction: 4\n  \n  # EXECUTION\n  entry_type: \"limit\"  # market | limit | scaled\n  scale_plan: null     # or: [{\"price\": 97000, \"size\": \"50%\"}, {\"price\": 95000, \"size\": \"50%\"}]\n  \n  # RESULT (fill on close)\n  exit_price: null\n  exit_reason: null    # target_hit | stop_hit | thesis_invalidated | time_stop | manual\n  pnl_dollar: null\n  pnl_percent: null\n  r_multiple: null     # PnL / initial risk\n  \n  # REVIEW\n  followed_plan: null  # yes | partially | no\n  lessons: null\n  mistakes: null\n  grade: null          # A-F\n\nExecution Checklist (Before EVERY Trade)\n Thesis documented with edge, invalidation, timeframe\n Position size calculated (≤2% risk, ≤10% portfolio weight)\n Stop-loss set (price + thesis + time)\n At least 2 take-profit targets defined\n Risk/reward ≥1:2 (preferably 1:3+)\n Portfolio heat check (total risk <15%)\n Correlation check (not adding to concentrated exposure)\n No emotional driver (revenge, FOMO, boredom)\n Checked economic calendar (no surprise events imminent)\n Entry type decided (market/limit/scaled)\nOrder Types Decision\nSituation\tOrder Type\tWhy\nStrong conviction, want in now\tMarket\tSpeed over price\nGood setup, not urgent\tLimit at support\tBetter entry\nHigh-conviction, want scale in\tScaled limits (3 levels)\tAverage entry, reduce timing risk\nBreakout trade\tStop-limit above resistance\tOnly enter if breakout confirms\nCatalyst trade\tLimit pre-catalyst\tPosition before event\nPhase 7: Performance Tracking\nDaily Dashboard\ndaily_dashboard:\n  date: \"2026-02-22\"\n  \n  # PORTFOLIO SNAPSHOT\n  portfolio:\n    total_equity: null\n    daily_pnl: null\n    daily_pnl_percent: null\n    weekly_pnl: null\n    monthly_pnl: null\n    ytd_pnl: null\n    \n  # POSITIONS\n  open_positions: 0\n  portfolio_heat: \"0%\"  # sum of all position risks\n  cash_percent: \"100%\"\n  \n  # BENCHMARK\n  benchmark:\n    sp500_ytd: null\n    btc_ytd: null\n    portfolio_vs_sp500: null\n    portfolio_vs_btc: null\n    \n  # ACTIVITY\n  trades_today: 0\n  alerts_triggered: []\n\nPerformance Metrics (Track Weekly)\nMetric\tFormula\tTarget\nWin Rate\tWinning trades / Total trades\t>50%\nAverage R\tAverage R-multiple of all trades\t>1.5R\nProfit Factor\tGross profit / Gross loss\t>2.0\nExpectancy\t(Win% × Avg Win) - (Loss% × Avg Loss)\tPositive\nMax Drawdown\tPeak to trough decline\t<-15%\nSharpe Ratio\t(Return - RFR) / Std Dev\t>1.5\nSortino Ratio\t(Return - RFR) / Downside Dev\t>2.0\nCalmar Ratio\tAnnual Return / Max Drawdown\t>1.0\nRecovery Factor\tNet Profit / Max Drawdown\t>3.0\nMonthly Review Template\nmonthly_review:\n  month: \"2026-02\"\n  \n  # PERFORMANCE\n  portfolio_return: null\n  benchmark_return: null  # vs S&P 500\n  alpha: null             # portfolio - benchmark\n  \n  # TRADING STATS\n  total_trades: 0\n  winning_trades: 0\n  losing_trades: 0\n  win_rate: null\n  average_winner: null\n  average_loser: null\n  largest_winner: null\n  largest_loser: null\n  profit_factor: null\n  \n  # RISK STATS\n  max_drawdown: null\n  avg_portfolio_heat: null\n  risk_rule_violations: 0\n  \n  # BEHAVIOR ANALYSIS\n  followed_plan_rate: null    # % of trades that followed the plan\n  emotional_trades: 0          # trades driven by FOMO/revenge/boredom\n  early_exits: 0               # cut winners short\n  late_exits: 0                # held losers too long\n  \n  # TOP 3 LESSONS\n  lessons:\n    - null\n    - null\n    - null\n    \n  # ADJUSTMENTS FOR NEXT MONTH\n  adjustments:\n    - null\n\nPhase 8: Market Regime Detection\nRegime Framework\nRegime\tCharacteristics\tStrategy\tPosition Size\nBull Trend\tRising 200MA, breadth >60%, VIX <20\tTrend following, buy dips\tFull size\nBear Trend\tFalling 200MA, breadth <40%, VIX >30\tShort / inverse, raise cash\tHalf size\nRange/Chop\tFlat 200MA, breadth 40-60%\tMean reversion, sell premium\tQuarter size\nHigh Vol\tVIX >35, large daily swings\tReduce exposure, hedge\tMinimum size\nEuphoria\tVIX <12, extreme bullish sentiment\tTake profits, hedge\tScale down\nPanic\tVIX >50, capitulation signals\tAccumulate quality\tScale in slowly\nMacro Checklist (Weekly)\n Fed funds rate / next meeting: ___\n US 10Y yield trend: ___\n Dollar (DXY) trend: ___\n VIX level: ___\n Credit spreads: ___ (tightening/widening)\n Yield curve: ___ (inverted/flat/steep)\n Leading indicators: ___ (improving/declining)\n Global liquidity trend: ___ (expanding/contracting)\n Sector rotation: ___ (risk-on/risk-off)\n Crypto market cap trend: ___\nSentiment Indicators\nIndicator\tExtreme Fear (Buy)\tNeutral\tExtreme Greed (Sell)\nCNN Fear & Greed\t<20\t40-60\t>80\nAAII Bull-Bear\t>-30% spread\t±10%\t>+30% spread\nPut/Call Ratio\t>1.2\t0.7-0.9\t<0.5\nVIX Term Structure\tBackwardation\tFlat\tSteep contango\nCrypto Fear & Greed\t<15\t40-60\t>85\nBTC Funding Rates\tDeeply negative\tNeutral\t>0.05%\nPhase 9: Dividend & Income Analysis\nDividend Quality Score (0-100)\nFactor\tWeight\tScoring\nYield vs Sector\t15\tAt/above median = 15, below = proportional\nPayout Ratio\t20\t<50% = 20, 50-75% = 15, 75-100% = 5, >100% = 0\nGrowth Rate (5Y CAGR)\t20\t>10% = 20, 5-10% = 15, 0-5% = 10, declining = 0\nConsecutive Years\t15\t>25y = 15 (Aristocrat), 10-25 = 10, 5-10 = 5, <5 = 0\nFCF Coverage\t15\tFCF/Div >1.5 = 15, 1-1.5 = 10, <1 = 0\nDebt/EBITDA\t15\t<2 = 15, 2-4 = 10, >4 = 5\n\nScore /100. Above 75 = excellent income pick. Below 40 = dividend at risk.\n\nIncome Portfolio Construction\nCore income (60%): Dividend Aristocrats, quality REITs, investment-grade bonds\nGrowth income (25%): Dividend growers (low yield, high growth rate)\nHigh yield (15%): Higher risk, higher yield (junk bonds, BDCs, covered calls)\nYield target: 4-6% blended, growing 5-8% annually\nPhase 10: Tax Optimization\nTax-Loss Harvesting Rules\nWhen: Position down >10% from cost basis AND held <12 months\nHow: Sell the position, immediately buy a correlated (not substantially identical) replacement\nWash sale rule: Cannot buy back the same security within 30 days (before or after)\nReplacement examples: SPY→VOO, AAPL→QQQ, BTC spot→BTC futures ETF\nTrack: Cumulative harvested losses, offset against gains + $3K income deduction\nHolding Period Optimization\nHolding Period\tTax Rate (US)\tStrategy\n<1 year\tOrdinary income (up to 37%)\tOnly for high-conviction short-term trades\n>1 year\tLong-term CG (0/15/20%)\tDefault for all positions when possible\n>5 years (QOZ)\tReduced + deferred\tQualified Opportunity Zone investments\nTax-Efficient Account Allocation\nAccount Type\tBest For\tWhy\nTaxable\tLong-term holds, tax-loss harvesting\tCapital gains treatment\nTraditional IRA/401k\tBonds, REITs, high-dividend\tDefer high-tax income\nRoth IRA\tHighest growth potential\tTax-free growth\nHSA\tAggressive growth\tTriple tax advantage\nPhase 11: Screening & Idea Generation\nStock Screener Criteria Templates\n\nValue Screen:\n\nP/E < sector median\nP/B < 1.5\nDebt/Equity < 0.5\nROE > 12%\nFCF positive 5 consecutive years\nInsider buying last 90 days\n\nGrowth Screen:\n\nRevenue growth > 20% YoY\nEPS growth > 15% YoY\nGross margin > 50%\nNet retention > 110% (SaaS)\nTAM > $10B\n\nDividend Screen:\n\nDividend yield > 3%\nPayout ratio < 60%\nDividend growth > 5% CAGR (5Y)\nConsecutive increases > 10 years\nDebt/EBITDA < 3\n\nCrypto Screen:\n\nMarket cap > $1B (avoid micro-caps)\nDaily volume > $50M\nActive development (GitHub commits)\nNot >90% held by top 10 wallets\nClear revenue model or adoption metrics\nResearch Sources (No API Required)\nSource\tURL\tBest For\nYahoo Finance\tfinance.yahoo.com\tFundamentals, quotes\nFinviz\tfinviz.com\tScreening, heatmaps\nMacrotrends\tmacrotrends.net\tHistorical financials\nCoinGecko\tcoingecko.com\tCrypto data\nDeFiLlama\tdefillama.com\tDeFi TVL, yields\nFRED\tfred.stlouisfed.org\tMacro data\nTradingView\ttradingview.com\tCharts, technicals\nSEC EDGAR\tsec.gov/edgar\tFilings, insider trades\nGlassnode\tglassnode.com\tOn-chain data\nFear & Greed\talternative.me\tCrypto sentiment\nPhase 12: Advanced Strategies\nOptions Basics (for hedging)\nStrategy\tWhen\tRisk\tReward\nProtective Put\tOwn stock, want downside protection\tPremium paid\tUnlimited upside, limited downside\nCovered Call\tOwn stock, willing to cap upside\tCapped gains\tPremium income\nCash-Secured Put\tWant to buy at lower price\tMust buy at strike\tPremium + lower entry\nCollar\tWant protection, willing to cap upside\tCapped both ways\tLow/no cost protection\nDCA (Dollar Cost Averaging) Framework\ndca_plan:\n  asset: \"BTC\"\n  frequency: \"weekly\"           # daily | weekly | biweekly | monthly\n  amount: 250                   # per purchase\n  day: \"Monday\"                 # specific day\n  duration: \"indefinite\"        # or end date\n  \n  # SMART DCA (optional — buy more when cheap)\n  smart_dca:\n    enabled: true\n    base_amount: 250\n    multiplier_rules:\n      - condition: \"price < 200MA\"\n        multiplier: 1.5          # buy 50% more\n      - condition: \"RSI < 30\"\n        multiplier: 2.0          # double buy\n      - condition: \"price > 200MA × 1.5\"\n        multiplier: 0.5          # buy less in euphoria\n\nRebalancing Decision Tree\nIs any allocation >5% from target?\n├── NO → No action needed. Check again next month.\n│\n└── YES → Is it a tax-advantaged account?\n    ├── YES → Rebalance by selling overweight, buying underweight\n    │\n    └── NO (taxable) → Can you rebalance with new contributions?\n        ├── YES → Direct new money to underweight positions\n        │\n        └── NO → Are there tax losses to harvest?\n            ├── YES → Sell losers (harvest), redirect to underweight\n            │\n            └── NO → Is the drift >10%?\n                ├── YES → Rebalance (accept tax hit for risk control)\n                └── NO → Wait for next contribution or year-end\n\nInvestor Psychology Rules\n10 Cognitive Biases That Kill Returns\nBias\tTrap\tDefense\nLoss Aversion\tHolding losers, cutting winners\tPre-set stops, mechanical exits\nConfirmation Bias\tOnly seeing data that supports thesis\tActively seek disconfirming evidence\nRecency Bias\tExtrapolating recent performance\tLook at full cycle data (10+ years)\nAnchoring\tFixating on purchase price\tFocus on current value vs alternatives\nFOMO\tChasing after 50%+ move\tStick to your screener, your edge\nOverconfidence\tToo large positions after wins\tFixed position sizing rules\nDisposition Effect\tSelling winners too early\tTrailing stops, let runners run\nHerding\tBuying because everyone is\tContrarian checkpoints\nSunk Cost\t\"I've held this long, can't sell now\"\tWould you buy this TODAY at this price?\nHindsight\t\"I knew it all along\"\tReview trade journal honestly\nTrading Psychology Checklist (Daily)\n Am I calm? (no anger, fear, or euphoria)\n Am I following my system? (not improvising)\n Am I within risk limits? (checked portfolio heat)\n Am I trading my plan? (not reacting to noise)\n Have I done my analysis? (not trading on tips)\nQuality Scoring (0-100)\nDimension\tWeight\tCriteria\nThesis Quality\t20\tClear edge, documented invalidation, realistic timeframe\nRisk Management\t25\tPosition sizing, stops, portfolio heat, correlation\nAnalysis Depth\t15\tFundamental + technical + macro considered\nExecution\t15\tEntry/exit discipline, order type selection, patience\nRecord Keeping\t10\tTrade journal, performance metrics, monthly reviews\nPsychology\t10\tEmotional control, bias awareness, plan adherence\nTax Efficiency\t5\tHarvesting, account allocation, holding periods\n\nScore /100. Above 80 = professional-grade process. Below 50 = gambling.\n\nNatural Language Commands\nCommand\tAction\n\"Analyze [ticker]\"\tFull fundamental + technical analysis\n\"Compare [ticker1] vs [ticker2]\"\tSide-by-side comparison\n\"Build thesis for [ticker]\"\tGenerate thesis brief template\n\"Size position for [ticker] at [price]\"\tCalculate position size with risk\n\"Portfolio health check\"\tScore current portfolio /8\n\"Monthly review\"\tGenerate performance review template\n\"Screen for [value/growth/dividend/crypto]\"\tApply screening criteria\n\"What's the market regime?\"\tAssess current macro environment\n\"Tax harvest opportunities\"\tIdentify positions for loss harvesting\n\"DCA plan for [asset]\"\tGenerate dollar cost averaging plan\n\"Dividend score for [ticker]\"\tRun dividend quality analysis\n\"Risk report\"\tPortfolio heat, correlations, exposure summary\n\nBuilt by AfrexAI — turning market noise into signal. 🖤💛"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/1kalin/afrexai-investment-engine",
    "publisherUrl": "https://clawhub.ai/1kalin/afrexai-investment-engine",
    "owner": "1kalin",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/afrexai-investment-engine",
    "downloadUrl": "https://openagent3.xyz/downloads/afrexai-investment-engine",
    "agentUrl": "https://openagent3.xyz/skills/afrexai-investment-engine/agent",
    "manifestUrl": "https://openagent3.xyz/skills/afrexai-investment-engine/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/afrexai-investment-engine/agent.md"
  }
}