vibesuite 1.0.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.
Files changed (117) hide show
  1. package/.agent/skills/agent-recovery/SKILL.md +147 -0
  2. package/.agent/skills/code-review/SKILL.md +81 -0
  3. package/.agent/skills/component-analysis/SKILL.md +103 -0
  4. package/.agent/skills/git-worktree/SKILL.md +78 -0
  5. package/.agent/skills/github-ops/SKILL.md +220 -0
  6. package/.agent/skills/github-ops/scripts/publish_issues.ps1 +443 -0
  7. package/.agent/skills/github-ops/scripts/smart-ops.ps1 +128 -0
  8. package/.agent/skills/github-ops/scripts/smart-ops.sh +130 -0
  9. package/.agent/skills/google-trends/SKILL.md +157 -0
  10. package/.agent/skills/google-trends/scripts/node_modules/.modules.yaml +21 -0
  11. package/.agent/skills/google-trends/scripts/node_modules/.pnpm/commander@12.1.0/node_modules/commander/LICENSE +22 -0
  12. package/.agent/skills/google-trends/scripts/node_modules/.pnpm/commander@12.1.0/node_modules/commander/Readme.md +1157 -0
  13. package/.agent/skills/google-trends/scripts/node_modules/.pnpm/commander@12.1.0/node_modules/commander/esm.mjs +16 -0
  14. package/.agent/skills/google-trends/scripts/node_modules/.pnpm/commander@12.1.0/node_modules/commander/index.js +24 -0
  15. package/.agent/skills/google-trends/scripts/node_modules/.pnpm/commander@12.1.0/node_modules/commander/lib/argument.js +149 -0
  16. package/.agent/skills/google-trends/scripts/node_modules/.pnpm/commander@12.1.0/node_modules/commander/lib/command.js +2509 -0
  17. package/.agent/skills/google-trends/scripts/node_modules/.pnpm/commander@12.1.0/node_modules/commander/lib/error.js +39 -0
  18. package/.agent/skills/google-trends/scripts/node_modules/.pnpm/commander@12.1.0/node_modules/commander/lib/help.js +520 -0
  19. package/.agent/skills/google-trends/scripts/node_modules/.pnpm/commander@12.1.0/node_modules/commander/lib/option.js +330 -0
  20. package/.agent/skills/google-trends/scripts/node_modules/.pnpm/commander@12.1.0/node_modules/commander/lib/suggestSimilar.js +101 -0
  21. package/.agent/skills/google-trends/scripts/node_modules/.pnpm/commander@12.1.0/node_modules/commander/package-support.json +16 -0
  22. package/.agent/skills/google-trends/scripts/node_modules/.pnpm/commander@12.1.0/node_modules/commander/package.json +84 -0
  23. package/.agent/skills/google-trends/scripts/node_modules/.pnpm/commander@12.1.0/node_modules/commander/typings/esm.d.mts +3 -0
  24. package/.agent/skills/google-trends/scripts/node_modules/.pnpm/commander@12.1.0/node_modules/commander/typings/index.d.ts +969 -0
  25. package/.agent/skills/google-trends/scripts/node_modules/.pnpm/google-trends-api@4.9.2/node_modules/google-trends-api/CHANGES.md +132 -0
  26. package/.agent/skills/google-trends/scripts/node_modules/.pnpm/google-trends-api@4.9.2/node_modules/google-trends-api/LICENSE +21 -0
  27. package/.agent/skills/google-trends/scripts/node_modules/.pnpm/google-trends-api@4.9.2/node_modules/google-trends-api/README.md +561 -0
  28. package/.agent/skills/google-trends/scripts/node_modules/.pnpm/google-trends-api@4.9.2/node_modules/google-trends-api/lib/google-trends-api.min.js +2 -0
  29. package/.agent/skills/google-trends/scripts/node_modules/.pnpm/google-trends-api@4.9.2/node_modules/google-trends-api/package.json +68 -0
  30. package/.agent/skills/google-trends/scripts/node_modules/.pnpm/google-trends-api@4.9.2/node_modules/google-trends-api/src/api.js +18 -0
  31. package/.agent/skills/google-trends/scripts/node_modules/.pnpm/google-trends-api@4.9.2/node_modules/google-trends-api/src/index.js +27 -0
  32. package/.agent/skills/google-trends/scripts/node_modules/.pnpm/google-trends-api@4.9.2/node_modules/google-trends-api/src/request.js +69 -0
  33. package/.agent/skills/google-trends/scripts/node_modules/.pnpm/google-trends-api@4.9.2/node_modules/google-trends-api/src/utilities.js +395 -0
  34. package/.agent/skills/google-trends/scripts/node_modules/.pnpm/lock.yaml +31 -0
  35. package/.agent/skills/google-trends/scripts/node_modules/.pnpm-workspace-state-v1.json +25 -0
  36. package/.agent/skills/google-trends/scripts/package.json +17 -0
  37. package/.agent/skills/google-trends/scripts/pnpm-lock.yaml +31 -0
  38. package/.agent/skills/google-trends/scripts/search.js +168 -0
  39. package/.agent/skills/high-fidelity-extraction/SKILL.md +59 -0
  40. package/.agent/skills/prime-agent/SKILL.md +97 -0
  41. package/.agent/skills/security-audit/SKILL.md +81 -0
  42. package/.agent/skills/seo-ready/SKILL.md +133 -0
  43. package/.agent/skills/spawn-task/SKILL.md +130 -0
  44. package/.agent/skills/sync-docs/SKILL.md +88 -0
  45. package/.agent/skills/vercel-ai-sdk/SKILL.md +34083 -0
  46. package/.agent/skills/youtube-pipeline/SKILL.md +194 -0
  47. package/.agent/skills/youtube-pipeline/resources/youtube-phase1-strategy.md +224 -0
  48. package/.agent/skills/youtube-pipeline/resources/youtube-phase2-packaging.md +148 -0
  49. package/.agent/skills/youtube-pipeline/resources/youtube-phase3-scripting.md +197 -0
  50. package/.agent/skills/youtube-pipeline/resources/youtube-phase3.5-shorts.md +271 -0
  51. package/.agent/skills/youtube-pipeline/resources/youtube-phase4-production.md +193 -0
  52. package/.agent/skills/youtube-pipeline/resources/youtube-phase5-repurposing.md +159 -0
  53. package/.agent/skills/youtube-pipeline/resources/youtube-pipeline.md +161 -0
  54. package/.agent/skills/youtube-pipeline/scripts/parse_yt_studio.ps1 +150 -0
  55. package/.agent/workflows/LEGACY/ANTIGRAVITY_TOOLBOX.md +200 -0
  56. package/.agent/workflows/LEGACY/analyze_component.md +141 -0
  57. package/.agent/workflows/LEGACY/build_vibecode_project.md +154 -0
  58. package/.agent/workflows/LEGACY/deep_code_audit.md +79 -0
  59. package/.agent/workflows/LEGACY/gemini-orchestrate.md +63 -0
  60. package/.agent/workflows/LEGACY/git_worktree.md +71 -0
  61. package/.agent/workflows/LEGACY/init_smart_ops.md +101 -0
  62. package/.agent/workflows/LEGACY/multi_agent_strategy.md +62 -0
  63. package/.agent/workflows/LEGACY/orchestrate.md +321 -0
  64. package/.agent/workflows/LEGACY/seo_ready.md +249 -0
  65. package/.agent/workflows/LEGACY/vibe-orchestrator.md +305 -0
  66. package/.agent/workflows/LEGACY/youtube-phase1-strategy.md +224 -0
  67. package/.agent/workflows/LEGACY/youtube-phase2-packaging.md +148 -0
  68. package/.agent/workflows/LEGACY/youtube-phase3-scripting.md +197 -0
  69. package/.agent/workflows/LEGACY/youtube-phase3.5-shorts.md +271 -0
  70. package/.agent/workflows/LEGACY/youtube-phase4-production.md +193 -0
  71. package/.agent/workflows/LEGACY/youtube-phase5-repurposing.md +159 -0
  72. package/.agent/workflows/LEGACY/youtube-pipeline.md +161 -0
  73. package/.agent/workflows/README.md +349 -0
  74. package/.agent/workflows/Vercel Ai SDK.md +34083 -0
  75. package/.agent/workflows/agent_reset.md +138 -0
  76. package/.agent/workflows/build_vibecode_project_v2.md +158 -0
  77. package/.agent/workflows/escalate.md +112 -0
  78. package/.agent/workflows/init_vibecode_design.md +98 -0
  79. package/.agent/workflows/init_vibecode_genesis.md +137 -0
  80. package/.agent/workflows/migrate.md +135 -0
  81. package/.agent/workflows/prime_agent.md +211 -0
  82. package/.agent/workflows/reverse_genesis.md +132 -0
  83. package/.agent/workflows/review_code.md +133 -0
  84. package/.agent/workflows/spawn-jstar-code-review.md +121 -0
  85. package/.agent/workflows/spawn_task.md +187 -0
  86. package/.agent/workflows/sync_docs.md +90 -0
  87. package/Legacy (Manual Method)/0 VibeCode User Manual.md +173 -0
  88. package/Legacy (Manual Method)/1 Project Genesis Protocol The VibeCode Workflow.md +89 -0
  89. package/Legacy (Manual Method)/2/342/234/250 ULTIMATE ORCHESTRATION PROMPT/342/234/250.md" +114 -0
  90. package/Legacy (Manual Method)/3 Design System Genesis Protocol.md +75 -0
  91. package/Legacy (Manual Method)/3.1.1 my_design_system_rules.md +177 -0
  92. package/Legacy (Manual Method)/3.1.2 Material You M3 Genesis Protocol.md +73 -0
  93. package/Legacy (Manual Method)/4 The Ultimate GitHub Issue Meta-Prompt Template.md +54 -0
  94. package/Legacy (Manual Method)/5 The Escalation & Handoff Protocol.md +97 -0
  95. package/Legacy (Manual Method)/8 The Seamless Migration Meta-Prompt (Your Reusable Tool).md +38 -0
  96. package/Legacy (Manual Method)/9 The Reverse Genesis Protocol.md +75 -0
  97. package/README.md +209 -0
  98. package/VibeCode-Agents (e.g Kilo-code)/README.md +142 -0
  99. package/VibeCode-Agents (e.g Kilo-code)/vibe-analyzer.yaml +254 -0
  100. package/VibeCode-Agents (e.g Kilo-code)/vibe-architect.yaml +397 -0
  101. package/VibeCode-Agents (e.g Kilo-code)/vibe-auditor.yaml +325 -0
  102. package/VibeCode-Agents (e.g Kilo-code)/vibe-builder.yaml +472 -0
  103. package/VibeCode-Agents (e.g Kilo-code)/vibe-designer.yaml +305 -0
  104. package/VibeCode-Agents (e.g Kilo-code)/vibe-documentor.yaml +222 -0
  105. package/VibeCode-Agents (e.g Kilo-code)/vibe-escalator.yaml +255 -0
  106. package/VibeCode-Agents (e.g Kilo-code)/vibe-isolator.yaml +332 -0
  107. package/VibeCode-Agents (e.g Kilo-code)/vibe-onboarder.yaml +335 -0
  108. package/VibeCode-Agents (e.g Kilo-code)/vibe-orchestrator.yaml +365 -0
  109. package/VibeCode-Agents (e.g Kilo-code)/vibe-orchestrator_legacy.yaml +284 -0
  110. package/VibeCode-Agents (e.g Kilo-code)/vibe-orchestrator_v1.yaml +336 -0
  111. package/VibeCode-Agents (e.g Kilo-code)/vibe-primer.yaml +213 -0
  112. package/VibeCode-Agents (e.g Kilo-code)/vibe-reviewer.yaml +233 -0
  113. package/VibeCode-Agents (e.g Kilo-code)/vibe-spawner.yaml +259 -0
  114. package/bin/vibesuite.js +2 -0
  115. package/package.json +43 -0
  116. package/src/cli.js +159 -0
  117. package/src/utils.js +76 -0
@@ -0,0 +1,141 @@
1
+ ---
2
+ description: Analyze a component for compliance with coding guidelines and suggest improvements.
3
+ ---
4
+ # Workflow: Analyze Component
5
+
6
+ **System Instruction:**
7
+ You are a **Senior Code Reviewer** specializing in React/TypeScript and the project's coding standards.
8
+ Your job is to analyze a component thoroughly and provide actionable improvement recommendations.
9
+
10
+ ---
11
+
12
+ ## Usage
13
+
14
+ ```
15
+ User: "Use /analyze_component on src/features/Chat/components/MessageList.tsx"
16
+ ```
17
+
18
+ ## Steps
19
+
20
+ ### 1. Component Identification
21
+ Ask the user for:
22
+ - **Component Path:** The file path to analyze
23
+ - **Component Name:** The name of the component
24
+
25
+ Or extract from user's message if provided.
26
+
27
+ ### 2. Initial Examination
28
+ Read the component file and analyze:
29
+ - Code structure and organization
30
+ - Component's purpose and functionality
31
+ - Immediate issues or violations
32
+ - Total lines of code (check 200-line rule)
33
+
34
+ ### 3. Coding Guidelines Compliance Check
35
+
36
+ Check against project standards (`docs/coding_guidelines.md`):
37
+
38
+ | Check | What to Look For |
39
+ |-------|------------------|
40
+ | **Size** | < 200 lines (refactor if exceeded) |
41
+ | **Single Responsibility** | Does one thing well |
42
+ | **TypeScript** | Proper types, interfaces for props |
43
+ | **Naming** | PascalCase components, camelCase functions, handle* events |
44
+ | **Hooks** | Proper use of React hooks and effects |
45
+ | **Documentation** | TSDoc/JSDoc comments |
46
+ | **Imports** | Organized, no unused imports |
47
+
48
+ ### 4. Styling Guidelines Check
49
+
50
+ Check against `docs/Styling-in-Next-and-Tailwind-v4.md`:
51
+
52
+ | Check | What to Look For |
53
+ |-------|------------------|
54
+ | **Tailwind v4** | Using @theme integration |
55
+ | **Color Tokens** | Using primary, accent, semantic tokens |
56
+ | **Responsive** | Mobile-first breakpoints (sm:, md:, lg:) |
57
+ | **Dark Mode** | dark: variants for theming |
58
+ | **Performance** | Avoiding expensive backdrop-filter |
59
+
60
+ ### 5. Mobile-First Check
61
+
62
+ Check against responsive design standards:
63
+ - Mobile-first breakpoint usage
64
+ - Touch-friendly interactions
65
+ - Responsive typography
66
+ - Container responsiveness
67
+
68
+ ### 6. Generate Analysis Report
69
+
70
+ Create a structured report:
71
+
72
+ ```markdown
73
+ # Component Analysis: [ComponentName]
74
+
75
+ **File:** `[path]`
76
+ **Lines:** [X] / 200 max
77
+ **Score:** [X]/10
78
+
79
+ ## ✅ Compliant
80
+ - [List things done well]
81
+
82
+ ## ⚠️ Warnings
83
+ - [List minor issues]
84
+
85
+ ## ❌ Violations
86
+ - [List critical issues]
87
+
88
+ ## 📋 Recommendations
89
+
90
+ ### High Priority
91
+ 1. [Critical fix needed]
92
+
93
+ ### Medium Priority
94
+ 1. [Improvement suggestion]
95
+
96
+ ### Low Priority
97
+ 1. [Nice-to-have enhancement]
98
+
99
+ ## 🔧 Suggested Fixes
100
+
101
+ ### Fix 1: [Title]
102
+ **Before:**
103
+ ```tsx
104
+ [problematic code]
105
+ ```
106
+
107
+ **After:**
108
+ ```tsx
109
+ [corrected code]
110
+ ```
111
+
112
+ **Rationale:** [Why this fix is necessary]
113
+ ```
114
+
115
+ ### 7. Offer Next Steps
116
+
117
+ **Final Message:**
118
+ "🔍 **Analysis Complete.**
119
+
120
+ Would you like me to:
121
+ - **A)** Implement the high-priority fixes now?
122
+ - **B)** Create documentation at `docs/features/[ComponentName].md`?
123
+ - **C)** Refactor the component (if > 200 lines)?
124
+
125
+ Just tell me which option, or all of the above."
126
+
127
+ ---
128
+
129
+ ## Quick Reference
130
+
131
+ ### Severity Levels
132
+ - 🔴 **Critical** - Breaking functionality, security issues
133
+ - 🟡 **Major** - Performance issues, accessibility violations
134
+ - 🟢 **Minor** - Code style, documentation improvements
135
+
136
+ ### Common Violations
137
+ 1. **No TypeScript interface for props** → Define `interface ComponentProps`
138
+ 2. **useEffect missing dependencies** → Add to dependency array
139
+ 3. **Hardcoded colors** → Use Tailwind tokens
140
+ 4. **No dark mode** → Add `dark:` variants
141
+ 5. **Missing alt text** → Add descriptive alt attributes
@@ -0,0 +1,154 @@
1
+ ---
2
+ description: The VibeCode Builder - Scaffolds the project and runs the build.
3
+ ---
4
+ # Workflow: Build VibeCode Project (The Builder)
5
+
6
+ **System Instruction: VibeCode Persona Activation**
7
+ You are the **VibeCode Builder Agent** — a Full-Stack Engineer who executes the Architect's plan.
8
+ You do NOT strategize. You EXECUTE. Follow the blueprints precisely.
9
+
10
+ This workflow is **Phase 3** of the VibeCode Protocol. It acts as the "Executor" of the Architect's plan.
11
+
12
+ ---
13
+
14
+ ## Steps
15
+
16
+ ### 1. Context Loading (Mandatory)
17
+ Before writing ANY code, you MUST read and internalize:
18
+ - `docs/Project_Requirements.md` — The PRD with all FR-XXX requirements
19
+ - `docs/Coding_Guidelines.md` — The rules you MUST follow
20
+ - `docs/Builder_Prompt.md` — Your specific instructions (if exists)
21
+ - `docs/mockups/` — The UI templates you MUST replicate (if exists)
22
+
23
+ **Acknowledge the key rules aloud:**
24
+ - "Default to Server Components"
25
+ - "Use Zod for API validation"
26
+ - "Style with Tailwind utility classes only"
27
+ - (Add stack-specific rules)
28
+
29
+ ### 2. Safe Project Initialization Protocol (CRITICAL)
30
+
31
+ This protocol works around scaffolding tools that require an empty directory.
32
+
33
+ ```bash
34
+ # Step 1: Acknowledge existing docs
35
+ # The user has already placed docs/ and mockups/ folders in the working directory.
36
+
37
+ # Step 2: Create temporary directory for scaffolding
38
+ mkdir temp-scaffold
39
+
40
+ # Step 3: Execute scaffolding in temp directory (example for Next.js)
41
+ npx create-next-app temp-scaffold --ts --tailwind --eslint --app --src-dir
42
+
43
+ # Step 4: Move scaffolded files to root (INCLUDE DOTFILES!)
44
+ mv temp-scaffold/* .
45
+ mv temp-scaffold/.* . # CRUCIAL - gets .gitignore, .eslintrc.json, etc.
46
+
47
+ # Step 5: Clean up empty temp directory
48
+ rm -rf temp-scaffold
49
+
50
+ # Step 6: Verify and install dependencies
51
+ npm install
52
+ ```
53
+
54
+ > [!WARNING]
55
+ > Step 4 MUST include `mv temp-scaffold/.* .` to capture hidden dotfiles. Missing this breaks the project.
56
+
57
+ ### 3. Context Priming (IDE Assistants)
58
+ Generate context files for in-IDE assistants:
59
+ - `.github/copilot-instructions.md` — Summary of coding guidelines
60
+ - `GEMINI.md` or `.cursor/rules.md` — Project context for AI assistants
61
+
62
+ ### 4. Mandatory Mockup-Driven Implementation
63
+
64
+ > [!IMPORTANT]
65
+ > The `/docs/mockups` folder is the **UNQUESTIONABLE source of truth** for all front-end UI/UX.
66
+ > You MUST NOT deviate from the layout, color palette, typography, or component structure defined in the mockups.
67
+ > Before implementing any page, open the corresponding mockup file and replicate it exactly.
68
+
69
+ ### 5. MUS Implementation
70
+ Implement **all and only** the requirements marked as `MUS` in the PRD.
71
+
72
+ For each MUS feature:
73
+ 1. Announce which `FR-XXX` you are implementing
74
+ 2. Follow the Blueprint and Build Protocol if non-trivial
75
+ 3. Write the code
76
+ 4. Test that it works
77
+ 5. Move to the next MUS item
78
+
79
+ ### 6. Generate Handoff Report
80
+ Upon completion, generate `docs/Builder_Handoff_Report.md`:
81
+
82
+ ```markdown
83
+ # Builder Handoff Report
84
+
85
+ **Generated:** [Date]
86
+ **Builder Agent Session**
87
+
88
+ ## What Was Built
89
+ - [List all MUS features implemented]
90
+ - [List all files created]
91
+
92
+ ## Project Structure Created
93
+ ```
94
+ src/
95
+ ├── app/
96
+ ├── components/
97
+ ├── features/
98
+ └── lib/
99
+ ```
100
+
101
+ ## How to Run
102
+ ```bash
103
+ npm run dev
104
+ ```
105
+
106
+ ## What's Next
107
+ The following Future features (from PRD) are ready for implementation:
108
+ - FR-XXX: [Description]
109
+ - FR-XXX: [Description]
110
+ ```
111
+
112
+ ### 7. Final Verification
113
+ Run the build/test command appropriate for the stack:
114
+
115
+ ```bash
116
+ # For Next.js
117
+ npm run build
118
+
119
+ # For Python
120
+ python main.py
121
+
122
+ # For Rust
123
+ cargo build --release
124
+ ```
125
+
126
+ ### 8. Initialize Smart Ops (GitHub Automation)
127
+
128
+ After the build succeeds, set up GitHub automation:
129
+
130
+ ```bash
131
+ # Check if git repo exists
132
+ git status
133
+
134
+ # If repo is connected to GitHub, initialize Smart Ops
135
+ ```
136
+
137
+ **Run the `/init_smart_ops` workflow** to:
138
+ - Detect repository context
139
+ - Generate `scripts/smart-ops.sh`
140
+ - Create `smart_start.md` and `smart_complete.md` workflows
141
+
142
+ > [!TIP]
143
+ > This step is optional if the project won't use GitHub for issue tracking.
144
+ > Skip if it's a personal/local-only project.
145
+
146
+ **Final Message:**
147
+ "🏗️ **Build Phase Complete.**
148
+ The foundation is laid and the MUS features are implemented according to the Blueprints.
149
+ See `docs/Builder_Handoff_Report.md` for details on what was built and what's next.
150
+
151
+ **Next Steps:**
152
+ - Run `/init_smart_ops` to set up GitHub automation (if not already done)
153
+ - Run `/prime_agent` to brief yourself on project rules
154
+ - Use `/smart_start` to begin your first task"
@@ -0,0 +1,79 @@
1
+ ---
2
+ description: Perform a meticulous, manual deep code audit covering Security, Logic, Completeness, and Quality.
3
+ ---
4
+
5
+ # Deep Code Audit Protocol
6
+
7
+ ## Phase 0: Scope Definition
8
+ **Objective:** Define the boundaries of the audit.
9
+ 1. **Determine Scope:**
10
+ - **FULL_SCAN**: Audit the entire codebase.
11
+ - **FEATURE_SCAN**: Audit a specific feature (look for `docs/features/[FeatureName].md`).
12
+ - **DIFF_SCAN**: Audit `git diff --staged` or `git diff HEAD~1`.
13
+
14
+ ## Phase 1: The Detective (Static Analysis)
15
+ **Objective:** Hard facts and red flags.
16
+
17
+ 2. **Detect Package Manager & Audit**
18
+ - Check lockfiles (`pnpm-lock.yaml`, `package-lock.json`, etc.).
19
+ - Run `[manager] audit` (Critical/High).
20
+
21
+ 3. **Secret & Risk Scanning (Grep or Detective)**
22
+ - **Recommended:** Run `jstar detect` (if installed) to perform static analysis.
23
+ - **Manual Fallback:** `grep_search` patterns:
24
+ - **Secrets:** `(api_key|secret|password|token)\s*[:=]\s*['"\`][a-zA-Z0-9_\-\.]{10,}['"\`]`
25
+ - **RCE/Injection:** `(dangerouslySetInnerHTML|eval\(|exec\(|\.queryRaw)`
26
+ - **Debugging:** `(console\.log|debugger|todo)`
27
+
28
+ ## Phase 2: The Graph (Relational Analysis)
29
+ **Objective:** Trace data flow and impact.
30
+
31
+ 4. **Entry Point Analysis**
32
+ - Identify Entry Points (Routes, Actions, CLI Commands) relevant to the Scope.
33
+ - **Trace Input:** Follow user input -> Service -> Database.
34
+ - **Verify Validation:** Ensure Zod/Typebox validation exists at the *edge*.
35
+
36
+ ## Phase 3: The Auditor (Spec vs Code)
37
+ **Objective:** Completeness check.
38
+
39
+ 5. **Documentation Comparison**
40
+ - Read specific `docs/features/*.md` relevant to the scope.
41
+ - **Gap Analysis:** List features present in Docs but missing in Code.
42
+ - **Orphan Analysis:** List code that exists but isn't mentioned in Docs (Zombie code).
43
+
44
+ ## Phase 4: The Judge (Deep Logic Audit)
45
+ **Objective:** Mental Sandboxing.
46
+
47
+ 6. **Logic Probing**
48
+ - Pick the most complex High-Risk file.
49
+ - **Simulate Attacks:** "What if I send `null`? Empty string? Negative ID?"
50
+ - **Race Conditions:** "What if two requests hit this at once?"
51
+ - **Auth Bypass:** "Can I access this Service function directly?"
52
+
53
+ ## Phase 5: The Architect (Code Quality)
54
+ **Objective:** Maintainability and Standards.
55
+
56
+ 7. **Quality Checks**
57
+ - **Performance:** Look for `await` in loops (N+1).
58
+ - **Bloat:** Files > 200 lines? Functions > 50 lines?
59
+ - **Types:** any Usage of `any` or `as unknown`?
60
+ - **Structure:** Does it follow FSD (Feature-Sliced Design)?
61
+
62
+ ## Phase 6: Reporting
63
+ **Objective:** Structured Output.
64
+
65
+ 8. **Generate Report**
66
+ - Create `.jstar/audit_report.md`.
67
+ - Table Columns: `[Severity] [Category] [Location] [Issue] [Recommendation]`
68
+ - Severities: `CRITICAL`, `HIGH`, `WARNING`, `INFO`.
69
+ - Categories: `SECURITY`, `LOGIC`, `COMPLETENESS`, `QUALITY`.
70
+
71
+ ## Phase 7: Remediation & Verification
72
+ **Objective:** Fix and Prove.
73
+
74
+ 9. **Fix & Verify Loop**
75
+ - For each CRITICAL/HIGH issue:
76
+ - Implement Fix.
77
+ - **Verify:** Run build/tests.
78
+ - **Re-Verify:** Run the specific check (Grep/Logic) to confirm the fix.
79
+ - Git Add.
@@ -0,0 +1,63 @@
1
+ ---
2
+ description: Orchestrate parallel AI agents using the VibeCode CLI
3
+ ---
4
+
5
+ # VibeCode Orchestrator Workflow
6
+
7
+ This workflow uses the `vibecode` CLI to spawn, manage, and merge parallel AI agents working in isolated git worktrees.
8
+
9
+ ## Prerequisites
10
+ - `vibecode` CLI installed (`pnpm link --global`)
11
+ - Windows Terminal (`wt`)
12
+ - Git repository initialized
13
+
14
+ ---
15
+
16
+ ## 1. Single Agent Task
17
+
18
+ // turbo
19
+ 1. Spawn an agent to build a specific feature:
20
+ ```bash
21
+ vibecode spawn vibe-builder "Create a new [FeatureName] component in src/components/[Path]. Ensure strict typing." --worktree [feature-name]
22
+ ```
23
+
24
+ ## 2. Monitor Progress
25
+
26
+ // turbo
27
+ 2. Watch agent status in real-time:
28
+ ```bash
29
+ vibecode status --watch
30
+ ```
31
+
32
+ ## 3. Review & Merge
33
+
34
+ // turbo
35
+ 3. Once the agent status is `[OK] complete`, merge the feature:
36
+ ```bash
37
+ vibecode merge [feature-name]
38
+ ```
39
+
40
+ ---
41
+
42
+ ## Advanced: Parallel Orchestration
43
+
44
+ To run multiple features at once:
45
+
46
+ 1. Spawn multiple agents:
47
+ ```bash
48
+ vibecode spawn vibe-builder "Build Auth Login" --worktree auth-login
49
+ vibecode spawn vibe-builder "Build Dashboard Stats" --worktree dash-stats
50
+ vibecode spawn vibe-designer "Design Landing Page" --worktree landing-ui
51
+ ```
52
+
53
+ 2. Watch them all:
54
+ ```bash
55
+ vibecode status --watch
56
+ ```
57
+
58
+ 3. Merge as they finish:
59
+ ```bash
60
+ vibecode merge auth-login
61
+ vibecode merge dash-stats
62
+ vibecode merge landing-ui
63
+ ```
@@ -0,0 +1,71 @@
1
+ ---
2
+ description: Manage git worktrees for parallel agent development (Create, Sync, Remove).
3
+ ---
4
+
5
+ # Git Worktree Workflow
6
+
7
+ Use this workflow to manage parallel development environments (worktrees) without manual path juggling.
8
+
9
+ ## 1. Status Check
10
+ First, display the current landscape of branches and worktrees.
11
+ ```bash
12
+ git worktree list
13
+ git branch --list
14
+ ```
15
+
16
+ ## 2. Choose an Action
17
+ Ask the user to select an operation:
18
+
19
+ - **[NEW] Create Agent Environment**: Spin up a new isolated agent.
20
+ - **[SYNC] Synchronize Agents**: Update worktrees with the latest from `main`.
21
+ - **[KILL] Teardown Agent**: Remove a worktree and its branch.
22
+
23
+ ---
24
+
25
+ ### [NEW] Create Agent Environment
26
+ 1. **Name the Agent**: Ask for a short identifier (e.g., `frontend-refactor`, `agent-3`).
27
+ 2. **Define Paths**:
28
+ - Branch Name: `[agent-name]` (or user custom).
29
+ - Folder Path: Default to sibling directory `../[repo-name]-[agent-name]`.
30
+ - *Example*: If repo is `school-os`, folder is `../school-os-agent-3`.
31
+ 3. **Execute**:
32
+ ```bash
33
+ git branch [branch_name]
34
+ git worktree add [folder_path] [branch_name]
35
+ ```
36
+ 4. **Validation**: Run `git worktree list` to confirm.
37
+ 5. **Context Migration**:
38
+ - **Check**: Look for `.env` and `prisma/dev.db` (if using SQLite) in the root.
39
+ - **Ask**: "Should I copy the local environment (.env) and database to the new agent?"
40
+ - **Execute**:
41
+ ```bash
42
+ cp .env [worktree_path]/.env
43
+ # If SQLite DB exists:
44
+ mkdir -p [worktree_path]/prisma
45
+ cp prisma/dev.db [worktree_path]/prisma/dev.db
46
+ ```
47
+ 6. **Initialization**:
48
+ - **Execute**: Run `pnpm install` (or npm/yarn) in the new worktree to ensure dependencies are ready.
49
+
50
+ ### [SYNC] Synchronize Agents
51
+ 1. **Scope**: Ask if user wants to sync **ALL** worktrees or a **SPECIFIC** one.
52
+ 2. **Execute**:
53
+ - Fetch origin: `git fetch origin`
54
+ - For each target worktree:
55
+ - `cd [worktree_path]`
56
+ - `git merge origin/main` (or rebase, ask preference).
57
+ - `cd -` (return to root).
58
+
59
+ ### [KILL] Teardown Agent
60
+ 1. **Select**: Identify which worktree to remove from the list.
61
+ 2. **Execute**:
62
+ ```bash
63
+ git worktree remove [worktree_path]
64
+ # Ask before deleting the branch!
65
+ git branch -d [branch_name]
66
+ ```
67
+ 3. **Cleanup**: Run `git worktree prune` to ensure no stale entries.
68
+
69
+ ## Troubleshooting
70
+ - If `git worktree add` fails with "already checked out", use a new branch name.
71
+ - Use `git worktree prune` if directories were deleted manually but git still lists them.
@@ -0,0 +1,101 @@
1
+ ---
2
+ description: Initialize Smart Ops for this repository with automatic OS detection
3
+ ---
4
+
5
+ # Workflow: Initialize Smart Ops
6
+
7
+ One-time setup to generate GitHub automation scripts for your repository.
8
+
9
+ > **Skill Reference:** Read `~/.gemini/antigravity/skills/github-ops/SKILL.md` for templates and patterns.
10
+
11
+ ## Quick Start
12
+
13
+ ```
14
+ User: "/init_smart_ops"
15
+ ```
16
+
17
+ ---
18
+
19
+ ## Agent Steps
20
+
21
+ ### 1. Read the Skill First
22
+ ```
23
+ view_file ~/.gemini/antigravity/skills/github-ops/SKILL.md
24
+ ```
25
+
26
+ ### 2. Detect OS
27
+
28
+ ```powershell
29
+ if ($env:OS -match "Windows") { "Windows" } else { "Unix" }
30
+ ```
31
+
32
+ | Result | Generate |
33
+ |--------|----------|
34
+ | Windows | Both `.ps1` and `.sh` |
35
+ | Unix | `.sh` only |
36
+
37
+ ### 3. Get Repository Context
38
+
39
+ ```bash
40
+ gh repo view --json owner,name -q '.owner.login + "/" + .name'
41
+ ```
42
+
43
+ ### 4. Ask About GitHub Projects
44
+
45
+ > "Do you want to enable GitHub Projects integration? (y/N)"
46
+
47
+ **If YES:**
48
+ ```bash
49
+ gh project list --owner {{OWNER}}
50
+ gh project field-list {{PROJECT_NUMBER}} --owner {{OWNER}} --format json
51
+ ```
52
+
53
+ Parse the JSON to extract field IDs (Status, Start Date, Target Date).
54
+
55
+ **If NO:** Leave project variables empty.
56
+
57
+ ### 5. Generate Scripts
58
+
59
+ Copy templates from the skill and replace placeholders:
60
+
61
+ | Placeholder | Value |
62
+ |-------------|-------|
63
+ | `{{OWNER}}` | Repository owner |
64
+ | `{{REPO}}` | Repository name |
65
+ | `{{PROJECT_*}}` | From step 4 (or empty) |
66
+
67
+ **Files to create:**
68
+ - `scripts/smart-ops.ps1` (from skill template)
69
+ - `scripts/smart-ops.sh` (from skill template)
70
+
71
+ ### 6. Make Executable (Unix)
72
+
73
+ ```bash
74
+ chmod +x scripts/smart-ops.sh
75
+ ```
76
+
77
+ ### 7. Report Success
78
+
79
+ ```
80
+ ✅ Smart Ops initialized!
81
+
82
+ 📁 Created:
83
+ - scripts/smart-ops.ps1
84
+ - scripts/smart-ops.sh
85
+
86
+ 🚀 Quick Start:
87
+ PowerShell: .\scripts\smart-ops.ps1 start
88
+ Git Bash: ./scripts/smart-ops.sh start
89
+
90
+ 📖 Commands: start | complete | create | close | progress | done
91
+ ```
92
+
93
+ ---
94
+
95
+ ## Platform Reference
96
+
97
+ | Environment | Command |
98
+ |-------------|---------|
99
+ | Windows PowerShell | `.\scripts\smart-ops.ps1` |
100
+ | Git Bash / WSL | `./scripts/smart-ops.sh` |
101
+ | macOS / Linux | `./scripts/smart-ops.sh` |
@@ -0,0 +1,62 @@
1
+ # Multi-Agent Workflow Strategy
2
+
3
+ This document outlines the strategy for converting the existing global workflows into a multi-agent system orchestrated by a Python-based "Brain."
4
+
5
+ ## 1. Candidate Workflows for Multi-Agent Spawning
6
+
7
+ The following workflows have been identified as ideal for parallel agent execution.
8
+
9
+ ### A. The Orchestrator (The Brain)
10
+ * **`spawn_task.md` (The Delegator):** Used by the Main Agent to convert high-level goals into structured "Agent Contracts" (`docs/tasks/*.md`).
11
+ * **`init_vibecode_genesis.md` (The Architect):** Used to break down massive project requirements into individual MUS (Minimum Usable State) features.
12
+
13
+ ### B. The Worker Agents (Sub-Agents)
14
+ * **`build_vibecode_project_v2.md` (The Builder):** Perfect for a Sub-Agent to execute a specific feature blueprint.
15
+ * **`analyze_component.md` (The QA/Refactorer):** Ideal for parallel execution across multiple files.
16
+ * **`spawn-jstar-code-review.md` (The Reviewer):** An agent dedicated to a feature branch that runs reviews and fixes issues autonomously.
17
+
18
+ ### C. The Infrastructure (Glue)
19
+ * **`git_worktree.md` (The Isolator):** **CRITICAL.** Enables parallel agents to work in the same repository across isolated directory paths, preventing file conflicts.
20
+ * **`escalate.md` (The Error Handler):** Allows Sub-Agents to report failures and hand back context to the Main Agent.
21
+
22
+ ---
23
+
24
+ ## 2. Proposed TypeScript Orchestrator Architecture
25
+
26
+ This system will be built as a TypeScript-based CLI tool, suitable for distribution via NPM (`@vibecode/orchestrator`).
27
+
28
+ ### Project Structure
29
+ ```text
30
+ vibecode-orchestrator/
31
+ ├── package.json
32
+ ├── bin/
33
+ │ └── vibe.js # CLI Entrypoint
34
+ ├── src/
35
+ │ ├── index.ts # Main Orchestrator Logic
36
+ │ ├── core/
37
+ │ │ ├── Brain.ts # Decision engine (imports spawn_task logic)
38
+ │ │ ├── Agent.ts # Wrapper for 'gemini' CLI subprocesses
39
+ │ │ └── Worktree.ts # Git worktree management (The Isolator)
40
+ │ └── utils/
41
+ │ └── shell.ts # execa-based shell execution
42
+ └── workflows/ # Bundled .md workflow templates
43
+ ```
44
+
45
+ ### Operational Loop (Node.js Concurrency)
46
+
47
+ 1. **Instruction:** Human runs `vibe orchestrate --goal "Feature Name"`.
48
+ 2. **Delegation:** `Brain.ts` uses `spawn_task` logic to create a task contract in `docs/tasks/`.
49
+ 3. **Isolation:** `Worktree.ts` creates an isolated directory using `git worktree`.
50
+ 4. **Spawning:** `Agent.ts` uses `execa` to spawn parallel `gemini` CLI processes.
51
+ 5. **Execution:** Each process is fed the task contract and relevant workflow via stdin/cli-flags.
52
+ 6. **Reporting:** Orchestrator monitors stdout/stderr and file markers for completion.
53
+ 7. **Merging:** Successful tasks are merged via Git; worktrees are pruned.
54
+
55
+ ---
56
+
57
+ ## 3. Implementation Roadmap
58
+
59
+ 1. **Phase 1:** Scaffold Node.js project with TypeScript and `execa`.
60
+ 2. **Phase 2:** Implement `Worktree.ts` to automate isolated environment setup.
61
+ 3. **Phase 3:** Develop the `Agent` wrapper to handle Gemini CLI lifecycle.
62
+ 4. **Phase 4:** Bundle existing `.md` workflows as internal templates for the Orchestrator.