English | 繁體中文
Vector is a high-density, professional technical design tool that bridges the gap between non-technical decision-makers and AI coding agents. It walks users through an agile roadmap interview and exports an AI-ready YAML feature specification.
- Interactive Spec Wizard: A guided interview process to capture requirements, user stories, and acceptance criteria.
- AI-Ready Export: Generates structured YAML specifications optimized for consumption by AI agents (e.g., Claude Code, Cursor, Copilot).
- Dual-Path Methodology:
- Path A (Reverse): Use
vector-analyzerto turn existing code into structured specs. - Path B (Forward): Use
vector-pipeline-bto turn raw system ideas into feature seeds.
- Path A (Reverse): Use
- AI Assistant: Built-in quality checks and refinement suggestions to ensure specs are comprehensive and unambiguous.
- Human-Readable Summaries: Exports clean Markdown summaries for team reviews.
- Draft Management: Automatic persistence in
localStoragewith support for JSON import/export. - Multi-language Support: Full support for Traditional Chinese (Taiwan) and English.
- Paper-like Design System: A warm, high-density UI inspired by professional technical documentation, designed to reduce eye strain and improve focus.
- Framework: Next.js (App Router)
- Language: TypeScript
- Runtime & Package Manager: Bun
- Testing: Vitest + React Testing Library
- Design: Custom "Vector" Design System (Paper-like aesthetic)
- Bun installed on your machine.
bun installRun the development server:
bun run devOpen http://localhost:3000 with your browser to see the result.
bun run build# Run all tests
bun run test
# Run tests in watch mode
bun run test:watchAfter running the methodology Pipeline B, you can stage all generated seeds in one shot:
npx vector-wizard import ./docs/methodology/artifacts/seeds/
# or one or many specific files
npx vector-wizard import ./seed-a.feature-seed.json ./seed-b.feature-seed.jsonThe CLI writes the resolved drafts into .vector/import/pending.json and then launches the wizard. On first load, the wizard auto-imports each draft into its Draft Manager and shows a toast summarising the result. The pending file is consumed atomically (read-and-deleted), so refreshing the wizard never causes duplicate imports.
The Draft Manager also accepts YAML files exported from a previous session via the Import YAML button (or by pasting YAML into the paste box — JSON / YAML is auto-detected). The imported draft becomes a new entry; ids for impacts, deliverables, user activities and epics are re-synthesized, while story / acceptance-criterion / example / RAID ids are preserved verbatim. This closes the inspect-adapt loop so you can iterate on the same feature spec across sessions.
The project follows a self-contained feature-based architecture located in src/features/spec-wizard/:
- model/: Canonical types (
FeatureDraft,ValidationIssue) and validation rules. - services/: Business logic for YAML serialization, Markdown summaries, and AI assistance.
- components/: UI components for the wizard, preview panels, and field management.
- persistence/: Local storage and JSON draft handling.
- i18n/: Dictionary-based internationalization.
- api/: Shared contracts for server-client communication.
Vector ships with two core skills for AI agents to bridge the gap between ideas, code, and roadmap specs.
Reverse-engineers an existing codebase into a Vector-compatible FeatureDraft JSON.
- Location:
.agents/skills/vector-analyzer/SKILL.md - Use case: When you have code but no documentation or roadmap.
Walks a system idea through a 4-stage pipeline: Frame → Decompose → Slice → Handoff.
- Location:
.agents/skills/vector-pipeline-b/SKILL.md - Use case: When starting a new project from scratch.
Paste this into a fresh chat with your AI coding agent (Claude Code, Codex, Cursor, etc.). It will detect your platform and install the requested skills:
Please install the
vector-analyzerandvector-pipeline-bskills from this repo (located in.agents/skills/).
- Detect which agent platform you are running in.
- For Claude Code: copy the skill directories to
~/.claude/skills/.- For other agents: tell me the recommended install path on this system and propose a
cp/ln -scommand before running it.- Confirm the destination, run the command, and verify the files land by reading
SKILL.mdback.- Print a one-line usage hint for each skill in your platform.
If you haven't cloned the repo yet, use this prompt:
Please install the
vector-analyzerandvector-pipeline-bskills from https://github.com/CarlLee1983/vector-wizard.
- Shallow-clone the repo to
/tmp/vector-wizard-skills.- Install the skills found in
.agents/skills/to my agent's local skill directory.- Clean up the temp clone and verify the install.
For Path A (Reverse-engineering):
Use the
vector-analyzerskill to analyze this repo and produce aFeatureDraftJSON. I will paste it intonpx vector-wizard's Draft Manager.
For Path B (System Design):
Use the
vector-pipeline-bskill to frame my system idea: "I want to build a [System X]". Follow the stages until we have feature-seed JSON files.
This project is private and intended for internal use.