Skip to content

Add AGENTS.md, ARCHITECTURE.md, and CONTRIBUTING.md - #338

Merged
mbastian merged 1 commit into
masterfrom
docs/agent-contributor-guides
Sep 20, 2026
Merged

mbastian merged 1 commit into
masterfrom
docs/agent-contributor-guides

Conversation

@mbastian

Copy link
Copy Markdown
Member

Summary

  • Add AGENTS.md — instructions for AI coding agents: build/test commands, adding/changing a plugin, code style, and PR guidelines including a checklist for reviewing third-party plugin PRs.
  • Add ARCHITECTURE.md — the repo's three-branch model (master/master-forge/parent-pom), Gephi's SPI/Lookup extension mechanism, plugin module anatomy, and the gephi-maven-plugin build lifecycle.
  • Add CONTRIBUTING.md — code-quality expectations, a "Reviewing a plugin submission PR" checklist derived from real recurring gaps in past submissions, and a "Gephi platform conventions" section (logging, localization, preferences, library wrapper modules, icons, suite naming, test utilities, comments) grounded in real examples from the core Gephi codebase.
  • Add .claude/CLAUDE.md pointing to AGENTS.md.
  • Update README.md's "Best practices" section to point to CONTRIBUTING.md instead of duplicating it.

Test plan

  • Reviewed rendered Markdown for broken cross-references between the four files
  • Checked for duplicated guidance across CONTRIBUTING.md sections

🤖 Generated with Claude Code

Documents the plugin scaffold's branch model, Gephi's SPI/Lookup extension
mechanism, and Gephi platform conventions (logging, localization,
preferences, library wrapper modules, icons, test utilities) so
contributors and AI agents can build and review plugins consistently.
.claude/CLAUDE.md points to AGENTS.md, and README.md's former "Best
practices" section now points to CONTRIBUTING.md instead of duplicating it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@mbastian
mbastian merged commit 315bde1 into master Sep 20, 2026
1 check failed
mbastian added a commit that referenced this pull request Sep 20, 2026
* Fix CI validation for PRs targeting master

master has no plugin modules of its own, so build.yml's build_and_test
job hard-fails on scaffold-only PRs (e.g. #338) with "No 'nbm' modules
have been detected." It also never ran at all for fork-based PRs, since
push events don't fire cross-fork and master had no pull_request
trigger.

- build.yml: skip build/validate gracefully when pom.xml has no
  <module> entries instead of failing.
- test-generation.yml: add a pull_request trigger for master so PRs
  (same-repo or fork) get the generation integration test run
  pre-merge, mirroring master-forge's pr.yml.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* Fix build.yml module check to ignore pom.xml's example comment

grep -q '<module>' pom.xml matched the placeholder comment
(<!-- ... e.g. <module>modules/MyModule</module> ... -->) in the empty
<modules> block, so the skip never actually triggered. Check for real
module directories under modules/ instead.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
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