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,147 @@
1
+ ---
2
+ name: agent-recovery
3
+ description: Recovery protocols when agent is stuck—escalate to new agent, migrate context to new session, or reset mid-conversation.
4
+ ---
5
+
6
+ # Agent Recovery Skill
7
+
8
+ Protocols for when the agent is stuck, context is degraded, or session needs migration.
9
+
10
+ ## When to Use
11
+ - Agent is making repeated mistakes
12
+ - Long conversation causing hallucinations
13
+ - Need to hand off to fresh agent
14
+ - Context window is full
15
+
16
+ ---
17
+
18
+ ## Option 1: Escalate (Handoff Report)
19
+
20
+ **Use when**: Agent is stuck and can't solve the problem.
21
+
22
+ ### Steps
23
+
24
+ 1. **Undo broken changes**:
25
+ ```bash
26
+ git status
27
+ git checkout -- .
28
+ ```
29
+
30
+ 2. **Generate `docs/escalation_report.md`**:
31
+
32
+ ```markdown
33
+ # Escalation Handoff Report
34
+
35
+ **Generated:** [Date/Time]
36
+ **Original Issue:** [GitHub Issue # or description]
37
+
38
+ ## PART 1: THE DAMAGE REPORT
39
+
40
+ ### 1.1 Original Goal
41
+ [The task you were asked to complete]
42
+
43
+ ### 1.2 Observed Failure
44
+ [EXACT error message]
45
+
46
+ ### 1.3 Failed Approach
47
+ [Strategy you attempted]
48
+
49
+ ### 1.4 Key Files Involved
50
+ - `path/to/file1.ts`
51
+
52
+ ### 1.5 Best-Guess Diagnosis
53
+ [Why approach failed]
54
+
55
+ ## PART 2: FULL FILE CONTENTS
56
+ [EMBED entire content of each file]
57
+
58
+ ## PART 3: DIRECTIVE FOR ORCHESTRATOR
59
+ 1. Analyze the failure
60
+ 2. Formulate a new plan
61
+ 3. Execute or hand off
62
+ ```
63
+
64
+ 3. **Open new session** and paste the report content.
65
+
66
+ ---
67
+
68
+ ## Option 2: Migrate (Context Snapshot)
69
+
70
+ **Use when**: Chat is stale, need fresh session with same context.
71
+
72
+ ### Auto-Detect Context
73
+ ```bash
74
+ cat docs/Project_Requirements.md 2>/dev/null
75
+ git log --oneline -20
76
+ gh issue list --state open --limit 10 --json number,title
77
+ cat docs/Coding_Guidelines.md 2>/dev/null
78
+ ```
79
+
80
+ ### Generate `docs/migration_snapshot.md`:
81
+
82
+ ```markdown
83
+ # State Snapshot Handoff Prompt
84
+
85
+ ## To the New AI: Adopt This Identity
86
+ You are the **VibeCode Project Orchestrator**...
87
+
88
+ ## Project Details
89
+ - **Name:** [from PRD]
90
+ - **Stack:** [from PRD]
91
+
92
+ ## Milestones
93
+ [From git log]
94
+
95
+ ## Current Status
96
+ - In Progress: [from GitHub]
97
+ - Next: [from roadmap]
98
+
99
+ ## Key Files
100
+ - `docs/Project_Requirements.md`
101
+ - `docs/Coding_Guidelines.md`
102
+
103
+ ## First Action
104
+ Read files above, then ask: "What would you like to work on next?"
105
+ ```
106
+
107
+ ---
108
+
109
+ ## Option 3: Reset (Mid-Conversation)
110
+
111
+ **Use when**: Agent is making mistakes but can recover.
112
+
113
+ ### 🛑 HARD STOP CHECKLIST
114
+
115
+ ```
116
+ □ Did I READ the target file with view_file BEFORE editing?
117
+ □ Did I copy the EXACT target content, including whitespace?
118
+ □ Am I editing LESS than 50 lines at a time?
119
+ □ Did I verify all variable names exist in scope?
120
+ □ Did I check props are destructured in function signature?
121
+ ```
122
+
123
+ ### Common Mistakes
124
+ | Pattern | Fix |
125
+ |---------|-----|
126
+ | Duplicate lines | Read file first, count declarations |
127
+ | Missing destructuring | Check props signature |
128
+ | Broken JSX | Close tags in same edit |
129
+ | Phantom variables | grep in file before using |
130
+ | Edit offset drift | Re-read file after each edit |
131
+
132
+ ### File Edit Protocol
133
+ 1. `view_file_outline` → Understand structure
134
+ 2. `view_file` (exact range) → Copy PRECISE content
135
+ 3. Make edit with MINIMAL scope
136
+ 4. Re-check file before next edit
137
+
138
+ ### Verified Completion
139
+ Before saying "done":
140
+ ```bash
141
+ npx tsc --noEmit # MUST pass
142
+ ```
143
+ - No duplicate declarations?
144
+ - No missing imports?
145
+ - Task actually solved?
146
+
147
+ **If errors persist after 3 fix attempts → use Escalate.**
@@ -0,0 +1,81 @@
1
+ ---
2
+ name: code-review
3
+ description: Run J-Star code review on staged changes. Analyze, fix P0/P1 issues, and iterate until clean.
4
+ ---
5
+
6
+ # Code Review Skill
7
+
8
+ Run the J-Star Reviewer on staged changes, allowing iterative fixing of issues.
9
+
10
+ ## When to Use
11
+ - Before committing code changes
12
+ - When code quality issues are mentioned
13
+ - As a quality gate before merging
14
+ - When user asks to "review this code"
15
+
16
+ ## Quick Start
17
+
18
+ ### 1. Build the Brain (First Time Only)
19
+ ```bash
20
+ jstar init
21
+ ```
22
+
23
+ ### 2. Stage Changes
24
+ ```bash
25
+ git add .
26
+ ```
27
+
28
+ ### 3. Run Review
29
+ ```bash
30
+ # Standard review (staged changes)
31
+ jstar review
32
+
33
+ # Retroactive (already committed)
34
+ jstar review --last
35
+
36
+ # Branch/PR review (against main)
37
+ jstar review --pr
38
+ ```
39
+
40
+ ## Fix Loop Protocol
41
+
42
+ 1. **Read Output**: Check `.jstar/last-review.md` or console
43
+ 2. **Prioritize**: Focus on **P0_CRITICAL** and **P1_HIGH** only
44
+ 3. **Loop Strategy**:
45
+ - If P0/P1 found → Fix → Stage → Re-review
46
+ - If only P2_MEDIUM → Consider "Good Enough"
47
+ - **MAX LOOPS: 3** — If issues persist, stop and ask user
48
+
49
+ ## Handling False Positives (Headless Mode)
50
+
51
+ ```bash
52
+ # Start headless session
53
+ jstar chat --headless
54
+
55
+ # List issues
56
+ echo '{"action": "list"}' | jstar chat --headless
57
+
58
+ # Debate an issue
59
+ echo '{"action": "debate", "issueId": 0, "argument": "This is correct because..."}' | jstar chat --headless
60
+
61
+ # Exit
62
+ echo '{"action": "exit"}' | jstar chat --headless
63
+ ```
64
+
65
+ ## AI Fix Cycle
66
+ ```
67
+ 1. jstar review --json → Parse findings
68
+ 2. Apply code fixes
69
+ 3. git add . → Stage changes
70
+ 4. jstar init → Update brain (if new files added)
71
+ 5. jstar review --json → Verify fixes
72
+ 6. Repeat until P0/P1 = 0
73
+ ```
74
+
75
+ ## Headless Commands
76
+ | Action | Parameters | Description |
77
+ |--------|------------|-------------|
78
+ | `list` | — | List all current issues |
79
+ | `debate` | `issueId`, `argument` | Challenge an issue |
80
+ | `ignore` | `issueId` | Mark issue as ignored |
81
+ | `exit` | — | End session, get final report |
@@ -0,0 +1,103 @@
1
+ ---
2
+ name: component-analysis
3
+ description: Analyze a React/TypeScript component for compliance with coding guidelines and suggest improvements.
4
+ ---
5
+
6
+ # Component Analysis Skill
7
+
8
+ Analyze components for coding standards compliance and provide actionable improvements.
9
+
10
+ ## When to Use
11
+ - Refactoring discussions
12
+ - Before major component changes
13
+ - When asked to "analyze" or "audit" a component
14
+ - Code review of specific files
15
+
16
+ ## Analysis Process
17
+
18
+ ### 1. Identify Component
19
+ Get from user or extract:
20
+ - **Component Path**: Full file path
21
+ - **Component Name**: The component name
22
+
23
+ ### 2. Initial Examination
24
+ Read file and check:
25
+ - Code structure and organization
26
+ - Purpose and functionality
27
+ - Immediate issues
28
+ - **Total lines** (check 200-line rule)
29
+
30
+ ### 3. Coding Guidelines Check
31
+
32
+ | Check | What to Look For |
33
+ |-------|------------------|
34
+ | **Size** | < 200 lines (refactor if exceeded) |
35
+ | **Single Responsibility** | Does one thing well |
36
+ | **TypeScript** | Proper types, interfaces for props |
37
+ | **Naming** | PascalCase components, camelCase functions, handle* events |
38
+ | **Hooks** | Proper use of React hooks and effects |
39
+ | **Documentation** | TSDoc/JSDoc comments |
40
+ | **Imports** | Organized, no unused imports |
41
+
42
+ ### 4. Styling Check
43
+
44
+ | Check | What to Look For |
45
+ |-------|------------------|
46
+ | **Tailwind v4** | Using @theme integration |
47
+ | **Color Tokens** | Using primary, accent, semantic tokens |
48
+ | **Responsive** | Mobile-first (sm:, md:, lg:) |
49
+ | **Dark Mode** | dark: variants |
50
+ | **Performance** | Avoiding expensive backdrop-filter |
51
+
52
+ ### 5. Mobile-First Check
53
+ - Mobile-first breakpoints
54
+ - Touch-friendly interactions
55
+ - Responsive typography
56
+ - Container responsiveness
57
+
58
+ ### 6. Generate Report
59
+
60
+ ```markdown
61
+ # Component Analysis: [Name]
62
+
63
+ **File:** `[path]`
64
+ **Lines:** [X] / 200 max
65
+ **Score:** [X]/10
66
+
67
+ ## ✅ Compliant
68
+ - [Things done well]
69
+
70
+ ## ⚠️ Warnings
71
+ - [Minor issues]
72
+
73
+ ## ❌ Violations
74
+ - [Critical issues]
75
+
76
+ ## 📋 Recommendations
77
+
78
+ ### High Priority
79
+ 1. [Critical fix]
80
+
81
+ ### Medium Priority
82
+ 1. [Improvement]
83
+
84
+ ## 🔧 Suggested Fixes
85
+ [Before/After code examples]
86
+ ```
87
+
88
+ ### 7. Offer Next Steps
89
+ - **A)** Implement high-priority fixes
90
+ - **B)** Create feature documentation
91
+ - **C)** Refactor if > 200 lines
92
+
93
+ ## Severity Levels
94
+ - 🔴 **Critical**: Breaking functionality, security issues
95
+ - 🟡 **Major**: Performance, accessibility violations
96
+ - 🟢 **Minor**: Code style, documentation
97
+
98
+ ## Common Violations
99
+ 1. No TypeScript interface for props → Define `interface ComponentProps`
100
+ 2. useEffect missing dependencies → Add to dependency array
101
+ 3. Hardcoded colors → Use Tailwind tokens
102
+ 4. No dark mode → Add `dark:` variants
103
+ 5. Missing alt text → Add descriptive alt attributes
@@ -0,0 +1,78 @@
1
+ ---
2
+ name: git-worktree
3
+ description: Manage git worktrees for parallel agent development. Create, sync, and remove isolated dev environments.
4
+ ---
5
+
6
+ # Git Worktree Skill
7
+
8
+ Manage parallel development environments without manual path juggling.
9
+
10
+ ## When to Use
11
+ - Setting up parallel agents
12
+ - Multi-agent development
13
+ - When "worktree" is mentioned
14
+ - Need isolated environments for different features
15
+
16
+ ## Status Check
17
+ ```bash
18
+ git worktree list
19
+ git branch --list
20
+ ```
21
+
22
+ ## Actions
23
+
24
+ ### [NEW] Create Agent Environment
25
+
26
+ 1. **Name the Agent**: Short identifier (e.g., `frontend-refactor`, `agent-3`)
27
+ 2. **Define Paths**:
28
+ - Branch: `[agent-name]`
29
+ - Folder: `../[repo-name]-[agent-name]`
30
+
31
+ 3. **Execute**:
32
+ ```bash
33
+ git branch [branch_name]
34
+ git worktree add [folder_path] [branch_name]
35
+ ```
36
+
37
+ 4. **Validate**: `git worktree list`
38
+
39
+ 5. **Context Migration** (ask user):
40
+ ```bash
41
+ cp .env [worktree_path]/.env
42
+ # If SQLite:
43
+ mkdir -p [worktree_path]/prisma
44
+ cp prisma/dev.db [worktree_path]/prisma/dev.db
45
+ ```
46
+
47
+ 6. **Initialize**: `pnpm install` in new worktree
48
+
49
+ ---
50
+
51
+ ### [SYNC] Synchronize Agents
52
+
53
+ 1. Ask: Sync **ALL** or **SPECIFIC** worktree?
54
+ 2. Execute:
55
+ ```bash
56
+ git fetch origin
57
+ cd [worktree_path]
58
+ git merge origin/main # or rebase
59
+ cd -
60
+ ```
61
+
62
+ ---
63
+
64
+ ### [KILL] Teardown Agent
65
+
66
+ 1. Select worktree from list
67
+ 2. Execute:
68
+ ```bash
69
+ git worktree remove [worktree_path]
70
+ git branch -d [branch_name] # Ask before deleting!
71
+ git worktree prune
72
+ ```
73
+
74
+ ## Troubleshooting
75
+
76
+ - **"already checked out"**: Use a new branch name
77
+ - **Stale entries**: Run `git worktree prune`
78
+ - **Files still tracked**: Directory was deleted manually—prune first
@@ -0,0 +1,220 @@
1
+ ---
2
+ name: github-ops
3
+ description: GitHub automation patterns - issues, projects, labels. Includes smart-ops scripts and bulk issue sync.
4
+ ---
5
+
6
+ # GitHub Ops Skill
7
+
8
+ Complete GitHub automation toolkit using the `gh` CLI. Covers issue management, project boards, label systems, and bulk operations.
9
+
10
+ ## When to Use
11
+ - User mentions "GitHub issues", "project board", or "gh cli"
12
+ - Setting up automation for a new repo
13
+ - Bulk-creating issues from markdown specs
14
+ - Managing GitHub Projects (v2)
15
+
16
+ ## Prerequisites
17
+
18
+ ```bash
19
+ # Install GitHub CLI
20
+ winget install GitHub.cli # Windows
21
+ brew install gh # macOS
22
+
23
+ # Authenticate
24
+ gh auth login
25
+
26
+ # Verify
27
+ gh auth status
28
+ ```
29
+
30
+ ---
31
+
32
+ ## 1. Bulk Issue Sync (publish_issues.ps1)
33
+
34
+ **Location:** `$env:USERPROFILE\.gemini\antigravity\skills\github-ops\scripts\publish_issues.ps1`
35
+
36
+ > [!TIP]
37
+ > The script auto-detects the repository from the current working directory. Just `cd` to your project folder before running.
38
+
39
+ ### Features
40
+ | Feature | Description |
41
+ |---------|-------------|
42
+ | **Smart Sync** | Only processes files that changed since last run (uses `.issue-sync-state.json`) |
43
+ | **Auto-Close** | Closes issue when all checkboxes (`- [x]`) are ticked |
44
+ | **Auto-Archive** | Moves completed `.md` files to `closed/` subfolder |
45
+ | **Natural Sort** | Processes Issue_1, Issue_2... Issue_10 (not 1, 10, 11) |
46
+ | **Date Sync** | Sets Start/Target dates on GitHub Projects |
47
+
48
+ ### Required Flags
49
+
50
+ | Flag | Required? | Description |
51
+ |------|-----------|-------------|
52
+ | (none) | - | Creates new issues only (skips existing) |
53
+ | `-Update` | For sync | Updates existing issues |
54
+ | `-AutoArchive` | Optional | Moves completed issues to `closed/` folder |
55
+ | `-DryRun` | Optional | Preview mode - no changes made |
56
+ | `-Force` | Optional | Bypass change detection, sync all files |
57
+
58
+ ### Project Date Sync Flags (ALL required with -SyncDates)
59
+
60
+ | Flag | Description | How to Get |
61
+ |------|-------------|------------|
62
+ | `-SyncDates` | Enable date sync | Just add the flag |
63
+ | `-ProjectNumber` | Project board number | `gh project list --owner USERNAME` |
64
+ | `-ProjectId` | Project node ID | See below |
65
+ | `-StartDateFieldId` | Start Date field ID | See below |
66
+ | `-TargetDateFieldId` | Target Date field ID | See below |
67
+
68
+ ### How to Get Project IDs
69
+
70
+ ```powershell
71
+ # 1. List projects to get project number
72
+ gh project list --owner USERNAME
73
+
74
+ # 2. Get field IDs (replace NUMBER with project number)
75
+ gh project field-list NUMBER --owner USERNAME --format json
76
+ ```
77
+
78
+ Look for "Start Date" and "Target Date" in the JSON output. If they don't exist:
79
+ ```bash
80
+ gh project field-create NUMBER --owner USERNAME --name "Start Date" --data-type DATE
81
+ gh project field-create NUMBER --owner USERNAME --name "Target Date" --data-type DATE
82
+ ```
83
+
84
+ ### Agent Protocol: Before Running This Script
85
+
86
+ **ALWAYS ask the user:**
87
+
88
+ 1. "Do you want to sync to a GitHub Project with dates?"
89
+ - If YES → Need all project IDs
90
+ - If NO → Skip `-SyncDates` flag
91
+
92
+ 2. "Should completed issues be archived to a `closed/` subfolder?"
93
+ - If YES → Add `-AutoArchive`
94
+
95
+ 3. "First run or update existing?"
96
+ - First run → No flags needed (or just `-AutoArchive`)
97
+ - Update → Add `-Update`
98
+
99
+ **ALWAYS run with `-DryRun` first** to preview changes.
100
+
101
+ ### Example Commands
102
+
103
+ ```powershell
104
+ # Basic: Create new issues only
105
+ powershell -ExecutionPolicy Bypass -File ~/.gemini/antigravity/skills/github-ops/scripts/publish_issues.ps1
106
+
107
+ # Dry run preview
108
+ powershell -ExecutionPolicy Bypass -File ~/.gemini/antigravity/skills/github-ops/scripts/publish_issues.ps1 -Update -DryRun
109
+
110
+ # Update + archive completed
111
+ powershell -ExecutionPolicy Bypass -File ~/.gemini/antigravity/skills/github-ops/scripts/publish_issues.ps1 -Update -AutoArchive
112
+
113
+ # Full sync with project dates
114
+ powershell -ExecutionPolicy Bypass -File ~/.gemini/antigravity/skills/github-ops/scripts/publish_issues.ps1 `
115
+ -Update -AutoArchive -SyncDates `
116
+ -ProjectNumber 7 `
117
+ -ProjectId "PVT_xxx" `
118
+ -StartDateFieldId "PVTF_xxx" `
119
+ -TargetDateFieldId "PVTF_yyy"
120
+ ```
121
+
122
+ ---
123
+
124
+ ## 2. Bulk Add Issues to Project
125
+
126
+ To quickly add all existing issues to a project (faster than using the sync script):
127
+
128
+ ```powershell
129
+ # Get issue numbers first
130
+ $issues = gh issue list --repo OWNER/REPO --state all --limit 500 --json number | ConvertFrom-Json
131
+
132
+ # Add each to project
133
+ $issues | ForEach-Object {
134
+ gh project item-add PROJECT_NUMBER --owner OWNER --url "https://github.com/OWNER/REPO/issues/$($_.number)"
135
+ }
136
+ ```
137
+
138
+ ---
139
+
140
+ ## 3. Quick Commands Reference
141
+
142
+ | Task | Command |
143
+ |------|---------|
144
+ | List issues | `gh issue list` |
145
+ | Create issue | `gh issue create --title "X" --body "Y" --label "bug"` |
146
+ | Close issue | `gh issue close 42 --comment "Fixed"` |
147
+ | Delete issue | `gh issue delete 42 --yes` |
148
+ | List labels | `gh label list` |
149
+ | Create label | `gh label create "priority:high" --color "FF0000"` |
150
+ | List projects | `gh project list --owner OWNER` |
151
+ | Get project fields | `gh project field-list NUMBER --owner OWNER --format json` |
152
+ | Add to project | `gh project item-add NUMBER --owner OWNER --url ISSUE_URL` |
153
+
154
+ ---
155
+
156
+ ## 4. Supported Issue Markdown Formats
157
+
158
+ ### Format A: YAML Frontmatter (Recommended)
159
+ ```markdown
160
+ ---
161
+ title: "[Feature] Clear Issue Title"
162
+ labels: enhancement, priority-high, module-name
163
+ ---
164
+
165
+ ## Acceptance Criteria
166
+ - [ ] AC1
167
+ - [ ] AC2
168
+ ```
169
+
170
+ ### Format B: Bold Markdown
171
+ ```markdown
172
+ **Title:** [Feature] Clear Issue Title
173
+ **Labels:** `enhancement`, `priority-high`
174
+
175
+ ## Acceptance Criteria
176
+ - [ ] AC1
177
+ ```
178
+
179
+ ### Format C: Markdown Headers
180
+ ```markdown
181
+ ## Title
182
+ [Feature] Clear Issue Title
183
+
184
+ ## Labels
185
+ `enhancement`, `priority-high`
186
+ ```
187
+
188
+ ---
189
+
190
+ ## 5. Label System Setup
191
+
192
+ ```bash
193
+ # Priority
194
+ gh label create "priority-critical" --color "b60205"
195
+ gh label create "priority-high" --color "d93f0b"
196
+ gh label create "priority-medium" --color "fbca04"
197
+ gh label create "priority-low" --color "0e8a16"
198
+
199
+ # Type
200
+ gh label create "type-feature" --color "0e8a16"
201
+ gh label create "type-bug" --color "d73a4a"
202
+ gh label create "type-refactor" --color "a2eeef"
203
+
204
+ # Scope
205
+ gh label create "MUS" --color "5319e7" --description "Minimum Usable Scope"
206
+ gh label create "future-scope" --color "bfdadc"
207
+ ```
208
+
209
+ ---
210
+
211
+ ## 6. Troubleshooting
212
+
213
+ | Issue | Cause | Solution |
214
+ |-------|-------|----------|
215
+ | `gh: command not found` | CLI not installed | `winget install GitHub.cli` |
216
+ | `authentication required` | Not logged in | `gh auth login` |
217
+ | Quote errors in titles | Special chars | Script auto-replaces `"` with `'` |
218
+ | "No files changed" | Already synced | Use `-Force` flag |
219
+ | Project commands fail | Wrong IDs | Run `gh project field-list` |
220
+ | Rate limiting | Too many API calls | Wait or use `-DryRun` |