Our spec-driven development workflow
Hipatiya ArchFlow
A spec-driven development workflow we built ourselves. It pairs the speed of AI with architectural discipline: code is generated from approved documents and verified against them.
# TR_VKN Recognizer — Tasks
> TDD: TDD.md · Each team implements only its own section.
## sitre-svc
VknRecognizer + checksum validation (TDD 5.1, 5.2)
RECOGNIZER_MAP entry and config support (TDD 5.3)
Unit tests: valid, invalid, context, edge cases (TDD 7)
VKN samples in the calibration corpus (TDD 7)
Tests passing — verified in CI/Docker
Deployed — TR_VKN detection works in the API
## sitre-admin-ui
No change needed; the entity list is loaded from the API.
Why ArchFlow?
AI agents write code in seconds. What gets written, why, and within which boundaries should be set by the documentation.
Architecture drift
AI-assisted coding is fast. Without architecture and documentation, though, every change moves the system a little further from what was planned.
Lost decisions
Why something was designed a certain way stays in chats, ticket comments and people’s heads. When the team changes, that knowledge leaves too.
Mismatched services
When several teams and services touch the same feature and there is no written contract, integration problems show up at the very end.
The workflow
Every step is based on a document and is approved before the next phase starts.
- Issue
The idea or problem is logged and classified as either a bug or a new feature.
01/09 - BRD
Business requirements: the business problem, user roles and functional requirements.
02/09 - SDD
Solution design: service structure, data flow, integration points and architecture decisions. Written when more than one service is affected.
03/09 - TDD
Technical design: API details, database schema, module changes and test strategy.
04/09 - Contract
API, message and database contracts between services are updated to match the approved design.
05/09 - TASKS
Tasks for each team, derived from the technical design, with dependencies and deployment order.
06/09 - /implement
Each team builds only the tasks assigned to it, in its own application.
07/09 - /verify
The code is checked against the technical design, the contracts and the task list. If it doesn’t pass, it goes back for fixes.
08/09 - /finish
Once every team’s verification passes, the tasks, contracts, plan and archive are updated. The architecture impact from the technical design is written into the architecture document (ARCHITECTURE.md), and the feature is closed.
09/09
- Docs
- Code
- Verification
- Close-out
- Only when needed
For small bug fixes, the BRD and technical design steps are skipped: a task is created and the fix is made right away.
One feature, start to finish: Juripano
Italian language support for Juripano (juripano.com): the docs session plans the work and gets it approved, two teams implement in parallel in their own repos, and each is verified in a separate context.
In the Juripano docs session, an issue is opened for Italian language support on event pages. The BRD, SDD and technical design (including its Architecture Impact) are approved in turn, and the tasks are split between the juripano-api and juripano-ui teams. Both teams work through their tasks in parallel, and each is verified in a separate context and gets a PASS. Finally, /finish closes the feature and adds the multilingual content capability to ARCHITECTURE.md.
Shortened from the Italian language work on Juripano. The commands are real; the task texts are illustrative.
A real example
We built Sitre end to end with this workflow
Every feature and every bug fix in Sitre, our own product, started with an issue. It moved through the BRD, SDD, TDD and task lists, and was closed only after passing verification.
The task list at the top of this page is from building the recognizer for the VKN (Turkish tax ID number). Each task links to its section of the technical design, and tests and deployment are part of the task.
What's new
The latest additions to ArchFlow. The first three came with version 3.0.
Commands are now skills
Each command is generated as a Claude Code skill (.claude/skills/<name>/SKILL.md). /implement writes code and /finish closes the feature, so both run only when the user calls them. /verify writes no code, so the model can run it.
Project rules in their own file
Project-specific rules go in PROJECT.md instead of a copied command file, and the generated skills read it first. A project rule can add or adapt a step, but it can’t loosen the approval and verification gates. Upgrades leave this file alone.
Code and close-out only by command
If someone just types "implement it" or "wrap it up", the agent doesn’t start on its own. It suggests running /implement or /finish instead, so the prerequisites, the handoff note and the closing report don’t get skipped.
A living architecture document
The system’s current architecture lives in one file: ARCHITECTURE.md. Every technical design has an "Architecture Impact" section that is locked in on approval. When the feature closes, only /finish writes that change into the architecture document.
Safe upgrades
archdoc-setup.sh upgrade moves the commands and templates of running projects to the new version. On 2.x projects it turns the old command files into skills and keeps the project’s own commands. With --dry-run and --diff it shows the changes first, and it backs up every file it changes. The plan, the archive and the project info are left untouched.
Migrating from OpenSpec
import-docs converts an OpenSpec folder to ArchFlow. Active changes become draft BRDs, TDDs and task lists; the archive moves to ARCHIVE and the specs go into the architecture document. Approval gates are not skipped.
What you get
Technology-agnostic
Java, Rust, Python, React, Go, .NET and more. The workflow works regardless of your stack.
A single source of truth
Architecture decisions, contracts and tasks are kept in one place, a central documentation repo.
Code verified against the docs
Code is implemented with AI (Claude Code) and checked against the approved documents every time.
Guardrails against process gaps
Each phase moves forward only after approval. Contract and verification steps keep unapproved changes and unfinished work from being counted as done.
Team isolation
Each team implements only its own tasks. Communication between services runs through documented contracts.
Works with your existing tools
Works alongside Jira, GitHub or GitLab for issue tracking.
How we can work with ArchFlow
Forward Deployed Engineering
Our engineers join your team and run the project with this workflow. Every solution built on site is delivered with up-to-date architecture and documentation.
DetailsSetupSetup for your team
We set up ArchFlow on your repos, your issue tracker and your stack, then build the first features together with your team.
DetailsLet’s talk about your project.
Tell us briefly what you need and we will get back to you soon.