本文へ移動
cccskills
無料GitHub で公開

vc-scenario

Generate comprehensive edge cases and test scenarios by decomposing features across 12 dimensions. Use before implementation or testing to catch issues early.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md7.4 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

vc-scenario — Edge Case & Scenario Explorer

Output style: Follow process/development-protocols/communication-standards.md — answer-first, plain language, no unexplained jargon, TL;DR on long responses.

Decompose any feature or code path across 12 dimensions to surface edge cases, risks, and test targets before implementation begins.

Mode Selection

Choose a mode before generating scenarios. Default is Simple unless a trigger condition applies.

Simple Mode (default)

Generates edge cases from the plan description, checklist item, or approach text provided in the prompt. No subagent spawned.

Use when:

  • The checklist item is self-contained and clearly described
  • Blast radius is narrow (1–2 files, single package)
  • No auth, billing, schema, or external API surface is touched
  • Speed matters and hypothetical coverage is sufficient

Deep Mode

Spawns a research subagent to read the actual source before generating scenarios. Scenarios reference real variable names, real function signatures, and real failure modes visible in the code rather than hypothetical ones.

Trigger conditions (any one):

  • Checklist item modifies an auth, billing, schema, or external API surface
  • Blast radius spans 3+ files or 2+ packages
  • The plan marks the item as HIGH_RISK
  • Caller explicitly requests deep mode

Deep mode subagent steps:

  1. Reads the actual source files being modified (from plan Touchpoints)
  2. Locates and reads existing test files for those files (via grep for import paths or describe blocks)
  3. Reads any Public Contracts affected (from plan's Public Contracts section)
  4. Returns: real function signatures, actual data shapes, existing test coverage gaps, real failure modes visible in the code

The orchestrator then generates scenarios using the research output.

Output quality difference

ModeExample scenario
Simple"What if the input is null?"
Deep"What if creditBalance.available is 0 but creditBalance.pending is positive — does deductCredits(amount) check available-only or available + pending?"

Simple mode surfaces generic edge cases quickly. Deep mode surfaces scenarios that are only discoverable by reading the actual implementation.


When to Use

  • Before implementing complex or stateful features
  • Before writing tests (generates test targets)
  • Risk assessment during planning or code review
  • API design review — surface contract edge cases early

When NOT to Use

  • Trivial single-line changes or cosmetic UI tweaks
  • Already well-tested, stable code with no recent modifications
  • Pure configuration changes with no logic paths

12 Decomposition Dimensions

Not all 12 apply to every feature. Identify relevant dimensions first, then generate scenarios only for those.

#DimensionWhat to Look For
1User Typesadmin, guest, banned, new user, power user, bot/scraper
2Input Extremesempty, null, max length, unicode, special chars, SQL/script injection
3Timingconcurrent access, race conditions, timeout, slow network, retry storms
4Scale0 items, 1 item, 1M items, pagination boundary, cursor wrap
5State Transitionsfirst use, mid-flow abort, resume after crash, partial completion
6Environmentmobile/low-end CPU, no JS, screen reader, proxy/VPN, different timezone/locale
7Error CascadesDB down, API timeout, disk full, OOM, network partition, partial write
8Authorizationexpired token, wrong role, shared/public link, CORS, CSRF, privilege escalation
9Data Integrityduplicate entries, orphan references, encoding mismatch, concurrent schema migration
10Integrationwebhook replay, API version mismatch, third-party outage, contract drift
11ComplianceGDPR deletion request, audit logging gap, data retention, accidental PII exposure
12Business Logicedge pricing (zero/negative), coupon stacking, refund after partial delivery, free tier limits

Workflow

Step 0 — Select mode using the Mode Selection rules above.

Simple mode:

  1. Parse feature description or checklist item from the prompt
  2. Filter dimensions — mark which of the 12 apply; skip irrelevant ones explicitly
  3. Generate 3–5 scenarios per relevant dimension
  4. Categorize severity — Critical / High / Medium / Low
  5. Output as structured table (see format below)
  6. Summarize total scenario count by severity

Deep mode:

  1. Spawn research subagent — pass Touchpoints, Public Contracts, and checklist item text
  2. Subagent returns real function signatures, data shapes, coverage gaps, visible failure modes
  3. Filter dimensions using research output to remove inapplicable ones
  4. Generate 3–5 scenarios per relevant dimension, referencing actual variable/function names
  5. Categorize severity — Critical / High / Medium / Low
  6. Output as structured table annotated with source evidence (file + line where relevant)
  7. Summarize total scenario count by severity

Severity Criteria

LevelMeaning
CriticalData loss, security breach, auth bypass, silent corruption
HighFeature broken for a subset of users, data inconsistency
MediumDegraded UX, recoverable error not surfaced to user
LowMinor visual glitch, non-blocking warning

Output Format

## Scenario Report: [target]

Dimensions analyzed: [list]
Dimensions skipped: [list + reason]

| # | Dimension | Scenario | Severity | Expected Behavior |
|---|-----------|----------|----------|-------------------|
| 1 | Input Extremes | Empty string for required name field | High | Return 400 with field error |
| 2 | Authorization | Expired JWT accessing protected route | Critical | Redirect to login, invalidate session |
| 3 | Timing | Two users submit same form simultaneously | High | Idempotency key or conflict error |

### Summary
- Critical: N
- High: N
- Medium: N
- Low: N
- Total: N scenarios across X dimensions

Integration with Other Skills

Next StepSkillHow
Generate test cases from scenariosvc-testPass scenario table as input context
Inform implementation plan risksgenerate-plan / plan-agentPaste Critical/High rows into risk assessment
Deep persona debate on top risksvc-predictFeed Critical scenarios as the change proposal

Example Invocations

# Simple mode (default — self-contained, narrow blast radius)
/vc-scenario src/api/payment.ts
/vc-scenario "User registration with OAuth providers"
/vc-scenario src/middleware/auth.ts

# Deep mode (auto-triggered: billing surface, 3+ files)
/vc-scenario "Deduct credits on model usage — touches CreditBalance, CreditTransaction, usage-sync.ts"

# Deep mode (explicit request)
/vc-scenario --deep "Add multi-tenancy to the database layer"

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

AI-optimized browser automation CLI with context-efficient snapshots. Use for long autonomous sessions, self-verifying workflows, video recording, and cloud browser testing (Browserbase).

日本語の概要は準備中です。原文の説明を表示しています。

withkynam/vibecode-pro-max-kit1,1472026年6月21日 更新

Evaluate 4 execution strategies (sequential, parallel-subagents, workflow, agent-team) for a phase or fan-out task. Outputs 7-signal score table, agent count math, cost guards, and strategy recommendation.

日本語の概要は準備中です。原文の説明を表示しています。

withkynam/vibecode-pro-max-kit1,1472026年6月21日 更新

Audit project context routing, shared-skill discoverability, and Claude/Codex wiring. Use when context docs or skill surfaces move, split, or drift.

日本語の概要は準備中です。原文の説明を表示しています。

withkynam/vibecode-pro-max-kit1,1472026年6月21日 更新

Audit active project plan files for staleness, completion, and routing truth. Use when cleaning up plans, reconciling active work, or archiving completed artifacts.

日本語の概要は準備中です。原文の説明を表示しています。

withkynam/vibecode-pro-max-kit1,1472026年6月21日 更新

Audit agent harness health: Claude/Codex agent parity, skill registry consistency, README.md sync, and protocol file wiring. Use when agents, skills, README.md, or development-protocol files move, split, or drift.

日本語の概要は準備中です。原文の説明を表示しています。

withkynam/vibecode-pro-max-kit1,1472026年6月21日 更新

Emit and validate the provisional goal block for Autopilot Mode. Owns the 9-field format and resume detection from a pasted goal block.

日本語の概要は準備中です。原文の説明を表示しています。

withkynam/vibecode-pro-max-kit1,1472026年6月21日 更新

withkynam のスキルをすべて見る

このスキルの問題を報告する