261006_01_ENH: Next.js 생성 템플릿에 에이전트 참조 구조 반영
This commit is contained in:
@@ -38,6 +38,6 @@ npm run build
|
||||
|
||||
- 프로젝트 ID: `__AGENT_PROJECT_ID__`
|
||||
- 프로젝트 유형: `__AGENT_PROJECT_TYPE__`
|
||||
- 권위 원본: `.agent/profile.yml`, `.agent/project.md`
|
||||
- 권위 원본: `.agent/profile.yml`, `.agent/project.md`, `.agent/references/*.md`
|
||||
|
||||
`AGENTS.md`와 `CLAUDE.md`는 중앙 Agent Harness가 합성합니다. 두 파일을 직접 수정하지 않습니다.
|
||||
|
||||
@@ -1,9 +1,18 @@
|
||||
## Generated Next.js Repository Rules
|
||||
# __PROJECT_NAME__ Project Instruction Router
|
||||
|
||||
- This frontend application was generated by `@kri/create-next-app`.
|
||||
- Keep the generated Next.js routing, server/client boundary, authentication, environment, state, query, and application-shell conventions unless an approved task changes them.
|
||||
- Prefer shadcn and approved KRI UI Registry components over new local primitives when a suitable component exists.
|
||||
- Do not create new TypeScript type or interface names ending in `Dto` or `DTO`.
|
||||
- Consume shared frontend behavior from `@kri/common` and the KRI UI Registry instead of copying provider implementations into this repository.
|
||||
- `AGENTS.md` and `CLAUDE.md` are central-harness generated outputs. Never edit them directly; update `.agent/profile.yml` or `.agent/project.md` and recompose.
|
||||
- Run `npm run typecheck` and `npm run build` after relevant source or configuration changes.
|
||||
## Required Project References
|
||||
|
||||
Before each related task, read the current contents of every matching reference below, even if it was read earlier in the session.
|
||||
|
||||
| Task scope | Required reference |
|
||||
|---|---|
|
||||
| Any substantive analysis, planning, implementation, debugging, review, or documentation work in this repository | `.agent/references/repository-rules.md` |
|
||||
|
||||
If a task spans multiple scopes, read every matching reference. Do not assume remembered content is current.
|
||||
|
||||
## Harness Workflow
|
||||
|
||||
- `AGENTS.md` and `CLAUDE.md` are generated outputs. Never edit them directly.
|
||||
- Edit `.agent/project.md` only when routing changes. Store durable project detail in `.agent/references/`.
|
||||
- A reference-only content change does not require recomposition when its route is unchanged. Run harness verification to validate routing and UTF-8.
|
||||
- Recompose and verify after changing `.agent/project.md`, `.agent/profile.yml`, or another composed instruction source.
|
||||
|
||||
9
templates/base/_agent/references/repository-rules.md
Normal file
9
templates/base/_agent/references/repository-rules.md
Normal file
@@ -0,0 +1,9 @@
|
||||
## Generated Next.js Repository Rules
|
||||
|
||||
- This frontend application was generated by `@kri/create-next-app`.
|
||||
- Keep the generated Next.js routing, server/client boundary, authentication, environment, state, query, and application-shell conventions unless an approved task changes them.
|
||||
- Prefer shadcn and approved KRI UI Registry components over new local primitives when a suitable component exists.
|
||||
- Do not create new TypeScript type or interface names ending in `Dto` or `DTO`.
|
||||
- Consume shared frontend behavior from `@kri/common` and the KRI UI Registry instead of copying provider implementations into this repository.
|
||||
- `AGENTS.md` and `CLAUDE.md` are central-harness generated outputs. Never edit them directly; update `.agent/profile.yml` or `.agent/project.md` and recompose.
|
||||
- Run `npm run typecheck` and `npm run build` after relevant source or configuration changes.
|
||||
@@ -1,4 +1,5 @@
|
||||
/AGENTS.md text eol=lf
|
||||
/CLAUDE.md text eol=lf
|
||||
/.agent/*.md text eol=lf
|
||||
/.agent/**/*.md text eol=lf
|
||||
/.agent/*.yml text eol=lf
|
||||
|
||||
Reference in New Issue
Block a user