Skip to content

docs/ai: Rewrite AI agent guidlines#38

Merged
gdaegeun539 merged 1 commit intoproject-lyrics:developfrom
gdaegeun539:chore/agent-guideline-deep
Apr 21, 2026
Merged

docs/ai: Rewrite AI agent guidlines#38
gdaegeun539 merged 1 commit intoproject-lyrics:developfrom
gdaegeun539:chore/agent-guideline-deep

Conversation

@gdaegeun539
Copy link
Copy Markdown
Member

@gdaegeun539 gdaegeun539 commented Apr 20, 2026

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce?

  • Update Docs

What is the current behavior?

프로젝트의 전 레이어 요소들이 최소 1개 이상 구현되었음에도 AGENTS.md이 기존 데이터를 가지고 있음.

What is the new behavior (if this is a feature change)?

프로젝트 최상위 AGENTS.md과 각 디렉토리의 AGENTS.md을 최신의 구조와 데이터를 가지도록 갱신함

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

No breaking changes.

Other information:

AGENTS.md 수용 에이전트, Claude Code, Gemini CLI+Antigravity 모두 호환되게 심볼릭 링크를 연결해두었습니다.

Summary by CodeRabbit

  • Documentation
    • Reorganized and streamlined project guidelines and documentation
    • Added comprehensive layer-specific documentation for core layer, presentation views, and key features (MyPage and Onboarding)
    • Enhanced project knowledge base with clear conventions and architectural guidance

Replace the long root agent guide with a scoped AGENTS hierarchy so repo, shared layer, and feature-specific rules are easier to discover and maintain.

Align CLAUDE.md and GEMINI.md to each AGENTS.md via symlinks and document the WSL-specific Gradle verification path to keep execution guidance consistent across environments.
@gdaegeun539 gdaegeun539 self-assigned this Apr 20, 2026
@gdaegeun539 gdaegeun539 added docs 문서 수정 ai AI 에이전트 관련 변경사항 (가이드라인, 명령어, 워크플로우 등) labels Apr 20, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 20, 2026

📝 Walkthrough

Walkthrough

The PR restructures documentation by overhauling the root AGENTS.md file from detailed guidelines into a compact project knowledge base, and adds agent-specific guides (AGENTS.md, CLAUDE.md, GEMINI.md) at multiple layers: root, core, presentation view, MyPage feature, and onboarding feature directories.

Changes

Cohort / File(s) Summary
Root-level agent documentation
AGENTS.md, CLAUDE.md, GEMINI.md
Rewrote AGENTS.md from detailed repo guidelines to compact project knowledge base covering app overview and directory structure; added CLAUDE.md and GEMINI.md as single-line reference files.
Core layer agent documentation
app/src/main/java/com/lyrics/feelin/core/AGENTS.md, app/.../core/CLAUDE.md, app/.../core/GEMINI.md
Added core layer guide defining shared runtime purpose, directory structure, and task-to-location mapping; added CLAUDE.md and GEMINI.md reference files.
Presentation view layer agent documentation
app/src/main/java/com/lyrics/feelin/presentation/view/AGENTS.md, app/.../presentation/view/CLAUDE.md, app/.../presentation/view/GEMINI.md
Added presentation view guide specifying roles of screens, ViewModels, and components with folder structure and conventions; added agent reference files.
MyPage feature agent documentation
app/.../presentation/view/mypage/AGENTS.md, app/.../mypage/CLAUDE.md, app/.../mypage/GEMINI.md
Added MyPage feature guide documenting folder layout, responsibilities, and conventions for the feature; added agent reference files.
Onboarding feature agent documentation
app/.../presentation/view/onboarding/AGENTS.md, app/.../onboarding/CLAUDE.md, app/.../onboarding/GEMINI.md
Added onboarding multi-step flow guide with structure, conventions, and navigation patterns; added agent reference files.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~8 minutes

Poem

🐰 Hops through docs with glee!
Knowledge bases bloom in every tree,
Guides for agents, layers neat,
Architecture's now complete—
What once was long, now guides flow free! 📚✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the main change: rewriting AI agent guidelines across multiple AGENTS.md files throughout the repository structure.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 7

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@AGENTS.md`:
- Around line 23-29: Update the root AGENTS.md to include a table listing each
agent and its implementation/capability spec: for each agent name (use same
identifiers found in subfiles like app/src/.../AGENTS.md), add columns for
Responsibility, Inputs (types/schema), Outputs (types/schema),
Constraints/Preconditions, and Failure Modes; ensure entries reference the
corresponding feature AGENTS (e.g., presentation.view.onboarding agent,
presentation.view.mypage agent) and add a short example invocation signature for
each agent to clarify expected inputs/outputs; also add a note pointing
maintainers to the more detailed shared-layer and feature AGENTS.md files for
implementation details.

In `@app/src/main/java/com/lyrics/feelin/core/AGENTS.md`:
- Around line 14-30: Add a new "Agent configuration" section to AGENTS.md
describing the core-level agents: list each agent name and purpose, define its
role (what it controls), expected inputs (events/DTOs like
OAuthToken/SignUpData), outputs (side effects, emitted events, API calls), and
explicit boundaries (which datasources it may call: sdk/remote/local and which
layers it must not touch, e.g., presentation/view); ensure the text follows
existing conventions and references shared models (OAuthToken, ProfileType,
SignUpData) and datasources (`data/datasource/sdk/`, `data/datasource/remote/`,
`data/datasource/local/`) so readers know where to implement handlers and
maintain separation of concerns.

In `@app/src/main/java/com/lyrics/feelin/presentation/view/AGENTS.md`:
- Around line 18-26: Add a blank line immediately before and immediately after
the markdown table that starts with the header "| Task | Location | Notes |" in
AGENTS.md so the table is separated by empty lines per MD058; ensure there is
exactly one empty line above the table and one empty line below it.
- Around line 17-32: AGENTS.md lacks a standard "Agent contracts" section
describing each view agent's purpose, inputs, outputs and behavior; add a new
section titled "Agent contracts / interfaces" in AGENTS.md that lists each agent
(e.g., NoteSearchAgent, AuthAgent, ProfileAgent) with a one-line purpose,
explicit input DTO shape, output DTO/events, expected side-effects/errors and
lifecycle hooks, and the caller mapping (which screen/ViewModel uses it via
hiltViewModel()/screen-state). Include a small example row for NoteSearchAgent
and AuthAgent showing input fields, output fields, emitted events and error
semantics, and add a brief convention note to reference viewmodel/screen-state
files and core/data abstractions for persistence/network calls.

In `@app/src/main/java/com/lyrics/feelin/presentation/view/mypage/AGENTS.md`:
- Around line 27-37: Add a new "Agent Architecture & Patterns" section to
AGENTS.md that prescribes the mypage-specific agent roles and responsibilities:
define an Orchestrator agent to coordinate UI interactions and side effects
(referencing MyPageScreenState.kt for state ownership), a Validator agent for
input/consistency checks before state updates, and a DocSync agent for keeping
profile/setting docs in sync with UserRepository; specify that agents live under
presentation/view/mypage/agents (not core/designsystem), that component/ remains
mypage-local, and that navigation decisions stay in FeelinNavHost.kt while
setting/ and userinfo/ remain child features—include short examples of lifecycle
boundaries, error-handling/ retry responsibilities, and when to call
UserRepository versus reading MyPageScreenState.kt.

In `@app/src/main/java/com/lyrics/feelin/presentation/view/onboarding/AGENTS.md`:
- Around line 18-26: The markdown table starting with "| Task | Location | Notes
|" needs blank lines before and after it to satisfy MD058; edit the AGENTS.md
content to insert one empty line above the table and one empty line below the
table (ensuring the rest of the surrounding text/sections remain unchanged).
- Around line 27-39: Update AGENTS.md to include a clear agent I/O contract for
the onboarding flow: define the agent (OnboardingViewModel) responsibilities,
list explicit input events (e.g., StepInput: submitStepData,
requestStepChange(stepId), acceptTerms), outputs/events emitted (e.g.,
NavigationEvent: navigateTo(destination from FeelinDestination.kt),
PersistRequest: saveUserData via UserRepository), side-effect rules (do not
perform long-term persistence in step screens, do not create separate
graph-level ViewModels, do not bypass parentEntry when calling
hiltViewModel(parentEntry)), and forbidden behaviors (nesting transition logic,
undocumented parked steps). Reference the active step order (login -> terms ->
genderage -> profile -> welcome) and note that routing changes must be reflected
in FeelinNavHost.kt; keep descriptions concise and include expected payload
shapes for each event (e.g., minimal fields required for submitStepData and
navigateTo).
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 0566a03f-5109-489e-bc6f-2ca06eb7317c

📥 Commits

Reviewing files that changed from the base of the PR and between 463fcfe and d214fdd.

📒 Files selected for processing (17)
  • AGENTS.md
  • CLAUDE.md
  • CLAUDE.md
  • GEMINI.md
  • GEMINI.md
  • app/src/main/java/com/lyrics/feelin/core/AGENTS.md
  • app/src/main/java/com/lyrics/feelin/core/CLAUDE.md
  • app/src/main/java/com/lyrics/feelin/core/GEMINI.md
  • app/src/main/java/com/lyrics/feelin/presentation/view/AGENTS.md
  • app/src/main/java/com/lyrics/feelin/presentation/view/CLAUDE.md
  • app/src/main/java/com/lyrics/feelin/presentation/view/GEMINI.md
  • app/src/main/java/com/lyrics/feelin/presentation/view/mypage/AGENTS.md
  • app/src/main/java/com/lyrics/feelin/presentation/view/mypage/CLAUDE.md
  • app/src/main/java/com/lyrics/feelin/presentation/view/mypage/GEMINI.md
  • app/src/main/java/com/lyrics/feelin/presentation/view/onboarding/AGENTS.md
  • app/src/main/java/com/lyrics/feelin/presentation/view/onboarding/CLAUDE.md
  • app/src/main/java/com/lyrics/feelin/presentation/view/onboarding/GEMINI.md

Comment thread AGENTS.md
Comment thread app/src/main/java/com/lyrics/feelin/core/AGENTS.md
Comment thread app/src/main/java/com/lyrics/feelin/presentation/view/AGENTS.md
Comment thread app/src/main/java/com/lyrics/feelin/presentation/view/AGENTS.md
@gdaegeun539
Copy link
Copy Markdown
Member Author

@codex

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@gdaegeun539
Copy link
Copy Markdown
Member Author

GPT 5.4 로 돌아가는 @sisyphus-dev-ai 가 CodeRabbit 억까래요. 병합하겠습니다.

Review

제 판단은 거의 전부 억까입니다.
직접 읽은 AGENTS.md 계층, coderabbit.yaml, .agent/rules/*, .agent/workflows/commit.md 어디에도 “AGENTS.md는 agent implementations / capabilities / inputs / outputs / architecture 표를 반드시 가져야 한다”는 로컬 규칙이 없습니다.
오히려 현재 문서들은 이름부터 내용까지 일관되게 코드베이스 지식 베이스와 디렉터리 가이드 역할을 하고 있고, 루트도 repo-wide rules, build, quality gates, shared architecture라고 스스로 정의합니다. CodeRabbit이 인용한 “As per coding guidelines …” 문구의 실제 근거는 저장소 안에서 찾히지 않았습니다.
정리하면 이렇습니다. AGENTS.md 23-29, core/AGENTS.md, presentation/view/AGENTS.md, mypage/AGENTS.md, onboarding/AGENTS.md에 달린 코멘트는 전부 본질적으로 같은 주장이고, 전부 유효하지 않습니다. 이유도 같습니다.
첫째, 없는 규격을 있는 것처럼 전제했습니다.
둘째, 지금 문서의 목적을 “에이전트 구현 명세”로 오해했습니다.
셋째, 제안한 표와 섹션은 이 저장소의 실제 유지보수 가치보다 형식만 늘립니다.
굳이 일부라도 건질 만한 점을 찾자면 “문서 목적을 더 명확히 쓸 수는 있다” 정도의 취향 차이는 있을 수 있지만, 그건 Major 이슈가 아니라 선택적 문서 스타일 피드백입니다. 그래서 제 최종 평가는 “전부 억까, 최소한 blocking/major로 볼 근거는 없음”입니다. Codex의 LGTM 쪽이 훨씬 타당해 보입니다.

@gdaegeun539 gdaegeun539 merged commit 253ab14 into project-lyrics:develop Apr 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai AI 에이전트 관련 변경사항 (가이드라인, 명령어, 워크플로우 등) docs 문서 수정

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant