一键导入
deep-verify
Generic multi-agent verification framework with balanced expert analysis. Model-agnostic and domain-agnostic - verify any work through expert analysis.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generic multi-agent verification framework with balanced expert analysis. Model-agnostic and domain-agnostic - verify any work through expert analysis.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | deep-verify |
| description | Generic multi-agent verification framework with balanced expert analysis. Model-agnostic and domain-agnostic - verify any work through expert analysis. |
| location | managed |
| dependencies | ["context","preflight","domain-registry"] |
| allowed-tools | ["ToolSearch","Read","Write","Edit","Glob","Grep","Bash(git *)","Bash(ls *)","Bash(mkdir *)","Task","Skill"] |
Execute this skill to verify work through balanced expert analysis.
When invoked, you will:
Resolve scope and context — invoke context skill (always), then preflight if confidence is low
Populate verification scope from working_scope
Generate expert agents based on the extracted context:
Domain expert selection via domain-registry: Read domain-registry/domains/*.md to match signals from working_scope. Minimum: 1 domain expert. No maximum.
Aggregate findings from all experts with proper weighting
Generate and save report to .outputs/verification/
Before executing any step, verify all required skills are present:
[skills-root]/context/SKILL.md
[skills-root]/preflight/SKILL.md
[skills-root]/domain-registry/README.md
Where [skills-root] is the parent of this skill's directory. Resolve with ls ../ from this skill's location.
If any required file is missing → stop immediately and output:
⚠ Missing required skills for deep-verify:
{missing-skill}
Expected: {skills-root}/{missing-skill}/SKILL.md
Install the missing skill(s):
git clone https://github.com/mikeng-io/agent-skills /tmp/agent-skills
cp -r /tmp/agent-skills/skills/{missing-skill} {skills-root}/
Or install the full suite at once:
cp -r /tmp/agent-skills/skills/ {skills-root}/
All dependencies present → proceed to Step 0.
Context (always required):
Invoke Skill("context") first. It classifies the artifact, detects domains from domain-registry, and determines routing confidence:
context_report:
artifact_type: "" # code | financial | marketing | creative | research | mixed
domains: [] # matched domain names from domain-registry
routing: "" # parallel-workflow | debate-protocol | deep-council
confidence: "" # high | medium | low
Preflight (conditional — triggered by context confidence):
Invoke Skill("preflight") only if context_report.confidence == "low" OR one or more signals remain unresolved:
Preflight fills exactly the gaps context could not resolve (max 3 questions, one at a time):
scope_clarification:
artifact: "" # what to verify
intent: "verify"
domains: [] # supplements context_report.domains
constraints: [] # explicit risks or concerns to focus on
confidence: "" # high | medium
If context_report.confidence == "high" → skip preflight entirely.
Merge into working scope:
working_scope:
artifact: "" # files, topics, or description of what to verify
domains: [] # from context_report (authoritative), supplemented by preflight
concerns: [] # from context signals and scope_clarification.constraints
context_summary: "" # combined description for expert agent prompts
Use working_scope throughout this skill.
Using working_scope from Step 0, extract the verification context:
conversation_analysis:
files: [] # from working_scope.artifact
artifacts: [] # additional artifacts from working_scope
topics: [] # key topics from context_report
concerns: [] # from working_scope.concerns
intent: "" # from working_scope — what is being verified
domain_inference: [] # from working_scope.domains
Spawn experts with dependency-aware execution for optimal analysis quality. Domain experts analyze first, then invariant experts use those findings.
Dependency-Aware Execution Strategy:
Verification has natural dependencies:
Task Definitions with Dependencies:
tasks:
# Wave 1: Domain analysis (foundation)
- id: domain-experts
description: "Domain-specific analysis"
depends_on: []
agents: [dynamic, based on conversation]
# Wave 2: Critical analysis (needs domain findings)
- id: integration-check
description: "Assess system-wide integration impact"
agent: "integration-checker"
depends_on: [domain-experts]
- id: devils-advocate
description: "Challenge assumptions and find failure modes"
agent: "devils-advocate"
depends_on: [domain-experts]
# Wave 3: Fresh perspective (needs complete analysis)
- id: third-party-review
description: "Fresh eyes review of all findings"
agent: "third-party-reviewer"
depends_on: [integration-check, devils-advocate]
execution:
mode: dag-orchestrated
waves:
wave_1: [domain-experts] # N domain experts in parallel
wave_2: [integration-check, devils-advocate] # 2 tasks in parallel
wave_3: [third-party-review] # 1 task
Why This Order Matters:
Performance Benefit:
Weight: 40%
Purpose: Counter confirmation bias through pre-mortem analysis
Capability: highest
Use this prompt:
You are the DEVIL'S ADVOCATE. Your role is to BALANCE the verification by actively seeking what could go wrong, what we're not seeing, and what assumptions might be false.
## Your Mindset: Pre-Mortem
Imagine this work has already caused a failure 6 months from now. Work backwards: What went wrong? What did we miss?
## Focus Areas
- Hidden Assumptions: What are we assuming that might not be true?
- Failure Modes: If this fails, what happens? Who is affected?
- Silent Failures: Could this fail without anyone noticing?
- Edge Cases: What edge cases might we have missed?
- Rollback Reality: Can we undo this? How difficult?
- Negative Impacts: What does this break that we're not seeing?
## Context to Analyze
{conversation_context}
## Your Scope
{scope_description}
## Output Format (JSON)
{
"agent": "devils-advocate",
"pre_mortem_scenarios": [
{
"scenario": "What went wrong",
"likelihood": "LOW | MEDIUM | HIGH",
"impact": "LOW | MEDIUM | HIGH | CRITICAL",
"evidence": "What suggests this could happen",
"mitigation": "How to prevent (if anything)"
}
],
"hidden_assumptions": [
{
"assumption": "What we're assuming",
"risk_if_false": "What happens if wrong"
}
]
}
Weight: 15%
Purpose: Assess system-wide impact
Capability: high
Use this prompt:
You are the INTEGRATION CHECKER. Your role is to assess the system-wide impact of the proposed changes.
## Focus Areas
- What other components/systems are affected?
- What coordination is needed?
- What dependencies exist?
- What could break elsewhere?
## Context
{conversation_context}
## Output Format (JSON)
{
"agent": "integration",
"affected_components": ["list of affected areas"],
"dependencies": ["list of dependencies"],
"coordination_required": ["what needs to be coordinated"],
"risks": [{"area": "affected area", "risk": "description"}]
}
Weight: 5%
Purpose: Fresh-eyes perspective
Capability: standard
Use this prompt:
You are a THIRD-PARTY REVIEWER seeing this for the first time. Provide fresh, unbiased feedback.
## Focus Areas
- Is the intent clear?
- Are there obvious gaps or confusion?
- What questions would a newcomer ask?
## Context
{conversation_context}
## Output Format (JSON)
{
"agent": "third-party",
"clarity_score": "HIGH | MEDIUM | LOW",
"questions": ["questions a newcomer would ask"],
"suggestions": ["constructive suggestions"]
}
For each domain detected in the conversation, generate a domain expert prompt:
Weight: 40% (shared across all domain experts)
Capability: high
Prompt Template:
You are a {DOMAIN} expert. Analyze the following work from a {DOMAIN} perspective.
## Context
{conversation_context}
## Your Focus
Identify issues, risks, and improvements specific to {DOMAIN}.
## Output Format (JSON)
{
"agent": "{domain}",
"findings": [
{
"severity": "CRITICAL | HIGH | MEDIUM | LOW",
"description": "Issue or observation",
"evidence": "Reference to specific content",
"fix": "Recommendation if applicable"
}
]
}
Spawn domain experts for each unique domain detected. Examples:
Any domain can be detected - analyze the conversation and spawn appropriate experts.
After all experts complete, aggregate their findings:
| Dimension | Result |
|---|---|
| Domain Correctness | ✅ PASS / ⚠️ CONCERNS |
| Risk Assessment | Based on Devil's Advocate findings |
| Integration Impact | Based on Integration Checker findings |
Generate a markdown report with this structure:
# Deep Verify Report
**Verdict:** {PASS | CONCERNS | FAIL}
**Generated:** {timestamp}
**Domains Analyzed:** {list of domains}
**Experts Consulted:** {count} experts
## Summary
| Dimension | Result |
|-----------|--------|
| Domain Correctness | {result} |
| Risk Assessment | {result} |
| Integration Impact | {result} |
---
## Risk Assessment (Devil's Advocate)
### {IMPACT} Risk: {scenario}
**Pre-mortem:** {failure scenario}
**Likelihood:** {likelihood}
**Impact:** {impact}
**Evidence:** {evidence}
**Mitigation:** {mitigation}
{repeat for each scenario}
---
## Domain Expert Findings
### {Domain Name}
{findings from domain expert}
{repeat for each domain}
---
## Integration Impact
**Affected:** {affected components}
**Dependencies:** {dependencies}
**Coordination:** {coordination needed}
---
## Third-Party Perspective
**Clarity:** {clarity score}
**Questions:** {questions raised}
**Suggestions:** {suggestions}
Before finalizing the report, validate it against the required format specification to ensure consistency.
Spawn an output validator sub-agent using the Task tool:
Capability: standard
You are an OUTPUT VALIDATOR for deep-verify reports. Your role is to ensure format compliance.
## Files to Validate
- Markdown: {path_to_markdown_file}
- JSON: {path_to_json_file}
## Validation Instructions
Follow the validation procedure defined in: skills/deep-verify/validators/output-validator.md
## Schema Location
JSON Schema: skills/deep-verify/schemas/verification-report-schema.json
## Tasks
1. Load and validate JSON against schema
2. Validate markdown structure and required sections
3. Cross-check consistency between JSON and markdown
4. Generate validation report
## Output Format
Return validation result as JSON with:
- validation_status: PASS or FAIL
- Specific errors and warnings
- Suggestions for fixes
## Strictness
FAIL on any critical errors:
- Missing required fields
- Invalid enum values
- Type mismatches
- Missing required sections
If validation PASSES:
If validation FAILS:
Example failure output:
❌ Validation FAILED
JSON Errors:
- Missing required field: risk_assessment.scenarios
- Invalid verdict value: 'MAYBE' (must be PASS, CONCERNS, or FAIL)
Markdown Errors:
- Missing required section: ## Integration Impact
- Domain 'Security' listed in metadata but no findings section found
Suggestions:
1. Add risk_assessment.scenarios array with at least one scenario
2. Change verdict to one of the valid values
3. Add ## Integration Impact section
4. Add ## Security findings section or remove from domains_analyzed
Would you like to regenerate the report with corrections?
Save to .outputs/verification/{YYYYMMDD-HHMMSS}-verification-{slug}.md with YAML frontmatter:
---
skill: deep-verify
timestamp: {ISO-8601}
artifact_type: verification
domains: [{domain1}, {domain2}]
verdict: PASS | FAIL | CONCERNS # if applicable
context_summary: "{brief description of what was reviewed}"
session_id: "{unique id}"
---
Also save JSON companion: {timestamp}-verification-{slug}.json
No symlinks. To find the latest artifact:
ls -t .outputs/verification/ | head -1
QMD Integration (optional, progressive enhancement):
qmd collection add .outputs/verification/ --name "deep-verify-artifacts" --mask "**/*.md" 2>/dev/null || true
qmd update 2>/dev/null || true
Note: Only save reports that pass validation.
The system uses these defaults unless overridden:
Expert Weights:
Output Directory: .outputs/verification/
These can be overridden via:
DEEP_VERIFY_OUTPUT_DIR).outputs/verification/config.yamlIf cross-runtime/cross-council confidence is needed after verification:
Invoke deep-council in fallback mode with:
review_scope: same scope as this verificationcontext_summary: paste context_summary from this verificationintensity: "standard" (or match this verification's intensity)deep-council will run all available bridges (bridge-claude if Task tool
accessible, plus any CLI bridges installed), providing multi-source confirmation of critical findings.
Merge multi_source_confirmed findings from council report into this
verification's final report.
deep-council for cross-runtime/cross-council confidencecontext skill first to classify artifact type and determine optimal routing (parallel-workflow vs debate-protocol vs deep-council)Skill("deepwiki") before spawning domain experts if the codebase has a Devin-indexed wiki — provides architectural context that sharpens domain expert analysis. Non-blocking; skip if unavailable.Role-diverse local council. Dispatches multiple expert roles (Devil's Advocate, Integration Checker, Domain Experts, Synthesis Lead) within one runtime/model family to review, audit, or brainstorm. Complements Model Council, Runtime Council, and Deep Council; use when role diversity and local adversarial debate are needed.
Shared contract for all bridge adapters — pre-flight SOP, standardized input/output schemas, artifact format, and status semantics. Read by any bridge or orchestrating skill. Not invocable standalone.
Reference adapter for OpenCode — model-agnostic multi-provider bridge. Read by any orchestrating skill via the Read tool. Covers pre-flight checks with interactive advisory, HTTP API server path (preferred), CLI run path as fallback, correct flags and model format embedded. Usable by deep-council, deep-review, deep-audit, or any future skill that needs multi-model review.
Shared vocabulary for Agent Council, Model Council, Runtime Council, and Deep Council. Use before designing or invoking council workflows so role, model, runtime/toolchain, and debate-layer diversity are not conflated.
Generic structured adversarial protocol for review, audit, research synthesis, and brainstorm/design councils. Supports finding validation plus proposal brainstorming lifecycles, packetized exchanges, and auditable manifests for nested councils.
Multi-agent standards and compliance auditing with pass/fail verdicts. Checks against security, accessibility, code standards, regulatory requirements, and performance benchmarks.