oh-my-customcode 0.8.0 → 0.9.0
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/README.md +10 -2
- package/dist/cli/index.js +517 -274
- package/dist/index.js +303 -101
- package/package.json +1 -1
- package/templates/.codex/agents/arch-documenter.md +97 -0
- package/templates/.codex/agents/arch-speckit-agent.md +134 -0
- package/templates/.codex/agents/be-express-expert.md +80 -0
- package/templates/.codex/agents/be-fastapi-expert.md +43 -0
- package/templates/.codex/agents/be-go-backend-expert.md +43 -0
- package/templates/.codex/agents/be-nestjs-expert.md +60 -0
- package/templates/.codex/agents/be-springboot-expert.md +85 -0
- package/templates/.codex/agents/db-postgres-expert.md +106 -0
- package/templates/.codex/agents/db-redis-expert.md +101 -0
- package/templates/.codex/agents/db-supabase-expert.md +71 -0
- package/templates/.codex/agents/de-airflow-expert.md +71 -0
- package/templates/.codex/agents/de-dbt-expert.md +72 -0
- package/templates/.codex/agents/de-kafka-expert.md +81 -0
- package/templates/.codex/agents/de-pipeline-expert.md +92 -0
- package/templates/.codex/agents/de-snowflake-expert.md +89 -0
- package/templates/.codex/agents/de-spark-expert.md +80 -0
- package/templates/.codex/agents/fe-svelte-agent.md +65 -0
- package/templates/.codex/agents/fe-vercel-agent.md +69 -0
- package/templates/.codex/agents/fe-vuejs-agent.md +65 -0
- package/templates/.codex/agents/infra-aws-expert.md +47 -0
- package/templates/.codex/agents/infra-docker-expert.md +47 -0
- package/templates/.codex/agents/lang-golang-expert.md +43 -0
- package/templates/.codex/agents/lang-java21-expert.md +65 -0
- package/templates/.codex/agents/lang-kotlin-expert.md +43 -0
- package/templates/.codex/agents/lang-python-expert.md +43 -0
- package/templates/.codex/agents/lang-rust-expert.md +43 -0
- package/templates/.codex/agents/lang-typescript-expert.md +43 -0
- package/templates/.codex/agents/mgr-claude-code-bible.md +246 -0
- package/templates/.codex/agents/mgr-creator.md +120 -0
- package/templates/.codex/agents/mgr-gitnerd.md +113 -0
- package/templates/.codex/agents/mgr-sauron.md +154 -0
- package/templates/.codex/agents/mgr-supplier.md +120 -0
- package/templates/.codex/agents/mgr-sync-checker.md +99 -0
- package/templates/.codex/agents/mgr-updater.md +103 -0
- package/templates/.codex/agents/qa-engineer.md +96 -0
- package/templates/.codex/agents/qa-planner.md +74 -0
- package/templates/.codex/agents/qa-writer.md +97 -0
- package/templates/.codex/agents/sys-memory-keeper.md +117 -0
- package/templates/.codex/agents/sys-naggy.md +90 -0
- package/templates/.codex/agents/tool-bun-expert.md +71 -0
- package/templates/.codex/agents/tool-npm-expert.md +88 -0
- package/templates/.codex/agents/tool-optimizer.md +87 -0
- package/templates/.codex/codex-native-hash.txt +1 -0
- package/templates/.codex/contexts/dev.md +20 -0
- package/templates/.codex/contexts/ecomode.md +63 -0
- package/templates/.codex/contexts/index.yaml +41 -0
- package/templates/.codex/contexts/research.md +28 -0
- package/templates/.codex/contexts/review.md +23 -0
- package/templates/.codex/hooks/hooks.json +151 -0
- package/templates/.codex/install-hooks.sh +100 -0
- package/templates/.codex/rules/MAY-optimization.md +93 -0
- package/templates/.codex/rules/MUST-agent-design.md +162 -0
- package/templates/.codex/rules/MUST-agent-identification.md +108 -0
- package/templates/.codex/rules/MUST-continuous-improvement.md +132 -0
- package/templates/.codex/rules/MUST-intent-transparency.md +199 -0
- package/templates/.codex/rules/MUST-language-policy.md +62 -0
- package/templates/.codex/rules/MUST-orchestrator-coordination.md +471 -0
- package/templates/.codex/rules/MUST-parallel-execution.md +469 -0
- package/templates/.codex/rules/MUST-permissions.md +84 -0
- package/templates/.codex/rules/MUST-safety.md +69 -0
- package/templates/.codex/rules/MUST-sync-verification.md +281 -0
- package/templates/.codex/rules/MUST-tool-identification.md +195 -0
- package/templates/.codex/rules/SHOULD-agent-teams.md +183 -0
- package/templates/.codex/rules/SHOULD-ecomode.md +145 -0
- package/templates/.codex/rules/SHOULD-error-handling.md +102 -0
- package/templates/.codex/rules/SHOULD-hud-statusline.md +112 -0
- package/templates/.codex/rules/SHOULD-interaction.md +103 -0
- package/templates/.codex/rules/SHOULD-memory-integration.md +132 -0
- package/templates/.codex/rules/index.yaml +141 -0
- package/templates/.codex/skills/airflow-best-practices/SKILL.md +56 -0
- package/templates/.codex/skills/audit-agents/SKILL.md +116 -0
- package/templates/.codex/skills/aws-best-practices/SKILL.md +280 -0
- package/templates/.codex/skills/claude-code-bible/SKILL.md +180 -0
- package/templates/.codex/skills/claude-code-bible/scripts/fetch-docs.js +244 -0
- package/templates/.codex/skills/create-agent/SKILL.md +91 -0
- package/templates/.codex/skills/dbt-best-practices/SKILL.md +54 -0
- package/templates/.codex/skills/de-lead-routing/SKILL.md +230 -0
- package/templates/.codex/skills/dev-lead-routing/SKILL.md +253 -0
- package/templates/.codex/skills/dev-refactor/SKILL.md +123 -0
- package/templates/.codex/skills/dev-review/SKILL.md +81 -0
- package/templates/.codex/skills/docker-best-practices/SKILL.md +275 -0
- package/templates/.codex/skills/fastapi-best-practices/SKILL.md +270 -0
- package/templates/.codex/skills/fix-refs/SKILL.md +107 -0
- package/templates/.codex/skills/go-backend-best-practices/SKILL.md +338 -0
- package/templates/.codex/skills/go-best-practices/CLAUDE.md +9 -0
- package/templates/.codex/skills/go-best-practices/SKILL.md +203 -0
- package/templates/.codex/skills/help/SKILL.md +125 -0
- package/templates/.codex/skills/intent-detection/SKILL.md +215 -0
- package/templates/.codex/skills/intent-detection/patterns/agent-triggers.yaml +349 -0
- package/templates/.codex/skills/kafka-best-practices/SKILL.md +52 -0
- package/templates/.codex/skills/kotlin-best-practices/SKILL.md +256 -0
- package/templates/.codex/skills/lists/SKILL.md +78 -0
- package/templates/.codex/skills/memory-management/SKILL.md +195 -0
- package/templates/.codex/skills/memory-recall/SKILL.md +152 -0
- package/templates/.codex/skills/memory-save/SKILL.md +126 -0
- package/templates/.codex/skills/monitoring-setup/SKILL.md +115 -0
- package/templates/.codex/skills/npm-audit/SKILL.md +72 -0
- package/templates/.codex/skills/npm-publish/SKILL.md +63 -0
- package/templates/.codex/skills/npm-version/SKILL.md +75 -0
- package/templates/.codex/skills/optimize-analyze/SKILL.md +55 -0
- package/templates/.codex/skills/optimize-bundle/SKILL.md +67 -0
- package/templates/.codex/skills/optimize-report/SKILL.md +74 -0
- package/templates/.codex/skills/pipeline-architecture-patterns/SKILL.md +83 -0
- package/templates/.codex/skills/postgres-best-practices/SKILL.md +66 -0
- package/templates/.codex/skills/python-best-practices/SKILL.md +222 -0
- package/templates/.codex/skills/qa-lead-routing/SKILL.md +277 -0
- package/templates/.codex/skills/react-best-practices/SKILL.md +101 -0
- package/templates/.codex/skills/redis-best-practices/SKILL.md +83 -0
- package/templates/.codex/skills/result-aggregation/SKILL.md +164 -0
- package/templates/.codex/skills/rust-best-practices/SKILL.md +267 -0
- package/templates/.codex/skills/sauron-watch/SKILL.md +144 -0
- package/templates/.codex/skills/secretary-routing/SKILL.md +190 -0
- package/templates/.codex/skills/snowflake-best-practices/SKILL.md +65 -0
- package/templates/.codex/skills/spark-best-practices/SKILL.md +52 -0
- package/templates/.codex/skills/springboot-best-practices/SKILL.md +357 -0
- package/templates/.codex/skills/status/SKILL.md +153 -0
- package/templates/.codex/skills/supabase-postgres-best-practices/SKILL.md +99 -0
- package/templates/.codex/skills/typescript-best-practices/SKILL.md +321 -0
- package/templates/.codex/skills/update-docs/SKILL.md +140 -0
- package/templates/.codex/skills/update-external/SKILL.md +149 -0
- package/templates/.codex/skills/vercel-deploy/SKILL.md +73 -0
- package/templates/.codex/skills/web-design-guidelines/SKILL.md +118 -0
- package/templates/.codex/skills/writing-clearly-and-concisely/SKILL.md +64 -0
- package/templates/.codex/uninstall-hooks.sh +52 -0
- package/templates/AGENTS.md.en +39 -0
- package/templates/AGENTS.md.ko +39 -0
- package/templates/manifest.codex.json +43 -0
- package/templates/manifest.json +5 -5
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
# [MUST] Intent Transparency Rules
|
|
2
|
+
|
|
3
|
+
> **Priority**: MUST - Required for user control
|
|
4
|
+
> **ID**: R015
|
|
5
|
+
|
|
6
|
+
## Purpose
|
|
7
|
+
|
|
8
|
+
Ensure transparency when automatically detecting user intent and routing to agents. Users should always understand why a specific agent was chosen.
|
|
9
|
+
|
|
10
|
+
## Detection Display (REQUIRED)
|
|
11
|
+
|
|
12
|
+
When intent is detected, display the reasoning:
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
[Intent Detected]
|
|
16
|
+
├── Input: "{user input}"
|
|
17
|
+
├── Agent: {detected-agent}
|
|
18
|
+
├── Confidence: {percentage}%
|
|
19
|
+
└── Reason: {explanation}
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Confidence Thresholds
|
|
23
|
+
|
|
24
|
+
| Confidence | Action |
|
|
25
|
+
|------------|--------|
|
|
26
|
+
| >= 90% | Auto-execute with display |
|
|
27
|
+
| 70-89% | Request confirmation |
|
|
28
|
+
| < 70% | List options for user to choose |
|
|
29
|
+
|
|
30
|
+
## Detection Factors
|
|
31
|
+
|
|
32
|
+
Intent is detected using multiple factors:
|
|
33
|
+
|
|
34
|
+
```yaml
|
|
35
|
+
factors:
|
|
36
|
+
keywords:
|
|
37
|
+
weight: 40
|
|
38
|
+
description: Language-specific keywords in input
|
|
39
|
+
example: "Go", "Python", "리뷰", "생성"
|
|
40
|
+
|
|
41
|
+
file_patterns:
|
|
42
|
+
weight: 30
|
|
43
|
+
description: File extensions mentioned or in context
|
|
44
|
+
example: "*.go", "main.py"
|
|
45
|
+
|
|
46
|
+
action_verbs:
|
|
47
|
+
weight: 20
|
|
48
|
+
description: Action words in user input
|
|
49
|
+
example: "review", "create", "fix", "리뷰", "생성"
|
|
50
|
+
|
|
51
|
+
context:
|
|
52
|
+
weight: 10
|
|
53
|
+
description: Recent conversation context
|
|
54
|
+
example: Previous agent used, current working directory
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## High Confidence Display (>= 90%)
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
[Intent Detected]
|
|
61
|
+
├── Input: "Go 코드 리뷰해줘"
|
|
62
|
+
├── Agent: lang-golang-expert
|
|
63
|
+
├── Confidence: 95%
|
|
64
|
+
└── Reason: "Go" keyword (40%) + "리뷰" action verb (55%)
|
|
65
|
+
|
|
66
|
+
Executing...
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Medium Confidence Display (70-89%)
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
[Intent Detected]
|
|
73
|
+
├── Input: "백엔드 코드 체크해줘"
|
|
74
|
+
├── Agent: be-go-backend-expert (?)
|
|
75
|
+
├── Confidence: 75%
|
|
76
|
+
└── Reason: "백엔드" keyword (40%) + "체크" action (35%)
|
|
77
|
+
|
|
78
|
+
Possible alternatives:
|
|
79
|
+
1. be-go-backend-expert (75%)
|
|
80
|
+
2. be-fastapi-expert (65%)
|
|
81
|
+
3. be-springboot-expert (60%)
|
|
82
|
+
|
|
83
|
+
Proceed with be-go-backend-expert? [Y/n/1-3]
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Low Confidence Display (< 70%)
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
[Intent Unclear]
|
|
90
|
+
├── Input: "이 코드 좀 봐줘"
|
|
91
|
+
├── Confidence: < 70%
|
|
92
|
+
└── Need more context
|
|
93
|
+
|
|
94
|
+
Available agents for code review:
|
|
95
|
+
1. lang-golang-expert (Go files)
|
|
96
|
+
2. lang-python-expert (Python files)
|
|
97
|
+
3. lang-typescript-expert (TypeScript files)
|
|
98
|
+
4. lang-rust-expert (Rust files)
|
|
99
|
+
|
|
100
|
+
Which agent should review the code? [1-4]
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## Override Syntax
|
|
104
|
+
|
|
105
|
+
Users can explicitly specify an agent:
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
@{agent-name} {command}
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Examples:
|
|
112
|
+
```
|
|
113
|
+
@lang-golang-expert review this code
|
|
114
|
+
@lang-python-expert src/main.py 분석해줘
|
|
115
|
+
@secretary create a new agent
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
Override bypasses intent detection:
|
|
119
|
+
|
|
120
|
+
```
|
|
121
|
+
[Override] Agent explicitly specified: lang-python-expert
|
|
122
|
+
Executing...
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
## Implementation
|
|
126
|
+
|
|
127
|
+
### Secretary Workflow
|
|
128
|
+
|
|
129
|
+
```
|
|
130
|
+
1. Receive user input
|
|
131
|
+
2. Check for explicit override (@agent)
|
|
132
|
+
3. If no override:
|
|
133
|
+
a. Extract keywords, file patterns, action verbs
|
|
134
|
+
b. Match against agent triggers
|
|
135
|
+
c. Calculate confidence score
|
|
136
|
+
d. Display detection reasoning
|
|
137
|
+
e. Execute or request confirmation based on threshold
|
|
138
|
+
4. Route to selected agent
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### Detection Log
|
|
142
|
+
|
|
143
|
+
For debugging and transparency:
|
|
144
|
+
|
|
145
|
+
```yaml
|
|
146
|
+
detection_log:
|
|
147
|
+
input: "Go 코드 리뷰해줘"
|
|
148
|
+
extracted:
|
|
149
|
+
keywords: ["Go"]
|
|
150
|
+
file_patterns: []
|
|
151
|
+
action_verbs: ["리뷰"]
|
|
152
|
+
matches:
|
|
153
|
+
- agent: lang-golang-expert
|
|
154
|
+
score: 95
|
|
155
|
+
breakdown:
|
|
156
|
+
keyword_go: 40
|
|
157
|
+
action_review: 40
|
|
158
|
+
context: 15
|
|
159
|
+
selected: lang-golang-expert
|
|
160
|
+
confidence: 95%
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
## Agent Triggers
|
|
164
|
+
|
|
165
|
+
Each agent has defined triggers in:
|
|
166
|
+
`.codex/skills/intent-detection/patterns/agent-triggers.yaml`
|
|
167
|
+
|
|
168
|
+
```yaml
|
|
169
|
+
agents:
|
|
170
|
+
lang-golang-expert:
|
|
171
|
+
keywords: [go, golang, "go 언어"]
|
|
172
|
+
file_patterns: ["*.go", "go.mod", "go.sum"]
|
|
173
|
+
actions: [review, analyze, fix, optimize]
|
|
174
|
+
base_confidence: 40
|
|
175
|
+
|
|
176
|
+
lang-python-expert:
|
|
177
|
+
keywords: [python, py, "파이썬"]
|
|
178
|
+
file_patterns: ["*.py", "requirements.txt", "pyproject.toml"]
|
|
179
|
+
actions: [review, analyze, fix, optimize]
|
|
180
|
+
base_confidence: 40
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
## Benefits
|
|
184
|
+
|
|
185
|
+
1. **Transparency**: Users understand agent selection
|
|
186
|
+
2. **Control**: Users can override or choose alternatives
|
|
187
|
+
3. **Trust**: Clear reasoning builds user confidence
|
|
188
|
+
4. **Learning**: Users learn which agents handle what
|
|
189
|
+
5. **Debugging**: Clear logs for troubleshooting
|
|
190
|
+
|
|
191
|
+
## Violations
|
|
192
|
+
|
|
193
|
+
Proceeding without displaying intent reasoning = Rule violation
|
|
194
|
+
|
|
195
|
+
The user must always know:
|
|
196
|
+
- Which agent was selected
|
|
197
|
+
- Why it was selected
|
|
198
|
+
- What confidence level
|
|
199
|
+
- How to override if needed
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# [MUST] Language & Delegation Policy
|
|
2
|
+
|
|
3
|
+
> **Priority**: MUST - Never violate
|
|
4
|
+
> **ID**: R000
|
|
5
|
+
|
|
6
|
+
## Core Principles
|
|
7
|
+
|
|
8
|
+
### 1. User Input Language
|
|
9
|
+
```
|
|
10
|
+
User prompts are in Korean.
|
|
11
|
+
Always understand and process Korean input.
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
### 2. Output Language
|
|
15
|
+
|
|
16
|
+
| Context | Language | Example |
|
|
17
|
+
|---------|----------|---------|
|
|
18
|
+
| User communication | Korean | 상태 보고, 질문, 설명 |
|
|
19
|
+
| Code | English | variables, functions, comments |
|
|
20
|
+
| File contents | English | .md, .yaml, configs |
|
|
21
|
+
| Commit messages | English | git commits |
|
|
22
|
+
| Error messages to user | Korean | 에러 설명, 해결 방안 |
|
|
23
|
+
|
|
24
|
+
### 3. Delegation Model
|
|
25
|
+
```
|
|
26
|
+
User does NOT directly edit files.
|
|
27
|
+
User delegates ALL file operations to AI agent.
|
|
28
|
+
|
|
29
|
+
User → (Korean prompt) → Agent → (file operations)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### 4. Context Efficiency
|
|
33
|
+
```
|
|
34
|
+
All file contents in English for:
|
|
35
|
+
- Token efficiency
|
|
36
|
+
- Consistent parsing
|
|
37
|
+
- Universal compatibility
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Examples
|
|
41
|
+
|
|
42
|
+
### Correct
|
|
43
|
+
```
|
|
44
|
+
User: "새로운 에이전트를 만들어줘"
|
|
45
|
+
Agent: "에이전트를 생성하겠습니다." (Korean to user)
|
|
46
|
+
Agent writes AGENT.md in English
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Incorrect
|
|
50
|
+
```
|
|
51
|
+
Agent writes: "# 에이전트 이름" in file ← Wrong
|
|
52
|
+
Agent writes: "# Agent Name" in file ← Correct
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## File Naming
|
|
56
|
+
|
|
57
|
+
| Type | Convention | Example |
|
|
58
|
+
|------|------------|---------|
|
|
59
|
+
| Rules | `{PRIORITY}-{name}.md` | `MUST-safety.md` |
|
|
60
|
+
| Agents | `AGENT.md` | - |
|
|
61
|
+
| Skills | `SKILL.md` | - |
|
|
62
|
+
| Index | `index.yaml` | - |
|