Communitygithub.com

bg-szy/TOP-SKILLS

Automatisch geladener Kontext für die Entwicklung von Portfolio Buddy 2. Verwende ihn für JEDE Aufgabe im Zusammenhang mit: React 19 Entwicklung, TypeScript, Portfolio-Analysefunktionen, Metrikberechnungen, Strategievergleich oder Arbeiten mit der Portfolio Buddy 2-Codebasis. Enthält Tech-Stack, bekannte Probleme und Architekturbeschränkungen.

Was ist TOP-SKILLS?

Dieser Skill stellt den vollständigen Projektkontext für die Entwicklung von Portfolio Buddy 2 bereit, einem Portfolio-Analyse-Tool für Anleger und Futures-Händler. Er wird automatisch geladen und enthält wichtige Architekturdetails: den Tech-Stack (React 19, TypeScript, Vite, Tailwind CSS), die Komponentenstruktur, bekannte Probleme und aktuelle technische Schulden wie überdimensionierte Komponenten und unbehandelte Fehler mit TypeScript. Der Skill unterstützt Entwickler auf Plattformen wie Cursor und Codex, indem er sofortiges Wissen über den Projektstatus liefert – einschließlich kürzlich hinzugefügter Funktionen (Sortino-Ratio, Datumsbereichsfilter), Bugs im Upload-Prozess und Migrationsstatus. Er erleichtert die Zusammenarbeit, indem er sicherstellt, dass alle KI-Entwickler denselben Kontext zu Einschränkungen und Konventionen haben, wodurch inkonsistente Code-Änderungen vermieden werden.

Funktioniert mit~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/bg-szy/TOP-SKILLS/tree/HEAD/skills/marketplace/portfolio-context

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Portfolio Buddy 2 - Projektkontext

Tech-Stack

  • Frontend: React 19, TypeScript, Vite
  • UI: Tailwind CSS, shadcn/ui (nur Farbsystem)
  • Diagramme: Chart.js, react-chartjs-2, chartjs-plugins (zoom, annotation, date-adapter)
  • Zustand: Reines React (useState, useMemo, useCallback)
  • Daten-Hilfsmittel: date-fns für Datumsmanipulation
  • Backend: Supabase (PostgreSQL)
  • Bereitstellung: Cloudflare Pages

Projektzweck

Portfolio-Analyse-Tool für Anleger und Futures-Händler:

  • Vergleich von Handelsstrategien mit Benchmark-Assets (SPY, GLD)
  • Berechnung von Korrelationsmatrizen zwischen Assets (Spearman & Pearson)
  • Analyse von Risikokennzahlen und Performance (Sharpe, Sortino, Max DD, etc.)
  • Hochladen von Handelsdaten per CSV und Visualisierung der Ergebnisse
  • Anwenden von Kontrakt-Multiplikatoren zur Anpassung der Metriken für Futures-Handel
  • Filtern von Daten nach Datumsbereich für zeitraumspezifische Analysen

Bekannte Probleme & Technische Schulden

Aktuelle Technische Schulden

  1. Nicht verwendete Abhängigkeit: Recharts (11,5 KB) installiert, aber nie importiert

    • Sollte aus package.json entfernt werden
    • Stattdessen wird Chart.js verwendet
  2. Überdimensionierte Komponenten: Verstoßen gegen die 200-Zeilen-Grenze

    • PortfolioSection.tsx (591 Zeilen) → muss in Unterkomponenten refaktorisiert werden
    • App.tsx (351 Zeilen) → Abschnitte in Komponenten auslagern
    • MetricsTable.tsx (242 Zeilen) → verbessert, aber immer noch über dem Limit
  3. TypeScript-Verstöße: 15 Instanzen von any-Typ

    • usePortfolio.ts: 11 Vorkommen in Handels-/Metrik-Typen
    • useMetrics.ts: 4 Vorkommen in Sortiervergleichen
    • dataUtils.ts: 1 Vorkommen in Metrics-Interface

Bekannte Fehler

  1. Supabase-Upload-Fehler: Gelegentliche 500-Fehler bei großen Uploads
    • Verbesserte Fehlerbehandlung in Commit 9fb7fdb hinzugefügt
    • Fehlerbehandlung in Upload-Hooks prüfen
    • Überprüfen, ob Zeilengrenzen im Free-Tier nicht überschritten werden

Kürzlich hinzugefügte Funktionen

  • Sortino-Ratio-Berechnung (Commits 258ba3a, 9f25040)
    • Ort: Direkt in PortfolioSection.tsx implementiert (Zeilen 133-158)
    • Eingabestatus für risikofreien Zinssatz vom Benutzer
    • Annualisierte Abwärtsabweichung mit sqrt(365)-Faktor
    • Korrigierte Varianzberechnung (dividiert durch alle Renditen, nicht nur negative)
    • Angezeigt im Portfolio-Statistikbereich (Zeile 535)
    • Hinweis: NICHT in dataUtils.ts – aufgrund des Portfolio-Level-Kontexts in der Komponente belassen
  • Datumsbereichsfilterung (Commit 258ba3a)
    • Portfolio-Daten nach Start-/Enddatum filtern
    • Implementiert im usePortfolio-Hook
  • Erweiterte Multi-Column-Sortierung (useSorting-Hook)
    • Sortieren nach mehreren Spalten mit Priorität
    • Benutzerdefinierte Vergleichslogik pro Spalte

Architekturbeschränkungen

  • Komponentenlimit: Max. 200 Zeilen pro Komponente (aktuell von 3 Komponenten verletzt)
  • Hook-Muster: Benutzerdefinierte Hooks in /src/hooks/
  • Utils-Muster: Reine Funktionen in /src/utils/
  • Typsicherheit: Strenges TypeScript, keine any-Typen (15 Verstöße als technische Schulden)
  • Zustandsverwaltung: Nur reine React-Hooks – kein Zustand oder TanStack Query

Wichtige Komponentenstruktur

src/
├── components/
│   ├── AnalyticsControls.tsx     (Umschalten der Ansichten Metriken/Portfolio/Korrelation)
│   ├── ContractInput.tsx         (Eingabe von Kontrakt-Multiplikatoren)
│   ├── CorrelationHeatmap.tsx    (Korrelationsvisualisierung)
│   ├── CorrelationSection.tsx    (Wrapper für Korrelationsanalyse)
│   ├── CustomTooltip.tsx         (Diagramm-Tooltips)
│   ├── ErrorList.tsx             (Fehleranzeige)
│   ├── Header.tsx                (App-Header)
│   ├── MasterContractControl.tsx (Kontraktwert auf alle anwenden)
│   ├── MetricsTable.tsx          (Metrikanzeige & Auswahl)
│   ├── PortfolioSection.tsx      (Portfolio-Diagramme & Analyse - 591 Zeilen!)
│   ├── SessionComplete.tsx       (Abschluss-UI)
│   ├── SortableHeader.tsx        (Tabellenkopf mit Sortierindikatoren)
│   ├── UploadedFilesList.tsx     (Liste der hochgeladenen Dateien)
│   └── UploadSection.tsx         (Datei-Upload zu Supabase)
├── hooks/
│   ├── useContractMultipliers.ts (Kontrakt-Multiplikatoren verwalten)
│   ├── useMetrics.ts             (Handelsmetriken berechnen)
│   ├── usePortfolio.ts           (Portfolio-Daten & Datumsfilterung)
│   └── useSorting.ts             (erweiterte Multi-Column-Sortierung)
└── utils/
    └── dataUtils.ts              (Metrikberechnungen, CSV-Parsing, Korrelationen)

Wichtige Konventionen

  • Pfad-Alias: @/ zeigt auf src/ – für alle internen Importe verwenden
  • shadcn-ui: Nur Farb-Tokens – CSS-Variablen in src/index.css, keine tatsächlichen shadcn-Komponenten installiert. Könnten später via npx shadcn@latest add button usw. hinzugefügt werden.
  • Git-Workflow: Feature-Branches → git checkout -b feature/name → konventionelle Commits (feat:, fix:, chore:) → PR zu main
  • Community-Branding: 5minfutures.com Trading-Community; Skool-Logo in Assets; GoHighLevel-Formular eingebettet

Migrationskontext

Migration von 40 Funktionen aus der alten App (90% abgeschlossen). Siehe Skill migration-tracker für Details.

Individual skills in this repo

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

bg-szy/TOP-SKILLS

Brand-first landing page designer — runs a brand-identity interview (colors, typography, shape language), then generates and iterates on a polished landing page via Stitch with deployment-ready HTML. Use when the user asks to create, design, or build a landing page, homepage, or marketing page and has no established visual direction. Skip when they have a design mockup, need a dashboard or app UI, are working at component level, building a multi-page app, or restyling with known design tokens — use frontend-design instead.

bg-szy/TOP-SKILLS

Fill out Microsoft Azure Landing Zone (ALZ) Accelerator checklists by interviewing the user, mapping their Azure subscriptions, integrating IP addressing documentation, and applying Microsoft Cloud Adoption Framework best practices. Produces a completed Excel checklist (.xlsx) ready for ALZ deployment. Use this skill whenever the user mentions Azure Landing Zone, ALZ checklist, landing zone accelerator, platform landing zone configuration, ALZ bootstrap, hub-and-spoke setup, Azure network topology planning, or wants to fill out any ALZ-related checklist or configuration file. Also trigger when the user uploads an Excel file that contains tabs like "Accelerator - Bootstrap", "Accelerator - Bicep", or "Accelerator - Terraform".

bg-szy/TOP-SKILLS

Compose a premium, animated landing page section by section in Next.js + Tailwind + Motion (Framer Motion) — built on a real design system, with editorial copy and motion that feels human-crafted, not template-generated. Use when building or rebuilding a landing page, marketing site, or hero/feature/pricing/CTA sections that need to look production-ready and bespoke from day one.

bg-szy/TOP-SKILLS

Write high-converting landing page copy using proven frameworks like PAS (Problem-Agitate-Solution), AIDA, and StoryBrand. Creates headlines, value propositions, CTAs, and full page sections optimized for conversion. Use when users need landing page copy, sales page content, or marketing website text.

bg-szy/TOP-SKILLS

Optimize landing pages for conversions, performance, and SEO. Use when improving landing pages, increasing conversions, or optimizing page performance.

bg-szy/TOP-SKILLS

Review investment portfolios for risk, diversification, fees. Asset allocation recommendations, tax-loss harvesting, rebalancing.

bg-szy/TOP-SKILLS

Beads Viewer - Graph-aware triage engine for Beads projects. Computes PageRank, betweenness, critical path, and cycles. Use --robot-* flags for AI agents.

bg-szy/TOP-SKILLS

CI red? Call us. Pipeline fire brigade deploys. Use when user mentions CI failures, build errors, test failures, or pipeline issues. Do NOT load for: local builds, standard implementation work, reviews, or setup.

bg-szy/TOP-SKILLS

CASS Memory System - procedural memory for AI coding agents. Three-layer cognitive architecture with confidence decay, anti-pattern learning, cross-agent knowledge transfer, trauma guard safety system. Bun/TypeScript CLI.

bg-szy/TOP-SKILLS

Mandatory entry point: read this first for any request to make, create, edit, animate, or render a video, animation, or motion graphic, including a promo, explainer, captioned clip, title card, overlay, slideshow or interactive deck, Remotion port, or any HyperFrames HTML composition. Also use it to inspect, diagnose, validate, preview, publish, or batch-render an existing HyperFrames project. Inputs may be a website URL, GitHub PR, Figma design or URL, text or brief, existing footage, or music. It resumes project state, captures intent when applicable, selects and installs the owning workflow, and routes domain capabilities. HyperFrames is the default output framework unless the user explicitly chooses another framework for the deliverable or asks only to record a browser session.

bg-szy/TOP-SKILLS

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.

bg-szy/TOP-SKILLS

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. 落地页体验预检/广告落地页一致性检查

bg-szy/TOP-SKILLS

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.

bg-szy/TOP-SKILLS

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.

bg-szy/TOP-SKILLS

Landing page conversion optimization with layout rules, hero section design, and CTA psychology. Covers above-the-fold formula, social proof placement, mobile design, and F-pattern reading. Use for: startup landing pages, product pages, SaaS marketing, conversion optimization. Triggers: landing page, hero section, above the fold, conversion optimization, landing page design, cta button, hero image, landing page layout, saas landing page, product page design, conversion rate, landing page best practices

bg-szy/TOP-SKILLS

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.

bg-szy/TOP-SKILLS

Landing page conversion optimization with layout rules, hero section design, and CTA psychology. Covers above-the-fold formula, social proof placement, mobile design, and F-pattern reading. Use for: startup landing pages, product pages, SaaS marketing, conversion optimization. Triggers: landing page, hero section, above the fold, conversion optimization, landing page design, cta button, hero image, landing page layout, saas landing page, product page design, conversion rate, landing page best practices

bg-szy/TOP-SKILLS

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", "我的风险", "持仓风险", "风险敞口", "資產", "資產配置", "風險分析", "績效歸因", "撤單

bg-szy/TOP-SKILLS

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.

bg-szy/TOP-SKILLS

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

Verwandte Skills