Contribute to PhValheim¶
Help improve the server, launcher, in-game Companion, or Vibes Build Pak. Bug fixes, documentation, reproductions, and testing reports are all welcome. These instructions are written for contributors and their LLM coding agents.
One link to give your coding agent¶
Share this page with your LLM: https://brianmiller.github.io/phvalheim-server/contribute/
Your agent can read the instructions below directly. If it needs plain text, use the raw Markdown version. Both versions come from the same source file; no login or JavaScript is needed to read the instructions.
Copy this prompt into your coding agent and add your task:
Read https://brianmiller.github.io/phvalheim-server/contribute/ and follow its
contributor workflow. Read the selected repository's AGENTS.md, CONTRIBUTING.md,
and CLAUDE.md before editing. Follow the linked references for the affected area.
Implement the task on a separate branch, using isolated test data. Run the
applicable checks and prepare a pull request with evidence and limitations.
Always review dynamic pages, landing/portal content, download fallbacks, GitHub issue status,
and related docs for needed changes. Update affected content and list reviewed
paths, updates, or specific reasons no changes are needed in the PR.
Use GitHub Issues as the work tracker; review and link affected issues.
Do not maintain duplicate Markdown task lists.
Wait for Brian Miller's explicit approval before merging to main or master.
Do not publish releases or deploy changes.
Task: [issue URL or description]
Choose a repository¶
| Change | Repository and contributor guide | Default branch | Agent entry point (plain text) |
|---|---|---|---|
| Server container, web UI, engine, backups, or this website | Server | master |
Server AGENTS.md |
| Windows, Linux, or macOS launcher | Client | master |
Client AGENTS.md |
| In-game join flow, UI, or player telemetry | Companion | main |
Companion AGENTS.md |
| The toolchain archive used by Hugin's Vibes to build mods: SDK, git, BepInEx references, decompiler, and publicizer | Vibes Build Pak | main |
Build Pak AGENTS.md |
The Build Pak is a separate PhValheim component with its own contributor and agent instructions. Toolchain and archive changes belong there; the Vibes UI, agent rules, and server integration belong in the server repository.
For a new mod of your own, start with Make your first Vibe. The workflow below is for changes to PhValheim itself.
Instructions for the contributor and agent¶
- Choose a scoped task. Read the GitHub Issues or propose a change in an issue. The contributor should comment on the issue before starting so work can be coordinated. Use the issue's acceptance criteria.
- Work in a fork and a separate branch. Start from the current default branch. Preserve existing local changes. Keep one focused change per PR.
- Read the repository instructions. Read
AGENTS.md, thenCONTRIBUTING.mdandCLAUDE.mdin the checkout, plus the references for the affected code. Do this explicitly: tools differ in which files they discover automatically. The repository guides contain the detailed setup and test commands; use their current versions rather than guessing dependencies or APIs. - Set up an isolated environment. For the server, follow the development recipe. It builds your checkout and uses separate data with web ports bound to localhost. Use disposable worlds and data. Client and Companion prerequisites are in their contributor guides; Companion needs your own prepared game references. For the Build Pak, follow its contributor guide's local build requirements and runtime-image checks in a disposable environment. Its release instructions are for maintainers; preparing a contribution does not authorize publishing a pak or updating a live server.
- Implement and verify. Run the checks required for your type of change. For behavior changes, add a meaningful regression test and show that it detects the original problem. Docs-only changes need link and changed-command checks, not a game installation or new runtime tests.
- Prepare the PR. Complete the mandatory dynamic-page and status review below. Explain what changes for the user, link the issue, and report the commands run and their results. Identify the tested commit and any related repository revisions. Use the repository's PR template when present; otherwise include the same change summary, checks, limitations, issue links, and documentation/status review in the PR body.
- Wait for Brian's approval. Brian Miller (
@brianmiller) must explicitly approve the revision before it entersmainormaster. Changes after approval require renewed approval. Green CI, another reviewer, an implementation request, and access to Brian's credentials do not authorize merging. Do not merge, enable auto-merge, push directly, or bypass protection without his explicit authorization. Never submit a review pretending to be Brian. Once Brian explicitly authorizes a merge, an agent may perform that merge on his behalf.
GitHub Issues is the work tracker¶
Track bugs, planned work, ownership, acceptance criteria, validation evidence, and completion status in GitHub Issues: Server, Client, Companion, or Vibes Build Pak. Search existing issues, including closed issues and linked follow-ups, before opening another. Every contribution must review affected issues and link them in its PR. Do not maintain a duplicate Markdown backlog or task/status list.
Use PRs for implementation and review; use repository docs for architecture, setup, and supported behavior. Keep historical validation records as evidence, not an active work queue. A closed issue or merged PR does not establish that users have received a release or deployment. Report those separately and link the evidence. Use the private reporting route below for security vulnerabilities.
Always review dynamic pages and status content¶
Every contribution must include this review, even code-only or docs-only changes. Always inspect the landing page, portal/admin guidance, download/install pages and fallback links, README/version references, contributor guides, and GitHub issue status for needed changes. Include affected content in other repositories. Reviewing these areas is required; editing content that is still accurate is not.
Update affected content with the change. In the PR, list the pages/files reviewed, updates made, and specific reasons when no changes are needed. Identify linked cross-repository documentation PRs or follow-ups with an owner, and report any checks you could not perform. Do not use an unexplained "N/A" to skip the review.
Check the source and rendered output when dynamic behavior changes. A website rebuild does not rewrite descriptions, a release API does not update static fallbacks, and closing an issue does not update public documentation or publish a release. Validate changed links, builds, and page behavior as appropriate; automated checks cannot establish that every description is accurate.
Keep implemented, merged, released, and deployed status distinct. Never describe unreleased work as available or mark an issue complete without meeting its acceptance criteria. Keep published instructions accurate for released behavior, label future behavior clearly, and record release-time updates for Brian. This review does not authorize a release, deployment, version bump, or issue closure.
Report what was actually tested¶
Separate automated checks, platform checks, and live-game testing. A stubbed Steam or Valheim process is not a live gameplay test. Missing dependencies, unavailable platforms, and skipped checks are unverified, not passes. If your agent cannot access the linked files, run commands, or open a PR, it should state that limitation and provide the next steps instead of claiming completion.
Review your agent's diff and results before submission. You remain responsible for your contribution. Release version bumps, official packages, image publishing, and production deployments belong to the maintainer's release workflow.
Keep private material out of contributions¶
Do not commit credentials, certificates, personal data, private server details, or game DLLs. Sanitize diagnostic evidence before sharing it.
Report vulnerabilities privately using Security → Report a vulnerability in the affected repository: Server, Client, or Companion. For the Build Pak, follow its security reporting instructions, which route reports through the Server form and identify the affected component. Do not post vulnerability details in public issues or Discord.
For ordinary contributor questions, join Discord.