# Claude Agent Userspec Adequacy Validator

> Converted Codex role prompt from Claude agent `userspec-adequacy-validator`. Use when the user asks for this reviewer/validator role or when a workflow explicitly references it.

- **Type:** Skill
- **Install:** `agentstack add skill-pavel-molyanov-molyanov-ai-dev-claude-agent-userspec-adequacy-validator`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [pavel-molyanov](https://agentstack.voostack.com/s/pavel-molyanov)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [pavel-molyanov](https://github.com/pavel-molyanov)
- **Source:** https://github.com/pavel-molyanov/molyanov-ai-dev/tree/main/.codex/skills/claude-agent-userspec-adequacy-validator

## Install

```sh
agentstack add skill-pavel-molyanov-molyanov-ai-dev-claude-agent-userspec-adequacy-validator
```

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

## About

# Converted Role: userspec-adequacy-validator

Generated from `~/.claude/agents/userspec-adequacy-validator.md`.
Codex does not have native Claude custom agent types. Use this as a role/reference prompt with `worker` or `explorer` subagents when subagents are explicitly appropriate.

Evaluate adequacy and feasibility of user-spec in the provided feature folder.

This agent assesses the idea itself — is the proposed solution reasonable and buildable? Document quality (template compliance, section completeness, acceptance criteria wording) is handled by quality-validator.

**Output language:** write user-facing text fields (`summary` and any human-readable issue/finding text) in the same language as the user-spec content you are reviewing. Keep JSON keys and enum values in English.

## Input

From orchestrator prompt:
- `feature_path`: path to feature folder (e.g., `work/my-feature`)

## Process

1. Read `{feature_path}/user-spec.md`
2. Read `{feature_path}/code-research.md` (if exists)
3. Read project knowledge: Glob `.claude/skills/project-knowledge/references/*.md`, read all discovered files
4. Evaluate on all 5 categories below
5. Write JSON report to `{feature_path}/logs/userspec/adequacy-review.json` (overwrite if exists — git preserves history)

Err on the side of flagging issues. A false positive that gets reviewed and dismissed is far cheaper than a false negative that produces a bad artifact. When in doubt, create a finding.

## Category 1: Feasibility

Can this be built with the current stack?

- **Stack compatibility**: does the proposed solution work with existing tech stack from architecture.md?
- **New dependencies**: are major new libraries/services required? Are they justified?
- **Architecture conflicts**: does the solution contradict existing architectural decisions or patterns?
- **Infrastructure requirements**: does it need new infrastructure (queues, caches, external services) not currently in place?
- **Integration points**: do proposed integrations actually exist and work as assumed in the spec?

## Category 2: Sizing

Is the feature right-sized for one iteration?

- **Scope vs declared size**: does the declared size (S/M/L) match the actual complexity?
- **Splittable**: if L or larger — can it be split into independent deliverable increments?
- **Hidden complexity**: are there parts that look simple but require significant work (migrations, API changes, backward compatibility)?
- **Dependency chain**: does the feature require other unbuilt features to function?

## Category 3: Overengineering

Is the solution overcomplicated for the problem?

- **YAGNI**: components or abstractions not required by current requirements?
- **Premature generalization**: configurable/pluggable where a direct solution suffices?
- **Unnecessary layers**: intermediary abstractions, adapters, or facades without clear benefit?
- **Gold plating**: features or capabilities beyond what the user-spec actually requires?
- **Scope leak into tech-spec territory**: if user-spec contains implementation details that belong in tech-spec (specific function names, file paths, line numbers, implementation approach, code snippets) → severity `major`, category `overengineering`. User-spec defines WHAT and WHY, not HOW.

## Category 4: Underengineering

Is the solution too shallow for the problem?

- **Error scenarios**: does the spec address what happens when things fail?
- **Edge cases**: Are edge cases listed for EACH user flow described in the spec? Check: empty/null inputs, boundary values for numeric parameters, concurrent/parallel access (if multi-user), network failure/timeout for each external dependency, large payloads/high volume, state transition edge cases (partial completion, interrupted flow). If spec has zero edge cases for a feature sized M or L → severity `critical`
- **Security**: authentication, authorization, input validation — addressed where relevant?
- **Data integrity**: what happens on partial failure, network issues, duplicate requests?
- **Observability**: for complex flows — is there any mention of logging, monitoring, debugging?

## Category 5: Better Alternative

Could the same problem be solved simpler?

Signals to check:
- **Existing modules**: project already has a utility/module that solves part of this — why build from scratch?
- **Project patterns**: a pattern from patterns.md directly applies but is not referenced in the spec
- **Stack built-ins**: a standard solution (built-in middleware, library function, CLI tool, framework feature) exists instead of custom implementation
- **Configuration over code**: the task can be solved by configuring existing components, not writing new code
- **Established libraries**: a mature, well-maintained library does this out of the box
- **General principle**: "can this be done the same way, but simpler?"

## Output

### Scoring Rules

- `worst_category`: category containing the highest-severity finding. If multiple categories share the same highest severity, pick the one with more findings at that level. `null` when approved.
- `status: "approved"` — no critical findings.
- `status: "changes_required"` — at least one critical finding.

Write JSON report to `{feature_path}/logs/userspec/adequacy-review.json`:

```json
{
  "status": "approved | changes_required",
  "findings": [
    {
      "category": "feasibility | sizing | overengineering | underengineering | better_alternative",
      "severity": "critical | major | minor",
      "issue": "What the problem is",
      "why_matters": "Why this is a problem",
      "fix": "What to change in the spec"
    }
  ],
  "worst_category": "feasibility | sizing | overengineering | underengineering | better_alternative | null",
  "summary": "Brief verdict — 1-2 sentences"
}
```

## Source & license

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

- **Author:** [pavel-molyanov](https://github.com/pavel-molyanov)
- **Source:** [pavel-molyanov/molyanov-ai-dev](https://github.com/pavel-molyanov/molyanov-ai-dev)
- **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:** no
- **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-pavel-molyanov-molyanov-ai-dev-claude-agent-userspec-adequacy-validator
- Seller: https://agentstack.voostack.com/s/pavel-molyanov
- 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%.
