feat: add auto-init Pre-Check for /genesis and /quickstart#4
Open
moyu12-ae wants to merge 1 commit intoHaaaiawd:mainfrom
Open
feat: add auto-init Pre-Check for /genesis and /quickstart#4moyu12-ae wants to merge 1 commit intoHaaaiawd:mainfrom
moyu12-ae wants to merge 1 commit intoHaaaiawd:mainfrom
Conversation
- Add Pre-Check step to automatically initialize projects without AGENTS.md - Eliminates the need for manual 'anws init' CLI call - Users can now start anws workflows directly without pre-initialization Changes: - /genesis: Added auto-detection of AGENTS.md and automatic creation of .anws/ structure - /quickstart: Added same auto-init logic at entry point This resolves the 'chicken-and-egg' problem where users needed to know about anws before being able to use it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
为
/genesis和/quickstart工作流添加自动初始化能力。Problem
Trae 环境下的核心问题
在使用 Trae IDE 时存在一个"鸡生蛋、蛋生鸡"的困境:
现状:
AGENTS.md和.anws/目录结构anws init命令来初始化项目问题:
影响:
Solution
在
genesis.md和quickstart.md的工作流开头增加 Pre-Check: 自动初始化 步骤:自动检测流程
检测项目状态:
AGENTS.md.anws/目录状态判断:
AGENTS.md且有.anws/→ 项目已初始化,直接进入工作流AGENTS.md但无.anws/→ 异常状态,创建.anws/目录结构AGENTS.md→ 全新项目,执行自动初始化自动初始化流程(仅当无
AGENTS.md时):.anws/目录结构(changelog 和 v1 版本目录)AGENTS.md项目锚点文件.anws/changelog/README.md变更记录效果:
用户现在可以直接说"我要做一个新项目",anws 会自动检测并完成初始化,然后无缝进入后续工作流,无需任何手动干预。
Files Changed
src/anws/templates/.agents/workflows/genesis.mdsrc/anws/templates/.agents/workflows/quickstart.md