本文へ移動
cccskills
無料GitHub で公開

kelly-invest-stock

Build and operate a Busabase-backed mainland China A-share strategy experiment desk with a bundled local Hono App-in-Skill, evidence-backed strategy research, strategy-level L1/L2/L3 manual maturity approvals, one CNY virtual ledger per strategy, and dated strategy backtest reports. Use when the user invokes $kelly-invest-stock or /kelly-invest-stock, wants to define or compare A-share strategies, inspect a strategy and its virtual book, record research evidence, manually approve strategy maturity, or review dated backtests, drawdown, and contribution to the total book. It never connects to a brokerage, places orders, moves money, or presents generated analysis as personalized investment advice.

インストール方法を見る

含まれるファイル(58)

  • SKILL.md11.9 KB
  • agents/openai.yaml302 B
  • assets/screenshots/detail-zh-CN.webp131 B
  • assets/screenshots/detail.webp131 B
  • assets/screenshots/mobile-overview-zh-CN.webp130 B
  • assets/screenshots/mobile-overview.webp130 B
  • assets/screenshots/overview-zh-CN.webp131 B
  • assets/screenshots/overview.webp131 B
  • assets/screenshots/thumbs/detail-zh-CN.webp130 B
  • assets/screenshots/thumbs/detail.webp130 B
  • assets/screenshots/thumbs/mobile-overview-zh-CN.webp130 B
  • assets/screenshots/thumbs/mobile-overview.webp130 B
  • assets/screenshots/thumbs/overview-zh-CN.webp130 B
  • assets/screenshots/thumbs/overview.webp130 B
  • busabase.json825 B
  • content/_folder.json103 B
  • content/kelly-invest-stock-app/_node.json123 B
  • content/kelly-invest-stock-app/.busabaseignore194 B
  • content/kelly-invest-stock-app/.gitignore33 B
  • content/kelly-invest-stock-app/app/base-ui.css13.0 KB
  • content/kelly-invest-stock-app/app/index.html731 B
  • content/kelly-invest-stock-app/app/js/app.js47.7 KB
  • content/kelly-invest-stock-app/app/js/busabase-client.js226 B
  • content/kelly-invest-stock-app/app/js/config.js7.3 KB
  • content/kelly-invest-stock-app/app/js/connect-gate.js1.1 KB
  • content/kelly-invest-stock-app/app/js/providers/busabase-provider.js9.8 KB
  • content/kelly-invest-stock-app/app/js/providers/demo-provider.js14.4 KB
  • content/kelly-invest-stock-app/app/js/providers/index.js278 B
  • content/kelly-invest-stock-app/app/js/runtime.js3.4 KB
  • content/kelly-invest-stock-app/app/js/strategy-model.js14.0 KB
  • content/kelly-invest-stock-app/app/styles.css62.5 KB
  • content/kelly-invest-stock-app/app/styles/editorial.css30.7 KB
  • content/kelly-invest-stock-app/app/vendor/busabase-airapp-gate.css6.1 KB
  • content/kelly-invest-stock-app/app/vendor/busabase-airapp-gate.js11.2 KB
  • content/kelly-invest-stock-app/app/vendor/busabase-airapp.js556.0 KB
  • content/kelly-invest-stock-app/app/vendor/busabase-sdk.js849.5 KB
  • content/kelly-invest-stock-app/package.json1.1 KB
  • content/kelly-invest-stock-app/pnpm-lock.yaml5.5 KB
  • content/kelly-invest-stock-app/pnpm-workspace.yaml71 B
  • content/kelly-invest-stock-app/scripts/check-editorial.mjs6.1 KB
  • content/kelly-invest-stock-app/scripts/check.mjs9.4 KB
  • content/kelly-invest-stock-app/server.js3.1 KB
  • content/kelly-invest-stock-app/test/busabase-provider.test.mjs1.9 KB
  • content/kelly-invest-stock-app/test/resource-provisioning.test.mjs14.1 KB
  • content/kelly-invest-stock-app/test/strategy-model.test.mjs9.5 KB
  • content/ledger-accounts/base.json1.5 KB
  • content/ledger-positions/base.json1.7 KB
  • content/strategies/base.json1.9 KB
  • content/strategy-backtests/base.json2.8 KB
  • content/strategy-reviews/base.json3.1 KB
  • content/strategy-reviews/records.ndjson3.3 KB
  • package.json290 B
  • pnpm-lock.yaml4.3 KB
  • pnpm-workspace.yaml50 B
  • references/stock-sdk.md5.0 KB
  • scripts/publish_airapp.mjs3.1 KB
  • scripts/setup.mjs6.4 KB
  • scripts/sync-content.mjs2.5 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Kelly Invest Stock

Operate a compact strategy experiment desk. Keep the first screen centered on a large strategy table: concise thesis, maturity label, account NAV, return, benchmark, drawdown, cash, and virtual positions. Open a row for the complete strategy and ledger detail.

Mandatory Dependencies

Before changing the app:

  1. Read and follow $kelly-app-skill-creator for product behavior, responsive UI, and the canonical local content/kelly-invest-stock-app/ artifact.
  2. Read and follow $busabase for connection, target Space, ChangeRequests, review, and merge behavior.
  3. Read and follow $busabase-app-creator for resource modeling, AirApp runtime, security, validation, and deployment.
  4. Read references/stock-sdk.md before changing market-data ingestion.

If a dependency is unavailable, continue safe local artifact work but stop before the unavailable deployment or Busabase operation. Never create a second persistent backend.

Product Boundary

  • Limit the product to mainland China A shares. Preserve six-digit stock codes, show Chinese security names as the primary identity, and use CNY for every virtual account, price, market value, P/L, and portfolio total.
  • Keep every account, position, return, stage, and regression result virtual. Never connect to Futu or another brokerage, create order UI, or call a trading API.
  • Give every strategy exactly one virtual account and default every new strategy to L1.
  • Treat L1, L2, and L3 as manual labels on the whole strategy, never on an individual stock:
    • L1: default basic observation;
    • L2: manually marked advanced observation;
    • L3: manually marked high-confidence observation.
  • Do not copy the live-trading meaning of L2/L3 from invest-ui. In this skill, changing a label never changes execution mode, account type, or capital.
  • Keep thesis, evidence, assumptions, confidence, and invalidation separate. A label or score is not a recommendation.
  • Use exact-pinned stock-sdk@2.4.0 only in reviewed trusted execution. Browser code performs no public market fetch.

Data And Modes

  • Use Busabase as the persistent source by default. A normal invocation or URL must never silently switch to Demo.
  • Enter Demo only when the user explicitly asks to open or update Demo. Demo data is deterministic, clearly labeled, and not persistent.
  • Use 10 recognizable investor-style Demo strategies such as Buffett, Munger, Duan Yongping, Peter Lynch, Howard Marks, Fisher, Graham, Li Lu, Templeton, or Soros style examples. Build every Demo basket from clearly labeled A-share examples and use a fixed CNY 1,000,000 nominal account per strategy. Label them as style reproductions; never imply actual holdings, endorsement, or current advice.
  • Read and write persistent state through busabase-sdk. Stage changes use a records.changeRequest update to the strategy record's status field and a dated approval record containing the human reason and account snapshot. Never persist stage changes in browser storage or local files.
  • Keep Busabase record page size inside the provider, at no more than the API's supported maximum. Follow nextCursor until exhaustion and never put transport pagination in a Base declaration or treat one page as the complete dataset.
  • Offer the deterministic classroom seed only in a completely empty Busabase workspace. Submit one reviewable bulk ChangeRequest per Base without automatic merge; the user or Space reviewer decides whether to merge it.

Core Resources

Keep five application-owned Bases under one application Folder:

  • strategies: name, key, family, status, thesis, selection rule, invalidation rule, review cadence, next review time, benchmark, and confidence.
  • ledger-accounts: one virtual account per strategy with nominal capital, NAV, cash, benchmark return, maximum drawdown, update time, and return baseline date.
  • ledger-positions: virtual quantity, entry price, reference price, market value, weight, price source/time, strategy key, six-digit A-share code, and Chinese security name.
  • strategy-backtests: dated strategy-level reports with window start/end, methodology, coverage, benchmark, total return, CAGR, volatility, Sharpe, maximum drawdown, benchmark-relative return, and bias/source notes.
  • strategy-reviews: dated research sources, source freshness, supporting and counter evidence, account snapshots, manual stage decisions, reviewer, reason, and the associated ChangeRequest ID.

Provision a new empty workspace lazily through one Busabase structure ChangeRequest, re-read the Folder, and use only validated materialized IDs. For an owned older schema, submit only declared suffix fields through reviewable field ChangeRequests, wait for approval, then update resource metadata. Reject reordered, changed, or otherwise incompatible fields. Ignore legacy app-owned resources outside this declaration; never delete or adopt them implicitly.

Operating Loop

Research

Define a strategy's thesis, selection rule, invalidation rule, benchmark, review cadence, next review time, and virtual account before evaluating it. Preserve research source, source date, supporting evidence, counter evidence, and data freshness in a dated review record.

Plan

State the evidence needed for the next review. New strategies remain L1. Treat an L2/L3 change as a human maturity judgment, not an automated promotion or trading authorization.

Action

Allow reviewed research updates, virtual-ledger records, and mouse-driven manual stage marking. Before promotion, require complete strategy rules, one account with a baseline date, dated research evidence, quote provenance, and reconciled NAV. Require a human reason and confirmation for every stage change. Send persistent stage changes through Busabase ChangeRequest, write the approval timeline record, and reload canonical records after materialization.

Retrospective

Compare virtual return, benchmark, maximum drawdown, and contribution to the whole book. Record whether thesis or process failed before changing a strategy's rules.

UI Contract

  • Use a fixed desktop sidebar with Strategy, L1, L2, L3, Regression, and Help & Settings. Do not add a separate Virtual Ledger tab.
  • Make the Strategy route a large full-width table that combines strategy summary and ledger reality. Clicking the entire row opens Strategy Detail.
  • Put the manual L1/L2/L3 segmented control and compact performance summary at the top of Strategy Detail. Below it, use shareable hash-routed tabs in this order: 组合持仓, 研究与审批, 策略逻辑, 回测表现.
  • Open 组合持仓 by default. Make it the dominant detail surface with account NAV/capital/cash/P&L, invested-versus-cash allocation, and a full-width table showing Chinese security name, six-digit code, quantity, virtual entry price, reference price, virtual market value, portfolio weight, and virtual P/L. Keep cash visible as part of the portfolio rather than hiding it in a summary.
  • Make L1/L2/L3 routes filter strategies, not stocks.
  • Sort the default strategy table by next review time with missing or overdue review dates first. Do not rank the default workflow by return or confidence.
  • In 研究与审批, show dated positive and counter evidence, source provenance, freshness, stage decisions, human reasons, reviewer, snapshot metrics, and ChangeRequest IDs. Clearly state that Demo approvals reset on full refresh.
  • Treat Strategy/L1/L2/L3 navigation as an in-memory strategy filter after the desk has loaded. Preserve the sidebar and workspace header DOM, update only the main strategy content, and do not refetch Busabase or show a full-page loading state for these route changes.
  • Make Regression a dated strategy backtest table aligned with invest-ui: report date, start/end dates, window label, methodology, coverage, total return, CAGR, volatility, Sharpe, maximum drawdown, and benchmark-relative return. Keep hindsight warnings visible. Show current virtual-book contribution (strategy P/L / total nominal capital) and the removal case in a clearly separate secondary section. Do not invent a backtest or any historical metric without a stored dated report backed by historical observations.
  • Do not show a rerun action unless a trusted historical-market-data workflow is actually available. A stored report is inspectable data, not an executable backtest engine.
  • On mobile, use the shared off-canvas sidebar, a separate detail route, sticky back action, and no horizontal page overflow at 390px or 360px.
  • Keep the virtual-only boundary visible. Do not describe L2 as Futu paper trading or L3 as real trading anywhere in this app.

Metric Rules

  • Calculate position P/L as quantity * (latest reference price - virtual entry price) and account return as NAV / nominal capital - 1.
  • Treat the account's baseline date as the start of nominal-capital performance. Do not compare, rank, or aggregate returns as comparable when baseline dates or quote provenance are missing. Display missing metrics as unavailable, never as zero.
  • Reconcile each account NAV against cash plus position market values. Flag a mismatch before allowing promotion.
  • Calculate total-book return from summed account NAV and summed nominal capital.
  • Calculate regression snapshot contribution as strategy account P/L / total nominal capital; calculate the removal case from the remaining accounts.
  • Sort and compare dated backtest reports only after checking that report date, window start/end, method, coverage, and benchmark are present.
  • Compare strategies on the same window and benchmark before ranking them.
  • Keep Demo observations fixed and dated. Never present them as live data.
  • Format account and position money in CNY. Show the Chinese security name first and retain the six-digit code as secondary identity.

Completion Criteria

Finish only when:

  • pnpm --dir content/kelly-invest-stock-app dev remains supported and deterministic checks pass;
  • Strategy overview/detail, L1/L2/L3 strategy filters, manual stage marking, and Regression work on desktop and mobile;
  • every strategy has one virtual account plus explicit selection and invalidation rules;
  • the five-resource declaration, additive schema migration, and lazy provisioning pass fixture tests;
  • research evidence and manual approvals persist in Busabase, with reason and account snapshot visible in the strategy timeline;
  • normal mode uses Busabase, while Demo is explicit, deterministic, and labeled;
  • no brokerage path, real-money stage, trading action, or personalized investment claim exists; and
  • available dependency-skill deployment and real-data checks pass.

Stop Conditions

Stop before consequential Busabase mutation when the target Space is ambiguous, the viewer lacks permission, ownership cannot be proven, a stale record would be overwritten, or the request crosses into brokerage execution or money movement.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Align all AI coding agents to a single source of truth. AGENTS.md for rules, .agents/skills/ for skills, symlinks for everything else. Use when setting up a repo for multiple agents, or when links are missing, broken, or out of date.

日本語の概要は準備中です。原文の説明を表示しています。

mr-kelly/skills52026年10月2日 更新

Read, answer and post on the Buda community forum at community.buda.im through its /api/v1/community REST API. Lists categories and posts, reads a thread with its replies, searches, and publishes posts and replies behind an explicit confirmation. Use when the user invokes $buda-community or /buda-community, asks what is happening in the Buda community, wants an unanswered question triaged or answered, or wants something posted or announced there.

日本語の概要は準備中です。原文の説明を表示しています。

mr-kelly/skills52026年10月2日 更新

Read, answer and post on the Busabase community forum at community.busabase.com through its /api/v1/community REST API. Lists categories and posts, reads a thread with its replies, searches, and publishes posts and replies behind an explicit confirmation. Use when the user invokes $busabase-community or /busabase-community, asks what is happening in the Busabase community, wants an unanswered question triaged or answered, or wants something posted or announced there.

日本語の概要は準備中です。原文の説明を表示しています。

mr-kelly/skills52026年10月2日 更新

kelly-ads

無料

Ad-campaign command desk (投放指挥台, Busabase App-in-Skill) for a cross-border e-commerce seller running Amazon Ads, Meta (FB/IG), TikTok Ads, and Google Ads. Use when the user invokes $kelly-ads or /kelly-ads, or asks about 投放, ad campaigns, ad spend, ACOS, ROAS, Amazon Ads, TikTok ads, Meta ads, Google Ads, search terms, negative keywords, bid adjustment, budget pacing, CPC spikes, rejected ads, ad anomaly detection, 广告优化, or reviewing agent-proposed adjustment cards (negative keyword, bid down/up, pause target, budget shift, creative refresh).

日本語の概要は準備中です。原文の説明を表示しています。

mr-kelly/skills52026年10月2日 更新

Busabase-backed App-in-Skill low-code agent configuration and governance console for a platform team. Use when the user invokes $kelly-agent-builder or /kelly-agent-builder, wants to review or edit a catalog of mock LLM agent configs, check quota usage, find configs that need attention, move a draft to live, pause a live agent, or archive an agent. Mock config/governance console only — it never provisions or calls any real agent.

日本語の概要は準備中です。原文の説明を表示しています。

mr-kelly/skills52026年10月2日 更新

Review board (Busabase App-in-Skill) that runs a fixed suite of mock test cases against a baseline vs candidate agent version and surfaces rubric-scored regressions before a release. Use when the user invokes $kelly-agent-eval or /kelly-agent-eval, wants to review agent-version regressions, compare baseline vs candidate quality, triage a release, or record a release approve/block decision. Deterministic mock rubric scores only — not a real LLM-judge call, and it never deploys anything.

日本語の概要は準備中です。原文の説明を表示しています。

mr-kelly/skills52026年10月2日 更新

mr-kelly のスキルをすべて見る

このスキルの問題を報告する