P2e Shadow Validation logo

P2e Shadow Validation

Community
gmaxxxie
p2e-shadow-validation

AI Native 产品方法论——影子验证的实操 Skill。 用户提供收敛决策结论,Skill 自动执行影子验证: 影子系统设计 → 并行运行方案 → 人工对比机制 → 失败模式沉淀 → 审计放行证据 → 输出影子验证报告。 基于《AI Native 产品方法论》第10章(试验展开-影子验证)。

Overview

Publishergmaxxxie
Repositoryai-native-product-agent-skills
Skill namep2e-shadow-validation
Stars
45
Forks
1
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by gmaxxxie on GitHub. Read the source before you install it.

Installation

Install the P2e Shadow Validation AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/gmaxxxie/ai-native-product-agent-skills/tree/main/skills/p2e-shadow-validation
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/gmaxxxie/ai-native-product-agent-skills.git /tmp/ai-native-product-agent-skills
mkdir -p .claude/skills
cp -r /tmp/ai-native-product-agent-skills/skills/p2e-shadow-validation .claude/skills/p2e-shadow-validation
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable P2e Shadow Validation in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads P2e Shadow Validation on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so P2e Shadow Validation is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

影子验证 Skill

使用场景

  • 收敛决策已完成,需要在真实环境中验证系统是否具备进入工程化的条件
  • 离线实验效果良好,但不确定真实流量下表现是否一致
  • 需要为审计放行准备真实的、可量化的证据

核心概念

  • 影子验证(Shadow Validation):让 AI 在真实场景中并行运行,但暂不直接接管业务结果
  • 影子系统(Shadow System):承载这种验证方式的系统形态,与人工流程并行存在
  • 离线评估:在样本集上检验能力边界
  • 灰度上线:让系统在有限真实范围内直接影响业务结果

影子验证 vs 其他验证方式

验证方式真实性风险证据质量适用阶段
离线评估最低无中(样本偏差)能力实验
影子验证中低高(真实流量)放行前验证
灰度上线高中最高生产运行

影子验证流程

收敛决策通过
  → 影子系统设计
    → 并行运行方案
      → 人工对比机制
        → 失败模式沉淀
          → 审计放行证据
            → 灰度上线 / 继续影子验证

第一步:影子系统设计

影子系统的核心设计原则:

  1. 输出可见但不执行:AI 给出建议,但业务动作仍由人工执行
  2. 完整记录:每次 AI 输出都记录,包括输入、上下文、置信度、人工对比结果
  3. 可开关:发现重大问题时能快速切换到纯人工模式

影子系统架构

yaml
真实工单进入
  → 人工流程(正常执行)
    → 影子系统(并行生成建议)
      → 建议存储(不外发)
        → 周度人工对比
          → 失败模式沉淀
            → 系统优化

第二步:并行运行方案

运行参数设计:

参数设计理由
并行比例从5%开始,逐步扩到50%控制初期风险
场景筛选先从低风险场景开始避免高风险场景先行暴雷
扩量节奏采纳率连续2周>60%再扩确保质量稳定后再放量
熔断机制连续3次高风险误判自动暂停防止持续出错

第三步:人工对比机制

每周人工对比:

  • 随机抽取影子系统建议(≥50条)
  • 人工标注:正确 / 可接受 / 错误 / 风险误判
  • 计算采纳率、错误率、风险漏过率

第四步:失败模式沉淀

每次对比后沉淀失败案例:

失败类型数量占比根因改进方向
上下文丢失1224%会话状态未保留补充记忆系统
风险漏过510%边界规则不完善收紧风险规则
知识缺失816%知识库覆盖不足补充知识库

第五步:审计放行证据准备

影子验证报告需包含:

  1. 运行概况:并行时长、工单量、场景分布
  2. 质量指标:采纳率、错误率、风险漏过率
  3. 失败模式分析:Top失败类型及根因
  4. 与离线评估对比:是否出现离线未发现的问题
  5. 放行建议:是否具备进入工程化/灰度上线条件

输出物:影子验证报告

  1. 影子系统配置:并行比例、场景选择、熔断规则
  2. 质量趋势图:采纳率、错误率随时间的变化
  3. 失败模式报告:Top问题、根因和改进建议
  4. 审计放行证据包:符合 @ai-native-audit-release 输入要求的完整证据

与其他 Skill 的关系

  • 前置:@p2d-convergence-decision(收敛决策通过)
  • 后置:@ai-native-audit-release(审计放行输入)、@ai-native-system-building(通过后进入工程化)
  • 协同:@ai-native-production-ops(生产环境准备)

示例

用户输入

"客服 Copilot 收敛决策通过,准备进入影子验证"

Skill 执行

yaml
影子系统设计:
  架构: 侧边栏建议面板(不外发)
  记录: 每次建议+人工对比+采纳标记
  熔断: 连续3次赔付类误判自动暂停

并行运行方案:
  第1周: 5%工单(低风险场景:订单查询)
  第2周: 20%工单(+物流解释)
  第3周: 50%工单(全场景)
  扩量条件: 采纳率连续2周>65%

人工对比(第1周结果):
  样本: 60条
  采纳率: 68%
  错误率: 12%(主要:上下文丢失)
  风险漏过率: 5%(主要:退款承诺)

失败模式:
  Top1: 多轮上下文丢失(35%)→ 补充会话状态设计
  Top2: 退款承诺误判(25%)→ 增加规则拦截
  Top3: 知识库缺失(20%)→ 补充200条FAQ

审计放行证据:
  ✅ 采纳率68% > 60%阈值
  ⚠️ 风险漏过率5%(需强化规则后再放行高风险场景)
  建议: 低风险场景先行灰度,高风险场景继续影子

Frequently asked questions

What does the P2e Shadow Validation AI skill do?

AI Native 产品方法论——影子验证的实操 Skill。 用户提供收敛决策结论,Skill 自动执行影子验证: 影子系统设计 → 并行运行方案 → 人工对比机制 → 失败模式沉淀 → 审计放行证据 → 输出影子验证报告。 基于《AI Native 产品方法论》第10章(试验展开-影子验证)。

Why use P2e Shadow Validation on TypingMind?

Because you install it once and use it with any model. P2e Shadow Validation is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install P2e Shadow Validation in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/gmaxxxie/ai-native-product-agent-skills/tree/main/skills/p2e-shadow-validation. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use P2e Shadow Validation?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with P2e Shadow Validation?

As many as you like. As long as a model supports skills, you can use P2e Shadow Validation with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the P2e Shadow Validation AI skill free?

It is published on GitHub by gmaxxxie. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇