Skip to content

Add repo setup: CLAUDE.md, editor config, templates, Dependabot, cloud session hook - #2

Merged
cookingwithsimon merged 1 commit into
mainfrom
claude/project-thread-yxixer
Oct 16, 2026
Merged

cookingwithsimon merged 1 commit into
mainfrom
claude/project-thread-yxixer

Conversation

@cookingwithsimon

Copy link
Copy Markdown
Owner

Requested by Simon · project thread

Before: the repo had only a starter README and .gitignore. There was no shared formatting config, no issue or PR templates, no dependency updates, and a Claude cloud session had no .NET SDK to build or test with.

After: editors and dotnet format share one .editorconfig, line endings are pinned by .gitattributes, CLAUDE.md gives Claude the layout, commands and project rules, issue forms ask the questions that matter for an on-site problem (device, adapter, were settings restored, session log), Dependabot opens monthly grouped updates for NuGet and GitHub Actions, and every cloud session installs the .NET 10 SDK and restores packages on start.

This PR adds only new files, so it does not touch anything in the Phase 1 PR (#1) and the two merge in either order.

How

  • .claude/hooks/session-start.sh (registered in .claude/settings.json) runs only in cloud sessions, installs dotnet-sdk-10.0 from the Ubuntu feed if missing (the dot.net script is blocked there), and runs dotnet restore once ProDHCPServer.sln exists. It is idempotent and synchronous.
  • .editorconfig sets formatting only; all style rules are suggestions so TreatWarningsAsErrors builds are unaffected.

Testing

  • Ran the hook from scratch (SDK installed in ~19 s) and again (no-op).
  • Against the Phase 1 branch with these files added: the full solution builds with 0 errors, and Core tests pass (121/121).
  • dotnet format whitespace --verify-no-changes runs; it reports 32 existing whitespace nits in three Phase 1 test files, the same count with or without this .editorconfig. Not enforced in CI.

🤖 Generated with Claude Code

https://claude.ai/code/session_015b2AspKNFwd3rzcGepsPMh


Generated by Claude Code

…d session hook

- .editorconfig and .gitattributes for consistent formatting and line endings
- CLAUDE.md with layout, commands and project rules
- PR template and issue forms written for on-site problem reports
- Dependabot for NuGet and GitHub Actions (monthly, grouped)
- SessionStart hook that installs the .NET 10 SDK and restores packages in cloud sessions

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015b2AspKNFwd3rzcGepsPMh
@cookingwithsimon cookingwithsimon self-assigned this Oct 15, 2026
@cookingwithsimon
cookingwithsimon merged commit e102a14 into main Oct 16, 2026
@cookingwithsimon
cookingwithsimon deleted the claude/project-thread-yxixer branch October 16, 2026 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants