beta-test-cycles
БесплатноБез исполняемых скриптовНе проверенThis skill should be used when the user asks to "run beta test cycle", "run next cycle", "test static patterns", "analyze test failures", "improve pass rate"…
Об этом скилле
Beta Test Cycles Skill
What This Skill Does
This skill provides a systematic workflow for improving static pattern matchers through iterative test cycles. Use this approach to:
- Analyze test failures by root cause
- Fix patterns through strategic reordering and refinement
- Document improvements with measurable metrics
- Achieve high pass rates (80%+) efficiently
Core principle: Fix patterns systematically by understanding specificity hierarchy and matching logic, not by adding more patterns.
When to Use This Skill
Activate this skill when:
- Running beta test cycles for static pattern matchers
- Analyzing test suite failures to identify root causes
- Improving command generation pass rates
- Reordering patterns for specificity
- Fixing pattern over-matching or under-matching issues
- Documenting cycle results with metrics
Example triggers:
- "Run the next beta test cycle"
- "Analyze why these tests are failing"
- "Improve the static matcher pass rate"
- "Fix pattern ordering issues"
Core Workflow
Phase 1: Run Test Suite
Execute the test suite and capture results:
# Build the project
cargo build --release
# Run test suite
./target/release/caro test --backend static --suite .claude/beta-testing/test-cases.yaml > /tmp/cycle-N-results.txt
# Review results
cat /tmp/cycle-N-results.txt
Key metrics to track:
- Overall pass rate (percentage)
- Passing tests by category
- Failing tests by category
- Pattern count
Phase 2: Analyze Failures by Root Cause
Categorize each failure into one of these root causes:
Pattern Ordering Issue: More general pattern matches before more specific pattern
- Symptom: Test expects specific output but gets generic output
- Example: Test "find Python files modified today" matches generic "files modified today" pattern
- Fix: Reorder specific pattern before general pattern
Pattern Over-Matching: Pattern matches queries it shouldn't
- Symptom: Pattern incorrectly matches queries from different categories
- Example: Japanese pattern with optional keyword "files" matches English queries
- Fix: Remove optional keywords or tighten regex
Pattern Under-Matching: Pattern doesn't match intended queries
- Symptom: Expected pattern doesn't match, returns "No static pattern match found"
- Example: Japanese query doesn't match because pattern requires English keyword "find"
- Fix: Remove restrictive required keywords or adjust regex
Missing Pattern: No pattern exists for this query type
- Symptom: Multiple related test failures, no candidate pattern
- Fix: Add new pattern (use sparingly - reordering usually better)
Priority: Address ordering issues first (highest ROI), then over/under-matching, finally missing patterns.
Phase 3: Implement Fixes
Apply fixes based on root cause analysis:
Fix Type 1: Pattern Reordering
Move specific patterns before general patterns. See references/pattern-ordering-strategy.md for detailed specificity calculation.
Quick specificity guide:
- More required keywords = more specific
- More constraints (size, location, file type, time) = more specific
- Regex-only patterns (empty keywords) = highly specialized
Example reordering:
// Before (Pattern 46 at end, Pattern 1 at beginning)
Pattern 1: "files modified today" (3 keywords: file, modified, today)
...
Pattern 46: "Python files modified today" (4 keywords: python, file, modified, today)
// After (reorder Pattern 46 → Pattern 1)
Pattern 1: "Python files modified today" (4 keywords) ← More specific, checks first
Pattern 2: "files modified today" (3 keywords) ← General fallback
Fix Type 2: Keyword Adjustment
Remove optional keywords when pattern over-matches:
// Before (over-matching English queries)
PatternEntry {
required_keywords: vec![],
optional_keywords: vec!["find".to_string(), "files".to_string()],
regex_pattern: Some(Regex::new(r"[ぁ-んァ-ヶー一-龯]").unwrap()),
// ...
}
// After (regex-only matching)
PatternEntry {
required_keywords: vec![],
optional_keywords: vec![], // Empty forces regex-only
regex_pattern: Some(Regex::new(r"[ぁ-んァ-ヶー一-龯]").unwrap()),
// ...
}
Remove restrictive required keywords when pattern under-matches:
// Before (requires English "find" for Japanese query)
required_keywords: vec!["find".to_string()]
// After (no English keywords required)
required_keywords: vec![]
Fix Type 3: Regex Refinement
Tighten or loosen regex patterns as needed. See references/pattern-ordering-strategy.md for regex design patterns.
Phase 4: Build and Test
After implementing fixes:
# Build
cargo build --release
# Run tests
./target/release/caro test --backend static --suite .claude/beta-testing/test-cases.yaml
# Save results
./target/release/caro test --backend static --suite .claude/beta-testing/test-cases.yaml > /tmp/cyc
Установить beta-test-cycles в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл beta-test-cycles?
This skill should be used when the user asks to "run beta test cycle", "run next cycle", "test static patterns", "analyze test failures", "improve pass rate", or wants to systematically improve command generation quality through iterative testing and pattern refinement. Provides structured workflow for running test cycles, analyzing failures, implementing fixes, and documenting results.
Как установить скилл beta-test-cycles?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл beta-test-cycles запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic