Communitygithub.com

tradermonty/skill-designer

根据结构化的创意规范设计新的 Claude 技能。在技能自动生成管道需要生成 Claude CLI 提示来创建完整的技能目录(包括 SKILL.md、参考资料、脚本和测试)时使用。

skill-designer 是什么?

Skill Designer 是一个专为 Claude 技能自动生成管道设计的工具,它能够将结构化的技能创意规范转化为一个完整的、可直接执行的 Claude CLI 提示。该工具的核心功能是读取一个包含技能标题、描述和分类的 JSON 规范文件,并结合仓库中的结构指南、质量检查清单和模板等参考文档,自动生成一个全面的设计提示。这个提示随后会被管道送入 `claude -p` 命令,从而让 Claude 根据提示自动创建出符合仓库约定的完整技能目录——包括带有 YAML 前置元数据的 SKILL.md、辅助脚本、测试框架和参考文档。它支持 Python 3.9 以上环境,无需外部 API 密钥,工作流清晰,先构建提示再交由 Claude 执行,最后可通过质量检查清单验证输出。该工具能有效提升技能创建的标准化程度和效率,尤其适合需要批量生成或质量审查的场景。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/tradermonty/claude-trading-skills/tree/main/skills/skill-designer

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

技能设计师(Skill Designer)

概述

从结构化的技能创意规范生成一个全面的 Claude CLI 提示。该提示指导 Claude 按照仓库约定创建一个完整的技能目录:包含带 YAML 前置元数据的 SKILL.md、参考文档、辅助脚本和测试框架。

何时使用

  • 技能自动生成管道从待办事项中选择了一个创意,需要生成一个供 claude -p 使用的设计提示
  • 开发者想要根据 JSON 创意规范快速搭建一个新技能
  • 需要对生成的技能进行质量审查,需要了解评分标准

前提条件

  • Python 3.9+
  • 无需外部 API 密钥
  • 参考文件必须存在于 references/ 目录下

工作流程

第一步:准备创意规范

接受一个 JSON 文件(--idea-json),包含:

  • title:人类可读的技能创意名称
  • description:技能的功能描述
  • category:技能类别(例如:交易分析、开发者工具)

接受一个规范化技能名称(--skill-name),它将用作目录名和 YAML 前置元数据中的 name: 字段。

第二步:构建设计提示

运行提示构建器:

python3 skills/skill-designer/scripts/build_design_prompt.py \
  --idea-json /tmp/idea.json \
  --skill-name "my-new-skill" \
  --project-root .

该脚本:

  1. 加载创意 JSON
  2. 读取所有三个参考文件(结构指南、质量检查清单、模板)
  3. 列出已有技能(最多 20 个)以避免重复
  4. 将完整的提示输出到标准输出

第三步:将提示输入到 Claude CLI

调用管道将提示通过管道传入 claude -p:

python3 skills/skill-designer/scripts/build_design_prompt.py \
  --idea-json /tmp/idea.json \
  --skill-name "my-new-skill" \
  --project-root . \
| claude -p --allowedTools Read,Edit,Write,Glob,Grep

第四步:验证输出

在 Claude 创建技能后,验证:

  • skills/<skill-name>/SKILL.md 存在且包含正确的前置元数据
  • 目录结构符合约定
  • 使用双轴技能审查器(dual-axis-skill-reviewer)的评分达到阈值

输出格式

脚本以纯文本形式将提示输出到标准输出。成功时退出码为 0,如果所需的参考文件缺失则退出码为 1。

资源

  • references/skill-structure-guide.md — 目录结构、SKILL.md 格式、命名约定
  • references/quality-checklist.md — 双轴审查器 5 大类检查清单(100 分)
  • references/skill-template.md — 带 YAML 前置元数据和标准章节的 SKILL.md 模板
  • scripts/build_design_prompt.py — 提示构建器脚本(CLI 接口)

Individual skills in this repo

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

tradermonty/backtest-expert

Expert guidance for systematic backtesting of trading strategies. Use when developing, testing, stress-testing, or validating quantitative trading strategies. Covers "beating ideas to death" methodology, parameter robustness testing, slippage modeling, bias prevention, and interpreting backtest results. Applicable when user asks about backtesting, strategy validation, robustness testing, avoiding overfitting, or systematic trading development.

tradermonty/market-environment-analysis

Comprehensive market environment analysis and reporting tool. Analyzes global markets including US, European, Asian markets, forex, commodities, and economic indicators. Provides risk-on/risk-off assessment, sector analysis, and technical indicator interpretation. Triggers on keywords like market analysis, market environment, global markets, trading environment, market conditions, investment climate, market sentiment, forex analysis, stock market analysis, 相場環境, 市場分析, マーケット状況, 投資環境.

tradermonty/market-news-analyst

This skill should be used when analyzing recent market-moving news events and their impact on equity markets and commodities. Use this skill when the user requests analysis of major financial news from the past 10 days, wants to understand market reactions to monetary policy decisions (FOMC, ECB, BOJ), needs assessment of geopolitical events' impact on commodities, or requires comprehensive review of earnings announcements from mega-cap stocks. The skill automatically collects news using WebSearch/WebFetch tools and produces impact-ranked analysis reports. All analysis thinking and output are conducted in English.

tradermonty/options-strategy-advisor

Options trading strategy analysis and simulation tool. Provides theoretical pricing using Black-Scholes model, Greeks calculation, strategy P/L simulation, and risk management guidance. Use when user requests options strategy analysis, covered calls, protective puts, spreads, iron condors, earnings plays, or options risk management. Includes volatility analysis, position sizing, and earnings-based strategy recommendations. Educational focus with practical trade simulation.

tradermonty/portfolio-manager

Comprehensive portfolio analysis using Alpaca MCP Server integration to fetch holdings and positions, then analyze asset allocation, risk metrics, individual stock positions, diversification, and generate rebalancing recommendations. Use when user requests portfolio review, position analysis, risk assessment, performance evaluation, or rebalancing suggestions for their brokerage account.

tradermonty/scenario-analyzer

Skill that analyzes 18-month scenarios from a news headline. Runs the primary analysis with the scenario-analyst agent and obtains a second opinion with the strategy-reviewer agent. Generates a comprehensive English report covering 1st/2nd/3rd-order impacts, recommended stocks, and a critical review. Example: /scenario-analyzer "Fed raises rates by 50bp" Triggers: news analysis, scenario analysis, 18-month outlook, medium-to-long-term investment strategy

tradermonty/sector-analyst

This skill should be used when analyzing sector rotation patterns and market cycle positioning. It fetches sector uptrend data from CSV (no API key required) and optionally accepts chart images for supplementary analysis. Use this skill when the user requests sector rotation analysis, cyclical vs defensive assessment, overbought/oversold identification, or market cycle phase estimation. All analysis and output are conducted in English.

tradermonty/signal-postmortem

Record and analyze post-trade outcomes for signals generated by edge pipeline and other skills. Track false positives, missed opportunities, and regime mismatches. Feed results back to edge-signal-aggregator weights and skill improvement backlog.

tradermonty/skill-idea-miner

Mine Claude Code session logs for skill idea candidates. Use when running the weekly skill generation pipeline to extract, score, and backlog new skill ideas from recent coding sessions.

tradermonty/theme-detector

Detect and analyze trending market themes across sectors. Use when user asks about current market themes, trending sectors, sector rotation, thematic investing, what themes are hot or cold, or wants to identify bullish and bearish market narratives with lifecycle analysis.

tradermonty/uptrend-analyzer

Analyzes market breadth using Monty's Uptrend Ratio Dashboard data to diagnose the current market environment. Generates a 0-100 composite score from 5 components (breadth, sector participation, rotation, momentum, historical context). Use when asking about market breadth, uptrend ratios, or whether the market environment supports equity exposure. No API key required.

tradermonty/us-stock-analysis

Comprehensive US stock analysis including fundamental analysis (financial metrics, business quality, valuation), technical analysis (indicators, chart patterns, support/resistance), stock comparisons, and investment report generation. Use when user requests analysis of US stock tickers (e.g., "analyze AAPL", "compare TSLA vs NVDA", "give me a report on Microsoft"), evaluation of financial metrics, technical chart analysis, or investment recommendations for American stocks.

tradermonty/value-dividend-screener

Screen US stocks for high-quality dividend opportunities combining value characteristics (P/E ratio under 20, P/B ratio under 2), attractive yields (3% or higher), and consistent growth (dividend/revenue/EPS trending up over 3 years). Supports two-stage screening using FINVIZ Elite API for efficient pre-filtering followed by FMP API for detailed analysis. Use when user requests dividend stock screening, income portfolio ideas, or quality value stocks with strong fundamentals.

tradermonty/vcp-screener

Screen S&P 500 stocks for Mark Minervini's Volatility Contraction Pattern (VCP) and detect historical VCPs in a single ticker's price path. Identifies Stage 2 uptrend stocks forming tight bases with contracting volatility near breakout pivot points; in historical single-ticker mode walks a multi-year history and emits every VCP that formed with forward-outcome stats (breakout / stop-hit / timeout). Use when user requests VCP screening, Minervini-style setups, tight base patterns, volatility contraction breakout candidates, Stage 2 momentum stock scanning, or historical VCP pattern study on a specific ticker (e.g. FIX, TSLA).

相关技能