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.
- package/.agent/skills/agent-recovery/SKILL.md +147 -0
- package/.agent/skills/code-review/SKILL.md +81 -0
- package/.agent/skills/component-analysis/SKILL.md +103 -0
- package/.agent/skills/git-worktree/SKILL.md +78 -0
- package/.agent/skills/github-ops/SKILL.md +220 -0
- package/.agent/skills/github-ops/scripts/publish_issues.ps1 +443 -0
- package/.agent/skills/github-ops/scripts/smart-ops.ps1 +128 -0
- package/.agent/skills/github-ops/scripts/smart-ops.sh +130 -0
- package/.agent/skills/google-trends/SKILL.md +157 -0
- package/.agent/skills/google-trends/scripts/node_modules/.modules.yaml +21 -0
- package/.agent/skills/google-trends/scripts/node_modules/.pnpm/commander@12.1.0/node_modules/commander/LICENSE +22 -0
- package/.agent/skills/google-trends/scripts/node_modules/.pnpm/commander@12.1.0/node_modules/commander/Readme.md +1157 -0
- package/.agent/skills/google-trends/scripts/node_modules/.pnpm/commander@12.1.0/node_modules/commander/esm.mjs +16 -0
- package/.agent/skills/google-trends/scripts/node_modules/.pnpm/commander@12.1.0/node_modules/commander/index.js +24 -0
- package/.agent/skills/google-trends/scripts/node_modules/.pnpm/commander@12.1.0/node_modules/commander/lib/argument.js +149 -0
- package/.agent/skills/google-trends/scripts/node_modules/.pnpm/commander@12.1.0/node_modules/commander/lib/command.js +2509 -0
- package/.agent/skills/google-trends/scripts/node_modules/.pnpm/commander@12.1.0/node_modules/commander/lib/error.js +39 -0
- package/.agent/skills/google-trends/scripts/node_modules/.pnpm/commander@12.1.0/node_modules/commander/lib/help.js +520 -0
- package/.agent/skills/google-trends/scripts/node_modules/.pnpm/commander@12.1.0/node_modules/commander/lib/option.js +330 -0
- package/.agent/skills/google-trends/scripts/node_modules/.pnpm/commander@12.1.0/node_modules/commander/lib/suggestSimilar.js +101 -0
- package/.agent/skills/google-trends/scripts/node_modules/.pnpm/commander@12.1.0/node_modules/commander/package-support.json +16 -0
- package/.agent/skills/google-trends/scripts/node_modules/.pnpm/commander@12.1.0/node_modules/commander/package.json +84 -0
- package/.agent/skills/google-trends/scripts/node_modules/.pnpm/commander@12.1.0/node_modules/commander/typings/esm.d.mts +3 -0
- package/.agent/skills/google-trends/scripts/node_modules/.pnpm/commander@12.1.0/node_modules/commander/typings/index.d.ts +969 -0
- package/.agent/skills/google-trends/scripts/node_modules/.pnpm/google-trends-api@4.9.2/node_modules/google-trends-api/CHANGES.md +132 -0
- package/.agent/skills/google-trends/scripts/node_modules/.pnpm/google-trends-api@4.9.2/node_modules/google-trends-api/LICENSE +21 -0
- package/.agent/skills/google-trends/scripts/node_modules/.pnpm/google-trends-api@4.9.2/node_modules/google-trends-api/README.md +561 -0
- 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
- package/.agent/skills/google-trends/scripts/node_modules/.pnpm/google-trends-api@4.9.2/node_modules/google-trends-api/package.json +68 -0
- 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
- 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
- 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
- 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
- package/.agent/skills/google-trends/scripts/node_modules/.pnpm/lock.yaml +31 -0
- package/.agent/skills/google-trends/scripts/node_modules/.pnpm-workspace-state-v1.json +25 -0
- package/.agent/skills/google-trends/scripts/package.json +17 -0
- package/.agent/skills/google-trends/scripts/pnpm-lock.yaml +31 -0
- package/.agent/skills/google-trends/scripts/search.js +168 -0
- package/.agent/skills/high-fidelity-extraction/SKILL.md +59 -0
- package/.agent/skills/prime-agent/SKILL.md +97 -0
- package/.agent/skills/security-audit/SKILL.md +81 -0
- package/.agent/skills/seo-ready/SKILL.md +133 -0
- package/.agent/skills/spawn-task/SKILL.md +130 -0
- package/.agent/skills/sync-docs/SKILL.md +88 -0
- package/.agent/skills/vercel-ai-sdk/SKILL.md +34083 -0
- package/.agent/skills/youtube-pipeline/SKILL.md +194 -0
- package/.agent/skills/youtube-pipeline/resources/youtube-phase1-strategy.md +224 -0
- package/.agent/skills/youtube-pipeline/resources/youtube-phase2-packaging.md +148 -0
- package/.agent/skills/youtube-pipeline/resources/youtube-phase3-scripting.md +197 -0
- package/.agent/skills/youtube-pipeline/resources/youtube-phase3.5-shorts.md +271 -0
- package/.agent/skills/youtube-pipeline/resources/youtube-phase4-production.md +193 -0
- package/.agent/skills/youtube-pipeline/resources/youtube-phase5-repurposing.md +159 -0
- package/.agent/skills/youtube-pipeline/resources/youtube-pipeline.md +161 -0
- package/.agent/skills/youtube-pipeline/scripts/parse_yt_studio.ps1 +150 -0
- package/.agent/workflows/LEGACY/ANTIGRAVITY_TOOLBOX.md +200 -0
- package/.agent/workflows/LEGACY/analyze_component.md +141 -0
- package/.agent/workflows/LEGACY/build_vibecode_project.md +154 -0
- package/.agent/workflows/LEGACY/deep_code_audit.md +79 -0
- package/.agent/workflows/LEGACY/gemini-orchestrate.md +63 -0
- package/.agent/workflows/LEGACY/git_worktree.md +71 -0
- package/.agent/workflows/LEGACY/init_smart_ops.md +101 -0
- package/.agent/workflows/LEGACY/multi_agent_strategy.md +62 -0
- package/.agent/workflows/LEGACY/orchestrate.md +321 -0
- package/.agent/workflows/LEGACY/seo_ready.md +249 -0
- package/.agent/workflows/LEGACY/vibe-orchestrator.md +305 -0
- package/.agent/workflows/LEGACY/youtube-phase1-strategy.md +224 -0
- package/.agent/workflows/LEGACY/youtube-phase2-packaging.md +148 -0
- package/.agent/workflows/LEGACY/youtube-phase3-scripting.md +197 -0
- package/.agent/workflows/LEGACY/youtube-phase3.5-shorts.md +271 -0
- package/.agent/workflows/LEGACY/youtube-phase4-production.md +193 -0
- package/.agent/workflows/LEGACY/youtube-phase5-repurposing.md +159 -0
- package/.agent/workflows/LEGACY/youtube-pipeline.md +161 -0
- package/.agent/workflows/README.md +349 -0
- package/.agent/workflows/Vercel Ai SDK.md +34083 -0
- package/.agent/workflows/agent_reset.md +138 -0
- package/.agent/workflows/build_vibecode_project_v2.md +158 -0
- package/.agent/workflows/escalate.md +112 -0
- package/.agent/workflows/init_vibecode_design.md +98 -0
- package/.agent/workflows/init_vibecode_genesis.md +137 -0
- package/.agent/workflows/migrate.md +135 -0
- package/.agent/workflows/prime_agent.md +211 -0
- package/.agent/workflows/reverse_genesis.md +132 -0
- package/.agent/workflows/review_code.md +133 -0
- package/.agent/workflows/spawn-jstar-code-review.md +121 -0
- package/.agent/workflows/spawn_task.md +187 -0
- package/.agent/workflows/sync_docs.md +90 -0
- package/Legacy (Manual Method)/0 VibeCode User Manual.md +173 -0
- package/Legacy (Manual Method)/1 Project Genesis Protocol The VibeCode Workflow.md +89 -0
- package/Legacy (Manual Method)/2/342/234/250 ULTIMATE ORCHESTRATION PROMPT/342/234/250.md" +114 -0
- package/Legacy (Manual Method)/3 Design System Genesis Protocol.md +75 -0
- package/Legacy (Manual Method)/3.1.1 my_design_system_rules.md +177 -0
- package/Legacy (Manual Method)/3.1.2 Material You M3 Genesis Protocol.md +73 -0
- package/Legacy (Manual Method)/4 The Ultimate GitHub Issue Meta-Prompt Template.md +54 -0
- package/Legacy (Manual Method)/5 The Escalation & Handoff Protocol.md +97 -0
- package/Legacy (Manual Method)/8 The Seamless Migration Meta-Prompt (Your Reusable Tool).md +38 -0
- package/Legacy (Manual Method)/9 The Reverse Genesis Protocol.md +75 -0
- package/README.md +209 -0
- package/VibeCode-Agents (e.g Kilo-code)/README.md +142 -0
- package/VibeCode-Agents (e.g Kilo-code)/vibe-analyzer.yaml +254 -0
- package/VibeCode-Agents (e.g Kilo-code)/vibe-architect.yaml +397 -0
- package/VibeCode-Agents (e.g Kilo-code)/vibe-auditor.yaml +325 -0
- package/VibeCode-Agents (e.g Kilo-code)/vibe-builder.yaml +472 -0
- package/VibeCode-Agents (e.g Kilo-code)/vibe-designer.yaml +305 -0
- package/VibeCode-Agents (e.g Kilo-code)/vibe-documentor.yaml +222 -0
- package/VibeCode-Agents (e.g Kilo-code)/vibe-escalator.yaml +255 -0
- package/VibeCode-Agents (e.g Kilo-code)/vibe-isolator.yaml +332 -0
- package/VibeCode-Agents (e.g Kilo-code)/vibe-onboarder.yaml +335 -0
- package/VibeCode-Agents (e.g Kilo-code)/vibe-orchestrator.yaml +365 -0
- package/VibeCode-Agents (e.g Kilo-code)/vibe-orchestrator_legacy.yaml +284 -0
- package/VibeCode-Agents (e.g Kilo-code)/vibe-orchestrator_v1.yaml +336 -0
- package/VibeCode-Agents (e.g Kilo-code)/vibe-primer.yaml +213 -0
- package/VibeCode-Agents (e.g Kilo-code)/vibe-reviewer.yaml +233 -0
- package/VibeCode-Agents (e.g Kilo-code)/vibe-spawner.yaml +259 -0
- package/bin/vibesuite.js +2 -0
- package/package.json +43 -0
- package/src/cli.js +159 -0
- package/src/utils.js +76 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Generate a State Snapshot for migrating context to a new chat session.
|
|
3
|
+
---
|
|
4
|
+
# Workflow: Migrate (State Snapshot Generator)
|
|
5
|
+
|
|
6
|
+
**System Instruction:**
|
|
7
|
+
You are generating a **State Snapshot Handoff Prompt** for migrating this project's context to a new AI chat session.
|
|
8
|
+
This handoff prompt will be the FIRST thing sent to the new AI.
|
|
9
|
+
|
|
10
|
+
**Your Goal:** Auto-detect as much context as possible, then synthesize it into a comprehensive handoff prompt.
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## Steps
|
|
15
|
+
|
|
16
|
+
### 1. Auto-Detect Project Context
|
|
17
|
+
|
|
18
|
+
**A. Read Project Details:**
|
|
19
|
+
```bash
|
|
20
|
+
# Check if PRD exists
|
|
21
|
+
cat docs/Project_Requirements.md 2>/dev/null || echo "No PRD found"
|
|
22
|
+
```
|
|
23
|
+
Extract: Project Name, Mission, Tech Stack.
|
|
24
|
+
|
|
25
|
+
**B. Read Recent Milestones (Git):**
|
|
26
|
+
```bash
|
|
27
|
+
git log --oneline -20
|
|
28
|
+
```
|
|
29
|
+
Extract: Key accomplishments from recent commits.
|
|
30
|
+
|
|
31
|
+
**C. Read Current Status (GitHub Issues):**
|
|
32
|
+
```bash
|
|
33
|
+
gh issue list --state open --limit 10 --json number,title,labels
|
|
34
|
+
```
|
|
35
|
+
Extract: What's in progress, what's next.
|
|
36
|
+
|
|
37
|
+
**D. Read Coding Guidelines (if exists):**
|
|
38
|
+
```bash
|
|
39
|
+
cat docs/Coding_Guidelines.md 2>/dev/null || echo "No guidelines found"
|
|
40
|
+
```
|
|
41
|
+
Extract: Key rules and conventions.
|
|
42
|
+
|
|
43
|
+
### 2. Generate State Snapshot
|
|
44
|
+
Create `docs/migration_snapshot.md` with the following structure:
|
|
45
|
+
|
|
46
|
+
```markdown
|
|
47
|
+
# State Snapshot Handoff Prompt
|
|
48
|
+
|
|
49
|
+
**Generated:** [Current Date/Time]
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## To the New AI: Adopt This Identity
|
|
54
|
+
|
|
55
|
+
You are the **VibeCode Project Orchestrator and Architect** — a Principal Full-Stack Engineer.
|
|
56
|
+
Your predecessor (me) is handing you the full context of our project so you can continue seamlessly.
|
|
57
|
+
|
|
58
|
+
**Adopt this persona immediately and continue where I left off.**
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## 1. Our Personas & Vibe
|
|
63
|
+
|
|
64
|
+
**Your Persona (AI Orchestrator):**
|
|
65
|
+
- Senior architect, project manager, and coding partner.
|
|
66
|
+
- Professional but enthusiastic, using the "VibeCode" methodology.
|
|
67
|
+
- You follow the "Blueprint and Build Protocol" — plan before coding.
|
|
68
|
+
|
|
69
|
+
**Human Lead:**
|
|
70
|
+
- The visionary and decision-maker.
|
|
71
|
+
- Provides ideas, feedback, and final approvals.
|
|
72
|
+
|
|
73
|
+
**Our Dynamic:**
|
|
74
|
+
- Fast-paced, collaborative partnership.
|
|
75
|
+
- We use GitHub Issues to track work.
|
|
76
|
+
- We generate professional documentation before implementation.
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## 2. Project Core Details
|
|
81
|
+
|
|
82
|
+
**Project Name:** [Auto-detected from PRD]
|
|
83
|
+
**Mission:** [Auto-detected from PRD]
|
|
84
|
+
**Tech Stack:** [Auto-detected from PRD]
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## 3. Key Milestones & "War Stories"
|
|
89
|
+
|
|
90
|
+
(What we've accomplished — auto-detected from git log)
|
|
91
|
+
|
|
92
|
+
- [Milestone 1 from commits]
|
|
93
|
+
- [Milestone 2 from commits]
|
|
94
|
+
- [Milestone 3 from commits]
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## 4. Current Status & Next Steps
|
|
99
|
+
|
|
100
|
+
**Recent Accomplishments:**
|
|
101
|
+
[From recent commits]
|
|
102
|
+
|
|
103
|
+
**Currently In Progress:**
|
|
104
|
+
[From open GitHub Issues marked "In Progress"]
|
|
105
|
+
|
|
106
|
+
**Next on Roadmap:**
|
|
107
|
+
[From open GitHub Issues]
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## 5. Key Project Files
|
|
112
|
+
|
|
113
|
+
For immediate context, these files are critical:
|
|
114
|
+
- `docs/Project_Requirements.md` — The PRD
|
|
115
|
+
- `docs/Coding_Guidelines.md` — The rules
|
|
116
|
+
- `docs/Builder_Prompt.md` — Builder instructions (if exists)
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
## 6. Your First Action
|
|
121
|
+
|
|
122
|
+
Read the files listed above, then ask me: "What would you like to work on next?"
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### 3. Fill Gaps (Optional Interview)
|
|
126
|
+
If any section couldn't be auto-detected, ask the user briefly:
|
|
127
|
+
- "I couldn't detect the project mission. What's the one-liner?"
|
|
128
|
+
- "Any 'war stories' (hard bugs you solved) to include?"
|
|
129
|
+
|
|
130
|
+
### 4. Confirmation
|
|
131
|
+
Tell the user:
|
|
132
|
+
"📸 **State Snapshot Generated.**
|
|
133
|
+
Saved to: `docs/migration_snapshot.md`
|
|
134
|
+
|
|
135
|
+
To migrate, open a **new chat session** and paste the content of this file as your first message."
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Prime the agent with project coding guidelines, styling rules, and folder structure.
|
|
3
|
+
---
|
|
4
|
+
# Workflow: Prime Agent
|
|
5
|
+
|
|
6
|
+
**System Instruction:**
|
|
7
|
+
You are loading the "brain" of this project — the coding guidelines, styling rules, and architectural decisions that govern how we work.
|
|
8
|
+
|
|
9
|
+
This workflow is for when you (or the user) wants to ensure the agent is fully primed with project context before starting work.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
User: "Use /prime_agent" (loads everything)
|
|
17
|
+
User: "/prime_agent styling" (loads styling-specific context)
|
|
18
|
+
User: "/prime_agent coding" (loads coding guidelines only)
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Steps
|
|
24
|
+
|
|
25
|
+
### 1. Load Core Documentation
|
|
26
|
+
|
|
27
|
+
Read the foundational documents by auto-detecting paths:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
# Coding Guidelines (The Law) — try common locations
|
|
31
|
+
cat docs/coding_guidelines.md 2>/dev/null || \
|
|
32
|
+
cat docs/Coding_Guidelines.md 2>/dev/null || \
|
|
33
|
+
cat CODING_GUIDELINES.md 2>/dev/null
|
|
34
|
+
|
|
35
|
+
# Styling Guide — auto-detect (could be any of these)
|
|
36
|
+
cat docs/Styling*.md 2>/dev/null || \
|
|
37
|
+
cat docs/styling*.md 2>/dev/null || \
|
|
38
|
+
cat docs/design/*.md 2>/dev/null
|
|
39
|
+
|
|
40
|
+
# Project-Specific Styling Addendum (if exists)
|
|
41
|
+
cat docs/Styling-Addendum.md 2>/dev/null || \
|
|
42
|
+
cat docs/styling-addendum.md 2>/dev/null
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### 2. Check for UI Mockups & Design System
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
# List available mockups (the source of truth for UI implementation)
|
|
49
|
+
ls docs/mockups/ 2>/dev/null || ls docs/design/mockups/ 2>/dev/null
|
|
50
|
+
|
|
51
|
+
# Check for design system HTML (generated by /init_vibecode_design)
|
|
52
|
+
ls docs/design/design-system.html 2>/dev/null || \
|
|
53
|
+
ls docs/design-system.html 2>/dev/null
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
> [!IMPORTANT]
|
|
57
|
+
> **If mockups exist**, they are the **UNQUESTIONABLE source of truth** for UI.
|
|
58
|
+
> Before implementing any page, check if a mockup exists at:
|
|
59
|
+
> - `docs/mockups/[page-name].html`
|
|
60
|
+
> - `docs/design/mockups/[page-name].html`
|
|
61
|
+
>
|
|
62
|
+
> Replicate the mockup's layout, colors, and components exactly.
|
|
63
|
+
|
|
64
|
+
> [!TIP]
|
|
65
|
+
> The styling doc name varies by project. Common patterns:
|
|
66
|
+
> - `docs/Styling-in-Next-and-Tailwind-v4.md`
|
|
67
|
+
> - `docs/styling-guide.md`
|
|
68
|
+
> - `docs/design/design-system.md`
|
|
69
|
+
> - `docs/ui-guidelines.md`
|
|
70
|
+
>
|
|
71
|
+
> The workflow will auto-detect any `Styling*.md` or `styling*.md` in `docs/`.
|
|
72
|
+
|
|
73
|
+
### 2. Extract Key Rules
|
|
74
|
+
|
|
75
|
+
**From Coding Guidelines — Internalize:**
|
|
76
|
+
- **Blueprint Protocol**: Plan before code, docs in `docs/features/`
|
|
77
|
+
- **200-Line Rule**: Refactor if exceeded
|
|
78
|
+
- **File Structure**: Feature-sliced design (`src/features/[Name]/`)
|
|
79
|
+
- **Server vs Client**: RSCs by default, `'use client'` sparingly
|
|
80
|
+
- **Service Pattern**: Route Handlers = controllers, Services = business logic
|
|
81
|
+
- **Validation**: Zod for all inputs
|
|
82
|
+
|
|
83
|
+
**From Styling Guide — Internalize:**
|
|
84
|
+
- **Tailwind v4**: CSS-first with `@theme` tokens
|
|
85
|
+
- **Core Tokens**: `--color-background`, `--color-foreground`, `--color-border`, `--color-ring`
|
|
86
|
+
- **Dark Mode**: `@theme .dark { }` overrides, `dark` class on `<html>`
|
|
87
|
+
- **Animations**: Define in CSS with `@keyframes`, use `.animate-*` classes
|
|
88
|
+
|
|
89
|
+
### 4. Acknowledge Context
|
|
90
|
+
|
|
91
|
+
**After loading, state aloud:**
|
|
92
|
+
|
|
93
|
+
"✅ **Agent Primed.** I have internalized:
|
|
94
|
+
|
|
95
|
+
**Coding Guidelines:**
|
|
96
|
+
- Blueprint Protocol: Plan → Approve → Build → Document
|
|
97
|
+
- 200-line component limit
|
|
98
|
+
- Feature-sliced architecture (`src/features/[Name]/`)
|
|
99
|
+
- Server Components default, Client sparingly
|
|
100
|
+
- Zod validation for all API inputs
|
|
101
|
+
|
|
102
|
+
**Styling Rules:**
|
|
103
|
+
- Tailwind v4 with `@theme` tokens
|
|
104
|
+
- Core tokens: background, foreground, border, ring
|
|
105
|
+
- Dark mode via `.dark` class + `@theme .dark { }`
|
|
106
|
+
- Utility-first, no custom CSS unless necessary
|
|
107
|
+
|
|
108
|
+
**UI Mockups:** [List any found, or 'None found']
|
|
109
|
+
- Before implementing UI, I will check `docs/mockups/` for templates
|
|
110
|
+
|
|
111
|
+
I will follow these rules. What would you like to build?"
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## Optional: Generate Styling Addendum
|
|
116
|
+
|
|
117
|
+
If the project doesn't have `docs/Styling-Addendum.md`, offer to create one:
|
|
118
|
+
|
|
119
|
+
```
|
|
120
|
+
"I notice there's no project-specific Styling Addendum. Would you like me to generate one?
|
|
121
|
+
This will probe your repo for:
|
|
122
|
+
- Design tokens in globals.css
|
|
123
|
+
- Dark mode configuration
|
|
124
|
+
- Animation definitions
|
|
125
|
+
- File path map
|
|
126
|
+
|
|
127
|
+
Reply 'yes' to generate."
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
**If user says yes, follow these steps:**
|
|
131
|
+
|
|
132
|
+
1. **Probe the repository:**
|
|
133
|
+
- Find `postcss.config.*` → verify `@tailwindcss/postcss` plugin
|
|
134
|
+
- Find global CSS with `@import "tailwindcss"`
|
|
135
|
+
- Find `@theme` tokens and dark overrides
|
|
136
|
+
- List custom keyframes and animations
|
|
137
|
+
|
|
138
|
+
2. **Generate `docs/Styling-Addendum.md`:**
|
|
139
|
+
```markdown
|
|
140
|
+
# Styling Addendum – [PROJECT_NAME] (Tailwind CSS v4)
|
|
141
|
+
|
|
142
|
+
*Based on: [docs/Styling-in-Next-and-Tailwind-v4.md](file:///path/to/file)*
|
|
143
|
+
|
|
144
|
+
## 1. Project Entry Points
|
|
145
|
+
- App entry: `src/app/layout.tsx`
|
|
146
|
+
- Global CSS: `src/app/globals.css`
|
|
147
|
+
|
|
148
|
+
## 2. Tailwind v4 Setup
|
|
149
|
+
- PostCSS: `postcss.config.mjs` with `@tailwindcss/postcss`
|
|
150
|
+
- Global CSS imports: `@import "tailwindcss"`
|
|
151
|
+
|
|
152
|
+
## 3. Design Tokens
|
|
153
|
+
[List all @theme tokens found]
|
|
154
|
+
|
|
155
|
+
## 4. Dark Mode Policy
|
|
156
|
+
[Document how dark mode works in this project]
|
|
157
|
+
|
|
158
|
+
## 5. Animations
|
|
159
|
+
[List custom keyframes and animation classes]
|
|
160
|
+
|
|
161
|
+
## 6. File Path Map
|
|
162
|
+
| Purpose | Path |
|
|
163
|
+
|---------|------|
|
|
164
|
+
| Global CSS | `src/app/globals.css` |
|
|
165
|
+
| PostCSS | `postcss.config.mjs` |
|
|
166
|
+
| Tailwind Config | `tailwind.config.ts` |
|
|
167
|
+
|
|
168
|
+
## 7. Gotchas
|
|
169
|
+
[Project-specific issues to watch for]
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
## Quick Reference Card
|
|
175
|
+
|
|
176
|
+
After priming, you can also generate a quick reference card:
|
|
177
|
+
|
|
178
|
+
```markdown
|
|
179
|
+
# [PROJECT_NAME] - Agent Quick Reference
|
|
180
|
+
|
|
181
|
+
## File Structure
|
|
182
|
+
```
|
|
183
|
+
src/
|
|
184
|
+
├── app/ # Next.js App Router pages
|
|
185
|
+
├── features/ # Feature-sliced modules
|
|
186
|
+
│ └── [Name]/ # Components, hooks, services for each feature
|
|
187
|
+
├── components/
|
|
188
|
+
│ └── ui/ # Reusable UI components (Button, Card, etc.)
|
|
189
|
+
├── lib/ # Utilities, API clients
|
|
190
|
+
└── scripts/ # Build/automation scripts
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
## Key Commands
|
|
194
|
+
- `npm run dev` — Start development
|
|
195
|
+
- `npm run build` — Production build
|
|
196
|
+
- `npm run db:seed` — Seed database
|
|
197
|
+
|
|
198
|
+
## Style Tokens
|
|
199
|
+
- `bg-background` / `text-foreground` — Base colors
|
|
200
|
+
- `bg-primary` / `text-primary` — Brand colors
|
|
201
|
+
- `dark:` prefix for dark mode variants
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
## When to Use This Workflow
|
|
207
|
+
|
|
208
|
+
- **Start of session**: When you want the agent fully briefed
|
|
209
|
+
- **Before complex work**: When implementing features that touch styling + architecture
|
|
210
|
+
- **New agent onboarding**: When switching to a fresh chat session
|
|
211
|
+
- **After `/migrate`**: Supplement the migration snapshot with this priming
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Onboard an AI to an existing codebase by generating an "Autopsy Report".
|
|
3
|
+
---
|
|
4
|
+
# Workflow: Reverse Genesis (Codebase Onboarding)
|
|
5
|
+
|
|
6
|
+
**System Instruction:**
|
|
7
|
+
This workflow is the OPPOSITE of `/init_vibecode_genesis`.
|
|
8
|
+
Instead of planning a NEW project, you are **onboarding to an EXISTING codebase**.
|
|
9
|
+
|
|
10
|
+
Your job is to generate a **Project Autopsy Report** — a comprehensive analysis of the current state of the code.
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## Steps
|
|
15
|
+
|
|
16
|
+
### 1. Reconnaissance (Auto-Scan)
|
|
17
|
+
|
|
18
|
+
**A. Project Overview:**
|
|
19
|
+
```bash
|
|
20
|
+
cat README.md 2>/dev/null || echo "No README found"
|
|
21
|
+
cat docs/Project_Requirements.md 2>/dev/null || echo "No PRD found"
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
**B. Tech Stack Detection:**
|
|
25
|
+
```bash
|
|
26
|
+
# Node/JS
|
|
27
|
+
cat package.json 2>/dev/null | head -50
|
|
28
|
+
# Python
|
|
29
|
+
cat requirements.txt 2>/dev/null || cat pyproject.toml 2>/dev/null
|
|
30
|
+
# Rust
|
|
31
|
+
cat Cargo.toml 2>/dev/null
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
**C. Architecture Scan:**
|
|
35
|
+
```bash
|
|
36
|
+
# List top-level structure
|
|
37
|
+
ls -la
|
|
38
|
+
# List source structure
|
|
39
|
+
find src -type f -name "*.ts" -o -name "*.py" -o -name "*.rs" 2>/dev/null | head -30
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
**D. Database Schema (if applicable):**
|
|
43
|
+
```bash
|
|
44
|
+
cat prisma/schema.prisma 2>/dev/null | head -100
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
**E. Recent Activity:**
|
|
48
|
+
```bash
|
|
49
|
+
git log --oneline -10
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### 2. Generate Autopsy Report
|
|
53
|
+
Create `docs/autopsy_report.md` with the following:
|
|
54
|
+
|
|
55
|
+
```markdown
|
|
56
|
+
# Project Autopsy Report
|
|
57
|
+
|
|
58
|
+
**Generated:** [Current Date/Time]
|
|
59
|
+
**Purpose:** Onboard a new AI Orchestrator to this existing codebase.
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## 1. Project Elevator Pitch
|
|
64
|
+
[One-sentence purpose of this application]
|
|
65
|
+
|
|
66
|
+
## 2. Core Technology Stack
|
|
67
|
+
| Category | Technology |
|
|
68
|
+
| :--- | :--- |
|
|
69
|
+
| Language | TypeScript / Python / etc. |
|
|
70
|
+
| Framework | Next.js / FastAPI / etc. |
|
|
71
|
+
| Database | PostgreSQL / SQLite / etc. |
|
|
72
|
+
| Key Libraries | [List major dependencies] |
|
|
73
|
+
|
|
74
|
+
## 3. Inferred Architecture
|
|
75
|
+
[Describe the architectural pattern observed]
|
|
76
|
+
- e.g., "Next.js App Router with Feature-Sliced Design"
|
|
77
|
+
- e.g., "Modular Python with central event bus"
|
|
78
|
+
|
|
79
|
+
## 4. Key Modules & Responsibilities
|
|
80
|
+
| File/Module | Responsibility |
|
|
81
|
+
| :--- | :--- |
|
|
82
|
+
| `src/app/` | Next.js pages and routes |
|
|
83
|
+
| `src/features/` | Domain-specific logic |
|
|
84
|
+
| `src/lib/` | Shared utilities |
|
|
85
|
+
|
|
86
|
+
## 5. Inferred Coding Conventions
|
|
87
|
+
- **Naming:** snake_case / PascalCase / camelCase
|
|
88
|
+
- **Components:** Server Components by default
|
|
89
|
+
- **Validation:** Zod for all inputs
|
|
90
|
+
- **Styling:** Tailwind CSS utility-first
|
|
91
|
+
|
|
92
|
+
## 6. Entry Points
|
|
93
|
+
- Main: `src/app/page.tsx` or `main.py`
|
|
94
|
+
- API: `src/app/api/`
|
|
95
|
+
|
|
96
|
+
## 7. Current State
|
|
97
|
+
**Recent Commits:**
|
|
98
|
+
[List from git log]
|
|
99
|
+
|
|
100
|
+
**Open Issues:**
|
|
101
|
+
[List from gh issue list]
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## MISSION BRIEFING (For Orchestrator)
|
|
106
|
+
|
|
107
|
+
You have now assimilated this codebase.
|
|
108
|
+
|
|
109
|
+
**Your Directive:**
|
|
110
|
+
1. Acknowledge you understand the existing architecture.
|
|
111
|
+
2. Adopt the project's coding conventions.
|
|
112
|
+
3. Ask the user: "What would you like to build or fix?"
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### 3. Full File Embedding (Optional)
|
|
116
|
+
If the project is complex, embed key files directly:
|
|
117
|
+
- `src/lib/utils.ts`
|
|
118
|
+
- Main config files
|
|
119
|
+
- Core business logic
|
|
120
|
+
|
|
121
|
+
### 4. Confirmation
|
|
122
|
+
Tell the user:
|
|
123
|
+
"🔬 **Autopsy Report Generated.**
|
|
124
|
+
Saved to: `docs/autopsy_report.md`
|
|
125
|
+
|
|
126
|
+
This report contains:
|
|
127
|
+
- Tech stack analysis
|
|
128
|
+
- Architecture breakdown
|
|
129
|
+
- Coding conventions
|
|
130
|
+
- Current state
|
|
131
|
+
|
|
132
|
+
To onboard a new AI, paste this report into the new session."
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Run the J-Star Code Reviewer loop to analyze and fix code quality issues.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# J-Star Code Review Workflow
|
|
6
|
+
|
|
7
|
+
This workflow executes the J-Star Reviewer on staged changes, allowing the agent to iteratively fix issues.
|
|
8
|
+
|
|
9
|
+
## 1. Build the Brain (Required once)
|
|
10
|
+
If you haven't indexed the project yet, or if major files have changed, run:
|
|
11
|
+
// turbo
|
|
12
|
+
```bash
|
|
13
|
+
jstar init
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## 2. Stage Current Changes
|
|
17
|
+
Ensure all recent changes are staged so the reviewer can see them.
|
|
18
|
+
// turbo
|
|
19
|
+
```bash
|
|
20
|
+
git add .
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## 3. Run Reviewer
|
|
24
|
+
Execute the review pipeline.
|
|
25
|
+
|
|
26
|
+
### Standard Review (Staged Changes)
|
|
27
|
+
```bash
|
|
28
|
+
jstar review
|
|
29
|
+
```
|
|
30
|
+
*Use this when changes are staged but not yet committed.*
|
|
31
|
+
|
|
32
|
+
### Retroactive Review (Oops Mode)
|
|
33
|
+
If you already committed changes but forgot to review:
|
|
34
|
+
```bash
|
|
35
|
+
jstar review --last
|
|
36
|
+
```
|
|
37
|
+
*Equivalent to checking the last commit `HEAD~1..HEAD`.*
|
|
38
|
+
|
|
39
|
+
### Branch/PR Review
|
|
40
|
+
If working on a feature branch, check against main:
|
|
41
|
+
```bash
|
|
42
|
+
jstar review --pr
|
|
43
|
+
```
|
|
44
|
+
*Equivalent to `git diff main...HEAD`. Use this for full feature verification.*
|
|
45
|
+
|
|
46
|
+
## 4. Analyze and Fix
|
|
47
|
+
**Agent Instructions:**
|
|
48
|
+
1. **Read the Output**: Check `.jstar/last-review.md` or the console summary.
|
|
49
|
+
2. **Prioritize**: Focus *only* on **P0_CRITICAL** and **P1_HIGH** issues first.
|
|
50
|
+
3. **Looping Strategy**:
|
|
51
|
+
- **IF** P0/P1 issues are found:
|
|
52
|
+
- Apply fixes to the code.
|
|
53
|
+
- Stage changes: `git add .`
|
|
54
|
+
- (Optional) Re-index if you added new files: `jstar init`
|
|
55
|
+
- Restart this workflow (Stage -> Review).
|
|
56
|
+
- **IF** only P2_MEDIUM issues remain:
|
|
57
|
+
- You may fix them if they are quick/obvious.
|
|
58
|
+
- Otherwise, consider the code "Good Enough" and stop.
|
|
59
|
+
- **MAX LOOPS**: 3. Do not run this cycle more than 3 times. If issues persist, stop and ask the user.
|
|
60
|
+
|
|
61
|
+
## 5. Handling False Positives (Debate Mode)
|
|
62
|
+
|
|
63
|
+
If the reviewer flags correct code as an issue (e.g., security false positives), use **Headless Chat** to resolve it.
|
|
64
|
+
|
|
65
|
+
**Protocol:**
|
|
66
|
+
1. **Start Session:**
|
|
67
|
+
Use the `run_command` tool to start the background process:
|
|
68
|
+
```bash
|
|
69
|
+
jstar chat --headless
|
|
70
|
+
```
|
|
71
|
+
*Note: Capture the `CommandId` returned by this tool.*
|
|
72
|
+
|
|
73
|
+
2. **List Issues (Get IDs):**
|
|
74
|
+
Use `send_command_input` with the `CommandId`:
|
|
75
|
+
```json
|
|
76
|
+
{"action": "list"}
|
|
77
|
+
```
|
|
78
|
+
*Wait for output. Identify the numeric `id` of the issue you want to challenge.*
|
|
79
|
+
|
|
80
|
+
3. **Debate:**
|
|
81
|
+
Use `send_command_input` to explain why it's a false positive:
|
|
82
|
+
```json
|
|
83
|
+
{"action": "debate", "issueId": 0, "argument": "This is correct because..."}
|
|
84
|
+
```
|
|
85
|
+
*Use the integer `id` from step 2.*
|
|
86
|
+
|
|
87
|
+
4. **Verify Result:**
|
|
88
|
+
Check the output for `"status": "resolved"` and `"verdict": "LGTM"`.
|
|
89
|
+
|
|
90
|
+
5. **Exit:**
|
|
91
|
+
Terminate the session cleanly:
|
|
92
|
+
```json
|
|
93
|
+
{"action": "exit"}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## AI Agent Mode (Headless)
|
|
99
|
+
|
|
100
|
+
For programmatic interaction without TUI navigation, use headless mode.
|
|
101
|
+
|
|
102
|
+
### JSON Review (One-Shot)
|
|
103
|
+
Get findings as JSON for parsing:
|
|
104
|
+
// turbo
|
|
105
|
+
```bash
|
|
106
|
+
jstar review --json > .jstar/report.json
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Headless Chat (Interactive Protocol)
|
|
110
|
+
For debating specific issues via stdin/stdout:
|
|
111
|
+
```bash
|
|
112
|
+
echo '{"action": "list"}' | jstar chat --headless
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
**Commands:**
|
|
116
|
+
| Action | Parameters | Description |
|
|
117
|
+
|--------|------------|-------------|
|
|
118
|
+
| `list` | — | List all current issues |
|
|
119
|
+
| `debate` | `issueId`, `argument` | Challenge an issue |
|
|
120
|
+
| `ignore` | `issueId` | Mark issue as ignored |
|
|
121
|
+
| `exit` | — | End session, get final report |
|
|
122
|
+
|
|
123
|
+
See [Headless Mode Docs](../docs/features/headless-mode.md) for full protocol.
|
|
124
|
+
|
|
125
|
+
### AI Fix Cycle
|
|
126
|
+
```
|
|
127
|
+
1. jstar review --json → Parse findings
|
|
128
|
+
2. Apply code fixes
|
|
129
|
+
3. git add . → Stage changes
|
|
130
|
+
4. jstar init → Update brain (if new files added)
|
|
131
|
+
5. jstar review --json → Verify fixes
|
|
132
|
+
6. Repeat until P0/P1 = 0
|
|
133
|
+
```
|