Skip to content
This repository was archived by the owner on Jul 16, 2026. It is now read-only.
This repository was archived by the owner on Jul 16, 2026. It is now read-only.

Improvement: template AGENTS.md defaults to Python stack — should be language-agnostic or auto-detect #2

Description

@lennney

描述

所有 template-project/AGENTS.mdtemplate-root/AGENTS.md 的默认内容都是 Python 技术栈:

Commands: uv run python -m server / uv run pytest
Tech: Python 3.12 / FastAPI / SQLAlchemy / PostgreSQL / uv

对于 JS/TS monorepo (Vite/Next/React) 用户,需要完全重写所有项目 AGENTS.md。

建议

方案 A: 检测 package.json

if [ -f "$PROJ_DIR/package.json" ]; then
  # 使用 JS 模板
  cp template-project/AGENTS.node.md "$PROJ_DIR/AGENTS.md"
fi

方案 B: --js / --python flag

bash setup.sh . project-a --type js    # → JS 模板
bash setup.sh . project-a              # → Python 模板(默认)

方案 C: 语言无关占位符

Commands:
  dev: <dev command>
  build: <build command>
  test: <test command>

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions