Skip to content

unic-spec-review S2: self-contained auth + preflight — /setup-confluence wizard and /spec-doctor #203

@orioltf

Description

@orioltf

Parent

Epic: #200 — unic-spec-review plugin.

What to build

Make the plugin self-contained for setup and preflight. Ship its own /setup-confluence credential wizard (vendored from unic-pr-review) that writes ~/.unic-confluence.json, and a /spec-doctor preflight command that verifies all prerequisites before a review: Confluence credentials are present and valid, and the Figma Dev Mode MCP and Playwright MCP are connected.

A user who installed only this plugin can configure Confluence through this plugin alone (no dependency on unic-pr-review or unic-confluence). A user who already has the shared ~/.unic-confluence.json reuses it — the file is a shared credential store keyed by convention, not a plugin coupling.

/spec-doctor reports each prerequisite's status clearly. Missing MCPs are reported as loud, explicit failures (never silent), consistent with the fail-loud-per-source rule the review path will enforce later.

Acceptance criteria

  • /setup-confluence interactively collects Confluence credentials and writes ~/.unic-confluence.json (or guides CONFLUENCE_* env usage), vendored by copying the wizard from unic-pr-review — no cross-import.
  • /spec-doctor checks: Confluence credentials present + a basic auth/connectivity check; Figma Dev Mode MCP connected; Playwright MCP connected.
  • Absent Figma or Playwright MCP is reported as an explicit failure with remediation guidance, not a silent skip.
  • The plugin has no runtime or setup dependency on any other plugin; installing it alone is sufficient to set up and preflight.
  • node:test unit tests cover the vendored setup-confluence wizard and any pure preflight/credential-check logic with injected homedir/env/fetch; no live services. Command orchestrators are not unit-tested.
  • PR adds CHANGELOG.md bullets under [Unreleased] and bumps the patch version; verify:changelog passes. No em dash in authored text (except the mandated CHANGELOG version header).

Blocked by

Metadata

Metadata

Assignees

No one assigned

    Labels

    app:unic-spec-reviewArea: apps/claude-code/unic-spec-reviewfeatureNew capabilityready-for-agentFully specified, ready for an AFK agent

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions