Test Strategy Design
БесплатноБез исполняемых скриптовНе проверенComprehensive test strategy design methodology covering risk-based testing, test pyramid optimization, coverage planning, environment strategy, data…
от PramodDutta★ 253 звезды на GitHubОб этом скилле
Test Strategy Design Skill
You are an expert in test strategy design. When the user asks you to create a test strategy, plan test coverage, design test architecture, assess testing risks, or evaluate test automation ROI, follow these detailed instructions.
Core Principles
- Risk-driven prioritization -- Test the highest-risk areas first. Risk is the product of probability of failure and business impact of failure.
- Test pyramid optimization -- Maintain the right ratio of unit, integration, and E2E tests. More fast tests at the base, fewer slow tests at the top.
- Shift-left testing -- Find defects earlier in the development cycle where they are cheaper to fix. Integrate testing into design and development phases.
- Data-informed decisions -- Use defect data, coverage reports, production incidents, and user analytics to guide testing investments.
- Environment parity -- Test environments should mirror production as closely as possible. Differences between environments are a source of escaped defects.
- Sustainable automation -- Automate tests that provide recurring value. Not every test is worth automating; some are better executed manually.
- Continuous improvement -- Measure strategy effectiveness with metrics, review quarterly, and adapt based on findings.
Project Structure
test-strategy/
assessment/
current-state-analysis.ts
risk-assessment.ts
gap-analysis.ts
maturity-model.ts
planning/
test-pyramid-calculator.ts
coverage-planner.ts
resource-allocator.ts
timeline-builder.ts
metrics/
quality-metrics.ts
automation-roi.ts
defect-analytics.ts
coverage-tracker.ts
templates/
strategy-document.md
test-plan-template.md
risk-register.md
coverage-matrix.md
tools/
test-data-strategy.ts
environment-planner.ts
tool-selection-matrix.ts
Risk Assessment Engine
// assessment/risk-assessment.ts
export interface RiskItem {
id: string;
feature: string;
probability: number; // 1-5
impact: number; // 1-5
riskScore: number;
mitigationStrategy: string;
testingApproach: string;
automationPriority: 'critical' | 'high' | 'medium' | 'low';
}
export interface RiskMatrix {
items: RiskItem[];
overallRisk: number;
criticalPaths: string[];
recommendations: string[];
}
export function assessRisks(features: Array<{
name: string;
complexity: number;
changeFrequency: number;
userImpact: number;
hasTests: boolean;
lastIncident?: string;
}>): RiskMatrix {
const items: RiskItem[] = features.map((feature) => {
const probability = calculateProbability(feature);
const impact = feature.userImpact;
const riskScore = probability * impact;
return {
id: feature.name.toLowerCase().replace(/\s+/g, '-'),
feature: feature.name,
probability,
impact,
riskScore,
mitigationStrategy: getMitigationStrategy(riskScore),
testingApproach: getTestingApproach(riskScore, feature),
automationPriority: getAutomationPriority(riskScore),
};
});
const sorted = items.sort((a, b) => b.riskScore - a.riskScore);
const overallRisk = sorted.reduce((sum, item) => sum + item.riskScore, 0) / sorted.length;
const criticalPaths = sorted.filter((i) => i.riskScore >= 15).map((i) => i.feature);
return {
items: sorted,
overallRisk,
criticalPaths,
recommendations: generateRecommendations(sorted, overallRisk),
};
}
function calculateProbability(feature: any): number {
let score = 1;
if (feature.complexity > 3) score += 1;
if (feature.changeFrequency > 3) score += 1;
if (!feature.hasTests) score += 1;
if (feature.lastIncident) score += 1;
return Math.min(5, score);
}
function getMitigationStrategy(riskScore: number): string {
if (riskScore >= 20) return 'Comprehensive automation with monitoring and alerting';
if (riskScore >= 15) return 'Full regression suite with performance testing';
if (riskScore >= 10) return 'Targeted automation for critical paths';
if (riskScore >= 5) return 'Unit tests with selective integration tests';
return 'Basic unit test coverage';
}
function getTestingApproach(riskScore: number, feature: any): string {
if (riskScore >= 15) return 'E2E + Integration + Unit + Performance + Security';
if (riskScore >= 10) return 'E2E + Integration + Unit';
if (riskScore >= 5) return 'Integration + Unit';
return 'Unit tests';
}
function getAutomationPriority(riskScore: number): RiskItem['automationPriority'] {
if (riskScore >= 20) return 'critical';
if (riskScore >= 15) return 'high';
if (riskScore >= 10) return 'medium';
return 'low';
}
function generateRecommendations(items: RiskItem[], overallRisk: number): string[] {
const recommendations: string[] = [];
const criticalCount = items.filter((i) => i.riskScore >= 15).length;
if (criticalCount > 0) {
recommendations.push(`${criticalCount} critical risk areas identified. Prioritize a
Установить Test Strategy Design в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Test Strategy Design?
Comprehensive test strategy design methodology covering risk-based testing, test pyramid optimization, coverage planning, environment strategy, data management, and test automation ROI analysis for enterprise and startup contexts.
Как установить скилл Test Strategy Design?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Test Strategy Design запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic