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 +90 -71
- package/LICENSE +0 -0
- package/README.ko.md +125 -125
- package/README.md +125 -123
- package/bundle/.cursorrules +7 -7
- package/bundle/AGENTS.md +36 -87
- package/bundle/rules/delivery-and-parallel-work.mdc +7 -7
- package/bundle/rules/git-commit.mdc +17 -11
- package/bundle/rules/multi-ai-workflow.mdc +105 -105
- package/bundle/templates/MODULE_RULE_TEMPLATE.md +24 -0
- package/bundle/templates/TICKET_TEMPLATE.md +40 -0
- package/package.json +13 -6
- package/scripts/changelog-polish.mjs +22 -0
- package/scripts/cli-args.mjs +45 -43
- package/scripts/cli-init-commands.mjs +65 -65
- package/scripts/cli-init-logic.mjs +21 -21
- package/scripts/cli-prompts.mjs +123 -123
- package/scripts/cli-ticket-commands.mjs +269 -159
- package/scripts/cli-ticket-logic.mjs +229 -229
- package/scripts/cli-utils.mjs +82 -82
- package/scripts/cli.mjs +112 -110
- package/scripts/merge-logic.mjs +365 -365
- package/scripts/sync-bundle.mjs +50 -50
- package/scripts/sync-oss.mjs +122 -0
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
|
-
|
|
10
|
+
### Added
|
|
6
11
|
|
|
7
|
-
|
|
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
|
-
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
67
|
-
-
|
|
68
|
-
|
|
43
|
+
|
|
44
|
+
- migrate and rename handoff terminology to ticket in CLI and templates
|
|
45
|
+
|
|
69
46
|
|
|
70
47
|
### Changed
|
|
71
|
-
|
|
72
|
-
-
|
|
73
|
-
-
|
|
74
|
-
-
|
|
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
|
-
|
|
79
|
+
|
|
80
|
+
- **deuk-agent-rule:** `printHandoffTip` missing in CLI (handoff tip after `init`)
|
|
81
|
+
|
|
79
82
|
|
|
80
83
|
### Changed
|
|
81
|
-
|
|
82
|
-
-
|
|
83
|
-
-
|
|
84
|
-
- deuk-agent-rule
|
|
85
|
-
- deuk-agent-rule
|
|
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
|
-
|
|
96
|
+
|
|
97
|
+
- **ci:** release workflow runs on pushes to `master`
|
|
91
98
|
|
|
92
99
|
### Changed
|
|
93
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
122
|
-
-
|
|
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
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
###
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
[
|
|
65
|
-
[
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
|
117
|
-
|
|
118
|
-
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
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`) 해 주시기 바랍니다.
|