Communitygithub.com

aiskillstore/marketplace

Portfolio Buddy 2 開発のための自動読み込みコンテキスト。React 19、TypeScript、ポートフォリオ分析機能、メトリクス計算、取引戦略比較、または Portfolio Buddy 2 コードベースに関するあらゆるタスクに使用します。テクノロジースタック、既知の問題、アーキテクチャ上の制約を含みます。

marketplace とは?

このスキルは、Portfolio Buddy 2 プロジェクトの完全なコンテキストを提供し、開発者がコードベースを迅速に理解し、効率的に作業を進められるようにします。これは、React 19、TypeScript、Vite、Tailwind CSS、Chart.js、Supabase、Cloudflare Pages など、プロジェクトのテクノロジースタック全体を網羅しています。主なユースケースは、投資家や先物トレーダーが取引戦略をベンチマーク資産と比較し、相関行列を計算し、リスクメトリクスを分析し、CSV データをアップロードして結果を可視化できるポートフォリオ分析ツールの開発と保守です。このスキルは、既知のバグやテクニカルデビット(未使用の依存関係、巨大なコンポーネント、TypeScript の any 型の使用など)を文書化し、コンポーネントサイズ制限やフックパターンなどのアーキテクチャ上の制約を定義しているため、AI エージェントが間違いを犯したり、既存の問題を悪化させたりするリスクを軽減できます。主に Claude Code などのコーディングエージェント向けですが、関連するプロジェクトドキュメントとしてあらゆる AI アシスタントに役立ちます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/aiskillstore/marketplace/tree/HEAD/skills/5minfutures/portfolio-context

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Portfolio Buddy 2 - プロジェクトコンテキスト

テクノロジースタック

  • フロントエンド: React 19, TypeScript, Vite
  • UI: Tailwind CSS, shadcn/ui(カラーパレットのみ)
  • チャート: Chart.js, react-chartjs-2, chartjs プラグイン(zoom, annotation, date adapter)
  • 状態管理: プレーン React(useState, useMemo, useCallback)
  • データユーティリティ: date-fns(日付操作)
  • バックエンド: Supabase(PostgreSQL)
  • デプロイ: Cloudflare Pages

プロジェクトの目的

投資家および先物トレーダーのためのポートフォリオ分析ツール。以下の機能を提供します:

  • 取引戦略とベンチマーク資産(SPY, GLD)との比較
  • 資産間の相関行列の計算(Spearman & Pearson)
  • リスクメトリクスとパフォーマンスの分析(Sharpe、Sortino、最大ドローダウンなど)
  • CSV による取引データのアップロードと結果の可視化
  • 先物取引のメトリクス調整のための契約乗数の適用
  • 特定期間分析のための日付範囲によるデータフィルタリング

既知の問題とテクニカルデビット

現在のテクニカルデビット

  1. 未使用の依存関係: Recharts(11.5KB)がインストールされているが、一度もインポートされていない

    • package.json から削除すべき
    • 現在は Chart.js を使用中
  2. 巨大なコンポーネント: 200行の標準を超過

    • PortfolioSection.tsx(591行)→ サブコンポーネントへのリファクタリングが必要
    • App.tsx(351行)→ セクションをコンポーネントに抽出
    • MetricsTable.tsx(242行)→ 改善されたが、依然として上限超過
  3. TypeScript 違反: any 型が15箇所

    • usePortfolio.ts: トレード/メトリクス型で11箇所
    • useMetrics.ts: ソート比較で4箇所
    • dataUtils.ts: Metrics インターフェースで1箇所

既知のバグ

  1. Supabase アップロードエラー: 大規模アップロード時に断続的な500エラー
    • コミット 9fb7fdb でエラーハンドリングを強化
    • アップロードフック内のエラーハンドリングを確認
    • 無料枠の行制限を超えていないことを確認

最近追加された機能

  • ソルティノレシオ計算(コミット 258ba3a、9f25040)
    • 場所: PortfolioSection.tsx にインライン実装(133-158行)
    • ユーザー指定のリスクフリーレートのための入力状態
    • sqrt(365) 係数を使用した年率化下方偏差
    • 修正された分散計算(合計リターンで除算、負のリターンのみではない)
    • ポートフォリオ統計セクションに表示(535行)
    • 注: dataUtils.ts にはない — ポートフォリオレベルのコンテキストのためコンポーネント内に保持
  • 日付範囲フィルタリング(コミット 258ba3a)
    • 開始日/終了日でポートフォリオデータをフィルタリング
    • usePortfolio フックで実装
  • 高度なマルチカラムソート(useSorting フック)
    • 優先順位付きの複数列ソート
    • 列ごとのカスタム比較ロジック

アーキテクチャ上の制約

  • コンポーネント制限: コンポーネントあたり最大200行(現在3つのコンポーネントが違反)
  • フックパターン: カスタムフックは /src/hooks/
  • ユーティリティパターン: 純粋関数は /src/utils/
  • 型安全性: 厳格な TypeScript、any 型は禁止(テクニカルデビットとして15箇所の違反あり)
  • 状態管理: プレーンな React フックのみ — Zustand や TanStack Query は使用しない

主要コンポーネント構造

src/
├── components/
│   ├── AnalyticsControls.tsx     (Metrics/Portfolio/Correlation ビューの切り替え)
│   ├── ContractInput.tsx         (契約乗数入力)
│   ├── CorrelationHeatmap.tsx    (相関の可視化)
│   ├── CorrelationSection.tsx    (相関分析ラッパー)
│   ├── CustomTooltip.tsx         (チャートツールチップ)
│   ├── ErrorList.tsx             (エラー表示)
│   ├── Header.tsx                (アプリヘッダー)
│   ├── MasterContractControl.tsx (全契約に値を適用)
│   ├── MetricsTable.tsx          (メトリクス表示と選択)
│   ├── PortfolioSection.tsx      (ポートフォリオチャートと分析 - 591行!)
│   ├── SessionComplete.tsx       (完了UI)
│   ├── SortableHeader.tsx        (ソートインジケーター付きテーブルヘッダー)
│   ├── UploadedFilesList.tsx     (アップロード済みファイルのリスト)
│   └── UploadSection.tsx         (Supabase へのファイルアップロード)
├── hooks/
│   ├── useContractMultipliers.ts (契約乗数の管理)
│   ├── useMetrics.ts             (取引メトリクスの計算)
│   ├── usePortfolio.ts           (ポートフォリオデータと日付フィルタリング)
│   └── useSorting.ts             (高度なマルチカラムソート)
└── utils/
    └── dataUtils.ts              (メトリクス計算、CSV パース、相関)

主要な規約

  • パスエイリアス: @/ は src/ にマッピング — すべての内部インポートで使用
  • shadcn-ui: カラートークンのみ — src/index.css の CSS 変数、実際の shadcn コンポーネントはインストールされていません。今後 npx shadcn@latest add button などで追加可能。
  • Git ワークフロー: フィーチャーブランチ → git checkout -b feature/name → conventional commit(feat:、fix:、chore:)→ main への PR
  • コミュニティブランディング: 5minfutures.com トレーディングコミュニティ;アセット内の Skool ロゴ;埋め込まれた GoHighLevel フォーム

移行コンテキスト

40の機能を旧アプリから移行中(90%完了)。詳細は migration-tracker スキルを参照。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

aiskillstore/marketplace

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

aiskillstore/marketplace

Use when the user asks to "pre-launch check the landing page", "run a Quality-Score preflight", or "verify ad-to-page message match before launch"; produces an ad↔page continuity report — message-match gaps, above-the-fold check, page-speed read, form-friction count, mobile-render flags — as a pass/fix punch list. Not for redesigning or rewriting the page — use landing-optimizer; not for scoring the account or the RQS — use ad-account-auditor. 落地页体验预检/广告落地页一致性检查

aiskillstore/marketplace

Use when the user asks to "optimize our landing page for influencer traffic", "fix our promo-code landing page", or "improve conversion from a creator campaign"; produces a message-match audit, page-structure and social-proof recommendations, a promo-code/CTA conversion plan, and an A/B test roadmap. Not for measuring campaign results after launch — use performance-analyzer.

aiskillstore/marketplace

Audit a landing page, sales page or checkout page for conversion leaks and return a fix list ordered by expected revenue impact. Use when asked to review, critique or improve a landing page, sales page, opt-in page, product page or checkout flow, when conversion rate is low, when paid traffic is not converting, or when someone asks "why isn't this page converting" or wants a CRO / landing page review.

aiskillstore/marketplace

This skill helps users extract GitHub repository project details and contributor contact information using keywords, stars, and update dates. Agent should proactively apply this skill when users express needs like search for GitHub projects by keywords, find top open-source contributors in specific domains, extract developer contacts from GitHub repositories, discover trending repositories with high stars, gather contributor profiles and social links for tech recruiting, retrieve GitHub project descriptions and metrics, build developer communities by finding active contributors, search for repositories updated recently, collect personal website and Twitter links of developers, generate targeted leads for developer tools, or track active open-source contributors for collaboration.

aiskillstore/marketplace

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

aiskillstore/marketplace

Using the Wonda CLI to generate images, videos, music, and audio from the terminal — plus LinkedIn, Reddit, and X/Twitter research and automation

aiskillstore/marketplace

Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction. When Claude needs to work with professional documents (.docx files) for: (1) Creating new documents, (2) Modifying or editing content, (3) Working with tracked changes, (4) Adding comments, or any other document tasks

aiskillstore/marketplace

Generates creative domain name ideas for your project and checks availability across multiple TLDs (.com, .io, .dev, .ai, etc.). Saves hours of brainstorming and manual checking.

aiskillstore/marketplace

Process video files with audio extraction, format conversion (mp4, webm), and Whisper transcription. Use when user mentions video conversion, audio extraction, transcription, mp4, webm, ffmpeg, or whisper transcription.

aiskillstore/marketplace

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output should be a bitmap asset rather than repo-native code or vector. Do not use when the task is better handled by editing existing SVG/vector/code-native assets, extending an established icon or logo system, or building the visual directly in HTML/CSS/canvas.

aiskillstore/marketplace

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

aiskillstore/marketplace

Router skill for LLMQuant portfolio workflows. Use when the user needs company profiles, thesis tracking, theme research, watchlist monitoring, or alert management.

aiskillstore/marketplace

Account assets, equity and fund positions, P&L, cash flow records, account statements, margin ratios, buy-power estimates, order management, and DCA recurring investments via Longbridge (most require Trade permission). Frameworks: portfolio diagnosis, rebalancing, asset allocation, risk analysis (VaR/CVaR), performance attribution, and tax-loss harvesting. Triggers: "持仓", "账户", "盈亏", "资产", "对账单", "下单", "买入", "卖出", "撤单", "定投", "组合诊断", "再平衡", "资产配置", "风险分析", "绩效归因", "税损收割", "持倉", "賬戶", "盈虧", "對賬單", "下單", "買入", "賣出", "組合診斷", "再平衡", "稅損收割", "positions", "portfolio", "P&L", "order", "buy", "sell", "DCA", "statement", "risk analysis", "rebalancing", "tax harvesting", "我的风险", "持仓风险", "风险敞口", "資產", "資產配置", "風險分析", "績效歸因", "撤單

aiskillstore/marketplace

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

aiskillstore/marketplace

Use for Codex models/pricing, scheduled tasks, skills, settings, setup, troubleshooting, customization, automations, and self-knowledge—including 'you,' 'your,' 'this app,' or 'this coding agent' when they refer to Codex—and for OpenAI APIs/products and ChatGPT Work. Also use for model choice/migration, prompting, SDKs, Responses, Realtime, agents, evals, and Chat/Work/Codex comparisons. Do not use for generic app/software tasks that merely mention Codex.

aiskillstore/marketplace

Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.

aiskillstore/marketplace

Presentation creation, editing, and analysis. When Claude needs to work with presentations (.pptx files) for: (1) Creating new presentations, (2) Modifying or editing content, (3) Working with layouts, (4) Adding comments or speaker notes, or any other presentation tasks

aiskillstore/marketplace

Perform a read-only, defect-first review of a specified code change and return every actionable finding. Use when another agent delegates review of uncommitted changes, a base-branch diff, a commit, or custom review instructions.

aiskillstore/marketplace

Expert in building portfolios that actually land jobs and clients - not just showing work, but creating memorable experiences. Covers developer portfolios, designer portfolios, creative portfolios, and portfolios that convert visitors into opportunities.

関連スキル