# Vs Architect

> Generate diverse solution variants with probability estimates using Verbalized Sampling (arXiv 2510.01171). Use when choosing between multiple approaches, debugging with unknown root cause, generating hypotheses or synthetic data, or when direct prompts produce repetitive mode-collapsed responses. Do NOT use for trivial scripts, factual queries, or stable production code.

- **Type:** Skill
- **Install:** `agentstack add skill-dimkurilo-opencode-skills-vs-architect`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [dimkurilo](https://agentstack.voostack.com/s/dimkurilo)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [dimkurilo](https://github.com/dimkurilo)
- **Source:** https://github.com/dimkurilo/opencode-skills/tree/main/skills/vs-architect

## Install

```sh
agentstack add skill-dimkurilo-opencode-skills-vs-architect
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# VS Architect — Agent Instructions

## Two-Phase Workflow

```
PHASE 1: VS Analysis
  Distribution prompt → k variants with probabilities → user selects

PHASE 2: Execution Prompt
  Selected variant → detailed implementation prompt (no VS)
```

---

## Step 0: Input Validation

- **Task context present** (3+ facts: task/constraints/what was tried/files/prompt) → proceed. Any format is valid.
- **No input or  0.5 (stability)
- Output format: headers + sections (human-readable), JSON (subagent)
- Language: preserve user's input language
- Do not use XML tags — headers are equally readable

---

## PHASE 2: Execution Prompt

### Step 5: Construction

After user selects a variant — build an execution prompt without VS:

```
Task: [selected variant from VS analysis]
Context: [what is already known, constraints]

What to do:
- [concrete steps]
- [which files/systems]
- [constraints]

Output format: [what is expected]

Agent1st: Mode: [mode], injection for subagent calls.
```

---

## Step 6: Output Format

```
## VS-ARCHITECT RESULT

### ANALYSIS
- Complexity: [...]
- Type: [...]
- Variants: [...]
- Constraints: [...]

### PHASE 1: VS ANALYSIS
Pattern: [A/B/C/D/E/F/G/none]
Mode: [...]

VS ANALYSIS PROMPT:
[generated prompt]

ACTION: Select the best variant and say "selecting variant N" — I will build the execution prompt.

### PHASE 2: EXECUTION PROMPT (after selection)
[to be built]

### EXECUTION
1. New DeepSeek V4 session: copy the VS prompt, get hypotheses, select
2. Current session: run VS prompt via subagent or direct dialogue
3. After selection: return — I will build the execution prompt
```

---

## Agent1st Integration

- **Assumption Checkpoint:** Complex Mode → diagnostic command before execution
- **Failure Packet:** 2+ identical errors → 3-field packet. Generate root cause hypotheses using pattern A or C
- **Verification:** VS analysis — user selected a relevant variant. Execution — test command (curl, test, run)
- **Act Immediately:** TRIVIAL → skip VS, recommend direct prompt
- **Pro Mode:** ≥2 unverified external systems → Pro
- **Subagent Injection:** task() → append 【思维模式要求】 at end of prompt

---

## Patterns Overview

| Pattern | When | What it does |
|---------|------|-------------|
| **A** VS-Standard | Moderate complexity, 3-5 variants | Single call → k variants with probabilities |
| **B** Diversity Tuning | Uniform responses from direct prompt | Filters by probability threshold (p  0.5) |
| **C** VS-CoT | Uncertainty, diagnostics, strategy | Step-by-step reasoning first, then variant distribution |
| **D** VS-Multi | Need 10+ variants | Multiple rounds, each round excluding previous ideas |
| **E** External Collapse | External constraints LLM doesn't know about | User weights variants by own criteria (budget, time) |
| **F** VS-Refine | Interesting ideas need elaboration | First pass → variants, second pass refines top picks |
| **G** VS-Ensemble | Critical decision needs cross-validation | Two independent VS prompts, results compared |

See `references/vs-theory.md` for complete decision tree, classification axes, and templates.
See `references/examples.md` for real-world usage examples.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [dimkurilo](https://github.com/dimkurilo)
- **Source:** [dimkurilo/opencode-skills](https://github.com/dimkurilo/opencode-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** yes
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-dimkurilo-opencode-skills-vs-architect
- Seller: https://agentstack.voostack.com/s/dimkurilo
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
