Loading...
Loading...
Compare original and translation side by side
undefinedundefined</quick_start>
<reference_index>
**參考文件** (`references/`)
| 文件 | 內容 |
|------|------|
| input-schema.md | 輸入參數詳細定義與驗證規則 |
| methodology.md | 指數趨勢擬合與偏離度計算方法論 |
| regime-rules.md | 1970s-like vs 2000s-like 體質判定規則 |
| data-sources.md | 數據來源與替代方案說明 |
</reference_index>
<workflows_index>
| Workflow | Purpose |
|----------|---------|
| detect.md | 單資產趨勢偏離度偵測與體質判定 |
| compare.md | 歷史峰值詳細對照分析 |
| macro.md | 宏觀因子分解與貢獻度分析 |
</workflows_index>
<templates_index>
| Template | Purpose |
|----------|---------|
| output-json.md | JSON 輸出結構定義 |
| output-markdown.md | Markdown 報告輸出模板 |
</templates_index>
<scripts_index>
| Script | Purpose |
|--------|---------|
| trend_deviation.py | 主要分析腳本:趨勢擬合、偏離度計算、體質判定 |
| generate_chart.py | 視覺化圖表生成:偏離度歷史圖表與峰值標註 |
</scripts_index>
<examples_index>
**範例輸出** (`examples/`)
| 文件 | 內容 |
|------|------|
| gold-deviation-2026.json | 2026 年黃金趨勢偏離度分析範例 |
</examples_index>
<success_criteria>
Skill 成功執行時:
- [ ] 成功擬合黃金價格的指數趨勢線
- [ ] 計算出當前偏離度百分比與歷史分位數
- [ ] 與 2011/1980 峰值進行有效比較
- [ ] 綜合宏觀代理指標得出 regime 判定(1970s-like / 2000s-like)
- [ ] 輸出完整的 JSON 或 Markdown 報告
- [ ] (選用)生成視覺化圖表(PNG)標註歷史峰值與當前位置
</success_criteria></quick_start>
<reference_index>
**Reference Documents** (`references/`)
| Document | Content |
|------|------|
| input-schema.md | Detailed definition and validation rules for input parameters |
| methodology.md | Methodology for exponential trend fitting and deviation calculation |
| regime-rules.md | Regime assessment rules for 1970s-like vs 2000s-like |
| data-sources.md | Data sources and alternative solutions description |
</reference_index>
<workflows_index>
| Workflow | Purpose |
|----------|---------|
| detect.md | Single asset trend deviation detection and regime assessment |
| compare.md | Detailed historical peak comparison analysis |
| macro.md | Macro factor decomposition and contribution analysis |
</workflows_index>
<templates_index>
| Template | Purpose |
|----------|---------|
| output-json.md | JSON output structure definition |
| output-markdown.md | Markdown report output template |
</templates_index>
<scripts_index>
| Script | Purpose |
|--------|---------|
| trend_deviation.py | Main analysis script: trend fitting, deviation calculation, regime assessment |
| generate_chart.py | Visualization chart generation: historical deviation chart and peak annotation |
</scripts_index>
<examples_index>
**Example Outputs** (`examples/`)
| Document | Content |
|------|------|
| gold-deviation-2026.json | Example of gold trend deviation analysis in 2026 |
</examples_index>
<success_criteria>
When the skill is successfully executed:
- [ ] Successfully fit the exponential trend line of gold prices
- [ ] Calculate the current deviation percentage and historical quantile
- [ ] Effectively compare with the 2011/1980 peaks
- [ ] Combine macro proxy indicators to reach a regime assessment (1970s-like / 2000s-like)
- [ ] Output a complete JSON or Markdown report
- [ ] (Optional) Generate a visualization chart (PNG) annotating historical peaks and current position
</success_criteria>