技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
a-share-runtime-data-access【数据与研究】Use when the task requires reading A-share stock data, financial data, valuation context, or querying local stock collections through core.skill_runtime runtime interfaces.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when the user asks for A-share local data retrieval, quote lookup, financial period lookup, valuation context building, technical indicator lookup, or schema inspection through the project's public runtime interfaces and local tools.
Before fetching data, read these documents in order:
docs/design/runtime-interfaces/skill-runtime-overview.mddocs/design/runtime-interfaces/local-data-access-design.mddocs/design/runtime-interfaces/project-access-and-governance.mdIf you need concrete function signatures or allowed collections, then read:
core/skill_runtime/data_access.pycore/skill_runtime/project_access.pycore/skill_runtime/catalog.pycore.skill_runtime.data_access for business-semantic data access.core.skill_runtime.project_access only when helper functions are insufficient or when inspecting schema / field coverage.MongoClient or import pymongo directly.core.skill_runtime by reading lower-level provider or database modules unless the user explicitly asks for code archaeology.For common A-share tasks, prefer these helpers first:
get_stock_basic_info(symbol)get_market_quotes(symbol)get_latest_stock_price(symbol)get_stock_daily_quotes(symbol, start_date, end_date)get_stock_financial_periods(symbol)get_stock_financial_data(symbol)get_stock_valuation_context(symbol)get_stock_news(symbol)query_stock_collection(collection, ...)inspect_stock_collection_schema(collection, ...)For technical-analysis tasks, prefer these entry points first:
core.tools.implementations.market.technical_factor_bundle_tool.get_technical_factor_bundle_toolcore.tools.implementations.market.technical_indicators.get_technical_indicatorsUse the factor bundle first when the user needs structured MA20, RSI14, KDJ, or MACD values.
Use get_technical_indicators only when the user wants a readable technical-analysis report rather than a structured factor payload.
When checking freshness or explaining discrepancies, inspect these components in order:
stock_technical_indicators latest trade_datemarket_quotes latest trade_dateapp/services/technical_indicator_materialization_service.pyapp/main.py technical indicator materialization job configurationThe embedded nanobot runtime does not expose core.skill_runtime as a first-class tool yet.
When you need actual data, do this:
temp/.C:\TradingAgentsCN\env\Scripts\python.exe using the exec tool.Do not treat a temp/*.py script as the final artifact when the logic is clearly reusable.
If the requested logic is parameterizable and should work for other stocks or other future runs, use the temp script only as a short validation probe and then promote the implementation into a reusable skill.
For technical-analysis tasks in embedded nanobot, use this execution pattern:
get_technical_factor_bundle_tool from a temp script.get_technical_indicators from a temp script.stock_technical_indicators.trade_date against market_quotes.trade_date before concluding there is a bug.For embedded runtime work, apply this boundary:
temp/On Windows, do not rely on inline python -c snippets for runtime verification.
Prefer writing a temporary .py file and then executing it. This avoids quoting and shell-expansion issues.
from pathlib import Path
import sys
repo = Path(r"C:\TradingAgentsCN")
sys.path.insert(0, str(repo))
from core.skill_runtime.data_access import get_stock_basic_info
data = get_stock_basic_info("600519")
print(data)
get_stock_basic_info or get_stock_valuation_context.get_stock_financial_periods.get_technical_factor_bundle_tool.get_technical_indicators after confirming the requested date range.inspect_stock_collection_schema.query_stock_collection only after confirming the collection is publicly exposed in catalog.py.