大改版,可以针对不同项目引擎进行初始化

This commit is contained in:
Nostars Developer
2026-07-27 15:09:13 +08:00
parent 6446261c69
commit 62efb3778c
112 changed files with 11020 additions and 899 deletions

View File

@@ -4,6 +4,11 @@
## 目录
- `.cursor/bootstrap/`:多项目类型初始化的 catalog、manifests、惰性 payload、模板与标准库脚本。
- `.cursor/rules/common/`:所有项目始终启用的 Rules。
- `.cursor/rules/project/`:只包含初始化时所选项目类型的活动 Rules。
- `.cursor/skills/`common 与所选项目类型的活动 Skills。
- `.cursor/hooks/changelog-scan.json`:由初始化脚本按项目类型生成的 Hook 扫描策略。
- `.cursor/changelog/entries/`:开发日志 fragment 的唯一数据源。
- `.cursor/changelog/changelog-*.md`:由生成器确定性生成的只读视图。
- `.cursor/changelog/tools/`:生成、迁移、合并导入和 Git hooks 安装工具。
@@ -13,6 +18,24 @@
- `.cursor/profile/`:项目画像及其变更日志。
- `.cursor/plans/`:实施计划。
## 多类型初始化
支持类型不能从文档猜测,必须由 catalog 动态返回:
```bash
python .cursor/bootstrap/tools/cursor_init.py --list-types
```
初始化或重置使用 dry-run digest 保护:
```bash
python .cursor/bootstrap/tools/cursor_init.py --dry-run --project-type general \
--set shell=powershell --set changelog-author=<handle>
```
完整流程、安全边界和类型就绪门槛见 `.cursor/skills/cursor-init/`。未选类型只保存在
`.cursor/bootstrap/types/`,不会进入 Cursor 活动 Rule/Skill 路径。
## 开发日志
每条日志保存为 `.cursor/changelog/entries/<author>/<id>.md`。不要手改四个生成视图: