From 82da6cd699301097ecd36531ef4900eb8e310b7d Mon Sep 17 00:00:00 2001 From: humanbeans893 <66624831+humanbeans893@users.noreply.github.com> Date: Thu, 16 Jul 2026 12:27:32 +0000 Subject: [PATCH 1/2] Harden and professionalize dissertation template --- .claude/CLAUDE.md | 185 ------------ .claude/hooks/protect_raw_data.py | 4 +- .claude/scripts/zotero-forward.py | 26 +- .claude/skills/thesis-check/SKILL.md | 2 +- .codex/AGENTS.md | 1 - .env.example | 8 + .github/CODEOWNERS | 5 + .github/dependabot.yml | 29 ++ .github/pull_request_template.md | 16 + .github/workflows/ci.yml | 52 ++++ .github/workflows/dependency-review.yml | 18 ++ .gitignore | 10 + .mcp.json.example | 11 + .pre-commit-config.yaml | 1 + AGENTS.md | 96 ++++++ CLAUDE.md | 3 + CONTRIBUTING.md | 20 ++ LICENSE | 21 ++ Makefile | 87 ++++-- README.md | 375 ++++-------------------- SECURITY.md | 22 ++ docker-compose.files.yml | 7 + docs/integrations.md | 51 ++++ draft/README.md | 128 +++----- draft/SUBMISSION_CHECKLIST.md | 36 +++ draft/chapters/01-introduction.tex | 33 ++- draft/chapters/02-study1.tex | 47 ++- draft/chapters/99-conclusion.tex | 29 +- draft/chapters/_chapter-template.tex | 83 ++++-- draft/frontmatter/abbreviations.tex | 7 + draft/frontmatter/abstract-en.tex | 8 + draft/frontmatter/abstract-ja.tex | 8 + draft/frontmatter/abstract.tex | 4 - draft/frontmatter/acknowledgments.tex | 3 +- draft/frontmatter/declaration.tex | 8 + draft/frontmatter/publications.tex | 9 + draft/frontmatter/symbols.tex | 12 + draft/frontmatter/titlepage.tex | 42 ++- draft/main.tex | 55 +++- draft/preamble.tex | 46 ++- draft/submission.tex | 4 + draft/supplementary.tex | 36 ++- draft/thesis-config.tex | 54 ++++ projects/README.md | 6 +- pyproject.toml | 2 +- tests/test_public_repo_check.py | 50 ++++ tests/test_template_integrity.py | 39 +++ tests/test_thesis_check.py | 35 +++ tools/public_repo_check.py | 143 +++++++++ tools/thesis_check.py | 116 +++++++- 50 files changed, 1375 insertions(+), 718 deletions(-) delete mode 100644 .claude/CLAUDE.md delete mode 100644 .codex/AGENTS.md create mode 100644 .github/CODEOWNERS create mode 100644 .github/dependabot.yml create mode 100644 .github/pull_request_template.md create mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/dependency-review.yml create mode 100644 .mcp.json.example create mode 100644 AGENTS.md create mode 100644 CLAUDE.md create mode 100644 CONTRIBUTING.md create mode 100644 LICENSE create mode 100644 SECURITY.md create mode 100644 docker-compose.files.yml create mode 100644 docs/integrations.md create mode 100644 draft/SUBMISSION_CHECKLIST.md create mode 100644 draft/frontmatter/abbreviations.tex create mode 100644 draft/frontmatter/abstract-en.tex create mode 100644 draft/frontmatter/abstract-ja.tex delete mode 100644 draft/frontmatter/abstract.tex create mode 100644 draft/frontmatter/declaration.tex create mode 100644 draft/frontmatter/publications.tex create mode 100644 draft/frontmatter/symbols.tex create mode 100644 draft/submission.tex create mode 100644 draft/thesis-config.tex create mode 100644 tests/test_public_repo_check.py create mode 100644 tools/public_repo_check.py diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.md deleted file mode 100644 index 56e0a32..0000000 --- a/.claude/CLAUDE.md +++ /dev/null @@ -1,185 +0,0 @@ -# CLAUDE.md - -This file provides guidance to Claude Code when working with code in this repository. - -Think in English. **Respond in Japanese by default**; switch only if the user writes in another language. - ---- - -## Collaboration Principles - -The user may be a researcher with little coding-agent experience. Do not assume git/Docker/LaTeX fluency. - -- Before running a command, say in one plain sentence what it does and why. -- After every step, report the outcome **and the exact path of any produced file** (figure, table, PDF, log). -- Propose the next concrete step; never leave the user wondering what to do. -- Confirm before anything destructive or irreversible (deleting files, overwriting data, git push, package installs). -- When something fails, explain the cause in plain language first, then the fix. -- Prefer the `make` targets below over raw commands — they are the documented, user-visible interface. - ---- - -## Quick Reference - -```bash -make up # build + start the Docker container -make test # all tests (repo + every study), inside Docker -make lint # ruff check + format check, inside Docker -make format # auto-fix + reformat, inside Docker -make pdf # build draft/main.pdf (latexmk, falls back to manual sequence) -make check # manuscript consistency checks (tools/thesis_check.py) - -# Run a study script (Python always goes through Docker) -docker compose exec research-template uv run python projects//scripts/