deuk-agent-rule 2.2.0 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,136 +1,155 @@
1
- # Changelog
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [1.0.18] - 2026-04-12
2
8
 
3
- All notable changes to this project will be documented in this file.
4
9
 
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
10
+ ### Added
6
11
 
7
- ## [2.2.0] - 2026-04-06
12
+ - **ai:** map conversational ticket requests to implicit CLI execution
13
+ - **cli:** implement ticket archive and reporting workflow
14
+ - **rules:** map conversational ticket aliases to implicit CLI execution
8
15
 
9
- ### Added
10
- - cli: support implementation_plan.md and Plan headers during migration
11
- - rules: enforce mandatory English-only rules in publish directory
12
- - rules: implement Hard Rule for no Markdown word emphasis (Plain Text only)
13
- - rules: move ticket file path marker to the bottom of the document
14
16
 
15
- ## [2.1.0] - 2026-04-05
17
+ ### Changed
18
+
19
+ - **readme:** add ticket archive and reports CLI usage to documentation
20
+ - **readme:** describe natural language CLI prompting alternatives
21
+ - **readme:** provide explicit conversational prompt examples inside option tables
22
+ - **readme:** provide explicit update guide
23
+ - **rules:** add prompting guide and execution report archival rule
24
+
25
+ ## [1.0.17] - 2026-04-06
16
26
 
17
- ### Added
18
- - cli: add ticket close status logic and verify workflow phase
19
- - cli: print actual title instead of topic slug in ticket list
20
- - rules: add pre-report self-review phase to definitive workflow
21
- - rules: enforce priority ticket creation and add /ticket slash command
22
27
 
23
28
  ### Fixed
24
- - cli: exclude TICKET_LIST logic files from ticket auto-recovery scan
25
- - cli: replace broken auto-recovery fallback with physical file sync logic
26
29
 
27
- ### Changed
28
- - architecture: add how-it-works guide for CLI operating principles
29
- - enforce mandatory post-test artifact risk analysis workflow
30
- - readme: add npm and github status badges to header
31
- - readme: enhance docs with definitive 5-phase workflow and richer prompt usage examples
32
- - readme: prioritize prompt-driven workflow and adopt neutral metrics
33
- - readme: simplify workflow section with 6-phase table and sample scenario
34
- - system: add interactive system and stack selection guide
35
- - workflow: add Korean workflow user guide tutorial
30
+ - **template:** move ticket repo-relative marker to bottom
31
+
32
+ ## [1.0.16] - 2026-04-05
36
33
 
37
- ## [2.0.0] - 2026-04-05
38
34
 
39
35
  ### Added
40
- - ci: GitHub Release on main for chore(release); simplify public RELEASING
41
- - cli: extend merge tooling and sync publish docs
42
- - cli: tag .cursorrules inject/remove and sync template from publish
43
- - deuk-agent-rule: automated changelog, bump tooling
44
- - deuk-agent-rule: handoff gitignore, pre-work handoff scan, AGENTS inject newline
45
- - deuk-agent-rule: keep a changelog templates without commit links
46
- - forbid 'sync' word in commit titles in agent rules
47
- - handoff: add indexed handoff workflow and CLI
48
- - workflow: introduce Ticket-First Workflow and Multi-AI Handoff architecture
49
36
 
50
- ### Fixed
51
- - ci: run release workflow on master; document GitHub is not auto-synced from gplat
52
- - templates: remove workspace-specific paths from default global rules
37
+ - **workflow:** add auto-verification and final report to agent workflows
53
38
 
54
- ### Changed
55
- - absolute links for npm page
56
- - agents: DeukAgentRules/handoff/LATEST.md handoff path for consumer repos
57
- - agents: require full repo-root paths for handoff file links
58
- - Deuk Family tagline, npm keywords, GitHub Topics note
59
- - migrate handoff to ticket terminology
60
- - public-facing RELEASING and changelog wording; sync-bundle comment
61
- - README updates; delivery-and-parallel-work rule; CLI and publish AGENTS updates
39
+ ## [1.0.15] - 2026-04-05
62
40
 
63
- ## [1.1.0] - 2026-04-05
64
41
 
65
42
  ### Added
66
- - deuk-agent-rule: Modular CLI architecture (ESM native).
67
- - deuk-agent-rule: Recursive directory path resolution for robust ticket discovery.
68
- - deuk-agent-rule: Strict marker casing validation to prevent duplicate injected blocks.
43
+
44
+ - migrate and rename handoff terminology to ticket in CLI and templates
45
+
69
46
 
70
47
  ### Changed
71
- - docs: Transitioned to minimalist DeukPack styling for README.
72
- - deuk-agent-rule: Generalized project detection from hardcoded strings to dynamic metadata (Project: prefix).
73
- - deuk-agent-rule: CLI flags now rigorously override saved config values (Config Inheritance).
74
- - deuk-agent-rule: ticket list and ticket use gracefully fail if system is uninitialized.
48
+
49
+ - Add strict rule for DeukPack namespace requirement
50
+ - completely eradicate legacy Handoff references from AGENTS.md, templates, and mdc rules
51
+ - Enforce DeukPack code format and API strictly as a hard rule
52
+ - refactor README usage guide and workflow
53
+
54
+ ## [1.0.14] - 2026-04-02
55
+
56
+
57
+ ### Added / 추가됨
58
+
59
+ - **cli:** extend merge tooling and sync publish docs / 병합 도구 및 배포 문서 동기화 스크립트 확장
60
+ - **rules:** forbid 'sync' word in commit titles in agent rules / 커밋 제목 내 'sync' 금지 구문 룰 추가
61
+ - **handoff:** add indexed handoff workflow and CLI / 인덱스 기반 Handoff 워크플로 및 CLI 신설
62
+ - **architecture:** migrate template architecture to zero-touch NPM bundle scaffolding / 제로-터치 NPM 스캐폴딩으로 템플릿 아키텍처 개편
63
+
64
+
65
+ ### Fixed / 수정됨
66
+
67
+ - **cli:** resolve html entity syntax error in template generator / 템플릿 생성기(init) 내부의 HTML 엔티티 문법 에러 핫픽스
68
+
69
+
70
+ ### Changed / 변경됨
71
+
72
+ - **docs:** public-facing RELEASING and changelog wording; sync-bundle comment / 외부 공개용 릴리즈 가이드 및 동기화 스크립트 주석 갱신
73
+ - **docs:** update README with token efficiency mechanism and zero-touch template scaffolding / 리드미(README)에 토큰 비용 차단 메커니즘 설정 및 제로 터치 스캐폴딩 문서 개편
75
74
 
76
75
  ## [1.0.13] - 2026-03-28
76
+
77
+
77
78
  ### Fixed
78
- - deuk-agent-rule: printTicketTip missing in CLI (ticket tip after init)
79
+
80
+ - **deuk-agent-rule:** `printHandoffTip` missing in CLI (handoff tip after `init`)
81
+
79
82
 
80
83
  ### Changed
81
- - docs: README § Tickets; GitHub About text; npm keywords; CLI survey adds Claude, Windsurf, JetBrains AI Assistant
82
- - agents: optional .cursor/plans/*.plan.md mirror for plan-style UI; chat Path: line and optional first-line path in ticket files
83
- - deuk-agent-rule: init prints a short ticket tip after ensuring .deuk-agent-ticket/
84
- - deuk-agent-rule: default --rules prefix overwrites existing deuk-agent-rule-*.mdc on repeat init (package updates without a separate merge)
85
- - deuk-agent-rule: .deuk-agent-rule.config.json stores interactive choices; later init reuses them (--interactive to change; --non-interactive for CI only)
84
+
85
+ - **docs:** README § Handoffs; GitHub About text; npm keywords; CLI survey adds Claude, Windsurf, JetBrains AI Assistant
86
+ - **agents:** optional `.cursor/plans/*.plan.md` mirror for plan-style UI; chat `Path:` line and optional first-line path in handoff files
87
+ - **deuk-agent-rule:** `init` prints a short handoff tip after ensuring `.deuk-agent-handoff/`
88
+ - **deuk-agent-rule:** default `--rules prefix` overwrites existing `deuk-agent-rule-*.mdc` on repeat `init` (package updates without a separate `merge`)
89
+ - **deuk-agent-rule:** `.deuk-agent-rule.config.json` stores interactive choices; later `init` reuses them (`--interactive` to change; `--non-interactive` for CI only)
90
+
86
91
 
87
92
  ## [1.0.12] - 2026-03-27
88
93
 
94
+
89
95
  ### Fixed
90
- - ci: release workflow runs on pushes to master
96
+
97
+ - **ci:** release workflow runs on pushes to `master`
91
98
 
92
99
  ### Changed
93
- - agents: require full repo-root paths for ticket file links
100
+
101
+ - **agents:** require full repo-root paths for handoff file links
94
102
 
95
103
  ## [1.0.11] - 2026-03-26
96
104
 
105
+
97
106
  ### Added
98
- - ci: GitHub Release workflow for version tags and chore(release): commits on main / master
107
+
108
+ - **ci:** GitHub Release workflow for version tags and `chore(release):` commits on `main` / `master`
99
109
 
100
110
  ## [1.0.10] - 2026-03-26
101
111
 
112
+
102
113
  ### Added
103
- - deuk-agent-rule: changelog template headers without per-commit links
114
+
115
+ - **deuk-agent-rule:** changelog template headers without per-commit links
104
116
 
105
117
  ## [1.0.9] - 2026-03-27
106
118
 
107
119
  ### Added
108
- - deuk-agent-rule: release changelog tooling; ticket directory gitignore; pre-work ticket scan; AGENTS inject newline fix
120
+
121
+ - **deuk-agent-rule:** release changelog tooling; handoff directory gitignore; pre-work handoff scan; AGENTS inject newline fix
109
122
 
110
123
  ### Changed
111
- - agents: DeukAgentRules/ticket/LATEST.md ticket path for consumer repos
124
+
125
+ - **agents:** DeukAgentRules/handoff/LATEST.md handoff path for consumer repos
112
126
 
113
127
  ## [1.0.8] - 2026-03-27
114
128
 
115
129
  ### Added
116
- - This changelog and npm files entry so releases are traceable.
130
+
131
+ - This changelog and npm `files` entry so releases are traceable.
117
132
 
118
133
  ## [1.0.7] - 2026-03-27
119
134
 
120
135
  ### Added
121
- - init: create .deuk-agent-ticket/ and append .gitignore rules for local tickets.
122
- - CLI: pre-work ticket scan; publish/AGENTS.md and multi-ai-workflow.mdc updates.
136
+
137
+ - `init`: create `.deuk-agent-handoff/` and append `.gitignore` rules for local handoffs.
138
+ - CLI: pre-work handoff scan; `publish/AGENTS.md` and `multi-ai-workflow.mdc` updates.
123
139
 
124
140
  ### Fixed
141
+
125
142
  - AGENTS tagged-region merge: trailing newline after injected blocks.
126
143
 
127
144
  ## [1.0.5] - 2026-03-26
128
145
 
129
146
  ### Changed
147
+
130
148
  - README and package metadata (Deuk Family tagline, npm keywords, GitHub Topics note).
131
149
 
132
150
  ## [1.0.4] - 2026-03-26
133
151
 
134
152
  ### Changed
135
- - Release packaging includes package-lock.json for reproducible installs.
153
+
154
+ - Release packaging includes `package-lock.json` for reproducible installs.
136
155
  - README: absolute links for the npm package page.
package/LICENSE CHANGED
File without changes
package/README.ko.md CHANGED
@@ -1,125 +1,125 @@
1
- <div align="center">
2
- <br />
3
- <h1>DeukAgentRules (득에이전트룰스)</h1>
4
- <p>규칙 표준화 엔진</p>
5
- <p><a href="https://deukpack.app">Deuk Family</a> 생태계의 핵심 에이전트 인프라</p>
6
- </div>
7
-
8
- <div align="center">
9
- <a href="https://www.npmjs.com/package/deuk-agent-rule"><img src="https://img.shields.io/npm/v/deuk-agent-rule.svg?color=black&style=flat-square" alt="NPM Version" /></a>
10
- <a href="https://www.npmjs.com/package/deuk-agent-rule"><img src="https://img.shields.io/npm/dm/deuk-agent-rule.svg?color=blue&style=flat-square" alt="NPM Downloads" /></a>
11
- <a href="https://github.com/joygram/DeukAgentRules"><img src="https://img.shields.io/github/stars/joygram/DeukAgentRules.svg?style=flat-square&color=orange" alt="GitHub Stars" /></a>
12
- <a href="https://github.com/joygram/DeukAgentRules/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/deuk-agent-rule.svg?style=flat-square" alt="License" /></a>
13
- <br /><br />
14
- <a href="https://github.com/joygram/DeukAgentRules/blob/master/README.md">English</a>
15
- </div>
16
-
17
- ***
18
-
19
- ## Abstract
20
-
21
- DeukAgentRules는 AI 엔지니어링 에이전트(Cursor, GitHub Copilot, Gemini/Antigravity, Claude, Windsurf, JetBrains AI 등)를 위한 프로젝트 불가지론적(Agnostic) 규칙 아키텍처를 정의합니다. 지속적인 워크플로 메모리를 세션 컨텍스트와 분리하여, 세션당 반복되는 프롬프트 부하를 감소시킵니다.
22
-
23
- > DeukAgentRules인가?
24
- > 티켓 기반 워크플로(Ticket-First)는 반복되는 컨텍스트 부하를 세션당 단일 토픽 파일 하나로 축소하고, 저장소를 재설명하지 않고도 도구 간 핸드오버를 가능하게 합니다.
25
-
26
- ---
27
-
28
- ## 빠른 시작
29
-
30
- 명령어 줄로 규칙 시스템을 초기화하고 로컬 워크스페이스를 구성하세요:
31
-
32
- ```bash
33
- npx deuk-agent-rule init
34
- ```
35
-
36
- - 대화형 설정: 최초 실행 시 CLI가 주요 기술 스택과 사용하는 AI 에이전트를 선택하도록 안내합니다. (각 스택별 세부 지원 항목은 시스템 및 스택 선택 가이드를 참조하세요).
37
- - 안전한 업데이트: 이후 실행 시 기존 커스텀 설정을 건드리지 않고 필요한 템플릿만 안전하게 주입(Append)합니다. 설정을 변경하려면 --interactive 옵션을 사용하세요.
38
-
39
- ---
40
-
41
- ## 티켓 기반 워크플로 (Ticket-First Workflow)
42
-
43
- 다수의 AI 에이전트가 단일 마크다운 티켓을 통해 컨텍스트를 공유하는 구조입니다.
44
-
45
- ### 6단계 워크플로
46
-
47
- | 단계 | 담당 | 역할 |
48
- |---|---|---|
49
- | 1. 탐색 & 계획 | 추론 AI | 코드베이스 분석, 구현 계획 수립 |
50
- | 2. 결정 | 사용자 | 계획 검토 승인 |
51
- | 3. 티켓 발행 (등록) | 추론 AI | 승인된 계획을 .deuk-agent-ticket/ 에 저장 |
52
- | 4. 실행 | IDE 에이전트 | 티켓만 읽고 범위 내에서 코딩 |
53
- | 5. 리스크 분석 (자체검증) | IDE 에이전트 | 테스트 완료 빌드 산출물 자체의 결함 및 잠재 리스크 필수 분석 |
54
- | 6. 보고 & 종결 | 사용자+에이전트 | 리포트 검토 후 npx deuk-agent-rule ticket close --latest |
55
-
56
- ---
57
-
58
- ### 상세 워크플로 가이드
59
-
60
- 1단계: 탐색 계획 수립
61
- ```
62
- [User] "분석 저장소모듈"
63
- [Agent] (코드베이스 분석 후 방향 제안)
64
- [User] "계획 해당 분석내용을 진행할 계획 설계"
65
- [Agent] (.deuk-agent-ticket/main/storage-20260406.md 티켓 저장)
66
- ```
67
-
68
- 2단계: 실행 및 자체 검증
69
- ```
70
- [User] "진행 (생략 최신 분석 내용 진행)"
71
- [Agent] (티켓을 읽고 코드 변경 후 자체 검토 보고)
72
- [User] "검증 이슈 및 결함, 잠재오류"
73
- [Agent] (티켓 제약 사항 준수 검토 및 결함 탐색 완료)
74
- ```
75
-
76
- ---
77
-
78
- ### 키워드 프롬프트 예시 (채팅창 입력)
79
-
80
- 반복되는 타이핑과 검색 피로도를 줄이기 위해 아래와 같은 키워드 기반의 단문을 권장해요.
81
-
82
- | 상황 | 입력 프롬프트 |
83
- |---|---|
84
- | 분석 | 분석 [주제/모듈] |
85
- | 계획 | 계획 해당 분석내용을 진행할 계획 및 설계 |
86
- | 진행 | 진행 [티켓번호] (생략 시 최신 진행) |
87
- | 검증 | 검증 이슈 및 결함, 잠재오류 |
88
- | 조회 | /티켓 |
89
-
90
- ---
91
-
92
- ### CLI 레퍼런스 (선택 사항)
93
-
94
- ```bash
95
- npx deuk-agent-rule ticket create --topic login-api --project MyProject --content "## Task: ..."
96
- npx deuk-agent-rule ticket list
97
- npx deuk-agent-rule ticket close --latest
98
- ```
99
-
100
- (티켓 튜토리얼: docs/ticket-tutorial.ko.md 참조)
101
-
102
-
103
-
104
- ---
105
-
106
- ## 아키텍처 및 설정 (How It Works)
107
-
108
- CLI는 CI 환경과 명시적 제어를 위한 매개변수를 지원하며, 기존 로컬 설정과 충돌하지 않는 주입(Injection) 방식을 사용합니다.
109
- 자세한 기술 구현 아키텍처와 덮어쓰기 방어 로직은 동작 원리 가이드를 참조하세요.
110
-
111
- ### 핵심 매개변수 (Core Configuration)
112
-
113
- | 옵션 | 용도 |
114
- |------|---------|
115
- | --non-interactive | CI/Headless 모드 (질의응답 없이 기본값/저장된 설정 즉시 적용) |
116
- | --tag <id> | 기본 마커 영역(<!-- <id>:begin/end -->)을 사용자 정의 ID로 오버라이드 |
117
- | --agents inject | 기존 AGENTS.md에 지능형 마커 주입 (또는 skip, overwrite) |
118
- | --rules prefix | 지능형 파일 접두사를 활용하여 .cursor/rules 모듈 업데이트 |
119
-
120
- ---
121
-
122
- ## 라이선스 & 생태계
123
-
124
- 패키지는 DeukPack Ecosystem의 일부로 구동되며, Apache-2.0 라이선스 하에 배포됩니다.
125
- 이슈 제보, 컨트리뷰션커뮤니티 논의는 GitHub Repository (https://github.com/joygram/DeukAgentRules) 방문해 주세요.
1
+ # DeukAgentRules (득에이전트룰스)
2
+
3
+ > **Deuk Family**의 핵심 모듈 가운데 하나입니다. 구조화된 규칙으로 AI 에이전트의 협업 효율을 극대화합니다.
4
+
5
+ **npm 패키지:** `deuk-agent-rule` · **CLI:** `deuk-agent-rule`
6
+
7
+ **English:** [README.md](https://github.com/joygram/DeukAgentRules/blob/master/README.md)
8
+
9
+ Cursor, GitHub Copilot, Gemini / Antigravity, Claude, Windsurf, JetBrains AI Assistant 등 다양한 코딩 에이전트와 함께 활용하는 **서브모듈 격리형 협업 프레임워크**입니다.
10
+ 프로젝트 규칙(`AGENTS.md`, `.cursor/rules`)을 표준화하고, **티켓 기반 워크플로우**를 통해 쓸데없는 프롬프트 토큰 낭비와 AI의 맥락 환각(Hallucination)을 강력하게 방어합니다.
11
+
12
+ > **🚀 핵심 가치:**
13
+ > 세션당 약 1,500~2,000 토큰에 달하는 강제 로드 컨텍스트를 200~300 토큰 수준으로 압축합니다. AI가 모놀리식 전체 레포지토리를 헤매지 않도록, 정확한 티켓(작업 지시서) 기반으로 **"해당 서브모듈(Submodule)"**에만 격리시켜 작업을 지시할 수 있습니다.
14
+
15
+ ---
16
+
17
+ ## 🛠️ 워크스페이스 초기화 (Getting Started)
18
+
19
+ 프로젝트 루트에서 최초 1회 패키지를 설치하고 초기화합니다.
20
+
21
+ ```bash
22
+ npm install deuk-agent-rule
23
+ npx deuk-agent-rule init
24
+ ```
25
+
26
+ 초기화 시 프로젝트의 **기술 스택**과 **사용 중인 에이전트 툴**을 묻는 대화형 질문이 나타나며, 선택에 맞춰 최적화된 마크다운 템플릿과 룰 파일(`.cursor/rules/*`)들이 자동 생성 및 동기화됩니다.
27
+ - 스택 변경이 필요 없으면 이후에는 `npx deuk-agent-rule init`만 쳐서 규칙을 최신화할 수 있습니다.
28
+ - CI나 스크립트 환경에서는 대화형 입력을 끄기 위해 `--non-interactive` 파라미터를 추가하세요.
29
+
30
+ ### 🔄 규칙 패키지 업데이트 (Update Rules)
31
+ 새로운 에이전트 워크플로우나 템플릿이 릴리즈되었을 경우, 패키지를 최신 버전으로 갱신하고 `init` 명령을 재실행하여 변경 사항을 쉽게 프로젝트에 동기화할 수 있습니다.
32
+ 기존 환경 설정(`.deuk-agent-rule.config.json`)을 기억하고 있으므로 `--non-interactive`를 주면 묻지도 따지지도 않고 규칙만 즉시 최신화해 줍니다.
33
+ ```bash
34
+ npm install deuk-agent-rule@latest
35
+ npx deuk-agent-rule init --non-interactive
36
+ ```
37
+
38
+ ---
39
+
40
+ ## 🎯 핵심 워크플로우 (The Ticket Workflow)
41
+
42
+ `npx deuk-agent-rule init`을 실행하면 워크스페이스 최상단에 **제로-터치 스캐폴딩 샌드박스**가 작동하며 아래 두 개의 핵심 폴더가 등장합니다.
43
+
44
+ 1. **`.deuk-agent-templates/` (에이전트 템플릿)**: AI가 어떠한 양식으로 작업을 처리하고 보고해야 하는지 정의된 공식 뼈대(`TICKET_TEMPLATE.md`)가 지정됩니다. 소스코드와 함께 Git에 커밋되어 팀의 룰북 역할을 합니다.
45
+ 2. **`.deuk-agent-ticket/` (티켓 실행 공간)**: 에이전트들과 작업자가 실제 주고받는 휘발성 지시서(`TICKET-XXX.md`)가 발급되는 은밀한 공간입니다. (보안 및 히스토리 누출 방지를 위해 시스템이 자동으로 `.gitignore`에 기재합니다.)
46
+
47
+ 이러한 샌드박스 폴더들을 활용하여 스퍼트를 올리는 **최적의 AI 코딩 3단계**는 다음과 같습니다.
48
+
49
+ ### [Step 1] 티켓 발급 서브모듈 지정 (Ticket Creation)
50
+ AI에게 중구난방으로 지시하지 마세요. 명확한 티켓을 발급하여 **문맥(Context)을 좁혀주어야** 비용과 사고를 막을 수 있습니다.
51
+
52
+ ```bash
53
+ npx deuk-agent-rule ticket create --topic ui-refactoring --group frontend --project DeukUI --content "## Task: 플러그인 UI 리팩토링"
54
+ ```
55
+ 명령어를 치면 `.deuk-agent-ticket/` 폴더 내에 템플릿이 입혀진 `TICKET-ui-refactoring.md` 파일이 생성됩니다.
56
+ 개발자는 이 파일 내의 `[Target Submodule]` 속성에 AI가 들여다보아야 할 고립된 경로(예: `src/client`)만을 명시해 줍니다.
57
+
58
+ ### [Step 2] 세션 인수인계 및 에이전트 격리 실행 (Agent Execution)
59
+ AI 챗봇(Cursor, Gemini 등)에게 다음과 같이 단 한 줄의 명령만 내립니다.
60
+ > *"방금 발급된 `.deuk-agent-ticket/TICKET-ui-refactoring.md` 티켓을 열고, 명시된 타겟 서브모듈 내에서 체크리스트를 따라 작업을 시작해"*
61
+
62
+ AI는 티켓 내에 정의된 Phase(진행 단계)를 충실히 읽고, **자신이 다루지 않아도 될 타 모듈의 불필요한 연산을 원천 차단**한 채 가장 최적화된 코드만 작성합니다. (이 과정을 통해 토큰 비용이 획기적으로 줄어듭니다.)
63
+
64
+ ### [Step 3] 검증 상태 갱신 (Review & Closure)
65
+ AI가 코드를 작성하며 티켓 내 마크업의 체크박스(`[x]`)를 갱신합니다. 에이전트의 세션(기억 한계)이 가득 차면, 티켓 내용만 디스크에 남겨둔 채 챗봇 창을 끄고 새 창을 열어 다시 [Step 2]를 지시하면 깔끔하게 인수인계가 이루어집니다.
66
+ 모든 작업이 끝나면 Phase 상태를 `[Phase 완료]`로 승급시킵니다. 터미널 명령어를 직접 치는 대신, **AI 챗봇 프롬프트에 "현재 진행 중인 티켓 리스트를 보여줘" 또는 "완료된 티켓들을 보고서와 함께 아카이브 해 줘"라고 자연어로 지시**하여 AI가 알아서 CLI를 호출해 리스트업 및 관리하게 위임할 수도 있습니다.
67
+ 직접 터미널에서 상태를 파악하시려면 아래 명령을 사용하세요:
68
+
69
+ ```bash
70
+ npx deuk-agent-rule ticket list
71
+ ```
72
+ ```text
73
+ 📦 Agent Tickets (Direct System Scan):
74
+ ✅ [TICKET-DEUKUI-Button.md]
75
+ Title: 버튼 컴포넌트 추가
76
+ Target: DeukUI
77
+ Status: [완료]
78
+ 🔨 [TICKET-ui-refactoring.md]
79
+ Title: 플러그인 UI 리팩토링
80
+ Target: DeukUI
81
+ Status: [진행 중]
82
+ ```
83
+
84
+ ---
85
+
86
+ ## 🤖 에이전트 프롬프팅 가이드 (Prompting Guide)
87
+
88
+ 패키지를 설치하고 초기화하더라도, 일부 AI 에이전트(Cursor, Gemini 등)가 최초 세션에서 시스템 규칙 파일(`AGENTS.md`)을 능동적으로 읽어들이지 않는 경우가 종종 발생합니다. **새로운 챗봇 세션을 시작할 때마다 아래의 프롬프트를 복사하여 AI에게 첫 지시로 내려주면, 환각이나 룰 이탈을 완벽하게 예방할 수 있습니다.**
89
+
90
+ ### 1. 전역 시스템 룰 숙지 강제 (필수)
91
+ > *"본격적인 작업을 시작하기 전에 워크스페이스 Root에 있는 `AGENTS.md` (DeukAgentRules) 문서를 끝까지 읽어줘. 현재 프로젝트의 핵심 룰, Identity, 그리고 티켓 워크플로우에 대해 완벽히 숙지해야 해. 숙지를 마쳤다면 내용을 요약하지 말고 '규칙 확인 완료'라고 짧게 대답한 뒤 첫 지시를 대기해."*
92
+
93
+ ### 2. 티켓 기반 타깃 작업 시작 (권장)
94
+ > *"방금 발급된 `.deuk-agent-ticket/TICKET-XXX.md` 티켓을 열고, 티켓 내부에 명시된 **타겟 서브모듈(Target Submodule)** 경로 내에서만 파일 탐색 및 작업을 진행해. 다른 서브모듈(예: 서버 코드를 명시했는데 클라이언트 폴더를 건드리는 행위 등)로 벗어나거나 임의의 파일을 건드리지 마."*
95
+
96
+ ---
97
+
98
+ ## ⚙️ 부가 옵션 및 CLI 레퍼런스
99
+
100
+ 업무 자동화 타깃 제어를 위한 상세 옵션입니다.
101
+
102
+ ### Ticket 기반 명령
103
+ 아래 CLI 명령어들은 터미널에 직접 입력하는 대신, **AI 챗봇에게 자연어 프롬프트로 지시**하여 실행을 위임할 수 있습니다.
104
+
105
+ | 커맨드 | 설명 / 자연어 프롬프트 지시 예시 |
106
+ |--------|------|
107
+ | `npx deuk-agent-rule ticket create ...` | 신규 티켓 문서 생성 (`--group`, `--project` 지정 가능) <br>💬 *"새 티켓 만들어 (주제: refactor, 타겟: sub1)"* |
108
+ | `npx deuk-agent-rule ticket list` | 활성 티켓의 현재 상태 리스트업 (`--archived`, `--all` 지원) <br>💬 *"티켓 리스트"* |
109
+ | `npx deuk-agent-rule ticket use --latest ...` | 빌드 파이프라인 연동을 위해 최근 티켓의 파일 경로만 반환 <br>💬 *"최근 티켓 경로"* |
110
+ | `npx deuk-agent-rule ticket close ...` | 파일을 물리적으로 이동시키지 않고 상태만 완료로 잠금(Soft-close) <br>💬 *"현재 티켓 상태 닫아 (완료)"* |
111
+ | `npx deuk-agent-rule ticket archive ...` | 완료된 티켓을 안전하게 보관소(`archive/`)로 이동 및 갱신 <br>💬 *"현재 티켓 아카이브해 (보고서 첨부)"* |
112
+ | `npx deuk-agent-rule ticket reports` | 영구 보관된 에이전트 작업 보고서(`reports/`) 목록 조회 <br>💬 *"완료된 티켓 보고서 목록"* |
113
+ | `npx deuk-agent-rule ticket migrate` | 과거 단일 LATEST.md 데이터를 신규 모듈형 인덱스 구조로 강제 이전 <br>💬 *"이전 티켓 데이터 마이그레이션"* |
114
+
115
+ ### Init 고급 옵션
116
+ | 플래그 | 기본값 | 설명 |
117
+ |--------|--------|------|
118
+ | `--non-interactive` | | CI/스크립트용. 대화형 인터페이스를 끄고 기존 설정(`.config.json`)을 채택 |
119
+ | `--interactive` | 끔 | 이미 생성된 설정값이 있어도 무시하고 강제로 다시 묻기 설정 시작 |
120
+ | `--cwd <path>` | 현재 디렉터리 | 타깃이 되는 프로젝트의 워크스페이스 Root 절대/상대경로 지정 |
121
+ | `--dry-run` | 끔 | 실제 파일을 생성/변조하지 않고 콘솔에 동작 결과 텍스트만 출력 |
122
+ | `--backup` | 끔 | `AGENTS.md`나 룰 파일 덮어쓰기 전 원본을 `*.bak`으로 안전 보관 |
123
+
124
+ ## 버전 관리 정책
125
+ 패키지(`DeukAgentRules`)의 업데이트기능 변경 전에는 필히 `package.json`의 `version` 상향 후 퍼블리시(`npm run sync:oss`) 주시기 바랍니다.