Repo hygiene: fix .gitignore, normalize line endings, correct repo paths

- Replace misspelled/ineffective ignore file with a real .gitignore:
  deploy/ (contains SSH private key), *.pem, .env*, and Python/Django/
  Wagtail runtime artifacts are now excluded from version control
- Add .gitattributes (* text=auto eol=lf) to stop CRLF/LF churn that
  made all 26 tracked files show spurious full-file diffs
- Correct repo root path /mnt/d/OPC/skelet -> /mnt/d/opc_project/skelet
  in AGENTS.md, 00-ai-start-here, 03-tech-stack, 90-harness-reference,
  current-state (progress.md history left as-is, append-only)
- Update current-state.md snapshot and append maintenance record to
  progress.md per harness rules

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
ila
2026-07-06 15:56:00 +08:00
co-authored by Claude Fable 5
parent 8231c6a976
commit d98bfb7531
8 changed files with 51 additions and 6 deletions
+5 -2
View File
@@ -12,8 +12,8 @@
- 日期:2026-07-06
- 阶段:MVP 起步前,harness 文档已初始化并完成瘦身(元文档合并为 `90-harness-reference.md`,入口统一为 `AGENTS.md`)
- 开发环境:WSL2 / Linux,仓库根目录 `/mnt/d/OPC/skelet`,bash 为标准命令形态
- git:已初始化,主分支 `main`
- 开发环境:WSL2 / Linux,仓库根目录 `/mnt/d/opc_project/skelet`,bash 为标准命令形态
- git:已初始化,主分支 `main`;`.gitignore` 已生效(`deploy/` 及凭证类文件不入库),`.gitattributes` 统一 LF 行尾
- 技术栈:目标为 Wagtail + Django + Python 3.12 + SQLite;第一版英文单语言站点
- 生产代码:尚未初始化
- 测试:尚未初始化
@@ -30,6 +30,9 @@
| `AGENTS.md` | 已有 | AI agent 仓库入口。 |
| `CLAUDE.md` | 已有 | Claude Code 薄入口。 |
| `progress.md` | 已有 | 只追加执行流水。 |
| `business/` | 已有 | 商业计划、内容策略、变现、竞品分析。 |
| `deploy/` | 已有,不入库 | 本机部署凭证(SSH 私钥等),被 `.gitignore` 整目录忽略。 |
| `.gitignore` / `.gitattributes` | 已有 | 忽略凭证与运行产物;统一 LF 行尾。 |
| `init.ps1` / `init.sh` | 已有,占位 | T-001 初始化生产代码后替换真实命令。 |
| `manage.py` | 待建 | Wagtail/Django 入口。 |
| `requirements.txt` | 待建 | Python 依赖。 |