Contributing
Language: English | 日本語 Last updated: 2026-04-18 Audience: Agent developers
This page covers how to contribute to Aphelion: adding or modifying agents, updating rules, maintaining the wiki, and running the platform generator. Read this before opening a pull request.
Table of Contents
Section titled “Table of Contents”- Contribution Types
- Adding a New Agent
- Modifying an Existing Agent
- Updating Rules
- Wiki Maintenance
- Bilingual Sync Policy
- Regenerating Platform Files
- Pull Request Checklist
- Related Pages
- Canonical Sources
Contribution Types
Section titled “Contribution Types”| Type | Changes required |
|---|---|
| New agent | .claude/agents/{name}.md + Agents-Reference (en+ja) + generate.mjs (if new agent) |
| Modify agent | .claude/agents/{name}.md + Agents-Reference entry (en+ja) |
| New rule | .claude/rules/{name}.md + Rules-Reference (en+ja) |
| Modify rule | .claude/rules/{name}.md + Rules-Reference entry (en+ja) |
| Orchestrator rules change | .claude/orchestrator-rules.md + Architecture.md / Triage-System.md (en+ja) |
| Wiki page update | wiki/en/{page}.md + wiki/ja/{page}.md (same PR) |
| Platform generator change | scripts/generate.mjs + regenerate platforms/ |
Adding a New Agent
Section titled “Adding a New Agent”-
Create the agent definition file at
.claude/agents/{name}.md.Follow the standard frontmatter format used by existing agents:
---name: {agent-name}description: |{one-line description for orchestrator discovery}tools: Read, Write, Edit, Bash, Glob, Grep---Include sections: Mission, Inputs, Workflow, Outputs, AGENT_RESULT (with all fields), NEXT conditions.
-
Update Agents-Reference (
wiki/en/Agents-Reference.mdandwiki/ja/Agents-Reference.md) with a new entry following the standard schema (Canonical, Domain, Responsibility, Inputs, Outputs, AGENT_RESULT fields, NEXT conditions). Add the entry in the appropriate domain section. -
If the agent is invokable as a standalone slash command, add a corresponding command file in
.claude/commands/{name}.md. -
If the agent is a new flow orchestrator, update
.claude/orchestrator-rules.mdto include the new agent in the triage or phase sequence. -
Regenerate platform files: Run
node scripts/generate.mjsto updateplatforms/copilot/andplatforms/codex/. -
Agents-Reference split threshold: If the total agent count exceeds 40, or any single section in
Agents-Reference.mdexceeds 300 lines, consider splitting intowiki/en/agents/{name}.mdper-agent files and convertingAgents-Reference.mdinto a list + link hub. This is a future decision — open an issue to discuss first.
Modifying an Existing Agent
Section titled “Modifying an Existing Agent”-
Edit the canonical file at
.claude/agents/{name}.md. -
Update the corresponding Agents-Reference entry in both
wiki/en/Agents-Reference.mdandwiki/ja/Agents-Reference.mdto reflect the change.Keeping Agents-Reference synchronized is mandatory. If you update an agent definition without updating the wiki entry, reviewers will request a correction.
-
Regenerate platform files: Run
node scripts/generate.mjsto propagate the change toplatforms/copilot/andplatforms/codex/.
Updating Rules
Section titled “Updating Rules”-
Edit the canonical file at
.claude/rules/{name}.md. -
Update the corresponding Rules-Reference entry in both
wiki/en/Rules-Reference.mdandwiki/ja/Rules-Reference.md. -
If the rule change affects orchestrator behavior, also update
wiki/en/Architecture.mdandwiki/ja/Architecture.md. -
If the rule affects triage, also update
wiki/en/Triage-System.mdandwiki/ja/Triage-System.md. -
If the rule change affects the platform-generated files (e.g., build-verification-commands or library-and-security-policy), regenerate platform files.
Wiki Maintenance
Section titled “Wiki Maintenance”Editing existing pages
Section titled “Editing existing pages”- Always edit the English page (
wiki/en/) first — it is the canonical source. - Update
> Last updated:at the top of the English page. - Update the corresponding Japanese page in the same PR. Update
> EN canonical:to the current date.
Adding a new page
Section titled “Adding a new page”- Create
wiki/en/{slug}.mdwith the standard frontmatter. - Create
wiki/ja/{slug}.mdwithEN canonical: {date} of wiki/en/{slug}.md. - Add both pages to the
## Pagessection inwiki/en/Home.mdandwiki/ja/Home.md. - Add
Related Pageslinks in pages that are topically related.
Untranslated page fallback
Section titled “Untranslated page fallback”If you add a new English page but cannot provide a Japanese translation in the same PR, place a stub in wiki/ja/{slug}.md:
> 本ページは英語版が先行しています。[English version](../en/{slug}.md) を参照してください。Translate within 30 days and link the stub issue to the follow-up PR.
README vs Wiki separation
Section titled “README vs Wiki separation”- README: Entry point and Quick Start. Keep it short — setup, scenarios, command reference.
- Wiki: Detailed reference. Agent schemas, rule explanations, platform internals, triage logic.
- Do not add detailed reference content to README. Do not add Quick Start content to the wiki Home.md.
Bilingual Sync Policy
Section titled “Bilingual Sync Policy”The wiki is bilingual with English as canonical. The following rules are enforced in PR review:
Mandatory:
- Every PR that modifies
wiki/en/{page}.mdmust also updatewiki/ja/{page}.mdin the same PR. - English-only merges are prohibited (except for minor fixes — see below).
- The
> EN canonical: {date}line in everywiki/ja/page must be updated to match the current date when the English page changes.
Minor fix exception:
- Typo fixes and broken link corrections in English-only may be merged without same-PR Japanese sync.
- A follow-up issue must be opened and assigned for the Japanese update within 7 days.
Reviewer responsibility:
- Reviewers check that
wiki/en/andwiki/ja/structural parity is maintained (same sections, same headings, matching TOC).
Regenerating Platform Files
Section titled “Regenerating Platform Files”Whenever you modify files in .claude/agents/, .claude/rules/, or .claude/orchestrator-rules.md, regenerate the platform files:
node scripts/generate.mjsStage the generated files alongside your canonical changes:
git add .claude/agents/{name}.md platforms/copilot/agents/{name}.agent.mdgit add platforms/codex/AGENTS.mdNever edit
platforms/files directly. They are generated artifacts. Direct edits will be overwritten the next time the generator runs.
Pull Request Checklist
Section titled “Pull Request Checklist”Before opening a PR, verify:
- Canonical source (
.claude/agents/or.claude/rules/) updated -
wiki/en/page updated (if the change affects wiki content) -
wiki/ja/page updated in the same PR (bilingual sync) -
> Last updated:line updated in modified wiki pages -
> EN canonical:line updated in correspondingwiki/ja/pages - Agents-Reference or Rules-Reference entry updated (if agent/rule changed)
- Platform files regenerated (
node scripts/generate.mjs) if canonical changed - Generated
platforms/files staged alongside canonical changes
Related Pages
Section titled “Related Pages”Canonical Sources
Section titled “Canonical Sources”- .claude/agents/ — Agent definition files (canonical)
- .claude/rules/ — Rule files (canonical)
- scripts/generate.mjs — Platform file generator
- wiki/DESIGN.md — Wiki information architecture design