@haaaiawd/anws
v2.3.0
Published
Anws — A spec-driven workflow framework for AI-assisted development. Empowers prompt engineers to build production-ready software through structured PRD → Architecture → Task decomposition. Works with Claude Code, GitHub Copilot, Cursor, Windsurf, and any
Maintainers
Readme
Anws
Anws is a spec-driven workflow framework for AI-assisted development across modern AI IDEs and coding tools.
It helps teams build production-ready software through a disciplined path:
PRD -> Architecture -> ADR -> Tasks -> Review -> Code -> Upgrade
Anws enforces design-first principles, preserves context in files, and prevents architectural drift across multi-tool AI coding workflows.
TL;DR: a design-first workflow framework for AI coding tools that turns vibe coding into production-oriented engineering.
ANWS
- Axiom — principle before implementation
- Nexus — connection before fragmentation
- Weave — coherence before accumulation
- Sovereignty — human judgment before automation
Why Anws Exists
Many so-called spec systems are good at one thing: generating documents up front. That is not the hard part. The hard part is keeping implementation, verification, review, and upgrades aligned with those documents after the initial planning pass.
That is where AI coding usually breaks down:
- docs and code drift apart until nobody is sure which one is the real source of truth
- a new session loses context and starts guessing about boundaries, trade-offs, and task state
- code starts before requirements and interfaces are stable, so rework becomes inevitable
- automation increases speed, but review discipline and evidence quality quietly drop
- template upgrades become risky because existing projects cannot absorb new rules cleanly
Anws is not just a system for writing specs. It is a framework for keeping design, execution, verification, review, and upgrade tied together.
- Documents are operating state, not attachments
- PRD, Architecture, ADR, System Design,
05A_TASKS.md,05B_VERIFICATION_PLAN.md, andAGENTS.mdare part of the workflow runtime, not disposable planning notes.
- PRD, Architecture, ADR, System Design,
- Highly documented, but for control rather than ceremony
- Design, task, and verification are separated on purpose so task ownership, validation responsibility, and evidence output stay traceable.
- Automation stays fast without becoming sloppy
/forge AUTOspeeds delivery up, but it does not bypass challenge pressure, code review, validation gates, or evidence closure.
- It orchestrates verification, not only implementation
05Aowns execution flow and05Bowns verification planning. E2E, for example, is declared as a trigger assumption during planning and executed later in/forge, instead of being hand-waved as “already tested.”
- Upgrades are controlled, not overwrite-driven
- Templates, projections, and
AGENTS.mdhave explicit update semantics, so existing projects can evolve without being effectively reinstalled from scratch.
- Templates, projections, and
Quick Start
Install via npm
npm install -g @haaaiawd/anws
cd your-project
anws init- Requirement
- Node.js
>= 18
- Node.js
- Install behavior
anws initinstalls one or more target projections into their native folders- example:
anws init --target windsurf,opencode
Update an Existing Project
cd your-project
anws update- Update flags
anws update --checkandanws update --targetare removed; runanws updateonce to refresh all matched targets
- State source
anws updatereads.anws/install-lock.json- if the lock is missing or invalid, it falls back to directory scan
- if lock drift is detected, directory scan becomes the effective source for the current update
- a real
anws updatecan rebuild.anws/install-lock.jsonfrom detected targets when fallback is active
AGENTS.mdbehavior- marker-based file -> update stable sections, preserve
AUTOblock - recognized legacy file -> migrate into new marker-based structure
- unrecognized legacy file -> warn and preserve unchanged
- marker-based file -> update stable sections, preserve
- Legacy migration
- if a project still has
.agent/, the CLI can guide migration to.agents/ - after successful migration, interactive mode can also ask whether to delete the old
.agent/
- if a project still has
- Upgrade record
- every successful update refreshes
.anws/changelog/ - target state is written back to
.anws/install-lock.json
- every successful update refreshes
Feature demos
What using Anws looks like in practice: architecture-first /genesis, human-in-the-loop requirement alignment, and skill orchestration.
Deep Thinking & Architecture Design
Interactive Requirement Alignment
Autonomous Skill Invocation
Philosophy
1. Docs first—specs keep you in command
PRD, architecture, tasks, and design land in the repo before code does—so the project doesn’t drift in aimless “vibe runs.” Scope and progress live in .anws/, 05A_TASKS.md, 05B_VERIFICATION_PLAN.md, and AGENTS.md: you stay in control of the system, not whichever chat window is open.
2. Full autonomy inside the rails/forge AUTO is delegation with checkpoints: keep moving inside agreed contracts. Code review, e2e-testing-guide, and the rest of the template gates keep runs auditable and bounded. When a wave is executing, it’s reasonable to walk away—coffee, a walk—because confidence comes from the spec and gates, not from staring at the model.
Iteration is the product/challenge isn’t a one-time rubber stamp; it’s repeated adversarial passes. Good products and clear ideas are sharpened over cycles—same as real shipping: each round pulls design, tasks, and implementation back into alignment.
Recommended Workflow
Use Anws as a lifecycle, not just a folder pack.
| Command | Purpose | Input | Output |
| ----------------- | --------------------------------------------------------------------------- | --------------------- | ------------------------ |
| /quickstart | Route the user through the correct workflow path | Auto-detected state | Full orchestration |
| /genesis | Start from zero with PRD and architecture | Vague idea | PRD, architecture, ADRs |
| /probe | Analyze a legacy codebase before change | Existing code | Risk report |
| /design-system | Design one system in depth | Architecture overview | System design doc |
| /challenge | Review design, tasks, and implementation fidelity with adversarial pressure | Docs / tasks / code | Challenge report |
| /blueprint | Break architecture into executable work | PRD + architecture | 05A_TASKS.md + 05B_VERIFICATION_PLAN.md |
| /forge | Turn approved tasks into code with challenge-report and contract gates | Tasks + review state | Working implementation |
| /change | In-version task/contract tweaks (controlled expansion: few new tasks) | Small scoped change | Updated task/design docs |
| /explore | Research ambiguous or strategic topics | Topic | Exploration report |
| /craft | Create workflows, skills, and prompts | Creation request | Reusable assets |
| /upgrade | Route post-update upgrade work | Update changelog | Change or genesis path |
Contributing
Contributions are welcome. Before opening a PR, make sure changes align with the spec-driven workflow and the target projection model.
License
MIT © 2026
Made for architects who code, and AIs who think.
Good architecture isn't written. It's designed.
