Skip to content

docs: document fork-based contribution model and make CLAUDE.md agent-agnostic#153

Merged
villelaitila merged 1 commit intosoftagram:mainfrom
villelaitila:docs/fork-model-and-agent-agnostic-claude-md
Apr 8, 2026
Merged

docs: document fork-based contribution model and make CLAUDE.md agent-agnostic#153
villelaitila merged 1 commit intosoftagram:mainfrom
villelaitila:docs/fork-model-and-agent-agnostic-claude-md

Conversation

@villelaitila
Copy link
Copy Markdown
Contributor

Summary

  • Add a new Repository Model (Fork-Based Contribution) section to CLAUDE.md that documents softagram/sgraph as the canonical repo, describes the expected origin (personal fork) + upstream (softagram/sgraph) remote layout, and spells out the fork-and-PR workflow recommended for contributors.
  • Include a practical reminder that merge state must be checked against upstream/main, not just origin/main — forks can lag behind upstream and give a misleading picture.
  • Make the document agent-agnostic: the header and one internal note no longer single out a specific AI assistant, so the file now reads as general guidance for any coding agent (Claude Code, Codex, Gemini CLI, etc.). The CLAUDE.md filename itself is kept as a de-facto convention.

Motivation

While working in a fork, it was easy to misread merge state by only consulting origin/main — commits that looked unmerged were in fact already live in softagram/sgraph:main. Writing the convention down prevents that confusion and also onboards new contributors to the fork model without them having to reverse-engineer it from git history.

Test plan

  • Render CLAUDE.md on GitHub and verify the new section, table, and code block display correctly.
  • Confirm no behavioral or code changes — this is a documentation-only PR.

Adds a "Repository Model (Fork-Based Contribution)" section clarifying that
softagram/sgraph is the canonical repo and contributors work via personal
forks with origin (fork) + upstream (softagram/sgraph) remotes. Includes the
crucial reminder to compare branches against upstream/main rather than just
origin/main when reasoning about merge state, since forks can lag behind.

Also rewords the header and one internal note so the guidance applies to any
AI coding agent (Claude Code, Codex, Gemini CLI, ...) rather than naming
Claude specifically. Only the filename follows the CLAUDE.md convention;
the content is intentionally generic.
@villelaitila villelaitila merged commit a8ec0ee into softagram:main Apr 8, 2026
1 check passed
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.

1 participant