Skip to content

Commit df1ae9f

Browse files
author
Bot
committed
Initial commit: GStack for CodeBuddy
0 parents  commit df1ae9f

File tree

6 files changed

+1223
-0
lines changed

6 files changed

+1223
-0
lines changed

.github/workflows/sync.yml

Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
name: Sync GStack to CodeBuddy
2+
3+
on:
4+
schedule:
5+
# Run daily at midnight UTC to check for updates
6+
- cron: '0 0 * * *'
7+
workflow_dispatch:
8+
push:
9+
branches:
10+
- main
11+
12+
jobs:
13+
sync:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Set up Git
25+
run: |
26+
git config --global user.name "GStack Bot"
27+
git config --global user.email "bot@github.com"
28+
29+
- name: Check for GStack updates
30+
id: check
31+
run: |
32+
# Add GStack as remote
33+
git remote add gstack https://github.com/garrytan/gstack.git || true
34+
35+
# Fetch latest
36+
git fetch gstack main --depth 1
37+
38+
# Check if there are new commits
39+
LOCAL=$(git rev-parse HEAD)
40+
REMOTE=$(git rev-parse gstack/main)
41+
42+
if [ "$LOCAL" != "$REMOTE" ]; then
43+
echo "updates=true" >> $GITHUB_OUTPUT
44+
echo "New GStack commits detected: $LOCAL -> $REMOTE"
45+
else
46+
echo "updates=false" >> $GITHUB_OUTPUT
47+
echo "GStack is up to date"
48+
fi
49+
50+
- name: Create backup of original SKILL.md
51+
if: steps.check.outputs.updates == 'true'
52+
run: |
53+
cp SKILL.md SKILL.md.backup || true
54+
55+
- name: Pull GStack
56+
if: steps.check.outputs.updates == 'true'
57+
run: |
58+
git subtree pull --prefix=gstack gstack main --squash || \
59+
git pull gstack main --allow-unrelated-histories || true
60+
61+
- name: Update CodeBuddy SKILL.md
62+
if: steps.check.outputs.updates == 'true'
63+
run: |
64+
# Create CodeBuddy-compatible SKILL.md if it doesn't exist
65+
if [[ ! -f "SKILL.md" ]]; then
66+
cat > SKILL.md << 'EOF'
67+
# GStack
68+
69+
31 specialized AI agents for product development.
70+
71+
## Skills
72+
73+
- /office-hours - Product brainstorming
74+
- /plan-ceo-review - CEO review
75+
- /plan-eng-review - Engineering review
76+
- /plan-design-review - Design review
77+
- /autoplan - Automated planning
78+
- /design-consultation - Design partner
79+
- /design-shotgun - Design exploration
80+
- /design-html - HTML generation
81+
- /design-review - Design review
82+
- /review - Code review
83+
- /investigate - Debugging
84+
- /codex - Codex second opinion
85+
- /cso - Security audit
86+
- /qa - QA testing
87+
- /qa-only - Bug reporting
88+
- /browse - Browser automation
89+
- /ship - Open PR
90+
- /land-and-deploy - Deploy
91+
- /canary - Monitoring
92+
- /benchmark - Performance
93+
- /document-release - Docs
94+
- /retro - Team retro
95+
- /learn - Memory
96+
- /careful - Warnings
97+
- /freeze - Lock
98+
- /guard - Full safety
99+
- /unfreeze - Unlock
100+
- /connect-chrome - Chrome
101+
- /setup-browser-cookies - Cookies
102+
- /setup-deploy - Deploy config
103+
- /gstack-upgrade - Updater
104+
105+
## Credit
106+
107+
By Garry Tan (Y Combinator)
108+
MIT License
109+
EOF
110+
fi
111+
112+
- name: Create/update scripts
113+
run: |
114+
# Ensure scripts are present
115+
chmod +x setup-codebuddy.sh 2>/dev/null || true
116+
117+
- name: Commit and tag
118+
if: steps.check.outputs.updates == 'true'
119+
run: |
120+
DATE=$(date +%Y%m%d)
121+
git add -A
122+
git commit -m "Sync with GStack $(date '+%Y-%m-%d')" || true
123+
git tag "v$DATE" -f || true
124+
125+
- name: Push changes
126+
if: steps.check.outputs.updates == 'true'
127+
run: |
128+
git push origin main --force || true
129+
git push origin "v$(date +%Y%m%d)" -f --tags || true
130+
131+
- name: Create Release
132+
if: steps.check.outputs.updates == 'true'
133+
uses: actions/create-release@v1
134+
env:
135+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
136+
with:
137+
tag_name: v${{ steps.date.outputs.date }}
138+
release_name: GStack CodeBuddy v${{ steps.date.outputs.date }}
139+
body: |
140+
Synced with latest GStack release.
141+
142+
## Installation
143+
144+
```bash
145+
curl -sSL https://raw.githubusercontent.com/${{ github.repository }}/main/install.sh | bash -s -- --project
146+
```
147+
148+
Or see README.md for full installation instructions.
149+
draft: false
150+
prerelease: false
151+
152+
notify:
153+
needs: sync
154+
if: always() && needs.sync.result == 'success'
155+
runs-on: ubuntu-latest
156+
157+
steps:
158+
- name: Success notification
159+
if: needs.sync.outputs.updates == 'true'
160+
run: echo "GStack synced successfully!"

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Backup files
2+
*.backup
3+
*~
4+
5+
# OS files
6+
.DS_Store
7+
Thumbs.db
8+
9+
# Temp files
10+
*.tmp
11+
*.temp
12+
13+
# Logs
14+
*.log
15+
16+
# IDE
17+
.idea/
18+
.vscode/
19+
*.swp
20+
*.swo
21+
22+
# Local config
23+
.env
24+
.env.local

README.md

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
# GStack for CodeBuddy IDE
2+
3+
One-command installation of [GStack](https://github.com/garrytan/gstack) (Garry Tan's AI development workflow - 31 specialized AI agents) for CodeBuddy IDE.
4+
5+
## Quick Install
6+
7+
### One-Liner (Recommended)
8+
9+
```bash
10+
# Project-level (current project only)
11+
curl -sSL https://raw.githubusercontent.com/[YOUR-USER]/gstack-codebuddy/main/install.sh | bash -s -- --project
12+
13+
# User-level (all projects)
14+
curl -sSL https://raw.githubusercontent.com/[YOUR-USER]/gstack-codebuddy/main/install.sh | bash -s -- --user
15+
```
16+
17+
### Manual Install
18+
19+
```bash
20+
# Clone this repository
21+
git clone https://github.com/[YOUR-USER]/gstack-codebuddy.git
22+
cd gstack-codebuddy
23+
24+
# Run installer
25+
./install.sh --project # For current project
26+
# OR
27+
./install.sh --user # For all projects
28+
```
29+
30+
## Update GStack
31+
32+
When GStack updates, simply run:
33+
34+
```bash
35+
# Auto-detect and update
36+
curl -sSL https://raw.githubusercontent.com/[YOUR-USER]/gstack-codebuddy/main/install.sh | bash -s -- --update
37+
38+
# Or from existing installation
39+
cd .codebuddy/skills/gstack
40+
./update-gstack
41+
```
42+
43+
## What is GStack?
44+
45+
GStack transforms AI coding assistants into a virtual engineering team with **31 specialized roles**:
46+
47+
### Product Planning (5)
48+
| Skill | Role | Description |
49+
|-------|------|-------------|
50+
| `/office-hours` | YC Office Hours | Product brainstorming with six forcing questions |
51+
| `/plan-ceo-review` | CEO/Founder | Strategic product review |
52+
| `/plan-eng-review` | Eng Manager | Architecture & data flow review |
53+
| `/plan-design-review` | Senior Designer | Design quality audit |
54+
| `/autoplan` | Review Pipeline | Automated planning pipeline |
55+
56+
### Design (4)
57+
| Skill | Role | Description |
58+
|-------|------|-------------|
59+
| `/design-consultation` | Design Partner | Full design system creation |
60+
| `/design-shotgun` | Design Explorer | Multiple design exploration |
61+
| `/design-html` | Design Engineer | Production HTML generation |
62+
| `/design-review` | Designer Who Codes | Design review + fixes |
63+
64+
### Development (4)
65+
| Skill | Role | Description |
66+
|-------|------|-------------|
67+
| `/review` | Staff Engineer | Code review, find bugs |
68+
| `/investigate` | Debugger | Root cause debugging |
69+
| `/codex` | Second Opinion | OpenAI Codex review |
70+
| `/cso` | Chief Security Officer | Security audit (OWASP + STRIDE) |
71+
72+
### Testing (3)
73+
| Skill | Role | Description |
74+
|-------|------|-------------|
75+
| `/qa` | QA Lead | Auto testing + fix + regression |
76+
| `/qa-only` | QA Reporter | Bug reports only |
77+
| `/browse` | QA Engineer | Browser automation |
78+
79+
### Release (4)
80+
| Skill | Role | Description |
81+
|-------|------|-------------|
82+
| `/ship` | Release Engineer | Push PR |
83+
| `/land-and-deploy` | Release Engineer | Merge + deploy + verify |
84+
| `/canary` | SRE | Post-deploy monitoring |
85+
| `/benchmark` | Performance Engineer | Performance testing |
86+
87+
### Documentation (1)
88+
| Skill | Role | Description |
89+
|-------|------|-------------|
90+
| `/document-release` | Technical Writer | Sync project docs |
91+
92+
### Process (2)
93+
| Skill | Role | Description |
94+
|-------|------|-------------|
95+
| `/retro` | Eng Manager | Team weekly retro |
96+
| `/learn` | Memory | Project memory management |
97+
98+
### Safety (4)
99+
| Skill | Role | Description |
100+
|-------|------|-------------|
101+
| `/careful` | Safety Guardrails | Danger command warnings |
102+
| `/freeze` | Edit Lock | Edit boundary lock |
103+
| `/guard` | Full Safety | Maximum safety mode |
104+
| `/unfreeze` | Unlock | Remove lock |
105+
106+
### Tools (4)
107+
| Skill | Role | Description |
108+
|-------|------|-------------|
109+
| `/connect-chrome` | Chrome Controller | Real Chrome control |
110+
| `/setup-browser-cookies` | Session Manager | Cookie import |
111+
| `/setup-deploy` | Deploy Configurator | Deploy configuration |
112+
| `/gstack-upgrade` | Self-Updater | Auto-updater |
113+
114+
## How It Works
115+
116+
### Directory Structure
117+
118+
```
119+
.codebuddy/
120+
└── skills/
121+
└── gstack/ ← GStack installed here
122+
├── SKILL.md # Main skill definition
123+
├── setup-codebuddy # Setup script
124+
├── update-gstack # Update script
125+
└── [GStack files...]
126+
```
127+
128+
### Installation Flow
129+
130+
1. **Clone**: Script clones GStack from GitHub
131+
2. **Convert**: Creates CodeBuddy-compatible SKILL.md
132+
3. **Setup**: Creates symlink to CodeBuddy skills directory
133+
4. **Ready**: Restart CodeBuddy to use GStack skills
134+
135+
### Update Flow
136+
137+
1. **Detect**: Script checks for new GStack commits
138+
2. **Pull**: Pulls latest changes from GStack repository
139+
3. **Sync**: Updates CodeBuddy-compatible files
140+
4. **Ready**: Restart CodeBuddy to use updated skills
141+
142+
## Requirements
143+
144+
- CodeBuddy IDE installed
145+
- Git
146+
- Bash shell (Linux/macOS/Windows with WSL)
147+
148+
## Auto-Sync
149+
150+
This repository includes a GitHub Actions workflow that automatically syncs with GStack daily. When GStack updates, the workflow:
151+
152+
1. Detects new commits
153+
2. Pulls latest GStack changes
154+
3. Updates CodeBuddy-compatible files
155+
4. Creates a new release tag
156+
157+
## License
158+
159+
MIT - Same as original [GStack](https://github.com/garrytan/gstack)
160+
161+
---
162+
163+
**Credit**: [Garry Tan](https://twitter.com/garrytan), President & CEO of Y Combinator

0 commit comments

Comments
 (0)