Dyt Ashareのロゴ

Dyt Ashare

コミュニティ
renjiegod
dyt-ashare

Use DYT AShare whenever a request concerns China A-shares (A股), 股票、指数、行情、信息查询、历史价格、上海/深圳/北京标的、分钟线、数据覆盖、质量检查、技术分析、研究、回测或可复现性. Route every A-share information or analysis request through this skill and use dytcn's structured JSON output. Do not use it for crypto or non-China markets.

概要

公開者renjiegod
リポジトリdyt-ashare-cli
スキル名dyt-ashare
スター
287
フォーク
0
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    renjiegodがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Dyt Ashare」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/renjiegod/dyt-ashare-cli/tree/main/skills/dyt-ashare
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/renjiegod/dyt-ashare-cli.git /tmp/dyt-ashare-cli
mkdir -p .claude/skills
cp -r /tmp/dyt-ashare-cli/skills/dyt-ashare .claude/skills/dyt-ashare
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでDyt Ashareを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にDyt Ashareを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Dyt Ashareは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

DYT AShare routing skill

This is the single entry point for A-share information lookup and analysis. Use the installed dytcn CLI and keep the command output as JSON. coverage, minutes and daily can work without login when the server's guest policy allows them. Run dytcn usage when account quota is relevant; run dytcn auth login before sync or account-only usage. Never ask the user to send an API key in chat.

Route by intent

User intentRouteRequired steps
A-share stock or index information, available history, or a requested date windowCoverage and data lookupNormalize a six-digit symbol with .SH, .SZ, or .BJ; run dytcn coverage before dytcn minutes, dytcn daily, or dytcn sync.
Historical minute/daily bars or a reproducible local datasetData retrievalUse dytcn minutes for a window of at most 31 calendar days, or dytcn daily for a daily window. Each remote daily request is at most 366 calendar days; the CLI splits longer ranges sequentially and consumes the matching quota. Prefer --out or --dir so the result can be inspected again.
Missing bars, duplicates, invalid OHLCV, session completeness, or dataset provenanceQuality analysisRun dytcn analyze --input <minutes.json> and report its quality fields, observed interval, row count, dataset IDs, and SHA256 values.
Technical analysis, strategy research, or a backtest inputResearch workflowRetrieve and validate the exact immutable data first, then analyze it locally. Use dytcn analyze for minute or daily JSON quality checks, or run dytcn backtest run for the built-in daily replay and keep its JSON plus self-contained HTML report. Treat descriptive statistics and backtest results as research evidence, not as a profitable strategy or a live trading signal.
Quota, rate limit, local installation, or version/update statusAccount and environmentUse dytcn usage, dytcn doctor, or dytcn auth status; guest limits are server-enforced and keys must not be rotated to bypass them.

Authentication and quota

Guest access is a supported mode, not a broken one. The server enforces the guest policy; the client never blocks a request that the server allows.

  • Check the session mode before a multi-step workflow: dytcn auth status reports mode (guest or account), and every coverage/minutes/daily answer carries an auth block with the same mode plus earliest_allowed_date when the server reports it.
  • Guest mode is limited by the server: request rate limits and daily request/row quotas, with any history boundary reported by the service. A single recent query is usually fine; a long history window, a batch of symbols, or a backtest dataset may require an account.
  • Recommend dytcn auth login when the task needs full history, repeated or bulk requests, sync, or usage. Keep working in guest mode meanwhile; never make login a precondition for answering, and never block a deliverable on it.
  • The key is entered by the user in their own terminal: dytcn auth login prompts with hidden input and stores the key in the local state directory. Never ask the user to paste a key into chat, never pass one as a command argument, never write one into a repository, a note, or a script. DYT_ASHARE_API_KEY exists for unattended CI and is read from the environment.
  • On a limit error, report the server code and the hint from the CLI error (guest_minute_rate_limited, guest_daily_rate_limited, guest_rows_daily_limited, guest_history_limit, invalid_api_key), then either wait for retry_after_seconds, narrow the request, or offer dytcn auth login. Do not loop retries and never rotate keys to work around a limit.
  • dytcn usage reports the account quota; a guest session has no usage answer because the endpoint is account-only.

A-share data rules

  • Resolve exchanges explicitly: 600000.SH, 000001.SZ, or a supported .BJ symbol.
  • Dates and bar ends use Asia/Shanghai. A date-only --to includes the full day.
  • Coverage absence does not prove a holiday. Distinguish the requested range, available files, and certified trading-calendar coverage.
  • Prices are unadjusted, volume is shares, and turnover is CNY. Opening auction data can appear at 09:31. Do not infer tradable returns across corporate actions without adjustment, fees, slippage, and tradability checks.
  • Preserve the returned immutable dataset IDs, SHA256 hashes, processor version, query range, and CLI version with any research result. Never glob or combine arbitrary Parquet revisions.

Safe command sequence

text
dytcn auth status              # optional; reports guest or account mode
dytcn coverage --symbol 600000.SH --from YYYY-MM-DD --to YYYY-MM-DD
dytcn minutes --symbol 600000.SH --from YYYY-MM-DD --to YYYY-MM-DD --out minutes.json
dytcn daily --symbol 600000.SH --from YYYY-MM-DD --to YYYY-MM-DD --out daily.json
dytcn usage                    # optional; requires login for account quota
dytcn analyze --input minutes.json

For a local daily replay, run coverage first, then fetch the exact window through the same remote API:

text
dytcn coverage --symbol 600000.SH --from YYYY-MM-DD --to YYYY-MM-DD
dytcn backtest run --symbol 600000.SH --from YYYY-MM-DD --to YYYY-MM-DD \
  --strategy sma-cross --fast 10 --slow 30 --initial-cash 100000 \
  --fee-bps 3 --slippage-bps 2 --html ./backtest.html

The replay is long-only, uses unadjusted daily prices, sends a signal observed at the close to the next bar's open, rounds buys down to the lot size, and liquidates at the final close. The report contains return, drawdown, fees, turnover, terminal state, trades, dataset IDs and SHA256 provenance. Missing dates remain unknown; the replay does not infer holidays or model queue priority, partial fills, 涨跌停, suspension, dividends, or splits. Keep the returned JSON and HTML together when sharing results.

For the first implementation, the execution ledger is a typed Rust sequential state machine. Polars is appropriate later as an optional feature for large columnar indicator pipelines, and Rayon is appropriate for independent symbol or parameter sweeps. Do not parallelize one symbol's cash and position ledger, and do not nest an outer Rayon pool around Polars' own pool without an explicit thread budget.

For a larger reproducible JSON window, use dytcn daily or dytcn backtest run; the CLI splits daily requests into bounded sequential windows. Use dytcn sync --symbol ... --from ... --to ... --dir ... only when the selected service advertises dataset manifest and download endpoints, and consume only paths listed in its returned catalog. A failed or quota-limited request should be reported with its server response; do not silently substitute another source.

よくある質問

AIスキル「Dyt Ashare」では何ができますか?

Use DYT AShare whenever a request concerns China A-shares (A股), 股票、指数、行情、信息查询、历史价格、上海/深圳/北京标的、分钟线、数据覆盖、质量检查、技术分析、研究、回测或可复现性. Route every A-share information or analysis request through this skill and use dytcn's structured JSON output. Do not use it for crypto or non-China markets.

TypingMindでDyt Ashareを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Dyt Ashareはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにDyt Ashareをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/renjiegod/dyt-ashare-cli/tree/main/skills/dyt-ashareを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Dyt Ashareを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Dyt Ashareで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもDyt Ashareを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Dyt Ashare」は無料ですか?

はい。renjiegodがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇