@musashishao/agent-kit 1.9.0 → 1.9.1
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/.agent/agents/ai-asset-factory.md +700 -0
- package/.agent/agents/ai-audio-factory.md +503 -0
- package/.agent/agents/game-developer.md +4 -4
- package/.agent/agents/orchestrator.md +113 -3
- package/.agent/agents/project-planner.md +67 -0
- package/.agent/agents/unity-mobile-master.md +949 -0
- package/.agent/mcp/config/registry.json +65 -51
- package/.agent/mcp/servers/notebooklm/README.md +114 -0
- package/.agent/mcp/servers/notebooklm/package.json +35 -0
- package/.agent/mcp/servers/notebooklm/src/auth/chrome.ts +225 -0
- package/.agent/mcp/servers/notebooklm/src/auth/index.ts +1 -0
- package/.agent/mcp/servers/notebooklm/src/index.ts +516 -0
- package/.agent/mcp/servers/notebooklm/src/services/index.ts +3 -0
- package/.agent/mcp/servers/notebooklm/src/services/library.ts +217 -0
- package/.agent/mcp/servers/notebooklm/src/services/notebooklm.ts +380 -0
- package/.agent/mcp/servers/notebooklm/tsconfig.json +15 -0
- package/.agent/mcp-gateway/README.md +169 -20
- package/.agent/mcp-gateway/package.json +22 -7
- package/.agent/mcp-gateway/src/auth/index.ts +55 -0
- package/.agent/mcp-gateway/src/auth/middleware.ts +242 -0
- package/.agent/mcp-gateway/src/auth/oauth.ts +462 -0
- package/.agent/mcp-gateway/src/auth/scopes.ts +227 -0
- package/.agent/mcp-gateway/src/index.ts +252 -105
- package/.agent/mcp-gateway/src/observability/index.ts +5 -0
- package/.agent/mcp-gateway/src/observability/otel.ts +405 -0
- package/.agent/mcp-gateway/src/transports/index.ts +5 -0
- package/.agent/mcp-gateway/src/transports/streamableHttp.ts +235 -0
- package/.agent/rules/CODEX.md +89 -0
- package/.agent/rules/CODE_RULES.md +73 -0
- package/.agent/rules/GEMINI.md +25 -0
- package/.agent/rules/MEMORY_STATE.md +110 -0
- package/.agent/rules/REFERENCE.md +33 -141
- package/.agent/rules/REF_SKILLS.md +116 -0
- package/.agent/rules/REF_WORKFLOWS.md +81 -0
- package/.agent/scripts/ak_cli.py +106 -5
- package/.agent/scripts/memory_manager.py +48 -9
- package/.agent/skills/anti-hallucination/SKILL.md +295 -0
- package/.agent/skills/anti-hallucination/scripts/check_hallucination.py +299 -0
- package/.agent/skills/bifurcation-analysis/SKILL.md +56 -0
- package/.agent/skills/brainstorming/SKILL.md +80 -6
- package/.agent/skills/decision-memory/SKILL.md +317 -0
- package/.agent/skills/emergence-detector/SKILL.md +230 -0
- package/.agent/skills/emergence-detector/scripts/check_emergence.py +265 -0
- package/.agent/skills/explained-qa/SKILL.md +142 -0
- package/.agent/skills/explained-qa/game-terminology.md +214 -0
- package/.agent/skills/game-development/ai-dialogue-engine/SKILL.md +442 -0
- package/.agent/skills/game-development/ai-graphics-generator/SKILL.md +463 -0
- package/.agent/skills/game-development/ai-playtest-framework/SKILL.md +570 -0
- package/.agent/skills/game-development/camera-systems/SKILL.md +607 -0
- package/.agent/skills/game-development/card-battle-engine/SKILL.md +618 -0
- package/.agent/skills/game-development/character-controller-3d/SKILL.md +908 -0
- package/.agent/skills/game-development/cloud-save-sync/SKILL.md +527 -0
- package/.agent/skills/game-development/combat-system/SKILL.md +748 -0
- package/.agent/skills/game-development/compliance-rating/SKILL.md +277 -0
- package/.agent/skills/game-development/crossplatform-build/SKILL.md +386 -0
- package/.agent/skills/game-development/cultivation-progression/SKILL.md +520 -0
- package/.agent/skills/game-development/data-driven-balance/SKILL.md +535 -0
- package/.agent/skills/game-development/game-analytics-integrator/SKILL.md +410 -0
- package/.agent/skills/game-development/game-audio-advanced/SKILL.md +646 -0
- package/.agent/skills/game-development/game-economy-designer/SKILL.md +375 -0
- package/.agent/skills/game-development/game-marketing/SKILL.md +85 -0
- package/.agent/skills/game-development/game-state-manager/SKILL.md +883 -0
- package/.agent/skills/game-development/hybrid-game-spec/SKILL.md +220 -0
- package/.agent/skills/game-development/inventory-quest/SKILL.md +747 -0
- package/.agent/skills/game-development/liveops/SKILL.md +308 -0
- package/.agent/skills/game-development/localization/SKILL.md +286 -0
- package/.agent/skills/game-development/mobile-input-patterns/SKILL.md +343 -0
- package/.agent/skills/game-development/monetization-strategy/SKILL.md +94 -0
- package/.agent/skills/game-development/multiplayer-master/SKILL.md +727 -0
- package/.agent/skills/game-development/narrative-branching/SKILL.md +593 -0
- package/.agent/skills/game-development/procedural-level-ai/SKILL.md +367 -0
- package/.agent/skills/game-development/prototyping-rapid/SKILL.md +205 -0
- package/.agent/skills/game-development/spec-ecosystem/SKILL.md +155 -0
- package/.agent/skills/game-development/spec-ecosystem/decision-log-format.md +129 -0
- package/.agent/skills/game-development/spec-ecosystem/templates/PLAN-template.md +178 -0
- package/.agent/skills/game-development/spec-ecosystem/templates/SPEC-template.md +110 -0
- package/.agent/skills/game-development/spec-ecosystem/templates/TASKS-template.md +156 -0
- package/.agent/skills/game-development/survival-systems/SKILL.md +493 -0
- package/.agent/skills/game-development/testing-qa/SKILL.md +270 -0
- package/.agent/skills/game-development/unity-mobile-optimization/SKILL.md +271 -0
- package/.agent/skills/intent-capture/SKILL.md +65 -0
- package/.agent/skills/mcp-composition/SKILL.md +362 -0
- package/.agent/skills/mcp-observability/SKILL.md +323 -0
- package/.agent/skills/mcp-security/SKILL.md +314 -0
- package/.agent/skills/trust-spectrum/SKILL.md +291 -0
- package/.agent/skills/vibe-coding-guard/SKILL.md +328 -0
- package/.agent/templates/AGENTS.game.md +63 -0
- package/.agent/templates/docs/WORKFLOW_GUIDE.en.md +100 -0
- package/.agent/templates/docs/WORKFLOW_GUIDE.vi.md +100 -0
- package/.agent/workflows/ai-agent.md +2 -0
- package/.agent/workflows/autofix.md +1 -0
- package/.agent/workflows/brainstorm.md +1 -0
- package/.agent/workflows/context.md +1 -0
- package/.agent/workflows/create.md +39 -8
- package/.agent/workflows/dashboard.md +1 -0
- package/.agent/workflows/debug.md +14 -0
- package/.agent/workflows/deploy.md +14 -0
- package/.agent/workflows/enhance.md +44 -0
- package/.agent/workflows/gamekit-init.md +177 -0
- package/.agent/workflows/gamekit-launch.md +338 -0
- package/.agent/workflows/gamekit-plan.md +204 -0
- package/.agent/workflows/gamekit-qa.md +153 -0
- package/.agent/workflows/gamekit-spec.md +243 -0
- package/.agent/workflows/gamekit-tasks.md +208 -0
- package/.agent/workflows/marketing.md +2 -0
- package/.agent/workflows/next.md +1 -0
- package/.agent/workflows/orchestrate.md +12 -0
- package/.agent/workflows/pentest.md +2 -0
- package/.agent/workflows/plan.md +42 -0
- package/.agent/workflows/preview.md +1 -0
- package/.agent/workflows/quality.md +1 -0
- package/.agent/workflows/saas.md +2 -0
- package/.agent/workflows/spec.md +42 -0
- package/.agent/workflows/status.md +1 -0
- package/.agent/workflows/test.md +14 -0
- package/.agent/workflows/ui-ux-pro-max.md +1 -0
- package/bin/cli.js +411 -111
- package/package.json +1 -2
- package/.agent/agents/game-asset-curator.md +0 -317
- package/.agent/agents/game-narrative-designer.md +0 -310
- package/.agent/agents/game-qa-agent.md +0 -441
- package/.agent/workflows/game-prototype.md +0 -154
- package/docs/AI_DATA_INFRASTRUCTURE.md +0 -288
- package/docs/CHANGELOG_AI_INFRA.md +0 -141
- package/docs/MIGRATION_GUIDE_V1.9.md +0 -55
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: vibe-coding-guard
|
|
3
|
+
description: "Enforce Vibe Coding 2026 best practices. Combines VIBES Framework, CONDUCTOR pattern, and trust spectrum for comprehensive AI development governance."
|
|
4
|
+
version: "1.0.0"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 🎸 Vibe Coding Guard
|
|
8
|
+
|
|
9
|
+
> **The complete governance framework for AI-assisted development**
|
|
10
|
+
|
|
11
|
+
This skill enforces all Vibe Coding 2026 best practices, integrating VIBES Framework, CONDUCTOR responsibilities, and the Trust Spectrum into a cohesive workflow.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## When to Use This Skill
|
|
16
|
+
|
|
17
|
+
- Any AI-assisted development session
|
|
18
|
+
- Large codegen tasks
|
|
19
|
+
- Multi-agent workflows
|
|
20
|
+
- Production-critical code
|
|
21
|
+
- Teaching vibe coding practices
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## 1. The Vibe Coding Spectrum
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
PURE VIBE RESPONSIBLE VIBE
|
|
29
|
+
(Throwaway) (Production)
|
|
30
|
+
│ │
|
|
31
|
+
▼ ▼
|
|
32
|
+
┌───────────────────────────────────────────────────────────────────┐
|
|
33
|
+
│ │
|
|
34
|
+
│ Blind Trust Light Review Deep Review Full TDD │
|
|
35
|
+
│ │ │ │ │ │
|
|
36
|
+
│ Weekend Prototypes Standard Critical │
|
|
37
|
+
│ Projects & MVPs Features Systems │
|
|
38
|
+
│ │
|
|
39
|
+
│ Risk: High Risk: Medium Risk: Low Risk: Min │
|
|
40
|
+
└───────────────────────────────────────────────────────────────────┘
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## 2. VIBES Pre-Flight Checklist
|
|
46
|
+
|
|
47
|
+
Before ANY AI code generation:
|
|
48
|
+
|
|
49
|
+
```markdown
|
|
50
|
+
## VIBES Pre-Flight
|
|
51
|
+
|
|
52
|
+
### V - Verification Plan
|
|
53
|
+
- [ ] What command will prove success?
|
|
54
|
+
- [ ] What tests need to pass?
|
|
55
|
+
- [ ] What evidence will you require?
|
|
56
|
+
|
|
57
|
+
### I - Intent Captured
|
|
58
|
+
- [ ] Explicit request documented
|
|
59
|
+
- [ ] Implicit needs identified
|
|
60
|
+
- [ ] Unknown needs anticipated
|
|
61
|
+
- [ ] Anti-goals stated
|
|
62
|
+
|
|
63
|
+
### B - Bifurcation Points
|
|
64
|
+
- [ ] Technical decisions identified
|
|
65
|
+
- [ ] Architecture choices listed
|
|
66
|
+
- [ ] Scope boundaries defined
|
|
67
|
+
- [ ] Trade-offs documented
|
|
68
|
+
|
|
69
|
+
### E - Emergence Preparedness
|
|
70
|
+
- [ ] Scope limits defined
|
|
71
|
+
- [ ] Dependency policy set
|
|
72
|
+
- [ ] Pattern expectations established
|
|
73
|
+
|
|
74
|
+
### S - Safety Layers Active
|
|
75
|
+
- [ ] Input validation ready
|
|
76
|
+
- [ ] Security scanner configured
|
|
77
|
+
- [ ] Review process defined
|
|
78
|
+
- [ ] Rollback capability confirmed
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## 3. CONDUCTOR Mode
|
|
84
|
+
|
|
85
|
+
Developer role in vibe coding mode:
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
YOU ARE THE CONDUCTOR 🎼
|
|
89
|
+
━━━━━━━━━━━━━━━━━━━━━━
|
|
90
|
+
|
|
91
|
+
Your job is NOT to write code.
|
|
92
|
+
Your job is to:
|
|
93
|
+
|
|
94
|
+
1. CONTEXT - Feed rich context to agents
|
|
95
|
+
2. ORCHESTRATE - Direct the workflow
|
|
96
|
+
3. NAVIGATE - Guide through decisions
|
|
97
|
+
4. DECOMPOSE - Break down complexity
|
|
98
|
+
5. UNDERSTAND - Know the domain deeply
|
|
99
|
+
6. COORDINATE - Sync multiple agents
|
|
100
|
+
7. TRUST - Build verified trust
|
|
101
|
+
8. OBSERVE - Watch for emergence
|
|
102
|
+
9. REFINE - Iterate to perfection
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## 4. Session Governance
|
|
108
|
+
|
|
109
|
+
### Start of Session
|
|
110
|
+
|
|
111
|
+
```python
|
|
112
|
+
def start_vibe_session(task: Task) -> Session:
|
|
113
|
+
session = Session()
|
|
114
|
+
|
|
115
|
+
# 1. Classify task risk
|
|
116
|
+
session.risk_level = classify_risk(task)
|
|
117
|
+
|
|
118
|
+
# 2. Set verification level
|
|
119
|
+
session.verification = VERIFICATION_MAP[session.risk_level]
|
|
120
|
+
|
|
121
|
+
# 3. Load relevant trust scores
|
|
122
|
+
session.agent_trust = load_agent_trust()
|
|
123
|
+
|
|
124
|
+
# 4. Initialize emergence detector
|
|
125
|
+
session.emergence = EmergenceDetector()
|
|
126
|
+
|
|
127
|
+
# 5. Set up decision logger
|
|
128
|
+
session.decisions = DecisionMemory()
|
|
129
|
+
|
|
130
|
+
return session
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### During Session
|
|
134
|
+
|
|
135
|
+
```python
|
|
136
|
+
def process_ai_output(output: Output, session: Session) -> Result:
|
|
137
|
+
# 1. Emergence check
|
|
138
|
+
emergence = session.emergence.check(output)
|
|
139
|
+
if emergence.has_issues:
|
|
140
|
+
return Result.NEEDS_REVIEW(emergence.issues)
|
|
141
|
+
|
|
142
|
+
# 2. Hallucination check
|
|
143
|
+
hallucinations = check_hallucinations(output)
|
|
144
|
+
if hallucinations:
|
|
145
|
+
return Result.REJECT(hallucinations)
|
|
146
|
+
|
|
147
|
+
# 3. Trust-based verification
|
|
148
|
+
verification_level = session.get_verification_level()
|
|
149
|
+
if not verify(output, verification_level):
|
|
150
|
+
return Result.REJECT("Verification failed")
|
|
151
|
+
|
|
152
|
+
# 4. Update trust
|
|
153
|
+
session.agent_trust.update(outcome="success")
|
|
154
|
+
|
|
155
|
+
return Result.ACCEPT(output)
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
### End of Session
|
|
159
|
+
|
|
160
|
+
```python
|
|
161
|
+
def end_vibe_session(session: Session):
|
|
162
|
+
# 1. Log all decisions
|
|
163
|
+
session.decisions.persist()
|
|
164
|
+
|
|
165
|
+
# 2. Update trust scores
|
|
166
|
+
persist_trust_scores(session.agent_trust)
|
|
167
|
+
|
|
168
|
+
# 3. Generate session summary
|
|
169
|
+
summary = generate_summary(session)
|
|
170
|
+
|
|
171
|
+
# 4. Store for future reference
|
|
172
|
+
store_session(session, summary)
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
## 5. Risk Classification
|
|
178
|
+
|
|
179
|
+
| Project Type | Risk Level | Verification | Trust Required |
|
|
180
|
+
|--------------|------------|--------------|----------------|
|
|
181
|
+
| Weekend hack | Low | Light | Zero Trust OK |
|
|
182
|
+
| Prototype | Low-Medium | Standard | Calculated |
|
|
183
|
+
| Internal tool | Medium | Standard | Calculated |
|
|
184
|
+
| Customer-facing | High | Deep | Earned |
|
|
185
|
+
| Payment/Banking | Critical | Full TDD | Earned + Review |
|
|
186
|
+
| Healthcare/Legal | Critical | Full + Audit | Max + External |
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
## 6. Quick Reference Cards
|
|
191
|
+
|
|
192
|
+
### The 5-Second VIBES Check
|
|
193
|
+
|
|
194
|
+
```
|
|
195
|
+
V - What's my verification command?
|
|
196
|
+
I - Did I capture the full intent?
|
|
197
|
+
B - Any decisions I need to make?
|
|
198
|
+
E - Am I watching for unexpected output?
|
|
199
|
+
S - What safety layers are active?
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### The CONDUCTOR Quick Check
|
|
203
|
+
|
|
204
|
+
```
|
|
205
|
+
✓ Did I provide enough context?
|
|
206
|
+
✓ Am I directing, not writing?
|
|
207
|
+
✓ Did I guide through choices?
|
|
208
|
+
✓ Is complexity broken down?
|
|
209
|
+
✓ Do I understand the domain?
|
|
210
|
+
✓ Are agents coordinated?
|
|
211
|
+
✓ Is trust verified, not assumed?
|
|
212
|
+
✓ Am I watching for emergence?
|
|
213
|
+
✓ Will I iterate to refine?
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
---
|
|
217
|
+
|
|
218
|
+
## 7. Integration with Workflows
|
|
219
|
+
|
|
220
|
+
### /create Workflow
|
|
221
|
+
|
|
222
|
+
```
|
|
223
|
+
1. VIBES Pre-Flight Check
|
|
224
|
+
2. Intent Capture (Socratic)
|
|
225
|
+
3. Bifurcation Analysis
|
|
226
|
+
4. Agent Orchestration
|
|
227
|
+
5. Emergence Detection
|
|
228
|
+
6. Verification Gate
|
|
229
|
+
7. Decision Logging
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
### /debug Workflow
|
|
233
|
+
|
|
234
|
+
```
|
|
235
|
+
1. Context Gathering (CONDUCTOR-C)
|
|
236
|
+
2. Root Cause Analysis
|
|
237
|
+
3. Fix Proposal (with Bifurcation)
|
|
238
|
+
4. Implementation
|
|
239
|
+
5. Emergence Check
|
|
240
|
+
6. Verification (fresh evidence)
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
### /orchestrate Workflow
|
|
244
|
+
|
|
245
|
+
```
|
|
246
|
+
1. VIBES Pre-Flight
|
|
247
|
+
2. Multi-Agent Trust Check
|
|
248
|
+
3. Task Decomposition (CONDUCTOR-D)
|
|
249
|
+
4. Parallel Agent Execution
|
|
250
|
+
5. Emergence Detection per Agent
|
|
251
|
+
6. Cross-Agent Verification
|
|
252
|
+
7. Synthesis with Safety Layers
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
---
|
|
256
|
+
|
|
257
|
+
## 8. Enforcement Levels
|
|
258
|
+
|
|
259
|
+
| Level | Description | Enforcement |
|
|
260
|
+
|-------|-------------|-------------|
|
|
261
|
+
| **Advisory** | Suggest best practices | Recommendations only |
|
|
262
|
+
| **Standard** | Require pre-flight | Block without VIBES check |
|
|
263
|
+
| **Strict** | Full compliance | Block on any violation |
|
|
264
|
+
| **Paranoid** | Maximum safety | Require human approval |
|
|
265
|
+
|
|
266
|
+
```python
|
|
267
|
+
def set_enforcement_level(project_type: str) -> EnforcementLevel:
|
|
268
|
+
return {
|
|
269
|
+
"prototype": EnforcementLevel.ADVISORY,
|
|
270
|
+
"internal": EnforcementLevel.STANDARD,
|
|
271
|
+
"production": EnforcementLevel.STRICT,
|
|
272
|
+
"critical": EnforcementLevel.PARANOID
|
|
273
|
+
}.get(project_type, EnforcementLevel.STANDARD)
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
---
|
|
277
|
+
|
|
278
|
+
## 9. Metrics & Reporting
|
|
279
|
+
|
|
280
|
+
### Session Metrics
|
|
281
|
+
|
|
282
|
+
```json
|
|
283
|
+
{
|
|
284
|
+
"session_id": "2026-01-29-001",
|
|
285
|
+
"duration_minutes": 45,
|
|
286
|
+
"vibes_pre_flights": 3,
|
|
287
|
+
"emergence_detections": 1,
|
|
288
|
+
"hallucinations_caught": 0,
|
|
289
|
+
"decisions_logged": 5,
|
|
290
|
+
"verification_passes": 8,
|
|
291
|
+
"verification_failures": 1,
|
|
292
|
+
"trust_updates": [
|
|
293
|
+
{"agent": "coder", "delta": +2},
|
|
294
|
+
{"agent": "reviewer", "delta": +1}
|
|
295
|
+
]
|
|
296
|
+
}
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
### Weekly Report
|
|
300
|
+
|
|
301
|
+
```markdown
|
|
302
|
+
## Vibe Coding Report: Week 4
|
|
303
|
+
|
|
304
|
+
### Summary
|
|
305
|
+
- Sessions: 15
|
|
306
|
+
- Emergence Issues: 3 (caught before commit)
|
|
307
|
+
- Hallucinations: 1 (phantom package)
|
|
308
|
+
- Trust Score Changes: +12 total
|
|
309
|
+
|
|
310
|
+
### Top Decisions
|
|
311
|
+
1. Chose PostgreSQL over MongoDB (ADR-004)
|
|
312
|
+
2. Implemented feature flags (ADR-005)
|
|
313
|
+
|
|
314
|
+
### Learnings
|
|
315
|
+
- Agent X struggles with auth code (lower trust)
|
|
316
|
+
- VIBES pre-flight caught 3 scope creep issues
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
---
|
|
320
|
+
|
|
321
|
+
## 10. Related Skills
|
|
322
|
+
|
|
323
|
+
- `verification-gate` - V in VIBES
|
|
324
|
+
- `brainstorming` - I in VIBES (Intent Capture)
|
|
325
|
+
- `emergence-detector` - E in VIBES
|
|
326
|
+
- `trust-spectrum` - Trust management
|
|
327
|
+
- `decision-memory` - Decision logging
|
|
328
|
+
- `anti-hallucination` - Hallucination prevention
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# AGENTS.md - Game Development Team
|
|
2
|
+
|
|
3
|
+
> **Role:** Game Studio Orchestration Map
|
|
4
|
+
> **Status:** Active
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## 🎮 Core Game Team
|
|
9
|
+
|
|
10
|
+
| Agent | Role | Focus |
|
|
11
|
+
|-------|------|-------|
|
|
12
|
+
| `game-developer` | **Lead Developer** | Gameplay logic, engine integration (Unity/Godot), mechanics |
|
|
13
|
+
| `unity-mobile-master` | **Mobile Specialist** | Optimization, touch controls, mobile build pipeline |
|
|
14
|
+
| `ai-asset-factory` | **Art Director** | 2D/3D asset generation, textures, UI elements |
|
|
15
|
+
| `ai-audio-factory` | **Audio Engineer** | BGM, SFX, voice generation, adaptive audio |
|
|
16
|
+
| `project-planner` | **Producer** | Task tracking, milestones, GDD management |
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## 🛠️ Workflows (Slash Commands)
|
|
21
|
+
|
|
22
|
+
| Command | Purpose |
|
|
23
|
+
|---------|---------|
|
|
24
|
+
| `/gamekit-spec` | Create Game Design Document (GDD) & Specs |
|
|
25
|
+
| `/gamekit-plan` | Generate technical implementation plan |
|
|
26
|
+
| `/gamekit-tasks` | Create executable task list |
|
|
27
|
+
| `/gamekit-qa` | Playtesting & Quality Assurance loop |
|
|
28
|
+
| `/gamekit-launch` | Build & Store submission workflow |
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## 📂 Directory Structure
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
.
|
|
36
|
+
├── Assets/ # Game Assets (Unity/Godot standard)
|
|
37
|
+
├── ProjectSettings/ # Engine settings
|
|
38
|
+
├── Docs/ # Documentation
|
|
39
|
+
│ ├── GDD.md # Game Design Document
|
|
40
|
+
│ ├── SPEC-*.md # Feature Specs
|
|
41
|
+
│ └── PLAN-*.md # Implementation Plans
|
|
42
|
+
└── .agent/ # Agent Configuration
|
|
43
|
+
├── memory/ # Session & Decision logs
|
|
44
|
+
└── skills/ # Project-specific skills
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## 📝 Conventions
|
|
50
|
+
|
|
51
|
+
- **Game Loop:** Logic in `Update()` (variable) vs `FixedUpdate()` (physics).
|
|
52
|
+
- **Assets:** Use `Resources/` sparingly. Prefer Addressables/AssetBundles.
|
|
53
|
+
- **Code Style:** C# (Unity) or GDScript (Godot) follows standard guidelines.
|
|
54
|
+
- **Commit:** Git output must exclude huge binaries (use LFS).
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## 🚀 Quick Start
|
|
59
|
+
|
|
60
|
+
1. **Initialize:** Run `/gamekit-init` to setup structure.
|
|
61
|
+
2. **Spec:** Run `/gamekit-spec` to define your game idea.
|
|
62
|
+
3. **Plan:** Run `/gamekit-plan` to create technical roadmap.
|
|
63
|
+
4. **Build:** Use `@game-developer` to start coding.
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# Agent Kit Workflow Guide
|
|
2
|
+
|
|
3
|
+
This guide provides details on how to use workflows in Agent Kit according to the **Vibe Coding 2026** standard.
|
|
4
|
+
|
|
5
|
+
## 🌐 Localization
|
|
6
|
+
|
|
7
|
+
All workflow descriptions below will automatically change according to your `lang` setting.
|
|
8
|
+
- To change language to Vietnamese: `ak memory set-lang --value vi`
|
|
9
|
+
- After that, when you type `/` in chat, suggestions will be displayed in Vietnamese.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## 🛠️ Workflow List & Use Cases
|
|
14
|
+
|
|
15
|
+
### 1. Planning Group
|
|
16
|
+
Used to shape the project before implementation.
|
|
17
|
+
|
|
18
|
+
| Command | Use Case | Main Action |
|
|
19
|
+
|:---|:---|:---|
|
|
20
|
+
| `/spec` | For complex new features | Create `SPEC-*.md` (Requirements Specification) |
|
|
21
|
+
| `/plan` | After Spec or for large tasks | Create `PLAN-*.md` (Implementation Plan) |
|
|
22
|
+
| `/brainstorm` | When needing ideas or solutions | Provide multiple options with pros/cons |
|
|
23
|
+
| `/context` | When context is too large/cluttered | Optimize file list for AI focus |
|
|
24
|
+
|
|
25
|
+
### 2. Execution Group
|
|
26
|
+
Used to write and update code.
|
|
27
|
+
|
|
28
|
+
| Command | Use Case | Main Action |
|
|
29
|
+
|:---|:---|:---|
|
|
30
|
+
| `/create` | Start new project/module | Write code following TDD (Red-Green-Refactor) |
|
|
31
|
+
| `/enhance` | Update, add small features | Safely modify existing code |
|
|
32
|
+
| `/orchestrate`| Extremely difficult, multi-layered tasks | Mobilize >3 specialized Agents in parallel |
|
|
33
|
+
| `/ui-ux-pro-max`| Focused on UI/UX | Apply 50+ modern styles (Glassmorphism, etc.) |
|
|
34
|
+
|
|
35
|
+
### 3. Quality & Debug Group
|
|
36
|
+
Used to maintain code quality.
|
|
37
|
+
|
|
38
|
+
| Command | Use Case | Main Action |
|
|
39
|
+
|:---|:---|:---|
|
|
40
|
+
| `/debug` | For bugs or strange behavior | Analyze Root Cause and propose fix/prevention |
|
|
41
|
+
| `/test` | When testing is needed | Create unit/integration tests or run coverage |
|
|
42
|
+
| `/autofix` | Terminal command failure | Analyze error and attempt fix (max 3 tries) |
|
|
43
|
+
| `/quality` | When AI becomes "verbose" | Optimize context and instructions for accuracy |
|
|
44
|
+
|
|
45
|
+
### 4. Ops & Status Group
|
|
46
|
+
Used to manage progress and deployment.
|
|
47
|
+
|
|
48
|
+
| Command | Use Case | Main Action |
|
|
49
|
+
|:---|:---|:---|
|
|
50
|
+
| `/status` | Check progress | Show task status dashboard and Agent trust |
|
|
51
|
+
| `/dashboard` | Visual interface | Open project dashboard (if supported) |
|
|
52
|
+
| `/deploy` | Push code to production | Run Pre-deploy checklist and execute deploy |
|
|
53
|
+
| `/next` | When "stuck" | Suggest next step based on Plan and AGENTS.md |
|
|
54
|
+
|
|
55
|
+
### 5. Specialty Group
|
|
56
|
+
Used for specific types of projects.
|
|
57
|
+
|
|
58
|
+
| Command | Use Case | Main Action |
|
|
59
|
+
|:---|:---|:---|
|
|
60
|
+
| `/gamekit-*` | Game Development | 6 specialized workflows for Game Development |
|
|
61
|
+
| `/saas` | Build SaaS product | Landing page, Stripe, Subscription |
|
|
62
|
+
| `/marketing` | Growth planning | Copywriting, Funnel, Campaign |
|
|
63
|
+
| `/pentest` | Security check | Scan vulnerabilities, check secret leaks |
|
|
64
|
+
| `/ai-agent` | Build AI Agent | Design automated Agent systems |
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## 🔄 Persistence: Memory Storage
|
|
69
|
+
|
|
70
|
+
**Question:** *Will Memory be overwritten during init or Kit update?*
|
|
71
|
+
|
|
72
|
+
**Answer:** **NO.**
|
|
73
|
+
|
|
74
|
+
Your data is absolutely protected by:
|
|
75
|
+
1. **Existence Check**: The constructor in `memory_manager.py` always checks `if not path.exists()`. It only creates default files if you don't have them.
|
|
76
|
+
2. **Safe Update**: When upgrading Agent Kit, the system only updates "skills" and "workflows". Data in `.agent/memory/` belongs to the project.
|
|
77
|
+
3. **Goal**: Ensure your "Decision Memory" is always inherited across sessions.
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## 💻 CLI Commands
|
|
82
|
+
|
|
83
|
+
| Command | Description |
|
|
84
|
+
|:---|:---|
|
|
85
|
+
| `ak init` | Initialize AI Infrastructure for the project |
|
|
86
|
+
| `ak status` | View AI Infra status |
|
|
87
|
+
| `ak sync` | Sync graph.json and RAG chunks |
|
|
88
|
+
| `ak workflows` | Show available workflows guide |
|
|
89
|
+
| `ak memory get --type brain` | View project "brain" |
|
|
90
|
+
| `ak memory log-decision` | Record rationale for a technical decision |
|
|
91
|
+
| `ak memory set-lang --value en` | Change system language |
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## 🚀 Quick Start
|
|
96
|
+
|
|
97
|
+
1. **Install**: `npm install @musashishao/agent-kit`
|
|
98
|
+
2. **Initialize**: `ak init`
|
|
99
|
+
3. **View guide**: `ak workflows`
|
|
100
|
+
4. **Start**: Type `/spec` in AI chat to define your first feature!
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# Agent Kit Workflow Guide
|
|
2
|
+
|
|
3
|
+
Hướng dẫn này chi tiết về cách sử dụng các workflow trong Agent Kit theo tiêu chuẩn **Vibe Coding 2026**.
|
|
4
|
+
|
|
5
|
+
## 🌐 Đa ngôn ngữ (Localization)
|
|
6
|
+
|
|
7
|
+
Tất cả các mô tả workflow bên dưới sẽ tự động thay đổi theo cài đặt `lang` của bạn.
|
|
8
|
+
- Để đổi ngôn ngữ sang tiếng Việt: `ak memory set-lang --value vi`
|
|
9
|
+
- Khi đó, khi bạn gõ `/` trong chat, các gợi ý sẽ hiển thị bằng tiếng Việt.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## 🛠️ Danh sách Workflow & Trường hợp sử dụng
|
|
14
|
+
|
|
15
|
+
### 1. Nhóm Lập kế hoạch (Planning)
|
|
16
|
+
Dùng để định hình dự án trước khi thực hiện.
|
|
17
|
+
|
|
18
|
+
| Lệnh | Trường hợp sử dụng | Hành động chính |
|
|
19
|
+
|:---|:---|:---|
|
|
20
|
+
| `/spec` | Khi có tính năng mới phức tạp | Tạo file `SPEC-*.md` (Đặc tả yêu cầu) |
|
|
21
|
+
| `/plan` | Sau khi có Spec hoặc cho task lớn | Tạo file `PLAN-*.md` (Kế hoạch thực hiện) |
|
|
22
|
+
| `/brainstorm` | Khi cần ý tưởng hoặc giải pháp | Đưa ra nhiều option kèm ưu/nhược điểm |
|
|
23
|
+
| `/context` | Khi context quá lớn/rối | Tối ưu hóa file list để AI tập trung hơn |
|
|
24
|
+
|
|
25
|
+
### 2. Nhóm Thực thi (Execution)
|
|
26
|
+
Dùng để viết và cập nhật code.
|
|
27
|
+
|
|
28
|
+
| Lệnh | Trường hợp sử dụng | Hành động chính |
|
|
29
|
+
|:---|:---|:---|
|
|
30
|
+
| `/create` | Bắt đầu dự án/module mới | Viết code theo chuẩn TDD (Red-Green-Refactor) |
|
|
31
|
+
| `/enhance` | Cập nhật, thêm tính năng nhỏ | Chỉnh sửa code hiện có một cách an toàn |
|
|
32
|
+
| `/orchestrate`| Task cực khó, đa tầng | Huy động >3 Agent chuyên biệt làm việc song song |
|
|
33
|
+
| `/ui-ux-pro-max`| Chuyên về giao diện (UI/UX) | Áp dụng 50+ styles hiện đại (Glassmorphism, v.v.) |
|
|
34
|
+
|
|
35
|
+
### 3. Nhóm Kiểm soát lỗi (Quality & Debug)
|
|
36
|
+
Dùng để duy trì chất lượng code.
|
|
37
|
+
|
|
38
|
+
| Lệnh | Trường hợp sử dụng | Hành động chính |
|
|
39
|
+
|:---|:---|:---|
|
|
40
|
+
| `/debug` | Khi có lỗi hoặc hành vi lạ | Phân tích Root Cause và đề xuất cách sửa/phòng ngừa |
|
|
41
|
+
| `/test` | Khi cần kiểm thử | Tạo unit test, integration test hoặc chạy coverage |
|
|
42
|
+
| `/autofix` | Lệnh terminal bị lỗi | Tự động phân tích lỗi và thử sửa (max 3 lần) |
|
|
43
|
+
| `/quality` | Khi AI bắt đầu "lan man" | Tối ưu lại context và chỉ dẫn để tăng độ chính xác |
|
|
44
|
+
|
|
45
|
+
### 4. Nhóm Vận hành (Ops & Status)
|
|
46
|
+
Dùng để quản lý tiến độ và triển khai.
|
|
47
|
+
|
|
48
|
+
| Lệnh | Trường hợp sử dụng | Hành động chính |
|
|
49
|
+
|:---|:---|:---|
|
|
50
|
+
| `/status` | Muốn biết mình đang ở đâu | Hiện Dashboard trạng thái task và độ tin cậy Agent |
|
|
51
|
+
| `/dashboard` | Giao diện trực quan | Mở Dashboard dự án (nếu hỗ trợ) |
|
|
52
|
+
| `/deploy` | Đưa code lên production | Chạy Pre-deploy checklist và thực thi lệnh deploy |
|
|
53
|
+
| `/next` | Khi bị "kẹt" | Gợi ý bước đi tiếp theo dựa trên Plan và AGENTS.md |
|
|
54
|
+
|
|
55
|
+
### 5. Nhóm Chuyên biệt (Specialty)
|
|
56
|
+
Dùng cho các loại dự án đặc thù.
|
|
57
|
+
|
|
58
|
+
| Lệnh | Trường hợp sử dụng | Hành động chính |
|
|
59
|
+
|:---|:---|:---|
|
|
60
|
+
| `/gamekit-*` | Phát triển Game | 6 workflows chuyên dụng cho Game Development |
|
|
61
|
+
| `/saas` | Xây dựng sản phẩm SaaS | Landing page, Stripe, Subscription |
|
|
62
|
+
| `/marketing` | Lập kế hoạch tăng trưởng | Copywriting, Funnel, Campaign |
|
|
63
|
+
| `/pentest` | Kiểm tra bảo mật | Quét lỗ hổng, kiểm tra rò rỉ secret |
|
|
64
|
+
| `/ai-agent` | Xây dựng AI Agent | Thiết kế hệ thống Agent tự động |
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## 🔄 Persistence: Lưu trữ Memory
|
|
69
|
+
|
|
70
|
+
**Câu hỏi:** *Memory có bị ghi đè khi init hoặc update Kit không?*
|
|
71
|
+
|
|
72
|
+
**Trả lời:** **KHÔNG.**
|
|
73
|
+
|
|
74
|
+
Dữ liệu của bạn được bảo vệ tuyệt đối nhờ các cơ chế sau:
|
|
75
|
+
1. **Kiểm tra tồn tại**: Hàm khởi tạo trong `memory_manager.py` luôn kiểm tra `if not path.exists()`. Nó chỉ tạo file mặc định nếu bạn chưa có.
|
|
76
|
+
2. **Cập nhật an toàn**: Khi bạn nâng cấp Agent Kit, hệ thống chỉ cập nhật phần "kỹ năng" (skills) và "quy trình" (workflows). Dữ liệu trong thư mục `.agent/memory/` là của riêng dự án.
|
|
77
|
+
3. **Mục tiêu**: Đảm bảo "Decision Memory" (Lịch sử quyết định) của bạn luôn được kế thừa qua các phiên làm việc.
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## 💻 Lệnh CLI Hỗ trợ
|
|
82
|
+
|
|
83
|
+
| Lệnh | Mô tả |
|
|
84
|
+
|:---|:---|
|
|
85
|
+
| `ak init` | Khởi tạo AI Infrastructure cho dự án |
|
|
86
|
+
| `ak status` | Xem trạng thái AI Infra |
|
|
87
|
+
| `ak sync` | Đồng bộ graph.json và RAG chunks |
|
|
88
|
+
| `ak workflows` | Hiển thị danh sách workflows có sẵn |
|
|
89
|
+
| `ak memory get --type brain` | Xem "bộ não" của dự án |
|
|
90
|
+
| `ak memory log-decision` | Ghi lại lý do cho một quyết định kỹ thuật |
|
|
91
|
+
| `ak memory set-lang --value vi` | Đổi ngôn ngữ toàn hệ thống |
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## 🚀 Quick Start
|
|
96
|
+
|
|
97
|
+
1. **Cài đặt**: `npm install @musashishao/agent-kit`
|
|
98
|
+
2. **Khởi tạo**: `ak init`
|
|
99
|
+
3. **Xem hướng dẫn**: `ak workflows`
|
|
100
|
+
4. **Bắt đầu**: Gõ `/spec` trong AI chat để định nghĩa tính năng đầu tiên!
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Build AI agent workflow. From system design to autonomous execution loops.
|
|
3
|
+
description_en: Build AI agent workflow. From system design to autonomous execution loops.
|
|
4
|
+
description_vi: Xây dựng workflow cho AI Agent. Từ thiết kế hệ thống đến các vòng lặp thực thi tự trị.
|
|
3
5
|
---
|
|
4
6
|
|
|
5
7
|
# 🤖 /ai-agent - AI Agent Builder Workflow
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Structured brainstorming for projects and features. Explore multiple options before implementation.
|
|
3
3
|
description_vi: Brainstorming có cấu trúc cho dự án và tính năng. Khám phá nhiều phương án trước khi triển khai.
|
|
4
|
+
description_en: Structured brainstorming for projects and features. Explore multiple options before implementation.
|
|
4
5
|
---
|
|
5
6
|
|
|
6
7
|
# /brainstorm - Structured Idea Exploration
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Automatically generate optimal context for complex tasks using Context Engineering strategies.
|
|
3
3
|
description_vi: Tự động tạo ngữ cảnh tối ưu cho các tác vụ phức tạp bằng chiến lược Context Engineering.
|
|
4
|
+
description_en: Automatically generate optimal context for complex tasks using Context Engineering strategies.
|
|
4
5
|
---
|
|
5
6
|
|
|
6
7
|
# Context Optimization Workflow
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Command to create a new application. Activates the App Builder skill and initiates user dialogue.
|
|
3
3
|
description_vi: Tạo ứng dụng mới với kiến trúc AI-Ready. Kích hoạt kỹ năng App Builder và bắt đầu đối thoại với người dùng.
|
|
4
|
+
description_en: Command to create a new application. Activates the App Builder skill and initiates user dialogue.
|
|
4
5
|
---
|
|
5
6
|
|
|
6
7
|
# /create - Create Application
|
|
@@ -15,15 +16,29 @@ This command starts a new application creation process with **AI-Ready Infrastru
|
|
|
15
16
|
|
|
16
17
|
### Steps:
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
## 💾 Git Checkpoint (Safety First)
|
|
20
|
+
|
|
21
|
+
Before starting work:
|
|
22
|
+
1. [ ] **Clean working tree?** (Run `git status`)
|
|
23
|
+
2. [ ] **On correct branch?** (Not `main` or `master`)
|
|
24
|
+
3. [ ] **Latest pulled?** (Run `git pull`)
|
|
25
|
+
|
|
26
|
+
> 🔴 **STOP** if git state is dirty. Ask user to commit or stash first.
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
### Steps:
|
|
31
|
+
|
|
32
|
+
1. **Phase 0: VIBES Pre-Flight** ⭐ NEW:
|
|
33
|
+
- **Verification**: Run `ak memory set --key last_verification --value "[CMD]"` with the command that proves success.
|
|
34
|
+
- **Intent**: Use `@[skills/intent-capture]` to extract explicit/implicit needs and anti-goals.
|
|
35
|
+
- **Bifurcation**: Use `@[skills/bifurcation-analysis]` to map technical vs architectural branches.
|
|
36
|
+
- **Emergence**: Set scope boundaries to prevent creep.
|
|
37
|
+
- **Safety**: Verify code rules compliance.
|
|
38
|
+
|
|
39
|
+
2. **Phase 1: Quality Gate** ⭐
|
|
19
40
|
- **SDD Check**: Ensure `SPEC-*.md` exists and is marked as `Approved` for complex features (3+ files).
|
|
20
41
|
- **SDD Check**: Ensure `PLAN-*.md` exists and aligns with the Spec.
|
|
21
|
-
- **TDD Red-Phase Check** ⭐ NEW:
|
|
22
|
-
1. Generate at least 1 failing test based on the approved Spec (e.g., `tests/[feature].test.ts`).
|
|
23
|
-
2. Run the test: `npm test` or equivalent.
|
|
24
|
-
3. Verify the test **FAILS** (exit code != 0).
|
|
25
|
-
4. **If test passes or doesn't exist**: **HALT** and notify user. The test must fail first (RED phase) to ensure the Spec is correctly understood.
|
|
26
|
-
- **Action**: If missing, REDIRECT to `/spec`, `/plan`, or `/test red [feature]` before proceeding.
|
|
27
42
|
|
|
28
43
|
2. **Request Analysis**
|
|
29
44
|
- Understand what the user wants
|
|
@@ -124,7 +139,23 @@ If request is unclear, ask these questions:
|
|
|
124
139
|
- What are the basic features?
|
|
125
140
|
- Who will use it?
|
|
126
141
|
|
|
127
|
-
|
|
142
|
+
> 🔴 **NEVER assume. Wait for user answers before proceeding.**
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
## 📝 Decision Logging (MANDATORY)
|
|
147
|
+
|
|
148
|
+
After EVERY clarifying question is answered, log to `.agent/memory/decisions.md`:
|
|
149
|
+
|
|
150
|
+
```markdown
|
|
151
|
+
## Session: [YYYY-MM-DD HH:MM]
|
|
152
|
+
|
|
153
|
+
### Q: [Question asked]
|
|
154
|
+
**A:** [User's answer]
|
|
155
|
+
**Impact:** [How this affects implementation]
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
> ⚠️ If `decisions.md` doesn't exist, create it first.
|
|
128
159
|
|
|
129
160
|
---
|
|
130
161
|
|