展示HN:基于规范的人工智能开发 – 让AI生成的代码易于维护

2作者: samarthahathwar26 天前原帖
我构建了一个系统来解决与AI辅助编码相关的最大问题:六个月后你无法维护代码,因为你已经失去了关于为什么要编写这些代码的所有上下文。 核心理念很简单:与其直接进入编码,不如先生成规范,然后在markdown文件中跟踪每一个规划决策和待办事项,这些文件会在不同的文件夹中流转(计划 → 进行中 → 已执行)。这个执行历史将永远伴随你的项目。 工具包包括: - 规范生成器(根据需求生成架构和开发规范) - 会话管理(跟踪编码会话中的进展) - 执行历史跟踪(3个文件夹系统) - Git工作流助手(分支、规范提交) - Spring Boot测试生成 - 自动化代码审查代理(OWASP安全、SOLID原则、性能) 这个系统是为Claude Code构建的,但工作流概念适用于任何AI编码工具。 我用这个系统构建了一个完整的Spring Boot后端——原本预计需要45天的工作压缩到5天。几个月后,执行历史仍然清晰可读。 完整工具包售价49美元: [https://hathwar.gumroad.com/l/spec-driven-ai](https://hathwar.gumroad.com/l/spec-driven-ai) 详细信息的着陆页:[https://samhath03.github.io/spec-driven-ai/](https://samhath03.github.io/spec-driven-ai/) 欢迎随时询问关于工作流的问题。
查看原文
I built a system to solve the biggest problem with AI-assisted coding: you can&#x27;t maintain the code 6 months later because you&#x27;ve lost all context about WHY it was written.<p>The core idea is simple: instead of jumping straight into code, you generate specifications first, then track every planning decision and todo in markdown files that move through folders (plans → in-progress → executed). This execution history stays with your project forever.<p>The toolkit includes: - Spec generators (architect + development specs from requirements) - Session management (track progress across coding sessions) - Execution history tracking (the 3-folder system) - Git workflow helpers (branches, conventional commits) - Spring Boot test generation - Automated code review agents (OWASP security, SOLID, performance)<p>It&#x27;s built for Claude Code but the workflow concepts apply to any AI coding tool.<p>I used this to build a complete Spring Boot backend — 45-day estimate compressed to 5 days. The execution history is still readable months later.<p>$49 for the complete toolkit: <a href="https:&#x2F;&#x2F;hathwar.gumroad.com&#x2F;l&#x2F;spec-driven-ai" rel="nofollow">https:&#x2F;&#x2F;hathwar.gumroad.com&#x2F;l&#x2F;spec-driven-ai</a><p>Landing page with full details: <a href="https:&#x2F;&#x2F;samhath03.github.io&#x2F;spec-driven-ai&#x2F;" rel="nofollow">https:&#x2F;&#x2F;samhath03.github.io&#x2F;spec-driven-ai&#x2F;</a><p>Happy to answer questions about the workflow.