netjes-contributing
/netjes-contributing
Use when making any change to Netjes itself (the C# library, the npm package, the CLI, the template or the examples), from creating the branch to asking for a merge. Covers branch and worktree setup, test-first work, docs, ADRs and commit rules.
- Author
- DennisVerhoeven ↗
- Repository
- netjes ↗
- Licence
- MIT
- Last repository change
- 09.11.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 1
No signals detected. Repository changed on 09.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use when making any change to Netjes itself (the C# library, the npm package, the CLI, the template or the examples), from creating the branch to asking for a merge. Covers branch and worktree setup, test-first work, docs, ADRs and commit rules.
Original author description
Use when making any change to Netjes itself (the C# library, the npm package, the CLI, the template or the examples), from creating the branch to asking for a merge. Covers branch and worktree setup, test-first work, docs, ADRs and commit rules.
How it works
- 1. Branch
- 2. Find the shape before the code
- 3. Test first
- 4. Docs and decisions
- 5. Commits
- 6. Ready for review
SKILL.md preview
--- name: netjes-contributing description: Use when making any change to Netjes itself (the C# library, the npm package, the CLI, the template or the examples), from creating the branch to asking for a merge. Covers branch and worktree setup, test-first work, docs, ADRs and commit rules. --- # Making a change to Netjes ## 1. Branch - One branch per change, off `main`: `feat/…`, `fix/…`, `refactor/…`, `docs/…`, `test/…`, `chore/…`. - For parallel work, use a worktree per branch: `git worktree add ../netjes-worktrees/<name> -b <branch> main`, then `npm ci && npm run build` in it. Contributors need Node.js `^22.22.2 || ^24.15.0 || >=26.0.0` (`netjes info` checks it) and the .NET SDK named in `global.json` (10.0.403 or newer). Worktrees share one machine, so only one of them runs an end-to-end suite at a time (see `netjes-verification`). - New scope found along the way gets its own branch. Note it and finish the current one first. ## 2. Find the shape before the code - Read the part of [docs/architecture.md](../../../docs/architecture.md) that covers the area, and the ADRs it links. - Look at both sides. Most features have a C# half (an endpoint convention, the payload, `PageRenderer`) and a JS half (`router.tsx`, `route-tree.tsx`, the Vite plugin, the sidecar). The wire format between them is the payload (`src/Netjes/Rendering/PagePayload.cs` and `packages/netjes/src/payload.ts`); change both together. - When the code resists the change, make a structural `refactor:` commit first, with the suites green before and after. ## 3. Test first 1. Write one test for the next behaviour: - .NET: xUnit in `tests/Netjes.Tests`, usually an endpoint test through the test app helpers, with names like `Thing_Scenario_Outcome`. - JS: Vitest in `packages/netjes/test`, using Testing Library and MSW. - Example behaviour: the example's own tests. 2. Run it and read the failure. It must fail on the behaviour, not on a compile error or a missing import. 3. Make it pass with the smallest change, then run the area's tests. 4. For a fix, the test reproduces the bug. For security-relevant code, add tests for the bypasses too: encodings, casing, alternative code paths, and both the C# and JS sides. 5. Repeat. Commit after each green step. Tests that pin internal details are hard to keep. Assert what an app or a browser can observe: status, headers, payload, rendered DOM. ## 4. Docs and decisions - In the same branch, update the guide that covers the area (`docs/guides/`), the reference pages (`docs/reference/`: the React API, the C# API, options, the CLI and the Vite plugin), `docs/architecture.md` where the mechanism changed, and the package READMEs (`packages/netjes/README.md`, `src/Netjes/README.md`, `src/Netjes.Images.SkiaSharp/README.md`). npm and NuGet resolve no relative link, so those READMEs link files in this repository with absolute URLs on `main` (`https://github.com/DennisVerhoeven/netjes/blob/main/<path>`); the release moves those links to its tag in the packages it publishes, and in this repository `npm test` fails when one of those READMEs has a `blob`, `tree` or `raw.githubusercontent.com` link to any other ref. [docs/README.md](../../../docs/README.md) lists every page; a new page goes in it. A change apps build on also goes in the agent skill (`packages/netjes/skills/netjes/`) and the template's `_AGENTS.md` (the app's `AGENTS.md`). - After changing any of those, run `npm run docs:llms` to regenerate `llms.txt` and `llms-full.txt`, and commit them with the change. It reads only the docs git tracks (and names the ones it left out), so `git add` a new document first. - A new guide goes into one of the groups under `## Guides` in [docs/README.md](../../../docs/README.md), at its place in the order an app is built, and into the Guides entries of `SECTIONS` in `scripts/llms.mjs`, in the same order. A line in any tracked Markdown file that links four or more guides, `CHANGELOG.md` and the decision records included, lists them in that order too. `npm test` fails on a guide that is in no group or in two, and on a list that is out of order. - A decision that a newcomer would not guess, or that was chosen over a real alternative, gets an ADR in `docs/decisions/NNNN-title.md`: Context, Decision, Alternatives considered, Consequences, half a page. Never edit an accepted ADR; write a new one that supersedes it. - Call out every change a running app can notice (a new default, a limit, a header, a removed or renamed API) in the docs. From 0.0.1 on, add it to `CHANGELOG.md` under `## [Unreleased]`, with what an app has to do about it. For a breaking change, also call it out in the merge commit. - Write for outside readers: no personal names, no links to private material, no tool or session references. ## 5. Commits - Conventional subjects, imperative, at most 72 characters, no trailing period. Add a body when the reason isn't obvious from the diff. - Stage explicit paths and check `git diff --cached --stat`; never `git add .`. Never `--no-verify`. - Generated files (`generated/netjes.ts`, the golden files, `llms.txt` and `llms-full.txt`) are regenerated, never edited by hand, and committed with the change that caused them. `UPDATE_GOLDEN=1 dotnet test --project tests/Netjes.Tests` rewrites the typegen golden files, the template's `packages/netjes/template/generated/netjes.ts`, `packages/netjes/test/fixtures/client-render/shell.html`, the client-render shell that the .NET and Vitest suites both check, and the public API listings in `tests/Netjes.Tests/PublicApi/`; review the diff, and make a new public type or member a decision, not a default. ## 6. Ready for review The branch is ready when `netjes-verification`'s gate passes and the diff contains nothing unrelated. A reviewer checks four things: - the change does what it claims (ideally by reproducing it); - the new tests fail with the change reverted; - nothing else regressed; - the docs are accurate. Merge with a merge commit (`--no-ff`) for a branch of several commits, then delete the branch and its worktree.
Versions
The database has no other skills named netjes-contributing.
Database snapshot: 13.11.2026 · package version 0155e5dc7ada (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100netjes-verification
Use whenever a Netjes change has to be proven to work, before calling a branch done, before a merge, or after merging several branches together. Lists the suites, the end-to-end rules, the image and package checks, and how to treat a flaky test. - 100netjes
Use when building or changing a Netjes app (React pages in app/ served by ASP.NET Core): adding pages, layouts, C# loaders, server actions, JSON endpoints, caching, streaming, tests or deployment. Covers the app/ and Features/ conventions, generated/netjes.ts, and the commands that check the work. - 100speclink-worktree-merge
Use when a worktree change is committed and ready to land — merges the branch back into the main branch, then cleans the worktree up. - 100contributing
Guides the developer workflow for contributing to Race Condition. Use when setting up pre-commit hooks, running tests before a PR, understanding code style requirements, or preparing a contribution. - 95worktree-merge
Run the fail-closed four-gate worktree merge and locked rebase reintegration. Use when a completed forge worktree is ready to return to the repository's default branch. - 100speclink-worktree-merge
Use when a worktree change is committed and ready to land — merges the branch back into the main branch, then cleans the worktree up.