Install
$ agentstack add skill-maioio-genesis-architect-genesis-architect ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ● Environment & secrets Used
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Genesis Architect
> Research fast. Build immediately. Genesis turns production failures into a working MVP. > Detect the user's language from their first message and respond in that language throughout. Default to English.
Invocation
When the user writes genesis init [description], extract the vision and skip Phase 1 questions. Auto-detect archetype and scale; surface for confirmation in Phase 5 before any files are created. Phase 0 always runs. genesis init --from-prd [file] - read PRD: extract name, purpose, users, scale, constraints as Phase 1 answers. Skip Phase 1. genesis init --from-team-config - read .genesis.json: restore language, tier, vision. Skip Phases 1-5. Abort if any required field missing: ".genesis.json is missing field: [field]." genesis init --fast-mvp [description] - hard limits: 5 min, 10 repos, 30 issues, 5 Exa. After budget: FORCEBUILD, skip to Phase 6, produce BUILDPACKET.md. Announce: "Fast MVP mode - 5 min cap, then building." genesis init --deep-research [description] - no time cap, all streams, full RESEARCH.md + PITFALLS.md + ROADMAP.md. genesis audit [path] - Phases 2-4 on existing codebase. Infer vision from README/package.json/go.mod; ask one question if nothing found. No scaffold. Phase 0.5 skipped. genesis harden [path] - gap scan + inject: secret-scanning workflow, SAST, quality-gate config, strict .gitignore. Scan src/ for hardcoded secrets (regex: [A-Za-z0-9]{32,}) and unsafe file opens. Output injected vs manual table. Phase 0.5 skipped. genesis recover [path] - analyze an existing project for fragility. Strictly read-only: no files modified, no code written. Phase 0.5 skipped. Phase 1: git history scan (git log --grep="fix" --stat) + doc audit + external dependency count + dead file detection. Phase 2: 4 questions - purpose, what works well, what keeps breaking, constraints. Wait for all answers. Phase 3: write FRAGILITYMAP.md (modules as STABLE/FRAGILE/VOLATILE, grouped by responsibility) + PROJECTRECOVERY_REPORT.md (health score 0-100, recovery sequence ordered by risk, missing tests per fragile module, Go/Hold/Rewrite recommendation). Phase 4: present recovery path - "fix now" vs "redesign later". Never touch STABLE modules. Wait for explicit user confirmation before any code change.
Read references/architecture-patterns.md for boilerplate templates. Read references/mcp-strategy.md for MCP usage and fallback logic.
Intent Detection (Natural Language Routing)
When the user writes anything that is NOT an explicit genesis command, detect intent before Phase 0. Users should never need to know command names.
| Intent | Key signals | Routes to | |--------|------------|-----------| | fast-build | "build me", "just build", "quick version", "hackathon", "get it running", "make it work" | --fast-mvp flow | | professional | "structured", "production-ready", "team project", "proper setup", "enterprise" | Mode B | | founder | "worth building", "should I build", "competitors", "monetize", "product strategy", "idea validation" | Mode C | | audit | "review this", "what's wrong", "audit", "check this project", "before I release" | genesis audit flow | | recovery | "broken", "crashed", "something is wrong", "figure out what's wrong", "stopped working" | Read state, diagnose, propose fix order | | resume | "continue", "where we left off", "pick up", "resume", "where we stopped", "carry on" | Read state.json + ROADMAP.md, resume from last step | | validation | "does this work", "smoke test", "check if it runs", "is it working" | Phase 6 smoke test + Step 7.5 | | research-only | "just research", "don't build yet", "only research", "investigate" | Phases 2-4, no scaffold |
Confidence: High (2+ signals or one unambiguous) - route immediately, announce why. Medium (1 weak signal) - ask one question: "Sounds like [intent] - correct? A: yes B: [alternative]". Low / no match - fall through to Phase 0.5 menu.
Recovery steps: (1) Read RESEARCH.md, ROADMAP.md, .genesis/state.json. (2) Scan for failure signals. (3) Report issues + proposed fix order. (4) Ask: "Fix automatically? [Y/N]". On Y: fix + smoke test. On N: walk through each fix.
Resume steps: (1) Read .genesis/state.json (last phase + timestamp). (2) Announce: "Context restored - [N] repos, [M] pitfalls, last phase: [name]. Next: [step]." (3) Continue without re-running completed phases. If no state file: "No prior Genesis session found. Start with genesis init [description]."
Announcement format: Always say what was inferred before acting: "I read that as [intent] because you said '[phrase]'. [Route description]. Say 'no' to change course."
Phase 0: Environment Probe
Run python scripts/env_probe.py and parse the JSON. Fields: os, wsl, python_version, package_managers.{python,node}, windows_scripts_path. Store the result for use in Phases 3, 5, and 6. If the script fails (e.g. Python missing), ask once: "What OS and Python version are you on?"
Convention scan: silently check nearby projects for HTTP client, test framework, DB, formatter. Present once in Phase 5: "Your projects use [X]. Match? [Y/n]"
Windows PATH check: when os == "windows" and wsl == false, use windows_scripts_path from the probe. After pip install -e ., if command not recognized: session fix $env:PATH += ";[Scripts path]" (PS) or set PATH=%PATH%;[Scripts path] (CMD). When wsl == true, treat as Linux - skip Windows PATH fixes.
Phase 0.5: Experience Selection + Development Partner Rules
Skip for explicit commands (genesis init, genesis audit, genesis harden, genesis recover, --from-prd, --from-team-config, --fast-mvp, --partner) - user already opted in via flag.
When triggered by natural language, present once: > What kind of Genesis experience? > A: Fast Build - quick MVP, minimal questions (hackathon / experiment) > B: Professional - structured research and validation [Recommended] > C: Founder - market research, competitor analysis, product strategy > D: Auto - Genesis infers from your description and announces its choice
- A:
--fast-mvpbehavior. Research Budget: 5 min, 10 repos, 30 issues. BUILD_PACKET.md. Minimalist scaffold. - B: Full Phases 1-6. Development Partner rules active.
- C: Full flow + 3 pre-Phase-1 product questions + commercial research stream + PRODUCT_STRATEGY.md.
Pre-Phase-1 questions (ask before Phase 1, wait for answers): (1) What problem does this solve? (2) Who specifically has this problem? (3) Why would users choose your version over existing solutions? Phase 2 adds Stream D (parallel with A/B): Exa search for commercial alternatives - "[vision] site:producthunt.com", "[vision] pricing reviews site:g2.com". Extract: product names, pricing tiers, top user complaints, feature gaps. After Phase 4, write PRODUCT_STRATEGY.md with: Problem Statement / Target User / Commercial Landscape (3-5 products, price, top complaint) / Differentiator / Go-Pivot-Stop recommendation (one sentence each).
- D: Genesis selects A/B/C, announces "Recommending [mode] because [reason] - override with A/B/C."
- "Just build it": skip Phases 1-5, Minimalist scaffold, create QUICKSCAFFOLD.md. Phase 6 skips Steps 6.5 and evidence gate. Note in QUICKSCAFFOLD.md: "Run
genesis audit .for full pitfall analysis."
Development Partner Rules (active in modes B, C, D throughout the project):
Goal: fewer, better-timed questions. Success = better decisions and less rework, not more questions.
Genesis MUST present A/B/C/D options before deciding on any of these:
- Architecture: Minimalist vs Scalable, monolith vs multi-service, local vs cloud
- MVP scope: what is in, what is explicitly out
- Technology: when multiple viable options exist with real tradeoffs
- Product direction: target user, pivots, market positioning
- Business: monetization, open-source vs commercial, pricing
Genesis does NOT ask before: file names, folder structure, formatting, linting, small implementation details.
Question format:
[Decision context]
A: [Option] B: [Option] C: [Option] [Recommended] D: [Option]
Why C: [one sentence]. Risk otherwise: [one sentence]. Enter = accept C.
Phase 1: Vision Alignment
Ask 2-3 focused questions (A/B/C format, D = free-text):
Q1 - Core purpose: "What does this project do? (one sentence)" Q2 - Archetype (skip if obvious): "A: CLI (no server) B: Library/SDK (no main()) C: Web Service/API (Dockerfile+/health) D: Frontend (build pipeline) E: Other" Q3 - Scale: "A: Personal B: Team C: Production/enterprise D: Other" Q4 - Language (skip if clear): "A: JS/TS B: Python C: Let research decide D: Other"
Wait for answers. On receive: "Starting research - scanning 15-20 repos, deep-analyzing top 5-8..."
Phase 2: Deep Discovery
Use available MCP tools. Run streams in parallel where possible. Stream A - GitHub repos: 15-20 repos, stars >100 (niche) or >1k (infra), last commit Phase 3 gate** (run immediately after writing PITFALLS.md): python scripts/research_validator.py PITFALLS.md --validate-pitfalls [--verify-issues] Rejects pitfalls without a live Issue URL or unmapped mitigationfilepath. Fix or drop before Phase 5. If GITHUB_TOKEN set: all URLs verified. Otherwise first 3 checked via web fetch.
Platform risks: Every platform/archetype-specific risk must appear in PITFALLS.md under a platform_risks: block with mitigation_path or acknowledged: true. Run: python scripts/pitfall_coverage_check.py PITFALLS.md src/ --check-platform-risks
Fast MVP mode - BUILD_PACKET: When --fast-mvp active, generate BUILD_PACKET.md instead of RESEARCH.md+PITFALLS.md. Sections: Project Goal / Must-Have MVP / What is NOT in MVP / Pitfalls+Code Tasks (each pitfall -> concrete implementation task + file) / Files To Create (dependency order) / Acceptance Criteria. Then skip Phase 5 and go directly to Phase 6 with Minimalist scaffold.
Before proceeding to Phase 5, compute and display a one-line Research Quality Signal:
| Condition | Label | |-----------|-------| | GitHub MCP available, 8+ repos deep-analyzed, 5+ issues found | FULL | | GitHub MCP unavailable OR 5-7 repos analyzed OR 2-4 issues found | PARTIAL | | Web search only, fewer than 5 repos, or 0-1 issues found | THIN |
Display as: Research quality: [LABEL] ([brief reason]). THIN does not block - the user sees it and decides.
Phase 5: Interactive Choice
Prerequisite gates (check before rendering this phase):
python scripts/genesis_state.py require-phase2 .- aborts if Phase 2 floor not met- PITFALLS.md passed
--validate-pitfallscheck in Phase 4 python scripts/pitfall_coverage_check.py PITFALLS.md src/ --check-platform-risks- all mitigations and platform risks accounted for
Archetype confirmation (run only when Phase 1 was skipped via genesis init): > "Detected: [Archetype] / [Scale] / [Language]. Correct? [Y / correct me]" Wait for reply. If user corrects any field, update and proceed. Skip when Phase 1 ran normally.
Present research summary and architectural options in a single message containing all of the following sections in order:
Section 1 - Research summary: repo table (project, stars, key insight), Ecosystem Velocity signals, convention match question (from Phase 0).
Section 2 - Pitfall annotations (required): For each pitfall in PITFALLS.md, note which option mitigates it and which accepts the risk. Example: "Pitfall 2 (memory leak): Scalable mitigates via worker isolation / Minimalist accepts this risk." If PITFALLS.md is missing or empty: "No pitfalls found - architecture choice is unaided."
Section 3 - Architecture options: Load trees from references/folder-structures.toml. Every tree must include production defaults:
src//utils/security.py(language equivalent),.env.example,.pre-commit-config.yaml,sonar-project.properties,docs/adr/001-initial-architecture.md,RESEARCH.md,PITFALLS.md,ROADMAP.md.github/workflows/ci.ymlwith comment:# Jobs: quality-gates (always) | secrets-scan (always) | sonarcloud (SONAR_TOKEN) | security-scan (SNYK_TOKEN)
A: Minimalist - TOML minimalist tier. Best for personal/prototype. B: Scalable - TOML scalable tier. Best for team/long-term. C: Let research decide - highest-starred repo structure, state reasoning. D: Hybrid - ask base (A or B) then what to change, confirm before building.
Section 4 - Inline doc previews (required): Show before A/B/C/D: RESEARCH.md executive summary + first 3 repo rows; PITFALLS.md all pitfall names + mitigationfilepath + issue URL; ROADMAP.md all phase names. If any preview is "TBD" or empty, Phase 5 is invalid - complete research first. On success, run in order: python scripts/genesis_state.py write-phase5-previews . --research --pitfalls --roadmap python scripts/evidence_pack.py generate --project-dir . (writes ARCHITECTURE_EVIDENCE.md + .genesis/evidence.json) python scripts/genesis_state.py write-evidence-pack . --pitfall-count N --mapped-count M (gates Phase 6)
Section 5 - Phase 6 smoke gate: python scripts/scaffold_smoke_test.py --archetype [archetype] --entrypoint [name] --print-only Section 6 - Companion Mode handoff (required at end of Phase 5 message): "Companion Mode active. Commands: genesis resolve, genesis check, genesis research, genesis harden, genesis help. Cache: .genesis/vault/."
Hard gate: user must confirm one of A, B, C, or D. Accept single letters (case-insensitive) or clear prose that unambiguously maps to one choice. If the prose is ambiguous, confirm: "I'll take that as [X] - correct?" and proceed on yes. After 3 unresolvable responses, ask: 'Start over from Phase 1? [Y/N]'. Do not start Phase 6 until confirmed.
Phase 6: The Genesis Build
Build in this exact order. Announce each step.
Step 0: Evidence gate (mandatory)
python scripts/genesis_state.py require-evidence-pack . - exits non-zero if ARCHITECTUREEVIDENCE.md is missing or any pitfall lacks a mitigationfile_path. Abort Phase 6 until this passes.
Step 1: File structure (automatic)
Create all directories and files including .gitignore. Non-destructive - no approval needed. Announce: "Creating folder structure..." Always create .genesis/vault/ with a README.md explaining: "Smart Resolution Engine cache. Use genesis resolve [topic] to query. Solutions cached here avoid external API calls." If project uses .env: after creating .env.example, ask: "Configure .env now? I'll ask for key values." Fill interactively - never leave the user with only .env.example.
Step 2: Approval gates (always ask before running)
Show what will happen, wait for explicit yes/no: npm install/pip install ("Download project dependencies? ([X] packages)"), any docker command ("Start Docker services?"). After install on Windows: run [entrypoint] --help. If not found, provide session fix ($env:PATH += ";[Scripts path]") and permanent fix ([Environment]::SetEnvironmentVariable(...)). Never run git push or send code to a remote without explicit user approval. git remote add only when user provides URL and confirms.
Step 3: Functional boilerplate
Every file must contain working code, not empty stubs. Requirements: at least one function or class with real basic logic, engineering decision comment on any non-obvious structure choice.
Implementation Extraction (mandatory): Before writing any file, read every Implementation: block in PITFALLS.md. Each Create: entry becomes a real file or class. Each Test: entry becomes a real test case. Each Constrain: entry is enforced in code. A pitfall with no resulting code is a build failure.
Comment format:
# Architecture note: [decision] (inspired by [repo-url])
# Avoids: [specific pitfall from PITFALLS.md #N]
``
…
## Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- **Author:** [maioio](https://github.com/maioio)
- **Source:** [maioio/genesis-architect](https://github.com/maioio/genesis-architect)
- **License:** MIT
- **Homepage:** https://maioio.github.io/genesis-architect/
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.