refactor: 默认 skills 装到 .agents,并清空 example 旧演示实现
对齐安装目录与 opencode 扫描路径;按 confirmed plan 清掉与 iteration1 不对齐的示例业务代码与 as-built 文档,只留空壳与需求输入。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -68,7 +68,7 @@ PATH_MODE=relative ./agile-team-sdd/install.sh example-project --force
|
||||
./overnight-runner/scripts/install.sh example-project --force
|
||||
```
|
||||
|
||||
确认 `example-project/.agent/skills/` 无残留 `{{...}}`、路径与新约定一致。
|
||||
确认 `example-project/.agents/skills/` 无残留 `{{...}}`、路径与新约定一致。
|
||||
|
||||
### 6. 验证与自检
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ PATH_MODE=relative ./agile-team-sdd/install.sh example-project --force
|
||||
|
||||
- 改完模板不 `--force` 重装 example,样例 skills 继续说旧路径
|
||||
- 把 example 当安装器的输出随便 `--force` 冲掉手写 AGENTS,却不在 Plan 里声明
|
||||
- 只改 `example-project/.agent/skills/` 已安装副本,不改 `*-template`(下次安装会盖回去)
|
||||
- 只改 `example-project/.agents/skills/` 已安装副本,不改 `*-template`(下次安装会盖回去)
|
||||
- 跨模块直接 import 代码
|
||||
|
||||
## 相关
|
||||
|
||||
@@ -25,7 +25,7 @@ description: 在 example-project 上下文中开发或改约定;结束时若
|
||||
| 可以改 | 默认不要改(除非用户确认更新 harness) |
|
||||
|---|---|
|
||||
| `example-project/**` | `agile-team-sdd/`、`harness-installer/`、`tool-chain-installer/`、`overnight-runner/`(套件源) |
|
||||
| 样例内 `.agent/skills/`(仅作本地验证时可改,须知重装会覆盖) | 根 `AGENTS.md` 里套件级约定(可提建议,不擅自改) |
|
||||
| 样例内 `.agents/skills/`(仅作本地验证时可改,须知重装会覆盖) | 根 `AGENTS.md` 里套件级约定(可提建议,不擅自改) |
|
||||
|
||||
本仓库自身的 Plan 仍写在 `.agents/plan/`(若改动触及 harness 仓库规范)。
|
||||
example 业务 Plan 写在 `example-project/docs/features/.../plan.md` 或 `_chores/`。
|
||||
@@ -36,7 +36,7 @@ example 业务 Plan 写在 `example-project/docs/features/.../plan.md` 或 `_cho
|
||||
|
||||
- 路径、命令、自测都以 `example-project/` 为根(如 `apps/backend`、`docs/features/`、`.overnight-runner/`)
|
||||
- 读 `example-project/AGENTS.md` 与相关 docs,按其规范执行
|
||||
- 需要安装态 skill 时,以 `example-project/.agent/skills/` 为准
|
||||
- 需要安装态 skill 时,以 `example-project/.agents/skills/` 为准
|
||||
|
||||
### 2. 执行用户任务
|
||||
|
||||
@@ -54,7 +54,7 @@ example 业务 Plan 写在 `example-project/docs/features/.../plan.md` 或 `_cho
|
||||
| 文档骨架变了 | `docs/` 下新目录、facts/business、`_chores` 语义 |
|
||||
| 流程/检查清单变了 | `example-project/AGENTS.md` 与模板 `AGENTS.md.template` 明显不一致 |
|
||||
| 安装默认值会错 | 新默认路径、端口、测试命令,现有 `placeholders.md` / `install.sh` 对不上 |
|
||||
| skill 行为以样例为准改过 | 只改了 `.agent/skills/` 已安装副本,模板仍是旧的 |
|
||||
| skill 行为以样例为准改过 | 只改了 `.agents/skills/` 已安装副本,模板仍是旧的 |
|
||||
|
||||
**未命中**:正常收尾(验证、文档同步、提交说明),不必提 harness。
|
||||
|
||||
|
||||
@@ -138,7 +138,7 @@ listed = {s['name'] for g in catalog.values() for s in g}
|
||||
tpl_root = pathlib.Path('agile-team-sdd/skills')
|
||||
templates = {p.name.replace('-template', '') for p in tpl_root.iterdir() if p.is_dir()}
|
||||
|
||||
installed_root = pathlib.Path('example-project/.agent/skills')
|
||||
installed_root = pathlib.Path('example-project/.agents/skills')
|
||||
installed = {p.name for p in installed_root.iterdir() if p.is_dir()} if installed_root.exists() else set()
|
||||
|
||||
if listed != templates:
|
||||
@@ -186,7 +186,7 @@ if [ -n "$PY" ]; then
|
||||
"$PY" - <<'PYEOF'
|
||||
import pathlib, re, sys
|
||||
|
||||
root = pathlib.Path('example-project/.agent/skills')
|
||||
root = pathlib.Path('example-project/.agents/skills')
|
||||
bad = []
|
||||
files = sorted(root.rglob('*.md')) if root.exists() else []
|
||||
for f in files:
|
||||
|
||||
Reference in New Issue
Block a user