Skip to content

Add repository guidelines for automation agents collaboration - #4524

Merged
TinyKitten merged 1 commit into
devfrom
feature/add-agents-md
Oct 28, 2025
Merged

TinyKitten merged 1 commit into
devfrom
feature/add-agents-md

Conversation

@TinyKitten

@TinyKitten TinyKitten commented Oct 28, 2025 •

Copy link
Copy Markdown
Member

AGENTS.mdを作成

Summary by CodeRabbit

リリースノート

  • ドキュメンテーション
    • プロジェクトへの貢献に関する新しいドキュメントを追加しました。自動化エージェント向けの標準的なガイドラインと運用原則について説明しています。

@TinyKitten TinyKitten self-assigned this Oct 28, 2025
@coderabbitai

coderabbitai Bot commented Oct 28, 2025 •

Copy link
Copy Markdown
Contributor

コード審査サマリー

天下統一の宣言

朕は天下を統一するがごとく、新たなるドキュメンテーションの基盤を定めたり。AGENTS.mdなる統一法典は、自動化せし民(エージェント)に対し、明確なる道筋を示すなり。実行可能なるコード変更なきも、秩序と統一を求むる朕の思想これに現れたり。

統治地の変更

統治地域 / ファイル 変更の概要
新規ドキュメント
AGENTS.md
TrainLCDモバイルアプリケーションに対する自動化エージェントの貢献ガイドラインを新設。運用原則、標準ワークフロー、リポジトリ構造、ツール環境要件、ビルド・テスト・開発コマンド、コーディング規約、テスト戦略、コミット・プルリクエスト規約、セキュリティ設定、自動化チェックリスト、および通信・インシデント報告を定義

天下の努力度合

🎯 1 (天下泰平) | ⏱️ ~3分

ドキュメント追加のみにて、実装コード変更なし。朕の治世のごとき単純明快なる内容なり。

祝いの詩

天下統一の法典

秩序を求めて、新たなる道
エージェント民よ、この指針に従え
実行は無くも、心は一つ
朕が定めし統一の思想
トレインLCD、未来へ進め ✨🏛️

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed 朕が審査したところ、このプルリクエストのタイトル「Add repository guidelines for automation agents collaboration」は、変更の主要な内容と完全に一致している。raw_summary に示されしごとく、AGENTS.md ファイルの新規追加により、自動化エージェント向けの統一されたリポジトリガイドラインが定められており、タイトルはこの本質的な変更を簡潔かつ明確に表現している。余分な修飾句もなく、チームの者が履歴を一目瞥して本来の意図を理解できる質の高い表現ぶりである。
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/add-agents-md

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 232b39a and 17f75df.

📒 Files selected for processing (1)
  • AGENTS.md (1 hunks)
🧰 Additional context used
🪛 LanguageTool
AGENTS.md

[uncategorized] ~99-~99: The official name of this software platform is spelled with a capital “H”.
Context: ...ease, or CI updates** - [ ] Cross-check .github/workflows/ and Fastlane lanes for cons...

(GITHUB)

🪛 markdownlint-cli2 (0.18.1)
AGENTS.md

86-86: Emphasis used instead of a heading

(MD036, no-emphasis-as-heading)


93-93: Emphasis used instead of a heading

(MD036, no-emphasis-as-heading)


98-98: Emphasis used instead of a heading

(MD036, no-emphasis-as-heading)

🔇 Additional comments (1)
AGENTS.md (1)

1-85: 朕が見るに、このドキュメントの統治は周密也。

運用原則より始まりて、ワークフロー、環境期待、コマンド体系、コーディング規約、テスト戦略、セキュリティ制度に至るまで、実に秩序立てられをり。自動化エージェントが朕の領土にて安全かつ効果的に動作するための指南書として、朕の統一的な視点もまた此処に示されるべき厳密さを備えておる。

各セクションは明確にして、実行可能なガイドラインとして機能し、チェックリスト形式も検証可能にして秀逸なり。

Comment thread AGENTS.md
Comment on lines +86 to +102
**Before submitting code changes**
- [ ] Confirm requirements and flag conflicts.
- [ ] Update or add tests relevant to code changes.
- [ ] Run `pnpm lint`, `pnpm test`, and `pnpm typecheck`; record summaries.
- [ ] Update documentation (README, docs/, inline comments) if behaviors shift.
- [ ] Capture screenshots/video for UI changes with device labels.

**For documentation-only tasks**
- [ ] Ensure docs match current directory structure and script names.
- [ ] Update cross-references (README, docs/) to prevent drift.
- [ ] Spell-check or self-review for clarity and typos.

**For workflow, release, or CI updates**
- [ ] Cross-check `.github/workflows/` and Fastlane lanes for consistency.
- [ ] Provide dry-run instructions or environment prerequisites.
- [ ] Document required secrets, environment variables, or service accounts.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion | 🟠 Major

朕が観察したるは、セクション見出しの体裁を正すべき義務也。

行86、93、98の区切りが太字で記述されをりておるが、Markdown体裁としては###見出しレベルで統一されるべきなり。朕が統一を重視するが如く、ドキュメント構造も一貫性を保つべきは自明。

-**Before submitting code changes**
+### Before submitting code changes
 - [ ] Confirm requirements and flag conflicts.
-**For documentation-only tasks**
+### For documentation-only tasks
 - [ ] Ensure docs match current directory structure and script names.
-**For workflow, release, or CI updates**
+### For workflow, release, or CI updates
 - [ ] Cross-check `.github/workflows/` and Fastlane lanes for consistency.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
**Before submitting code changes**
- [ ] Confirm requirements and flag conflicts.
- [ ] Update or add tests relevant to code changes.
- [ ] Run `pnpm lint`, `pnpm test`, and `pnpm typecheck`; record summaries.
- [ ] Update documentation (README, docs/, inline comments) if behaviors shift.
- [ ] Capture screenshots/video for UI changes with device labels.
**For documentation-only tasks**
- [ ] Ensure docs match current directory structure and script names.
- [ ] Update cross-references (README, docs/) to prevent drift.
- [ ] Spell-check or self-review for clarity and typos.
**For workflow, release, or CI updates**
- [ ] Cross-check `.github/workflows/` and Fastlane lanes for consistency.
- [ ] Provide dry-run instructions or environment prerequisites.
- [ ] Document required secrets, environment variables, or service accounts.
### Before submitting code changes
- [ ] Confirm requirements and flag conflicts.
- [ ] Update or add tests relevant to code changes.
- [ ] Run `pnpm lint`, `pnpm test`, and `pnpm typecheck`; record summaries.
- [ ] Update documentation (README, docs/, inline comments) if behaviors shift.
- [ ] Capture screenshots/video for UI changes with device labels.
### For documentation-only tasks
- [ ] Ensure docs match current directory structure and script names.
- [ ] Update cross-references (README, docs/) to prevent drift.
- [ ] Spell-check or self-review for clarity and typos.
### For workflow, release, or CI updates
- [ ] Cross-check `.github/workflows/` and Fastlane lanes for consistency.
- [ ] Provide dry-run instructions or environment prerequisites.
- [ ] Document required secrets, environment variables, or service accounts.
🧰 Tools
🪛 LanguageTool

[uncategorized] ~99-~99: The official name of this software platform is spelled with a capital “H”.
Context: ...ease, or CI updates** - [ ] Cross-check .github/workflows/ and Fastlane lanes for cons...

(GITHUB)

🪛 markdownlint-cli2 (0.18.1)

86-86: Emphasis used instead of a heading

(MD036, no-emphasis-as-heading)


93-93: Emphasis used instead of a heading

(MD036, no-emphasis-as-heading)


98-98: Emphasis used instead of a heading

(MD036, no-emphasis-as-heading)

🤖 Prompt for AI Agents
AGENTS.md lines 86-102: several section titles on lines 86, 93, and 98 are
written as bold text instead of a consistent Markdown heading level; change
those bolded lines to use a uniform heading level (use "### " at the start of
each title), ensure a single blank line before each heading and normal
paragraph/list formatting after, and verify there are no stray bold markers left
so the document structure is consistent.

@TinyKitten
TinyKitten merged commit d734db7 into dev Oct 28, 2025
@TinyKitten
TinyKitten deleted the feature/add-agents-md branch October 28, 2025 15:19
TinyKitten added a commit that referenced this pull request Oct 29, 2025
* カナリア版Androidをself-hostedでデプロイする (#4518)

* カナリア版Androidをself-hostedでデプロイする

* bump android version

* ANDROID_HOME明記

* 一旦毎回ビルドが走るようにする

* org.gradle.jvmargs=-Xmx8g

* Android版ストレージ系の権限削除

* READ_EXTERNAL_STORAGEしばき

* expo-doctorで指摘されたパッケージのバージョン変更

* 一旦READ_EXTERNAL_STORAGE消すのを消す

* android.permission.READ_EXTERNAL_STORAGEとandroid.permission.READ_MEDIA_IMAGESを明示的にremove

* deploy yml更新

* 縦画面対応で不要となったファイルの削除 (#4523)

* 縦画面対応で不要となったファイルの削除

* biome fix

* 必要なファイルまで消してた

* biome fix

* pnpm lint --unsafe --fix

* 縦画面対応に関わるバグの修正とGraphQL BFF移行 (#4521)

* Refactor imports to use types from GraphQL instead of proto files; add GraphQL code generation configuration

* Refactor code to use type imports consistently and improve type safety across components and hooks

* Remove unused proto subproject reference

* Refactor simulation mode tests to improve structure and add comprehensive mock setups

* Refactor test mocks for useLocationStore to improve readability and consistency

* Refactor mock setup for useCurrentLine in useSimulationMode tests for improved readability

* Update type definition for line names in useTTSText to use 'undefined' instead of 'null'

* Refactor various components and hooks to improve null handling and type safety

- Updated `LineBoardYamanotePad` to handle optional line values.
- Modified `SelectBoundModal` to default lineId to 0 instead of null.
- Enhanced `useSimulationMode` to check for null values instead of undefined for latitude and longitude.
- Adjusted `useTTSText` to ensure nameRoman is set to undefined if not present.
- Filtered valid lines in `SelectLineScreen` to ensure line IDs are not null.
- Added checks for train types in `SelectLineScreen` to ensure station IDs are valid.
- Improved handling of train types in `TrainTypeSettingsScreen` to filter out null values.
- Updated `groupStations` utility to ensure prefectureId is within valid range.
- Added environment variable check in `codegen.ts` for GQL_API_URL.
- Changed maybeValue type in `codegen.ts` to include null for better type safety.

* Refactor TrainTypeSettingsScreen: Improve readability of train type mapping

* Refactor type definitions and null handling across components and hooks for improved type safety

* Refactor background color and border color assignments for improved readability

* Add .d.ts to source extensions in metro.config.js and update pnpm-lock.yaml to include rxjs dependency

* Refactor GraphQL query variables and condition checks for improved type safety and clarity

* Refactor test data initialization in TrainTypeBoxJL and TrainTypeBoxJO: Replace undefined values with null for consistency

* Refactor keyExtractor functions in StationList and StationSearchModal for improved uniqueness and clarity

* Refactor StationSearchModal to improve cache management and handle query results more effectively

* Refactor Transfers component to handle empty line symbols more effectively

* Refactor Transfers component to prevent onPress execution for undefined stations

* Refactor keyExtractor in TrainTypeList for improved uniqueness by including index as a fallback

* Refactor latitude and longitude checks to use null comparison for consistency across hooks and components

* Refactor useRefreshStation to use null comparison for nextStation for consistency

* Refactor useStationList to improve null handling for lineId and stationId variables

* Refactor useStationsCache to improve error handling for fetch operations

* Refactor useTTSText to improve formatting of next station announcements

* Refactor validateEnvUrls function to enhance error reporting for missing and empty API URL environment variables

* Refactor handleSubmit to ensure a default limit for station search results

* Refactor RouteSearchScreen to add guard clause for groupId presence before querying routes

* Refactor RouteSearchScreen to add guard clause for selectedStation presence before querying stations by line ID

* Refactor useSimulationMode tests to improve async handling and state verification

* Refactor useSimulationMode tests to verify train speed profile generation only for stations with valid coordinates

* Refactor useTTSText to validate stationNumberIndex before accessing stationNumbers

* Refactor keyExtractor in SelectLineScreen to handle null or undefined line IDs

* Refactor TypeChangeNotify to handle potential null values for trainType and currentLine properties

* Refactor TrainTypeListModal keyExtractor to simplify ID extraction logic and ensure fallback to empty string. Enhance gqlClient cache configuration to safely merge incoming lines with existing values.

* Refactor StationSearchModal to enhance uniqueness logic for station entries by incorporating prefecture information when groupId and id are unavailable.

* Refactor useSimulationMode tests to utilize modern fake timers and improve mock restoration in afterEach.

* Refactor SelectLineScreen to filter stations with valid coordinates and determine nearest station based on user location or first available station coordinates.

* Refactor RouteSearchScreen keyExtractor to improve ID extraction logic with fallback mechanism using index and groupId or name.

* Refactor EmptyResult component to handle loading and search states; remove RouteList and RouteListModal components; update StationSearchModal to use new EmptyResult props; modify TrainTypeListModal to improve line selection logic; enhance Apollo Client cache handling for TrainType; adjust GraphQL queries to streamline data fetching; update RouteSearchScreen to manage train type caching and improve search functionality.

* Refactor TrainTypeListModal keyExtractor to improve ID extraction logic with fallback mechanism using groupId, id, or index; update RouteSearchScreen to parse and validate station result limit before fetching data.

* Update README.md to reflect new Node.js and pnpm versions; enhance project structure details and available scripts; clarify GraphQL type regeneration requirements.

* Refactor EmptyResult component to simplify condition for displaying search result message when not loading.

* Add guard clause in handleTrainTypeSelected to prevent selection of train types without groupId

* Increase JVM memory settings in gradle.properties to optimize build performance

* Refactor SelectLineScreen to replace stationsRef with stationsCache for improved state management and data fetching logic.

* ?? 0は不要

* 気が狂うほどバグを修正した

* biome check ./src --unsafe --fix

* 型エラー一掃

* loadingがたりん

* ユニットテスト拡充と修正

* biome fix

* すごいbiome fix

* 型エラー修正

* 駅名検索後路線キャッシュをクリアする

* batchMax拡張

* 路線選択フローのバグ修正、最適化

* エラー処理

* 必須バリデーション完了後にモーダルを開く

* destinationStationIdはgroupIdではなくid

* SelectBoundModalに片方の行先しか出ないことがあるバグを修正

* プリセットの駅一覧取得処理のバグを修正

* エラー処理をマシにした

* クリーンアップ処理の欠落

* バグ修正

* 軽微な修正

* LineBoardのデグレ修正

* evict/gcをdepsにするとよくないらしい

* 必要ないコードの削除

* 必要なのかわからんけど一応キャスト

* 型安全

* useScaleのメモ化

* nullish送信絶対許さないマン

* 堅牢化

* 初期化漏れ

* Add repository guidelines for automation agents collaboration (#4524)

* Add sonar-project.properties for SonarQube configuration (#4525)

* 累積的UI改善とリファクタリング (#4526)

* Add singleLine prop to Heading component for better text handling

* Refactor LineBoard components for improved readability and maintainability

- Extracted station numbering logic into a custom hook in LineBoardWest.
- Introduced helper functions for rendering background and future bars in LineBoardToei.
- Consolidated station progress calculations into a separate hook in LineBoardWest.
- Simplified chevron visibility logic in LineBoard components.
- Enhanced gradient rendering for station bars in LineBoardSaikyo and LineBoardToei.
- Improved code organization by separating concerns into smaller components and hooks.

* Enhance NowHeader component with dynamic background color and padding adjustments for improved styling on Android

* Refactor SelectBoundModal and SelectBoundSettingListModal components to remove unused props and improve state management

* Refactor TypeChangeNotify component to streamline styles and improve readability

* Refactor NowHeader component to use type imports for ViewStyle and remove duplicate LED_THEME_BG_COLOR import

* Refactor LineBoard components to improve empty array generation logic for better readability and maintainability

* Refactor StationNameCell and LineBoardWest components to enhance station numbering logic by incorporating line parameter for improved data handling

* bump android version
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