위키 정리: 표준 AI WIKI 플랫폼 구조 적용

- 표준(diadmin/AI_Wiki_Platform 38f17d7)을 new_project.py 방식으로 복사:
  PROJECT.md(개발용 · windows, mac, linux), CLAUDE.md, .claude, .obsidian,
  raw, assets, tools, wiki/00~09·99 (08_화면은 빈 구조, 포탈 예시 제외)
- 프로젝트 문서 wiki/10_JJ_Ollama_Manager/: 00_홈(예전 wiki/00 홈.md 갱신 -
  host 방식·포트 전달), 01_설치, 02_메뉴_사용법, 03_ComfyUI, 04_문제_해결,
  05_변경_기록, 06_작업_현황 (Gitea 위키 6페이지 + 10/29~11/3 내용 통합)
- 사용자 지시 기록 20261103_1657_위키_정리
- .gitignore/.gitattributes 표준 규칙 합침, README에 위키 안내

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K3UWnbHEdCxxWhyNx7Cpd2
This commit is contained in:
Claude
2026-11-03 08:01:41 +00:00
parent a9b59594b3
commit 92e4dbe3cb
64 changed files with 1674 additions and 117 deletions

45
tools/new_project.py Normal file
View File

@@ -0,0 +1,45 @@
"""표준 AI WIKI 플랫폼를 새 프로젝트로 복사하거나, 기존 프로젝트의 표준 부분만 갱신한다.
사용: python tools/new_project.py <대상폴더> --type 개발용 --platforms android,windows [--modules player,explorer]
python tools/new_project.py <기존프로젝트폴더> --update (표준 문서·도구만 덮어씀)"""
import sys, shutil, pathlib, argparse, re
SRC = pathlib.Path(__file__).resolve().parent.parent
STD = ["CLAUDE.md", "README.md", "tools", ".claude", "assets/icons",
"wiki/00_시작", "wiki/02_개발방법", "wiki/03_모듈화/01_모듈표준.md", "wiki/03_모듈화/02_모듈화프로젝트_진행.md",
"wiki/04_플랫폼", "wiki/05_코딩표준", "wiki/06_저장소_동기화", "wiki/07_제안서/01_제안서_작업절차.md",
"wiki/07_제안서/02_아이콘_PPT규칙.md", "wiki/09_연결가이드", "wiki/99_템플릿"]
SKIP = shutil.ignore_patterns(".git", ".ppt_state.json", "workspace*.json", "__pycache__")
def copy(rel, dst):
s, d = SRC / rel, dst / rel
d.parent.mkdir(parents=True, exist_ok=True)
if s.is_dir(): shutil.copytree(s, d, dirs_exist_ok=True, ignore=SKIP)
elif s.exists(): shutil.copy2(s, d)
def main():
ap = argparse.ArgumentParser()
ap.add_argument("dst"); ap.add_argument("--type", default="개발용")
ap.add_argument("--platforms", default="windows"); ap.add_argument("--modules", default="")
ap.add_argument("--update", action="store_true")
a = ap.parse_args(); dst = pathlib.Path(a.dst).resolve()
if a.update:
for r in STD: copy(r, dst)
print("표준 갱신 완료 (PROJECT.md, 지시, 화면, raw 는 유지):", dst); return
if dst.exists() and any(dst.iterdir()):
sys.exit("대상 폴더가 비어 있지 않습니다. --update 를 쓰세요.")
shutil.copytree(SRC, dst, dirs_exist_ok=True, ignore=SKIP)
# 프로젝트 고유 내용 초기화
for d in ["wiki/01_사용자지시"]:
for f in (dst / d).glob("2*.md"): f.unlink()
(dst / d / "00_지시목록.md").write_text("# 사용자 지시 목록\n\n| 일시(KST) | 제목 | 상태 | 파일 |\n|---|---|---|---|\n", encoding="utf-8")
p = dst / "PROJECT.md"; t = p.read_text(encoding="utf-8")
plats = ", ".join(x.strip() for x in a.platforms.split(",") if x.strip())
mods = ", ".join(x.strip() for x in a.modules.split(",") if x.strip())
t = re.sub(r"^project_name:.*$", f"project_name: {dst.name}", t, flags=re.M)
t = re.sub(r"^project_type:\s*\S+", f"project_type: {a.type}", t, flags=re.M)
t = re.sub(r"^platforms:.*$", f"platforms: [{plats}]", t, flags=re.M)
t = re.sub(r"^uses_modules:.*$", f"uses_modules: [{mods}]", t, flags=re.M)
p.write_text(t, encoding="utf-8")
print("새 프로젝트 생성:", dst)
if __name__ == "__main__":
main()