deuk-agent-rule 3.3.3 → 4.0.20

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.
Files changed (41) hide show
  1. package/README.md +8 -166
  2. package/bin/deuk-agent-rule.js +2 -0
  3. package/package.json +13 -54
  4. package/CHANGELOG.ko.md +0 -189
  5. package/CHANGELOG.md +0 -189
  6. package/LICENSE +0 -184
  7. package/README.ko.md +0 -187
  8. package/docs/architecture.ko.md +0 -34
  9. package/docs/architecture.md +0 -33
  10. package/docs/assets/architecture-v3.png +0 -0
  11. package/docs/how-it-works.ko.md +0 -52
  12. package/docs/how-it-works.md +0 -71
  13. package/docs/principles.ko.md +0 -68
  14. package/docs/principles.md +0 -68
  15. package/docs/usage-guide.ko.md +0 -139
  16. package/scripts/cli-args.mjs +0 -140
  17. package/scripts/cli-init-commands.mjs +0 -1465
  18. package/scripts/cli-init-logic.mjs +0 -58
  19. package/scripts/cli-prompts.mjs +0 -104
  20. package/scripts/cli-rule-compiler.mjs +0 -112
  21. package/scripts/cli-skill-commands.mjs +0 -172
  22. package/scripts/cli-telemetry-commands.mjs +0 -429
  23. package/scripts/cli-ticket-commands.mjs +0 -2123
  24. package/scripts/cli-ticket-index.mjs +0 -298
  25. package/scripts/cli-ticket-migration.mjs +0 -320
  26. package/scripts/cli-ticket-parser.mjs +0 -207
  27. package/scripts/cli-utils.mjs +0 -563
  28. package/scripts/cli.mjs +0 -217
  29. package/scripts/lint-md.mjs +0 -247
  30. package/scripts/lint-rules.mjs +0 -143
  31. package/scripts/merge-logic.mjs +0 -44
  32. package/scripts/plan-parser.mjs +0 -53
  33. package/templates/MODULE_RULE_TEMPLATE.md +0 -11
  34. package/templates/PROJECT_RULE.md +0 -47
  35. package/templates/TICKET_TEMPLATE.ko.md +0 -21
  36. package/templates/TICKET_TEMPLATE.md +0 -21
  37. package/templates/rules.d/deukcontext-mcp.md +0 -31
  38. package/templates/rules.d/platform-coexistence.md +0 -29
  39. package/templates/skills/context-recall/SKILL.md +0 -25
  40. package/templates/skills/generated-file-guard/SKILL.md +0 -25
  41. package/templates/skills/safe-refactor/SKILL.md +0 -25
package/README.md CHANGED
@@ -1,174 +1,16 @@
1
- <div align="center">
2
- <br />
3
- <img src="docs/assets/architecture-v3.png" width="800" alt="DeukAgentRules Architecture" />
4
- <br />
5
- <h1>DeukAgentRules v3.3.3</h1>
6
- <p>
7
- <a href="https://www.npmjs.com/package/deuk-agent-rule"><img src="https://img.shields.io/npm/v/deuk-agent-rule.svg" alt="npm version" /></a>
8
- <a href="https://www.npmjs.com/package/deuk-agent-rule"><img src="https://img.shields.io/npm/dt/deuk-agent-rule.svg" alt="npm downloads" /></a>
9
- </p>
10
- <p><b>AI coding agent guardrails for every repo</b></p>
11
- <p><i>Ticketed scope, verification, and memory for Codex, Copilot, Claude Code, Cursor, and more</i></p>
12
- <p>Part of the <a href="https://deukpack.app">Deuk Family</a> ecosystem.</p>
13
- <p><a href="README.ko.md">한국어</a> · <a href="README.md">English</a></p>
14
- </div>
1
+ # Deuk Agent Flow
15
2
 
16
- ---
17
-
18
- **DeukAgentRules** gives AI coding agents a shared way to work through tickets, scope contracts, verification, and durable project memory.
19
-
20
- It is more than a prompt pack. It is a repository-level workflow layer that standardizes collaboration through the **Hub-Spoke Architecture** and a **Ticket-Driven Execution Model** while keeping `AGENTS.md`, Copilot instructions, Cursor rules, Claude skills, and related agent surfaces aligned.
21
-
22
- Ticket management lives under `.deuk-agent/`, with active work tracked in `.deuk-agent/tickets/` and related docs, plans, and archive data kept alongside it.
23
-
24
- > **Current readiness:**
25
- > v3.3.3 is deployment-ready for agent-driven repositories. It is currently most reliable in **OpenAI Codex** and **GitHub Copilot** workflows. Cursor, Windsurf, Claude Code, and MCP remain supported through pointer-style integration, but they should be validated per workspace before rollout. MCP server registration is separate from `init`.
26
-
27
- > **Architecture foundation:**
28
- > We have officially deprecated monolithic `.cursorrules`. v3.0 introduces the **Hub-Spoke model** where `AGENTS.md` is the single source of truth, and IDE-specific rules act as thin entry-point pointers.
29
-
30
- ### 🗺️ Main Features & Architecture
31
-
32
- DeukAgentRules brings four core capabilities to day-to-day AI engineering:
33
-
34
- 1. **Zero-Copy Hub-Spoke Architecture**
35
- - **Hub**: `AGENTS.md` acts as the global single source of truth.
36
- - **Spoke**: IDE-specific rules (like `.cursorrules`) or `PROJECT_RULE.md` act as thin pointers.
37
- - **Benefit**: Eliminates rule duplication, preventing conflicting instructions and context hallucination across different IDEs (Cursor, Copilot, Windsurf).
38
-
39
- 2. **Ticket-Driven Workflow (TDW)**
40
- - Guides work through a clear lifecycle: Plan → Execute → Verify → Archive.
41
- - Keeps changes connected to an active ticket in `.deuk-agent/tickets/`, so scope and progress stay visible.
42
-
43
- 3. **Platform Co-existence & Mode-Aware Workflow Gate**
44
- - Uses strong Agent Permission Contracts (APC) through a **Mode-Aware** workflow.
45
- - In **Plan Mode**, agents focus on analysis and planning artifacts before moving into approved execution.
46
- - Integrates with MCP Soft Gates to keep code changes aligned with the current ticket context.
47
-
48
- 4. **Zero-Token Knowledge Distillation**
49
- - When a ticket is archived, it is distilled into a zero-token summary and moved to `reports/`.
50
- - These reports are vectorized into DeukAgentContext, building a permanent Engineering Memory Engine without cluttering the agent's active context window.
51
-
52
- ### Why Not Just Instructions?
53
-
54
- The agent tooling space already has useful building blocks: `AGENTS.md`, GitHub Copilot instructions, Cursor rules, Claude skills, agent launchers, and general LLM guardrail frameworks. DeukAgentRules is positioned one layer above plain instruction sync: it turns those surfaces into a ticketed repository workflow.
55
-
56
- | Similar approach | What it helps with | DeukAgentRules adds |
57
- |---|---|---|
58
- | `AGENTS.md` open format | A predictable instruction file for coding agents | Ticket lifecycle, phase gates, verification, and archiveable memory |
59
- | Copilot instructions / Cursor rules / Claude memory | Tool-specific guidance | One repo-owned workflow shared across agent clients |
60
- | Claude or Copilot custom agents and skills | Reusable task playbooks | Skills route into scoped, ticketed execution instead of replacing the workflow |
61
- | Agent launchers and harnesses | Running many coding agents from one place | Lifecycle control inside the repository, independent of the chosen agent |
62
- | General LLM/MCP guardrails | Runtime policy checks for AI systems | Developer-facing work orders, scope contracts, Git-visible history, and closeout evidence |
63
-
64
- Use DeukAgentRules when you want AI coding work to stay coordinated, reviewable, and easy to carry forward across sessions and teammates.
65
-
66
- ### Better Together With Karpathy-Style Skills
67
-
68
- Karpathy-style skills are great at improving how an agent behaves inside a task. DeukAgentRules is great at making that task ticketed, scoped, verified, and remembered at the repository level.
69
-
70
- Used together, skills can improve the quality of the move, while DeukAgentRules keeps the move connected to team workflow. The result is a better session and a better project record: behavior playbooks on the front end, ticket lifecycle and DeukAgentContext memory on the back end.
71
-
72
- ### What's Next
73
-
74
- The next step is to make this workflow even easier to see and adopt: clearer first-run checks, compact CLI/RAG reminders for agents, stronger README/npm positioning, and companion surfaces that show active ticket, phase, open-ticket count, and DeukAgentContext memory status without asking teams to switch coding agents.
75
-
76
- ### 📚 Detailed Documentation
77
- | Doc | Purpose |
78
- |---|---|
79
- | [docs/architecture.md](docs/architecture.md) | High-level system structure and visual infographics |
80
- | [docs/how-it-works.md](docs/how-it-works.md) | Detailed CLI mechanics, initialization lifecycle, and file roles |
81
- | [docs/principles.md](docs/principles.md) | Design philosophy: Hub-Spoke, Zero-Legacy, and Source Sovereignty |
82
- | **Korean Docs** | [README.ko.md](README.ko.md) · [docs/architecture.ko.md](docs/architecture.ko.md) |
83
-
84
- ---
85
-
86
- ## 🛠️ Installation & Setup
87
-
88
- ### 1. Global Installation (Standard User)
89
- To prevent `npx` cache issues and "Local Traps", a global installation is strictly required.
90
-
91
- ```bash
92
- npm install -g deuk-agent-rule
93
- deuk-agent-rule init
94
- ```
95
-
96
- ### 2. Local Source Development (Maintainer/Power User)
97
- v3.0 introduces a **Global CLI Proxy**. If you are developing inside the `DeukAgentRules` workspace, the global command will automatically delegate execution to your local source.
3
+ `deuk-agent-rule` is the legacy compatibility npm package.
4
+ It forwards to the primary `deuk-agent-flow` CLI implementation.
98
5
 
99
6
  ```bash
100
- cd ~/workspace/DeukAgentRules
101
- sudo npm link
102
- deuk-agent-rule init # Routes to local scripts/cli.mjs automatically
7
+ npm install -g deuk-agent-flow
8
+ deuk-agent-flow init
103
9
  ```
104
10
 
105
- If you primarily work in Codex or Copilot, this is the recommended day-to-day setup. Those clients currently have the smoothest behavior with the hub-spoke and ticket-driven workflow.
106
-
107
- ---
108
-
109
- ## 🎯 The Protocol Workflow
110
-
111
- The workflow is governed by a **Ticket-Driven Execution Contract**.
112
-
113
- 1. **Scaffolding**: `init` deploys `.deuk-agent/templates/` and `AGENTS.md` (or local pointers like `PROJECT_RULE.md`).
114
- 2. **Ticketing (Plan Phase)**: `ticket create --topic feature-x` generates a bounded work order in `.deuk-agent/tickets/`. During this phase, agents operate in **Plan Mode** and are restricted from mutating files.
115
- 3. **Execution (Execute Phase)**: Once authorized, the AI agent reads the ticket, locks onto the **Target Submodule**, and executes code changes. MCP Soft Gates ensure that unauthorized modifications are blocked.
116
- 4. **Verification**: The agent performs a side-effect audit and convention (e.g., DC-DUP) check before closure.
117
- 5. **Archiving (Archive Phase)**: Completed tickets undergo Zero-Token Knowledge Distillation and move to `reports/` to build the **Engineering Memory Engine** via DeukAgentContext.
118
-
119
- ---
120
-
121
- ## ⚙️ CLI Reference
122
-
123
- Delegate these to your AI agent via natural language prompts!
124
-
125
- | Command | Description / Example Prompt |
126
- |--------|------|
127
- | `deuk-agent-rule init` | Synchronizes the rule Hub and Spoke pointers. <br>💬 *"Initialize project rules"* |
128
- | `deuk-agent-rule ticket create` | Issues a new execution contract. Use `--summary` plus `--plan-body` for a one-pass Phase 1 ticket. <br>💬 *"Create ticket: refactor-ui with filled APC"* |
129
- | `deuk-agent-rule ticket list` | Displays active work orders. <br>💬 *"Show active tickets"* |
130
- | `deuk-agent-rule ticket archive` | Securely stores completed work. <br>💬 *"Archive ticket 068"* |
131
- | `deuk-agent-rule skill list` | Shows first-party thin skills such as `safe-refactor`, `generated-file-guard`, and `context-recall`. |
132
- | `deuk-agent-rule skill add --skill safe-refactor` | Installs a skill into the local registry without changing the TDW/APC authority model. |
133
- | `deuk-agent-rule skill expose --platform claude` | Exposes installed skills as platform-specific thin wrappers. Supported MVP platforms: `claude`, `cursor`. |
134
- | `deuk-agent-rule skill lint` | Audits skill files for duplicate workflow contracts and unsafe generated-file guidance. |
135
-
136
- ### Ticket File Git Hygiene
137
-
138
- - Treat `.deuk-agent/tickets/**/*.md` and `INDEX*.json` as CLI-managed lifecycle artifacts.
139
- - Do not commit a ticket body without the related index updates. The next session can restore the wrong active/archive state.
140
- - After `ticket create` fails, do not create or repair ticket files manually.
141
- - Do not flip ticket status by editing frontmatter directly. Use `ticket move`, `ticket close`, or `ticket archive`.
142
- - `telemetry.jsonl` is usually operational log noise, so it is better left out of normal code commits unless your repo intentionally tracks it.
143
- - When possible, commit completed work after `ticket archive` so the active/archive transition lands in one history step.
144
-
145
- For more day-to-day examples, see [docs/how-it-works.md](docs/how-it-works.md).
146
-
147
- ---
148
-
149
- ## Related Ideas & Inspiration
150
-
151
- DeukAgentRules shares the same concern as guideline-first projects like
152
- [andrej-karpathy-skills](https://github.com/forrestchang/andrej-karpathy-skills):
153
- AI coding agents often over-assume, over-engineer, and edit outside the requested scope.
154
-
155
- Where prompt-level guideline files improve agent behavior inside one client,
156
- DeukAgentRules adds a repository-level workflow layer: tickets, phase gates,
157
- scoped permissions, verification, and archiveable engineering memory.
158
-
159
- The first-party skill MVP keeps that boundary explicit: skills are short
160
- `SKILL.md` playbooks for recurring failure patterns, while `core-rules/AGENTS.md`
161
- remains the workflow authority. Use `skill add` and `skill expose` to make those
162
- playbooks visible to Claude or Cursor without copying the full rule contract.
11
+ Compatibility install:
163
12
 
164
13
  ```bash
165
- npx deuk-agent-rule init
166
- npx deuk-agent-rule skill list
167
- npx deuk-agent-rule skill add --skill safe-refactor
168
- npx deuk-agent-rule skill expose --platform claude
14
+ npm install -g deuk-agent-rule
15
+ deuk-agent-rule init
169
16
  ```
170
-
171
- ---
172
-
173
- ### 🏷️ Keywords
174
- `#AI-Orchestration` `#Agentic-Workflow` `#DeukFamily` `#Engineering-Intelligence` `#Zero-Legacy` `#High-Signal-Coding` `#AI-Protocol` `#CursorRules` `#CopilotInstructions` `#ClaudeCode` `#ClaudeMD` `#AgentsMD` `#AgentSkills` `#CodingAgent` `#AI-Guardrails` `#LLM-Control-Plane`
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ require("deuk-agent-flow/bin/deuk-agent-flow.js");
package/package.json CHANGED
@@ -1,77 +1,36 @@
1
1
  {
2
2
  "name": "deuk-agent-rule",
3
- "version": "3.3.3",
4
- "description": "AI coding agent guardrails for every repo: ticketed scope, verification, and shared AGENTS.md workflows.",
3
+ "version": "4.0.20",
4
+ "description": "Compatibility wrapper for legacy deuk-agent-rule installs.",
5
5
  "keywords": [
6
6
  "agents-md",
7
- "cursor-rules",
8
- "copilot",
9
- "gemini",
10
- "claude",
11
- "windsurf",
12
- "jetbrains",
13
- "ticket",
7
+ "agent-flow",
8
+ "agent-workflow",
14
9
  "ai-guardrails",
15
10
  "agent-guardrails",
16
- "deuk-family",
17
- "deukpack-ecosystem"
11
+ "deuk-family"
18
12
  ],
19
13
  "license": "Apache-2.0",
20
14
  "repository": {
21
15
  "type": "git",
22
- "url": "git+https://github.com/joygram/DeukAgentRules.git"
16
+ "url": "git+https://github.com/joygram/DeukAgentFlow.git"
23
17
  },
24
18
  "bugs": {
25
- "url": "https://github.com/joygram/DeukAgentRules/issues"
19
+ "url": "https://github.com/joygram/DeukAgentFlow/issues"
26
20
  },
27
- "homepage": "https://github.com/joygram/DeukAgentRules#readme",
21
+ "homepage": "https://github.com/joygram/DeukAgentFlow#readme",
28
22
  "files": [
29
- "LICENSE",
30
23
  "bin/**/*",
31
- "docs/architecture.md",
32
- "docs/architecture.ko.md",
33
- "docs/how-it-works.md",
34
- "docs/how-it-works.ko.md",
35
- "docs/principles.md",
36
- "docs/principles.ko.md",
37
- "docs/usage-guide.ko.md",
38
- "docs/assets/**/*",
39
- "templates/**/*",
40
- "scripts/cli.mjs",
41
- "scripts/cli-args.mjs",
42
- "scripts/cli-init-commands.mjs",
43
- "scripts/cli-init-logic.mjs",
44
- "scripts/cli-prompts.mjs",
45
- "scripts/cli-rule-compiler.mjs",
46
- "scripts/cli-skill-commands.mjs",
47
- "scripts/cli-telemetry-commands.mjs",
48
- "scripts/cli-ticket-commands.mjs",
49
- "scripts/cli-ticket-index.mjs",
50
- "scripts/cli-ticket-migration.mjs",
51
- "scripts/cli-ticket-parser.mjs",
52
- "scripts/cli-utils.mjs",
53
- "scripts/lint-md.mjs",
54
- "scripts/lint-rules.mjs",
55
- "scripts/merge-logic.mjs",
56
- "scripts/plan-parser.mjs",
57
- "README.md",
58
- "README.ko.md",
59
- "CHANGELOG.md",
60
- "CHANGELOG.ko.md"
24
+ "README.md"
61
25
  ],
62
- "scripts": {
63
- "lint:md": "node scripts/lint-md.mjs",
64
- "test": "node --test scripts/tests/*.test.mjs"
65
- },
66
- "engines": {
67
- "node": ">=18"
68
- },
69
26
  "bin": {
70
27
  "deuk-agent-rule": "./bin/deuk-agent-rule.js",
71
28
  "deukagentrule": "./bin/deuk-agent-rule.js"
72
29
  },
30
+ "engines": {
31
+ "node": ">=18"
32
+ },
73
33
  "dependencies": {
74
- "ejs": "^5.0.2",
75
- "yaml": "^2.8.3"
34
+ "deuk-agent-flow": "4.0.20"
76
35
  }
77
36
  }
package/CHANGELOG.ko.md DELETED
@@ -1,189 +0,0 @@
1
- # 변경 이력 (Changelog)
2
-
3
- 이 프로젝트의 모든 주목할 만한 변경 사항은 이 파일에 기록됩니다.
4
-
5
- **English:** [CHANGELOG.md](CHANGELOG.md)
6
-
7
- 형식은 [Keep a Changelog](https://keepachangelog.com/ko/1.1.0/)를 기반으로 하며, 이 프로젝트는 [유의적 버전(Semantic Versioning)](https://semver.org/spec/v2.0.0.html)을 준수합니다.
8
-
9
- ## [3.3.3] - 2026-05-06
10
-
11
- ### 수정됨 (Fixed)
12
-
13
- - npm과 GitHub 첫 화면에서 영어/한국어 README를 바로 오갈 수 있도록 언어 전환 링크를 복구했습니다.
14
- - README 문서 표에는 공개 문서 링크만 남기고, 내부 리서치와 성장 전략 문서는 npm/OSS 공개 표면에서 제외했습니다.
15
-
16
- ## [3.3.2] - 2026-05-06
17
-
18
- ### 포지셔닝 (Positioning)
19
-
20
- - npm/GitHub에서 보이는 정체성을 **모든 레포를 위한 AI 코딩 에이전트 가드레일**로 재정리했습니다.
21
- - `AGENTS.md`, Copilot instructions, Cursor rules, Claude skills, 에이전트 실행기, 일반 LLM/MCP 가드레일과 비교해 DeukAgentRules가 더하는 티켓 생명주기, 범위 계약, 검증, 아카이브 가능한 기억을 README에 드러냈습니다.
22
- - 다음 개선 방향으로 첫 실행 점검, CLI/RAG 재각인 신호, active ticket/phase/open ticket count/DeukAgentContext memory status를 보여주는 companion 표면을 명시했습니다.
23
-
24
- ## [3.3.0] - 2026-05-02
25
-
26
- ### 추가됨 (Added)
27
-
28
- - **docs:** VS Code, Open VSX, GitHub, skill 기반 발견 루프를 포함한 AI 코딩 에이전트 가드레일 포지셔닝, 비전, 오가닉 유입 리서치 문서를 추가했습니다.
29
- - **docs:** Karpathy식 skill, DeukAgentRules, DeukAgentContext 심층 비교 문서를 추가했습니다. Skill은 행동 playbook, DeukAgentRules는 workflow/permission control, DeukAgentContext는 ticketed engineering memory로 포지셔닝했습니다.
30
- - **seo:** `andrej-karpathy-skills` 관련 아이디어 링크와 Claude Code, AGENTS.md, Cursor rules, agent skills, AI guardrails 검색 유입 키워드를 보강했습니다.
31
-
32
- ### 변경됨 (Changed)
33
-
34
- - **ticket:** 열린 티켓이 설정된 한도를 넘을 때 자동 정리 대신 사용자가 목록을 보고 결정할 수 있는 cleanup flow를 강화했습니다.
35
- - **ticket:** 닫힌 티켓은 자동 아카이브할 수 있게 하고, 아카이브된 티켓은 년월/일 단위로 정리되도록 했습니다.
36
- - **docs:** README 문서 목록과 GitHub topic 가이드를 agent guardrail, instruction hub, skill registry, project memory 포지셔닝에 맞게 갱신했습니다.
37
-
38
- ### 수정됨 (Fixed)
39
-
40
- - **ticket:** 새 작업 진입 전에 정리 결정을 노출하여 열린 티켓 수가 의도한 운영 한도를 조용히 넘는 문제를 방지했습니다.
41
-
42
- ## [3.2.0] - 2026-04-29
43
-
44
- ### 추가됨 (Added)
45
- - **agent:** 플랫폼 공존(Platform Coexistence) 및 모드 인지형(Mode-aware) 워크플로우 구현. (Plan Mode에서 TDW Phase 자동 매핑, `platform-coexistence.md` 규칙 추가, 수정 제어 및 `PROJECT_RULE.md` 포인터 연동 등)
46
-
47
- ### 변경됨 (Changed)
48
- - **agents:** Co-existence Protocol 및 Workflow Gate 기능 도입 (T-120).
49
- - v3.1.0 아키텍처 원칙 및 사용법 문서 개선.
50
-
51
- ## [3.1.0] - 2026-04-28
52
-
53
- ### 추가됨 (Added)
54
- - **arch:** 제로카피(Zero-Copy) 포인터 아키텍처 도입 (`PROJECT_RULE.md` 연동) 및 구조 간소화
55
- - **cli:** 엄격한 Phase 기반 티켓 워크플로우 및 APC(Agent Permission Contract) 검증 기능 추가
56
- - **cli:** `--plan-body` 옵션을 통한 채워진 Phase 1 티켓 본문 입력 기능 추가
57
- - **ticket:** 티켓 아카이브 시 불필요한 토큰 낭비를 막는 Zero-Token 지식 증류(Knowledge Distillation) 구현
58
- - **telemetry:** 로컬 환경에 최적화된 Telemetry CLI 추가
59
- - **rules:** `PROJECT_RULE.md` 템플릿 추가 (AI 에이전트 폴백 가이드 포함) 및 이중 언어(한/영) 지원
60
-
61
- ### 수정됨 (Fixed)
62
- - **rules:** `PROJECT_RULE.md` 내 중복된 코어 룰 링크 제거 및 Frontmatter 렌더링 복구
63
- - **telemetry:** 모델 및 설정에서 클라이언트 도구를 자동으로 감지하도록 수정
64
- - **agent:** 티켓 탐색 중 에이전트 무한 루프 문제 해결
65
-
66
- ### 변경됨 (Changed)
67
- - **agent:** TDD 용어를 TDW (Ticket-Driven Workflow)로 변경 및 전역 `AGENTS.md`에서 낡은 규칙 제거
68
- - **cli:** 상태 기반(State-driven) 경로 탐색 로직으로 구조 개편 및 상세한 사용 가이드 추가
69
-
70
- ## [3.0.0] - 2026-04-25
71
-
72
- ### 🚀 대규모 업데이트: Hub-Spoke 아키텍처
73
- - **Canonical Rule Hub**: 모든 AI 에이전트의 단일 진실 공급원(SSOT)으로 `AGENTS.md` 도입.
74
- - **Thin Spoke Pointers**: IDE별 룰(Cursor, Copilot 등)을 중앙 Hub를 가리키는 가벼운 포인터로 변경하여 중복 및 동기화 오류 제거.
75
- - **Global CLI Proxy**: 로컬 워크스페이스 소스를 자동 감지하여 실행을 위임하는 프록시 도입으로 지연 없는(Zero-latency) 개발 환경 구축.
76
-
77
- ### 🧹 제로 레거시 & 환경 정리
78
- - **Auto-Purge**: `init` 실행 시 더 이상 사용되지 않는 레거시 `.cursorrules` 파일을 무조건 삭제.
79
- - **Smart Backups**: 사용자 정의 규칙을 감지하여 삭제 대신 `.bak` 파일로 백업하는 로직 추가.
80
- - **Submodule Scrubbing**: 비어 있는 서브모듈 디렉터리 스텁 및 `.gitmodules` 자동 정리 기능.
81
-
82
- ### 🏗️ 리브랜딩 & 인프라스텍
83
- - **Identity Overhaul**: "Zero-Latency, High-Signal AI Orchestration Protocol"로 리브랜딩.
84
- - **Documentation v3**: 고품질 3D 인포그래픽 및 구조, 원리, 작동 방식 등 개념 가이드 전면 개편.
85
- - **Domain Agnostic**: 도메인별 하드코딩을 제거하고 모든 기술 스택을 지원하도록 `bundle/AGENTS.md` 일반화.
86
-
87
- ### ⚙️ CLI 개선 사항
88
- - **Proxy Routing**: `bin/deuk-agent-rule.js`가 디렉터리를 탐색하여 로컬 스크립트를 찾아 실행하도록 수정.
89
- - **Synchronized IO**: CLI의 안정성을 높이기 위해 핵심 로직을 동기적 파일 시스템 연산으로 리팩터링.
90
- ## [2.4.6] - 2026-04-19
91
-
92
- ### 수정됨 (Fixed)
93
-
94
- - **cli:** 로컬 버전이 registry 버전 이상일 경우 업데이트 알림을 표시하지 않도록 수정 (로컬 개발 symlink 환경에서의 역방향 스팸 알림 해소)
95
- - **ticket:** `NNN` 정규식을 최대 4자리로 제한하여 유닉스 타임스탬프가 티켓 순번으로 잘못 파싱되는 버그 수정 — 올바른 `NNN-topic-hostname` 포맷 생성 복원
96
-
97
- ## [2.4.4] - 2026-04-19
98
-
99
- ### 변경됨 (Changed)
100
-
101
- - **rules:** 서브모듈 전용 규칙(DeukPack, C++, Unity)을 해당 워크스페이스의 `MODULE_RULE.md`로 이동하여 `AGENTS.md`를 일반화된 규약 중심으로 개편
102
- - **templates:** `publish/` 소스에 맞춰 `bundle/` 내의 레거시 템플릿 정리
103
-
104
- ## [2.4.3] - 2026-04-18
105
-
106
- ### 변경됨 (Changed)
107
- - **ticket:** 티켓 ID 포맷을 `NNN-topic-hostname` (예: `001-add-feature-joy-nucb`)으로 변경. 레거시 `ticket_NNN_hostname_topic` 형식 대체
108
- - **ticket:** INDEX.json 파싱 시 기존 포맷과 신규 포맷 모두 역호환 지원
109
-
110
- ## [2.4.2] - 2026-04-18
111
-
112
- ### 수정됨 (Fixed)
113
- - **ticket:** 파일명(File name)과 본문 내 티켓 ID 생성 로직 간의 불일치(Discrepancy) 해결 (단일 출처로 통합)
114
-
115
- ## [2.4.1] - 2026-04-18
116
-
117
- ### 추가됨 (Added)
118
- - **cli:** NPM 최신 버전을 감지하여 터미널에 업데이트를 권고하는 알림 기능(Update Notifier) 추가
119
-
120
- ### 수정됨 (Fixed)
121
- - **ticket:** 티켓 생성 시 호스트명 슬러그가 8글자로 엄격히 제한되지 않던 버그 수정
122
-
123
- ## [2.4.0] - 2026-04-18
124
-
125
- ### 추가됨 (Added)
126
-
127
- - **init:** 깔끔한 마이그레이션을 위한 구버전 템플릿 자동 정리 기능 추가
128
- - **rules:** `AGENTS.md` 문서 내 티켓 검증 단계(TICKET VERIFICATION RULE) 규약 추가
129
- - **ticket:** 티켓에 우선순위(Priority) 속성 추가
130
- - **ticket:** 순차 번호 및 호스트네임 기반의 티켓 식별자(ID) 자동 생성 도입 (`NNN-hostname-topic` 포맷)
131
- - **ticket:** 호스트네임 길이 제한(8자) 및 자동 순번 부여 로직 개선
132
-
133
- ### 수정됨 (Fixed)
134
-
135
- - **rules:** 전역 `npx` 캐시 이슈(과거 버전 실행 문제)를 우회하기 위해 로컬 최신 스크립트 호출을 강제/권장하도록 수정
136
- - **scripts:** OSS 미러 저장소 동기화 시 잘못 표기되던 URL 예시 로그 메시지 정정
137
-
138
- ### 변경됨 (Changed)
139
-
140
- - **docs:** 리드미(README) 파일에 [Step 4] 티켓 검증 안내 추가
141
- - **docs:** 전역 설치(Global Install) 권장 안내 및 운영체제(OS)별 권한 제약 명확화
142
- - **rules:** 구현 아티팩트(`implementation_plan.md` 등) 내 티켓 번호 참조 의무화
143
-
144
- ## [2.3.2] - 2026-04-17
145
-
146
- ### 수정됨 (Fixed)
147
-
148
- - **cli:** 배포 환경에서 하드코딩된 `yaml` 의존성 경로 문제(`ERR_MODULE_NOT_FOUND`) 해결
149
- - **dependencies:** `yaml`을 명시적 의존성 목록에 추가
150
-
151
- ## [2.3.1] - 2026-04-17
152
-
153
- ### 변경됨 (Changed)
154
-
155
- - **readme:** 체인지로그 및 자동화된 릴리즈 프로세스 가이드 추가
156
-
157
- ## [2.3.0] - 2026-04-17
158
-
159
- ### 추가됨 (Added)
160
-
161
- - AI 파이프라인 연동 기반 및 선택적 동기화 시스템 고도화
162
- - **cli:** ticket list 명령에 --submodule 필터 추가
163
- - **cli:** 티켓 아카이브 및 리포트 워크플로를 모듈형 아키텍처로 복구
164
- - **rules:** Unity Client, WebApp, C++ 서버 하이브리드 환경을 위한 룰 고도화
165
- - **ticket:** 분산형 티켓 관리 및 공유 정책 구현
166
- - **ticket:** V2 YAML Front-matter 및 카테고리화된 리스트로 업그레이드
167
-
168
- ### 수정됨 (Fixed)
169
-
170
- - **ticket:** LATEST.md를 폐기하고 ACTIVE_TICKET.md로 포인터 통일
171
- - **ticket:** DeukAgentRules 현재 진행 중인 티켓 안 나오던 문제 해결
172
-
173
- ## [1.0.14] - 2026-04-02
174
-
175
- ### 추가됨 (Added)
176
-
177
- - **cli:** 병합 도구 및 배포 문서 동기화 스크립트 확장
178
- - **rules:** 커밋 제목 내 'sync' 금지 구문 룰 추가
179
- - **handoff:** 인덱스 기반 Handoff 워크플로 및 CLI 신설
180
- - **architecture:** 제로-터치 NPM 번들 스캐폴딩으로 템플릿 아키텍처 개편
181
-
182
- ### 수정됨 (Fixed)
183
-
184
- - **cli:** 템플릿 생성기(init) 내부의 HTML 엔티티 문법 에러 핫픽스
185
-
186
- ### 변경됨 (Changed)
187
-
188
- - **docs:** 외부 공개용 릴리즈 가이드 및 동기화 스크립트 주석 갱신
189
- - **docs:** 리드미(README)에 토큰 비용 차단 메커니즘 설정 및 제로 터치 스캐폴딩 문서 개편
package/CHANGELOG.md DELETED
@@ -1,189 +0,0 @@
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
- ## [3.3.3] - 2026-05-06
8
-
9
- ### Fixed
10
-
11
- - Restored the README language switch links so npm and GitHub readers can move between English and Korean documentation from the first screen.
12
- - Published only public documentation links in the README tables while keeping internal research and growth notes out of the npm/OSS surface.
13
-
14
- ## [3.3.2] - 2026-05-06
15
-
16
- ### Positioning
17
-
18
- - Reframed the npm/GitHub identity around **AI coding agent guardrails for every repo**, with ticketed scope, verification, and shared `AGENTS.md` workflows visible in package metadata.
19
- - Added README comparison against `AGENTS.md`, Copilot instructions, Cursor rules, Claude skills, agent harnesses, and general guardrail frameworks to show where DeukAgentRules sits in the ecosystem.
20
- - Added a short "What's Next" section to set expectations for clearer first-run checks, compact CLI/RAG reminders, and visible companion surfaces for active ticket, phase, open-ticket count, and DeukAgentContext memory status.
21
-
22
-
23
- ### Added
24
-
25
- - AGENTS.md v12 + summary mandatory guard + PROJECT_RULE optimization
26
- - **cli:** add 'ticket next' command for instant task discovery (T[#295](https://github.com/joygram/DeukAgentRules/issues/295))
27
- - **cli:** enforce required frontmatter keys in lint:md (T-118)
28
- - harden ticket paths and add DeukPack RAG schemas
29
- - **migration:** add summary/planLink/caution auto-enrichment for legacy tickets
30
- - Phase 0 search limiter - max 2 MCP calls, skip when context sufficient
31
- - replace legacy fill-in-the-blank rule check with Version Gating and Task Relevance check
32
- - **rules:** enforce hard guardrails, add hotfix protocol and urgency response
33
- - **rules:** harden document boundary workflow
34
- - **spoke:** add fill-in completion template for rule enforcement
35
- - **T-114:** 1-CALL ticket discovery rule + CLI max call limits
36
- - **T-115:** HARD BLOCK on write tools without active ticket
37
- - **T-116:** auto-close stale tickets on ticket create + Phase 4 NEVER skip
38
- - **T-116:** smart close based on checklist + phase state
39
- - **ticket:** enforce filled create flow and phase1 status guard
40
- - **ticket:** enforce open ticket cleanup flow
41
- - **ticket:** partition archive index by month
42
-
43
-
44
- ### Fixed
45
-
46
- - add Refactor Safety Guard and Halt-and-Replan hard rules
47
- - agent degradation remediation — planLink, inline TDW, token optimization
48
- - align ticket APC template with phase gate
49
- - **docs:** correct frontmatter keys in AGENTS.md (remove fm_ prefix)
50
- - **init:** deploy Antigravity spoke to project root AGENTS.md
51
- - register legitimate DR-04/DR-05 exceptions and update PROJECT_RULE.md
52
- - remove duplicate phase key in ticket template and repair broken tickets
53
- - **rules:** announce active ticket at start
54
- - **rules:** keep planlink free of progress checkboxes
55
- - **rules:** make planlink capture agent analysis
56
- - **rules:** separate ticket and plan content
57
- - **spoke:** GLOBAL_AGENTS.md link text to actual filename AGENTS.md
58
- - SSOT — init removes .deuk-agent/templates/ unconditionally (bundle is single source of truth)
59
- - **T-116:** parallel-safe auto-close - only close activeTicketId, warn others
60
- - **T-116:** replace auto-close with activeTicketId switch + warning
61
- - **ticket:** honor project and submodule filters
62
- - **ticket:** Sync close/archive status to frontmatter to prevent rebuild reversion
63
-
64
-
65
- ### Changed
66
-
67
- - add Dependency Integrity Guard (HARD RULE) to AGENTS.md
68
- - add lite accessibility vision plan
69
- - add skill positioning release notes
70
- - add version frontmatter to AGENTS.md for rule loading optimization
71
- - align bad examples with plan/archive convention
72
- - archive bmt coordination ticket 142
73
- - archive bmt frontmatter cleanup ticket 144
74
- - archive bmt go ticket 140
75
- - archive bmt java ticket 139
76
- - archive bmt matrix ticket 133
77
- - archive bmt rust ticket 141
78
- - bump AGENTS.md to v15 and strengthen dependency guards
79
- - clarify ticket creation flow
80
- - document rationale for docs/plan and fix section numbering
81
- - Enforce strict rules for Scope Creep Handling
82
- - enhance main features and workflow intro for v3.2.0
83
- - optimize AGENTS.md — merge Dependency Integrity into Refactor Guard, compress Scope Creep
84
- - position agent guardrail growth loop
85
- - **rules:** clarify phase one execution semantics
86
- - **rules:** mandate enrich_frontmatter for all plan/report files (T-118)
87
- - **spoke:** hard rule single directive
88
- - update legacy path guidance to plan/archive layout
89
-
90
- ## [3.3.0] - 2026-05-02
91
-
92
- ### Added
93
-
94
- - **docs:** add AI coding agent guardrail positioning, vision, and organic growth research for VS Code, Open VSX, GitHub, and skill-driven discovery.
95
- - **docs:** add a deep comparison of Karpathy-style skills, DeukAgentRules, and DeukAgentContext, positioning skills as behavior playbooks, DeukAgentRules as workflow/permission control, and DeukAgentContext as ticketed engineering memory.
96
- - **seo:** add related-project positioning for `andrej-karpathy-skills` plus discovery keywords for Claude Code, AGENTS.md, Cursor rules, agent skills, and AI guardrails.
97
-
98
- ### Changed
99
-
100
- - **ticket:** enforce a decision-first cleanup flow when open tickets exceed the configured limit, while allowing closed tickets to be archived automatically.
101
- - **ticket:** organize archived tickets by year-month and day to reduce active ticket repository clutter.
102
- - **docs:** update README document indexes and GitHub topic guidance to emphasize the agent guardrail, instruction hub, skill registry, and project memory positioning.
103
-
104
- ### Fixed
105
-
106
- - **ticket:** prevent open ticket growth from silently exceeding the intended operating limit by surfacing cleanup decisions before new work proceeds.
107
-
108
- ## [3.2.0] - 2026-04-28
109
-
110
-
111
- ### Added
112
-
113
- - **agent:** implement platform coexistence and mode-aware workflow
114
-
115
-
116
- ### Changed
117
-
118
- - **agents:** add Co-existence Protocol and Workflow Gate (T-120)
119
- - update usage, architecture, and principles for v3.1.0
120
-
121
- ## [3.1.0] - 2026-04-28
122
-
123
-
124
- ### Added
125
-
126
- - add ArchitectureGuard.test.mjs and create technical debt ticket T-103
127
- - add first-class copilot and codex support
128
- - **arch:** implement APC v3 and simplify repository structure
129
- - **cli:** restrict --skip-phase0 based on MCP server status and update rules
130
- - consolidate rule cleanup logic and enforce thin pointers for entry points
131
- - enforce unidirectional AGENTS.md single source of truth
132
- - enhance CLI reporting and add practical usage guide
133
- - implement strict phase-driven ticket workflow with APC validation
134
- - implement Zero-Copy architecture with absolute path pointing and frontmatter-based PROJECT_RULE.md
135
- - implement zero-token knowledge distillation on ticket archive and cleanup dead code
136
- - **rules:** add AI Agent fallback guide to PROJECT_RULE.md template
137
- - **rules:** normalize canonical rules and decouple DeukPack rules
138
- - **telemetry:** add local-first telemetry CLI and update AGENTS.md
139
- - **ticket:** implement --plan-body for filled Phase 1 ticket body input and update project rules
140
-
141
-
142
- ### Fixed
143
-
144
- - auto-detect client tool from model and config in telemetry
145
- - resolve agent loop on ticket navigation + archive 37 dead tickets
146
- - **rules:** bilingual ko/en PROJECT_RULE.md template
147
- - **rules:** remove redundant core rules link from PROJECT_RULE.md
148
- - **rules:** restore frontmatter in PROJECT_RULE.md
149
- - **rules:** restore mandatory ticket workflow and anti-shoveling rules
150
- - **rules:** sync restored strict workflow AGENTS.md and unified templates
151
-
152
-
153
- ### Changed
154
-
155
- - add markdown lint policy and workflow docs
156
- - **agent:** rename TDD to TDW, archive ticket 101, and remove DOMAIN_RULES
157
- - AGENTS.md full cleanup - eliminate redundancy, unify English, remove dead rules
158
- - finalize ticket 066 rule normalization
159
- - modernize CLI architecture, implement state-driven path resolution, and comprehensive audit cleanup
160
- - **rules:** decouple DeukPack rules and fix merge injection logic
161
- - update principles and cli compiler to DeukAgentContext
162
-
163
- ## [3.0.0] - 2026-04-25
164
-
165
- ### 🚀 Major Breakthrough: Hub-Spoke Architecture
166
- - **Canonical Rule Hub**: Introduced `AGENTS.md` as the single source of truth for all AI agents.
167
- - **Thin Spoke Pointers**: IDE-specific rules (Cursor, Copilot, etc.) are now lightweight pointers to the central Hub, eliminating duplication and sync errors.
168
- - **Global CLI Proxy**: Implemented a smart entry point that automatically detects and routes execution to local workspace sources, ensuring zero-latency development.
169
-
170
- ### 🧹 Zero-Legacy & Cleanliness
171
- - **Auto-Purge**: `init` now unconditionally deletes deprecated `.cursorrules` files.
172
- - **Smart Backups**: Added logic to detect custom user rules and rename files to `.bak` instead of deletion.
173
- - **Submodule Scrubbing**: Automatically cleans empty submodule directory stubs and scrubs `.gitmodules`.
174
-
175
- ### 🏗️ Branding & Infrastructure
176
- - **Identity Overhaul**: Rebranded as a "Zero-Latency, High-Signal AI Orchestration Protocol".
177
- - **Documentation v3**: New high-end 3D visual infographics and overhauled conceptual guides (Architecture, Principles, How-it-works).
178
- - **Domain Agnostic**: Generalized `bundle/AGENTS.md` to support any technology stack, removing domain-specific hardcoding.
179
-
180
- ### ⚙️ CLI Enhancements
181
- - **Proxy Routing**: `bin/deuk-agent-rule.js` performs directory traversal to find local scripts.
182
- - **Synchronized IO**: Refactored core logic to use synchronous FS operations for rock-solid CLI stability.
183
-
184
- ---
185
-
186
- ## [2.4.0] - 2026-04-18
187
- - add Codex CLI support (.codexrules) and apply globally
188
- - implement ticket chaining (--chain) for automated ticket linkage
189
- - improve submodule isolation logic