跳到主要内容
知仓学习社ZHICANG

skill-integration-tester

Validate multi-skill workflows defined in CLAUDE.md by checking skill existence, inter-skill data contracts (JSON schema compatibility), file naming…

改身份文件严重 0 · 高危 8tradermonty/claude-trading-skills

它会碰到什么

扫了多少6 个文本文件,41 KB
它会碰到什么改身份文件
命中总数8 处
命中统计严重 0 · 高 8 · 中 0 · 低 0
逐条看命中(8 条严重或高危)
  • scripts/tests/test_test_workflows.py:20identity-write
    # ── Sample CLAUDE.md content for testing ─────────────────────────────
  • scripts/validate_workflows.py:2identity-write
    """Validate multi-skill workflows defined in CLAUDE.md.
  • scripts/validate_workflows.py:223identity-write
    """Parse multi-skill workflow definitions from CLAUDE.md content.
  • scripts/validate_workflows.py:544identity-write
    description=("Validate multi-skill workflows defined in CLAUDE.md"),
  • scripts/validate_workflows.py:550identity-write
    help="Path to CLAUDE.md (default: auto-detect from project root)",
  • scripts/validate_workflows.py:581identity-write
    claude_md_path = Path(args.claude_md) if args.claude_md else project_root / "CLAUDE.md"
  • scripts/validate_workflows.py:587identity-write
    f"Error: CLAUDE.md not found at {claude_md_path}",
  • scripts/validate_workflows.py:604identity-write
    print("Warning: No workflows found in CLAUDE.md", file=sys.stderr)

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Skill Integration Tester

Overview

Validate multi-skill workflows defined in CLAUDE.md (Daily Market Monitoring,

Weekly Strategy Review, Earnings Momentum Trading, etc.) by executing each step

in sequence. Check inter-skill data contracts for JSON schema compatibility

between output of step N and input of step N+1, verify file naming conventions,

and report broken handoffs. Supports dry-run mode with synthetic fixtures.

When to Use

  • After adding or modifying a multi-skill workflow in CLAUDE.md
  • After changing a skill's output format (JSON schema, file naming)
  • Before releasing new skills to verify pipeline compatibility
  • When debugging broken handoffs between consecutive workflow steps
  • As a CI pre-check for pull requests touching skill scripts

Prerequisites

  • Python 3.9+
  • No API keys required
  • No third-party Python packages required (uses only standard library)

Workflow

Step 1: Run Integration Validation

Execute the validation script against the project's CLAUDE.md:

python3 skills/skill-integration-tester/scripts/validate_workflows.py \
  --output-dir reports/

This parses all Workflow Name: blocks from the Multi-Skill Workflows

section, resolves each step's display name to a skill directory, and validates

existence, contracts, and naming.

Step 2: Validate a Specific Workflow

Target a single workflow by name substring:

python3 skills/skill-integration-tester/scripts/validate_workflows.py \
  --workflow "Earnings Momentum" \
  --output-dir reports/

Step 3: Dry-Run with Synthetic Fixtures

Create synthetic fixture JSON files for each skill's expected output and

validate contract compatibility without real data:

python3 skills/skill-integration-tester/scripts/validate_workflows.py \
  --dry-run \
  --output-dir reports/

Fixture files are written to reports/fixtures/ with _fixture flag set.

Step 4: Review Results

Open the generated Markdown report for a human-readable summary, or parse

the JSON report for programmatic consumption. Each workflow shows:

  • Step-by-step skill existence checks
  • Handoff contract validation (PASS / FAIL / N/A)
  • File naming convention violations
  • Overall workflow status (valid / broken / warning)

Step 5: Fix Broken Handoffs

For each FAIL handoff, verify that:

  1. The producer skill's output contains all required fields
  2. The consumer skill's input parameter accepts the producer's output format
  3. File naming patterns are consistent between producer output and consumer input

Output Format

JSON Report

{
  "schema_version": "1.0",
  "generated_at": "2026-03-01T12:00:00+00:00",
  "dry_run": false,
  "summary": {
    "total_workflows": 8,
    "valid": 6,
    "broken": 1,
    "warnings": 1
  },
  "workflows": [
    {
      "workflow": "Daily Market Monitoring",
      "step_count": 4,
      "status": "valid",
      "steps": [...],
      "handoffs": [...],
      "naming_violations": []
    }
  ]
}

Markdown Report

Structured report with per-workflow sections showing step validation,

handoff status, and naming violations.

Reports are saved to reports/ with filenames

integration_test_YYYY-MM-DD_HHMMSS.{json,md}.

Resources

  • scripts/validate_workflows.py -- Main validation script
  • references/workflow_contracts.md -- Contract definitions and handoff patterns

Key Principles

  1. No API keys required -- all validation is local and offline
  2. Non-destructive -- reads SKILL.md and CLAUDE.md only, never modifies skills
  3. Deterministic -- same inputs always produce same validation results

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。