Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问clear审计未展示

retrospective-validation回顾性验证

Agent Skill

retrospective-validation 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,782

周安装

190

GitHub Stars

公开资料未说明

下载量

1,426
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:retrospective-validation(回顾性验证)
来源仓库:https://github.com/zpankz/mcp-skillset
仓库路径:skills/retrospective-validation
安装命令:
npx skills add zpankz/mcp-skillset --skill "retrospective-validation"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add zpankz/mcp-skillset --skill "retrospective-validation"

简介

查找、检索和筛选相关信息,适合快速定位候选结果。

  • 适用于 Codex、Claude、Cursor、Gemini CLI 等宿主环境。
  • 通过 github 安装,命令为 npx skills add zpankz/mcp-skillset --skill "retrospective-validation"。
  • 需确认权限范围和维护状态,注意是否触发联网或文件读写。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

name
Retrospective Validation
description
Validate methodology effectiveness using historical data without live deployment. Use when rich historical data exists (100+ instances), methodology targets observable patterns (error prevention, test strategy, performance optimization), pattern matching is feasible with clear detection rules, and live deployment has high friction (CI/CD integration effort, user study time, deployment risk). Enables 40-60% time reduction vs prospective validation, 60-80% cost reduction. Confidence calculation model provides statistical rigor. Validated in error recovery (1,336 errors, 23.7% prevention, 0.79 confidence).
allowed-tools
Read, Grep, Glob, Bash

Retrospective Validation

Validate methodologies with historical data, not live deployment.

When you have 1,000 past errors, you don't need to wait for 1,000 future errors to prove your methodology works.

When to Use This Skill

Use this skill when:

  • 📊 Rich historical data: 100+ instances (errors, test failures, performance issues)
  • 🎯 Observable patterns: Methodology targets detectable issues
  • 🔍 Pattern matching feasible: Clear detection heuristics, measurable false positive rate
  • High deployment friction: CI/CD integration costly, user studies time-consuming
  • 📈 Statistical rigor needed: Want confidence intervals, not just hunches
  • Time constrained: Need validation in hours, not weeks

Don't use when:

  • ❌ Insufficient data (<50 instances)
  • ❌ Emergent effects (human behavior change, UX improvements)
  • ❌ Pattern matching unreliable (>20% false positive rate)
  • ❌ Low deployment friction (1-2 hour CI/CD integration)

Quick Start (30 minutes)

Step 1: Check Historical Data (5 min)

# Example: Error data for meta-cc
meta-cc query-tools --status error | jq '. | length'
# Output: 1336 errors ✅ (>100 threshold)

# Example: Test failures from CI logs
grep "FAILED" ci-logs/*.txt | wc -l
# Output: 427 failures ✅

Threshold: ≥100 instances for statistical confidence

Step 2: Define Detection Rule (10 min)

Tool: validate-path.sh
Prevents: "File not found" errors
Detection:
  - Error message matches: "no such file or directory"
  - OR "cannot read file"
  - OR "file does not exist"
Confidence: High (90%+) - deterministic check

Step 3: Apply Rule to Historical Data (10 min)

# Count matches
grep -E "(no such file|cannot read|does not exist)" errors.log | wc -l
# Output: 163 errors (12.2% of total)

# Sample manual validation (30 errors)
# True positives: 28/30 (93.3%)
# Adjusted: 163 * 0.933 = 152 preventable ✅

Step 4: Calculate Confidence (5 min)

Confidence = Data Quality × Accuracy × Logical Correctness
           = 0.85 × 0.933 × 1.0
           = 0.79 (High confidence)

Result: Tool would have prevented 152 errors with 79% confidence.


Four-Phase Process

Phase 1: Data Collection

1. Identify Data Sources

For Claude Code / meta-cc:

# Error history
meta-cc query-tools --status error

# User pain points
meta-cc query-user-messages --pattern "error|fail|broken"

# Error context
meta-cc query-context --error-signature "..."

For other projects:

  • Git history (commits, diffs, blame)
  • CI/CD logs (test failures, build errors)
  • Application logs (runtime errors)
  • Issue trackers (bug reports)

2. Quantify Baseline

Metrics needed:

  • Volume: Total instances (e.g., 1,336 errors)
  • Rate: Frequency (e.g., 5.78% error rate)
  • Distribution: Category breakdown (e.g., file-not-found: 12.2%)
  • Impact: Cost (e.g., MTTD: 15 min, MTTR: 30 min)

Phase 2: Pattern Definition

1. Create Detection Rules

For each tool/methodology:

what_it_prevents: Error type or failure mode
detection_rule: Pattern matching heuristic
confidence: Estimated accuracy (high/medium/low)

2. Define Success Criteria

prevention: Message matches AND tool would catch it
speedup: Tool faster than manual debugging
reliability: No false positives/negatives in sample

Phase 3: Validation Execution

1. Apply Rules to Historical Data

# Pseudo-code
for instance in historical_data:
  category = classify(instance)
  tool = find_applicable_tool(category)
  if would_have_prevented(tool, instance):
    count_prevented++

prevention_rate = count_prevented / total * 100

2. Sample Manual Validation

Sample size: 30 instances (95% confidence)
For each: "Would tool have prevented this?"
Calculate: True positive rate, False positive rate
Adjust: prevention_claim * true_positive_rate

Example (Bootstrap-003):

Sample: 30/317 claimed prevented
True positives: 28 (93.3%)
Adjusted: 317 * 0.933 = 296 errors
Confidence: High (93%+)

3. Measure Performance

# Tool time
time tool.sh < test_input
# Output: 0.05s

# Manual time (estimate from historical data)
# Average debug time: 15 min = 900s

# Speedup: 900 / 0.05 = 18,000x

Phase 4: Confidence Assessment

Confidence Formula:

Confidence = D × A × L

Where:
D = Data Quality (0.5-1.0)
A = Accuracy (True Positive Rate, 0.5-1.0)
L = Logical Correctness (0.5-1.0)

Data Quality (D):

  • 1.0: Complete, accurate, representative
  • 0.8-0.9: Minor gaps or biases
  • 0.6-0.7: Significant gaps
  • <0.6: Unreliable data

Accuracy (A):

  • 1.0: 100% true positive rate (verified)
  • 0.8-0.95: High (sample validation 80-95%)
  • 0.6-0.8: Medium (60-80%)
  • <0.6: Low (unreliable pattern matching)

Logical Correctness (L):

  • 1.0: Deterministic (tool directly addresses root cause)
  • 0.8-0.9: High correlation (strong evidence)
  • 0.6-0.7: Moderate correlation
  • <0.6: Weak or speculative

Example (Bootstrap-003):

D = 0.85 (Complete error logs, minor gaps in context)
A = 0.933 (93.3% true positive rate from sample)
L = 1.0 (File validation is deterministic)

Confidence = 0.85 × 0.933 × 1.0 = 0.79 (High)

Interpretation:

  • ≥0.75: High confidence (publishable)
  • 0.60-0.74: Medium confidence (needs caveats)
  • 0.45-0.59: Low confidence (suggestive, not conclusive)
  • <0.45: Insufficient confidence (need prospective validation)

Comparison: Retrospective vs Prospective

AspectRetrospectiveProspective
TimeHours-daysWeeks-months
CostLow (queries)High (deployment)
RiskZeroMay introduce issues
Confidence0.60-0.950.90-1.0
DataHistoricalNew
ScopeFull historyLimited window
BiasHindsightNone

When to use each:

  • Retrospective: Fast validation, high data volume, observable patterns
  • Prospective: Behavioral effects, UX, emergent properties
  • Hybrid: Retrospective first, limited prospective for edge cases

Success Criteria

Retrospective validation succeeded when:

  1. Sufficient data: ≥100 instances analyzed
  2. High confidence: ≥0.75 overall confidence score
  3. Sample validated: ≥80% true positive rate
  4. Impact quantified: Prevention % or speedup measured
  5. Time savings: 40-60% faster than prospective validation

Bootstrap-003 Validation:

  • ✅ Data: 1,336 errors analyzed
  • ✅ Confidence: 0.79 (high)
  • ✅ Sample: 93.3% true positive rate
  • ✅ Impact: 23.7% error prevention
  • ✅ Time: 3 hours vs 2+ weeks (prospective)

Related Skills

Parent framework:

Complementary acceleration:


References

Core guide:

Examples:


Status: ✅ Validated | Bootstrap-003 | 0.79 confidence | 40-60% time reduction

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenCode

31.96%
按下载量换算456

Claude Code

24.04%
按下载量换算343

windsurf

16.13%
按下载量换算230

Codex

11.77%
按下载量换算168

kiro-cli

8.72%
按下载量换算124

mcpjam

3.57%
按下载量换算51

安全审计

暂无安全审计结果可展示。

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills