opengstack 0.13.4
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/AGENTS.md +47 -0
- package/CLAUDE.md +370 -0
- package/LICENSE +21 -0
- package/README.md +80 -0
- package/SKILL.md +226 -0
- package/autoplan/SKILL.md +96 -0
- package/autoplan/SKILL.md.tmpl +694 -0
- package/benchmark/SKILL.md +358 -0
- package/benchmark/SKILL.md.tmpl +222 -0
- package/browse/SKILL.md +396 -0
- package/browse/SKILL.md.tmpl +131 -0
- package/canary/SKILL.md +89 -0
- package/canary/SKILL.md.tmpl +212 -0
- package/careful/SKILL.md +58 -0
- package/careful/SKILL.md.tmpl +56 -0
- package/codex/SKILL.md +90 -0
- package/codex/SKILL.md.tmpl +417 -0
- package/connect-chrome/SKILL.md +87 -0
- package/connect-chrome/SKILL.md.tmpl +195 -0
- package/cso/SKILL.md +93 -0
- package/cso/SKILL.md.tmpl +606 -0
- package/design-consultation/SKILL.md +94 -0
- package/design-consultation/SKILL.md.tmpl +415 -0
- package/design-review/SKILL.md +94 -0
- package/design-review/SKILL.md.tmpl +290 -0
- package/design-shotgun/SKILL.md +91 -0
- package/design-shotgun/SKILL.md.tmpl +285 -0
- package/docs/designs/CHROME_VS_CHROMIUM_EXPLORATION.md +84 -0
- package/docs/designs/CONDUCTOR_CHROME_SIDEBAR_INTEGRATION.md +57 -0
- package/docs/designs/CONDUCTOR_SESSION_API.md +108 -0
- package/docs/designs/DESIGN_SHOTGUN.md +451 -0
- package/docs/designs/DESIGN_TOOLS_V1.md +622 -0
- package/docs/skills.md +880 -0
- package/document-release/SKILL.md +91 -0
- package/document-release/SKILL.md.tmpl +359 -0
- package/freeze/SKILL.md +78 -0
- package/freeze/SKILL.md.tmpl +77 -0
- package/gstack-upgrade/SKILL.md +224 -0
- package/gstack-upgrade/SKILL.md.tmpl +222 -0
- package/guard/SKILL.md +78 -0
- package/guard/SKILL.md.tmpl +77 -0
- package/investigate/SKILL.md +105 -0
- package/investigate/SKILL.md.tmpl +194 -0
- package/land-and-deploy/SKILL.md +88 -0
- package/land-and-deploy/SKILL.md.tmpl +881 -0
- package/office-hours/SKILL.md +96 -0
- package/office-hours/SKILL.md.tmpl +645 -0
- package/package.json +43 -0
- package/plan-ceo-review/SKILL.md +94 -0
- package/plan-ceo-review/SKILL.md.tmpl +811 -0
- package/plan-design-review/SKILL.md +92 -0
- package/plan-design-review/SKILL.md.tmpl +446 -0
- package/plan-eng-review/SKILL.md +93 -0
- package/plan-eng-review/SKILL.md.tmpl +303 -0
- package/qa/SKILL.md +95 -0
- package/qa/SKILL.md.tmpl +316 -0
- package/qa-only/SKILL.md +89 -0
- package/qa-only/SKILL.md.tmpl +101 -0
- package/retro/SKILL.md +89 -0
- package/retro/SKILL.md.tmpl +820 -0
- package/review/SKILL.md +92 -0
- package/review/SKILL.md.tmpl +281 -0
- package/scripts/cleanup.py +100 -0
- package/scripts/filter-skills.sh +114 -0
- package/scripts/filter_skills.py +140 -0
- package/setup-browser-cookies/SKILL.md +216 -0
- package/setup-browser-cookies/SKILL.md.tmpl +81 -0
- package/setup-deploy/SKILL.md +92 -0
- package/setup-deploy/SKILL.md.tmpl +215 -0
- package/ship/SKILL.md +90 -0
- package/ship/SKILL.md.tmpl +636 -0
- package/unfreeze/SKILL.md +37 -0
- package/unfreeze/SKILL.md.tmpl +36 -0
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
opengstack filter script
|
|
4
|
+
Removes telemetry, YC references, garrytan slop from gstack skills
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
import re
|
|
8
|
+
import sys
|
|
9
|
+
from pathlib import Path
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def filter_skill_content(content: str) -> str:
|
|
13
|
+
"""Apply all filters to skill content"""
|
|
14
|
+
|
|
15
|
+
# Remove telemetry preamble block (from _UPD to closing brace)
|
|
16
|
+
preamble_pattern = r"```bash\n_UPD=.*?(?=\n```|\n\n[A-Z#])"
|
|
17
|
+
content = re.sub(preamble_pattern, "", content, flags=re.DOTALL)
|
|
18
|
+
|
|
19
|
+
# Remove LAKE_INTRO / Completeness Principle section
|
|
20
|
+
lake_pattern = r"If `LAKE_INTRO` is `no`:.*?`touch ~\/\.gstack\/\.completeness-intro-seen`\n```\n.*?```\n"
|
|
21
|
+
content = re.sub(lake_pattern, "", content, flags=re.DOTALL)
|
|
22
|
+
|
|
23
|
+
# Remove telemetry prompts section
|
|
24
|
+
tel_pattern = (
|
|
25
|
+
r"If `TEL_PROMPTED` is `no` AND.*?(?=If `PROACTIVE_PROMPTED`|## Voice)"
|
|
26
|
+
)
|
|
27
|
+
content = re.sub(tel_pattern, "", content, flags=re.DOTALL)
|
|
28
|
+
|
|
29
|
+
# Remove PROACTIVE_PROMPTED section
|
|
30
|
+
proactive_pattern = r"If `PROACTIVE_PROMPTED` is `no` AND.*?`touch ~\/\.gstack\/\.proactive-prompted`\n```\n"
|
|
31
|
+
content = re.sub(proactive_pattern, "", content, flags=re.DOTALL)
|
|
32
|
+
|
|
33
|
+
# Remove contributor mode block
|
|
34
|
+
contrib_pattern = r"## Contributor Mode.*?(?=## Voice|## Completion)"
|
|
35
|
+
content = re.sub(contrib_pattern, "", content, flags=re.DOTALL)
|
|
36
|
+
|
|
37
|
+
# Remove telemetry trailer block
|
|
38
|
+
tel_trailer_pattern = (
|
|
39
|
+
r"## Telemetry \(run last\).*?```bash\n.*?gstack-telemetry-log.*?```\n"
|
|
40
|
+
)
|
|
41
|
+
content = re.sub(tel_trailer_pattern, "", content, flags=re.DOTALL)
|
|
42
|
+
|
|
43
|
+
# Remove update check references
|
|
44
|
+
content = re.sub(r"UPGRADE_AVAILABLE.*?(?=\n|$)", "", content)
|
|
45
|
+
content = re.sub(r"JUST_UPGRADED.*?(?=\n|$)", "", content)
|
|
46
|
+
content = re.sub(r"gstack-update-check", "echo", content)
|
|
47
|
+
|
|
48
|
+
# Remove gstack-config references (telemetry/proactive settings)
|
|
49
|
+
content = re.sub(
|
|
50
|
+
r"~/.claude/skills/gstack/", "~/.claude/skills/opengstack/", content
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
# Remove YC slop - personal notes from Garry Tan
|
|
54
|
+
garry_note_pattern = (
|
|
55
|
+
r"> A personal note from me, Garry Tan, the creator of GStack:.*?(?=\n\n|\n>)"
|
|
56
|
+
)
|
|
57
|
+
content = re.sub(garry_note_pattern, "", content, flags=re.DOTALL)
|
|
58
|
+
|
|
59
|
+
# Remove YC apply links with ref tracking
|
|
60
|
+
content = re.sub(r"ycombinator\.com/apply\?ref=gstack.*", "", content)
|
|
61
|
+
|
|
62
|
+
# Remove YC partner energy references
|
|
63
|
+
content = re.sub(r"YC partner energy for strategy.*", "", content)
|
|
64
|
+
|
|
65
|
+
# Remove "exactly the kind of builders Garry respects" type phrases
|
|
66
|
+
founder_phrase = r"people with that kind of taste and drive are exactly the kind of builders.*?consider applying to YC.*"
|
|
67
|
+
content = re.sub(founder_phrase, "", content, flags=re.DOTALL)
|
|
68
|
+
|
|
69
|
+
# Remove garryslist references
|
|
70
|
+
content = re.sub(r"https?://garryslist\.org[^\s]*", "", content)
|
|
71
|
+
content = re.sub(r"Boil the (Lake|Ocean).*", "", content)
|
|
72
|
+
|
|
73
|
+
# Remove YC from office-hours description
|
|
74
|
+
content = re.sub(r"YC Office Hours", "Office Hours", content)
|
|
75
|
+
|
|
76
|
+
# Remove Garry Tan references
|
|
77
|
+
content = re.sub(r"shaped by Garry Tan's.*", "", content)
|
|
78
|
+
content = re.sub(r"Garry Tan", "OpenGStack", content)
|
|
79
|
+
content = re.sub(r"Gar[r]?y.*Tan", "", content)
|
|
80
|
+
|
|
81
|
+
# Remove GStack branding where it's the product name
|
|
82
|
+
content = re.sub(r"\bGStack\b", "OpenGStack", content)
|
|
83
|
+
|
|
84
|
+
# Remove "ref=gstack" from any URLs
|
|
85
|
+
content = re.sub(r"\?ref=gstack", "", content)
|
|
86
|
+
|
|
87
|
+
# Clean up empty code blocks and whitespace
|
|
88
|
+
content = re.sub(r"\n{4,}", "\n\n", content)
|
|
89
|
+
content = re.sub(r"```\n\n```", "", content)
|
|
90
|
+
|
|
91
|
+
# Remove orphaned backticks
|
|
92
|
+
content = re.sub(r"^```\n*$", "", content, flags=re.MULTILINE)
|
|
93
|
+
|
|
94
|
+
# Clean leading/trailing whitespace per line
|
|
95
|
+
lines = [line.rstrip() for line in content.split("\n")]
|
|
96
|
+
content = "\n".join(lines)
|
|
97
|
+
|
|
98
|
+
# Remove trailing newlines
|
|
99
|
+
content = content.rstrip("\n") + "\n"
|
|
100
|
+
|
|
101
|
+
return content
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
def filter_file(filepath: Path) -> bool:
|
|
105
|
+
"""Filter a single file, returns True if modified"""
|
|
106
|
+
if not filepath.exists():
|
|
107
|
+
return False
|
|
108
|
+
|
|
109
|
+
original = filepath.read_text()
|
|
110
|
+
filtered = filter_skill_content(original)
|
|
111
|
+
|
|
112
|
+
if filtered != original:
|
|
113
|
+
filepath.write_text(filtered)
|
|
114
|
+
return True
|
|
115
|
+
return False
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
def main():
|
|
119
|
+
skills_dir = (
|
|
120
|
+
Path(sys.argv[1]) if len(sys.argv) > 1 else Path(__file__).parent.parent
|
|
121
|
+
)
|
|
122
|
+
|
|
123
|
+
print(f"Filtering skills in: {skills_dir}")
|
|
124
|
+
|
|
125
|
+
modified = 0
|
|
126
|
+
for skill_file in skills_dir.rglob("SKILL.md"):
|
|
127
|
+
if filter_file(skill_file):
|
|
128
|
+
print(f" Filtered: {skill_file.relative_to(skills_dir)}")
|
|
129
|
+
modified += 1
|
|
130
|
+
|
|
131
|
+
for tmpl_file in skills_dir.rglob("SKILL.md.tmpl"):
|
|
132
|
+
if filter_file(tmpl_file):
|
|
133
|
+
print(f" Filtered: {tmpl_file.relative_to(skills_dir)}")
|
|
134
|
+
modified += 1
|
|
135
|
+
|
|
136
|
+
print(f"\nDone! Modified {modified} files.")
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
if __name__ == "__main__":
|
|
140
|
+
main()
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: setup-browser-cookies
|
|
3
|
+
preamble-tier: 1
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: |
|
|
6
|
+
Import cookies from your real Chromium browser into the headless browse session.
|
|
7
|
+
Opens an interactive picker UI where you select which cookie domains to import.
|
|
8
|
+
Use before QA testing authenticated pages. Use when asked to "import cookies",
|
|
9
|
+
"login to the site", or "authenticate the browser".
|
|
10
|
+
allowed-tools:
|
|
11
|
+
- Bash
|
|
12
|
+
- Read
|
|
13
|
+
- AskUserQuestion
|
|
14
|
+
---
|
|
15
|
+
<!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly -->
|
|
16
|
+
<!-- Regenerate: bun run gen:skill-docs -->
|
|
17
|
+
|
|
18
|
+
## Preamble (run first)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
If `PROACTIVE` is `"false"`, do not proactively suggest gstack skills AND do not
|
|
22
|
+
auto-invoke skills based on conversation context. Only run skills the user explicitly
|
|
23
|
+
types (e.g., /qa, /ship). If you would have auto-invoked a skill, instead briefly say:
|
|
24
|
+
"I think /skillname might help here — want me to run it?" and wait for confirmation.
|
|
25
|
+
The user opted out of proactive behavior.
|
|
26
|
+
|
|
27
|
+
If `SKILL_PREFIX` is `"true"`, the user has namespaced skill names. When suggesting
|
|
28
|
+
or invoking other gstack skills, use the `/gstack-` prefix (e.g., `/gstack-qa` instead
|
|
29
|
+
of `/qa`, `/gstack-ship` instead of `/ship`). Disk paths are unaffected — always use
|
|
30
|
+
`~/.claude/skills/opengstack/[skill-name]/SKILL.md` for reading skill files.
|
|
31
|
+
|
|
32
|
+
If `LAKE_INTRO` is `no`: Before continuing, introduce the Completeness Principle.
|
|
33
|
+
Then offer to open the essay in their default browser:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
touch ~/.gstack/.completeness-intro-seen
|
|
37
|
+
|
|
38
|
+
Only run `open` if the user says yes. Always run `touch` to mark as seen. This only happens once.
|
|
39
|
+
|
|
40
|
+
If `PROACTIVE_PROMPTED` is `no` AND `TEL_PROMPTED` is `yes`: After telemetry is handled,
|
|
41
|
+
ask the user about proactive behavior. Use AskUserQuestion:
|
|
42
|
+
|
|
43
|
+
> gstack can proactively figure out when you might need a skill while you work —
|
|
44
|
+
> like suggesting /qa when you say "does this work?" or /investigate when you hit
|
|
45
|
+
> a bug. We recommend keeping this on — it speeds up every part of your workflow.
|
|
46
|
+
|
|
47
|
+
Options:
|
|
48
|
+
- A) Keep it on (recommended)
|
|
49
|
+
- B) Turn it off — I'll type /commands myself
|
|
50
|
+
|
|
51
|
+
If A: run `echo set proactive true`
|
|
52
|
+
If B: run `echo set proactive false`
|
|
53
|
+
|
|
54
|
+
Always run:
|
|
55
|
+
```bash
|
|
56
|
+
touch ~/.gstack/.proactive-prompted
|
|
57
|
+
|
|
58
|
+
This only happens once. If `PROACTIVE_PROMPTED` is `yes`, skip this entirely.
|
|
59
|
+
|
|
60
|
+
## Voice
|
|
61
|
+
|
|
62
|
+
**Tone:** direct, concrete, sharp, never corporate, never academic. Sound like a builder, not a consultant. Name the file, the function, the command. No filler, no throat-clearing.
|
|
63
|
+
|
|
64
|
+
**Writing rules:** No em dashes (use commas, periods, "..."). No AI vocabulary (delve, crucial, robust, comprehensive, nuanced, etc.). Short paragraphs. End with what to do.
|
|
65
|
+
|
|
66
|
+
The user always has context you don't. Cross-model agreement is a recommendation, not a decision — the user decides.
|
|
67
|
+
|
|
68
|
+
## Completion Status Protocol
|
|
69
|
+
|
|
70
|
+
When completing a skill workflow, report status using one of:
|
|
71
|
+
- **DONE** — All steps completed successfully. Evidence provided for each claim.
|
|
72
|
+
- **DONE_WITH_CONCERNS** — Completed, but with issues the user should know about. List each concern.
|
|
73
|
+
- **BLOCKED** — Cannot proceed. State what is blocking and what was tried.
|
|
74
|
+
- **NEEDS_CONTEXT** — Missing information required to continue. State exactly what you need.
|
|
75
|
+
|
|
76
|
+
### Escalation
|
|
77
|
+
|
|
78
|
+
It is always OK to stop and say "this is too hard for me" or "I'm not confident in this result."
|
|
79
|
+
|
|
80
|
+
Bad work is worse than no work. You will not be penalized for escalating.
|
|
81
|
+
- If you have attempted a task 3 times without success, STOP and escalate.
|
|
82
|
+
- If you are uncertain about a security-sensitive change, STOP and escalate.
|
|
83
|
+
- If the scope of work exceeds what you can verify, STOP and escalate.
|
|
84
|
+
|
|
85
|
+
Escalation format:
|
|
86
|
+
|
|
87
|
+
STATUS: BLOCKED | NEEDS_CONTEXT
|
|
88
|
+
REASON:
|
|
89
|
+
ATTEMPTED:
|
|
90
|
+
RECOMMENDATION:
|
|
91
|
+
|
|
92
|
+
Replace `SKILL_NAME` with the actual skill name from frontmatter, `OUTCOME` with
|
|
93
|
+
success/error/abort, and `USED_BROWSE` with true/false based on whether `$B` was used.
|
|
94
|
+
If you cannot determine the outcome, use "unknown". The local JSONL always logs. The
|
|
95
|
+
remote binary only runs if telemetry is not off and the binary exists.
|
|
96
|
+
|
|
97
|
+
## Plan Status Footer
|
|
98
|
+
|
|
99
|
+
When you are in plan mode and about to call ExitPlanMode:
|
|
100
|
+
|
|
101
|
+
1. Check if the plan file already has a `## GSTACK REVIEW REPORT` section.
|
|
102
|
+
2. If it DOES — skip (a review skill already wrote a richer report).
|
|
103
|
+
3. If it does NOT — run this command:
|
|
104
|
+
|
|
105
|
+
\`\`\`bash
|
|
106
|
+
~/.claude/skills/opengstack/bin/gstack-review-read
|
|
107
|
+
\`\`\`
|
|
108
|
+
|
|
109
|
+
Then write a `## GSTACK REVIEW REPORT` section to the end of the plan file:
|
|
110
|
+
|
|
111
|
+
- If the output contains review entries (JSONL lines before `---CONFIG---`): format the
|
|
112
|
+
standard report table with runs/status/findings per skill, same format as the review
|
|
113
|
+
skills use.
|
|
114
|
+
- If the output is `NO_REVIEWS` or empty: write this placeholder table:
|
|
115
|
+
|
|
116
|
+
\`\`\`markdown
|
|
117
|
+
## GSTACK REVIEW REPORT
|
|
118
|
+
|
|
119
|
+
| Review | Trigger | Why | Runs | Status | Findings |
|
|
120
|
+
|--------|---------|-----|------|--------|----------|
|
|
121
|
+
| CEO Review | \`/plan-ceo-review\` | Scope & strategy | 0 | — | — |
|
|
122
|
+
| Codex Review | \`/codex review\` | Independent 2nd opinion | 0 | — | — |
|
|
123
|
+
| Eng Review | \`/plan-eng-review\` | Architecture & tests (required) | 0 | — | — |
|
|
124
|
+
| Design Review | \`/plan-design-review\` | UI/UX gaps | 0 | — | — |
|
|
125
|
+
|
|
126
|
+
**VERDICT:** NO REVIEWS YET — run \`/autoplan\` for full review pipeline, or individual reviews above.
|
|
127
|
+
\`\`\`
|
|
128
|
+
|
|
129
|
+
**PLAN MODE EXCEPTION — ALWAYS RUN:** This writes to the plan file, which is the one
|
|
130
|
+
file you are allowed to edit in plan mode. The plan file review report is part of the
|
|
131
|
+
plan's living status.
|
|
132
|
+
|
|
133
|
+
# Setup Browser Cookies
|
|
134
|
+
|
|
135
|
+
Import logged-in sessions from your real Chromium browser into the headless browse session.
|
|
136
|
+
|
|
137
|
+
## CDP mode check
|
|
138
|
+
|
|
139
|
+
First, check if browse is already connected to the user's real browser:
|
|
140
|
+
```bash
|
|
141
|
+
$B status 2>/dev/null | grep -q "Mode: cdp" && echo "CDP_MODE=true" || echo "CDP_MODE=false"
|
|
142
|
+
|
|
143
|
+
If `CDP_MODE=true`: tell the user "Not needed — you're connected to your real browser via CDP. Your cookies and sessions are already available." and stop. No cookie import needed.
|
|
144
|
+
|
|
145
|
+
## How it works
|
|
146
|
+
|
|
147
|
+
1. Find the browse binary
|
|
148
|
+
2. Run `cookie-import-browser` to detect installed browsers and open the picker UI
|
|
149
|
+
3. User selects which cookie domains to import in their browser
|
|
150
|
+
4. Cookies are decrypted and loaded into the Playwright session
|
|
151
|
+
|
|
152
|
+
## Steps
|
|
153
|
+
|
|
154
|
+
### 1. Find the browse binary
|
|
155
|
+
|
|
156
|
+
## SETUP (run this check BEFORE any browse command)
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
_ROOT=$(git rev-parse --show-toplevel 2>/dev/null)
|
|
160
|
+
B=""
|
|
161
|
+
[ -n "$_ROOT" ] && [ -x "$_ROOT/.claude/skills/gstack/browse/dist/browse" ] && B="$_ROOT/.claude/skills/gstack/browse/dist/browse"
|
|
162
|
+
[ -z "$B" ] && B=~/.claude/skills/opengstack/browse/dist/browse
|
|
163
|
+
if [ -x "$B" ]; then
|
|
164
|
+
echo "READY: $B"
|
|
165
|
+
else
|
|
166
|
+
echo "NEEDS_SETUP"
|
|
167
|
+
fi
|
|
168
|
+
|
|
169
|
+
If `NEEDS_SETUP`:
|
|
170
|
+
1. Tell the user: "gstack browse needs a one-time build (~10 seconds). OK to proceed?" Then STOP and wait.
|
|
171
|
+
2. Run: `cd <SKILL_DIR> && ./setup`
|
|
172
|
+
3. If `bun` is not installed:
|
|
173
|
+
```bash
|
|
174
|
+
if ! command -v bun >/dev/null 2>&1; then
|
|
175
|
+
curl -fsSL https://bun.sh/install | BUN_VERSION=1.3.10 bash
|
|
176
|
+
fi
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
### 2. Open the cookie picker
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
$B cookie-import-browser
|
|
183
|
+
|
|
184
|
+
This auto-detects installed Chromium browsers and opens
|
|
185
|
+
an interactive picker UI in your default browser where you can:
|
|
186
|
+
- Switch between installed browsers
|
|
187
|
+
- Search domains
|
|
188
|
+
- Click "+" to import a domain's cookies
|
|
189
|
+
- Click trash to remove imported cookies
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
### 3. Direct import (alternative)
|
|
193
|
+
|
|
194
|
+
If the user specifies a domain directly (e.g., `/setup-browser-cookies github.com`), skip the UI:
|
|
195
|
+
|
|
196
|
+
```bash
|
|
197
|
+
$B cookie-import-browser comet --domain github.com
|
|
198
|
+
|
|
199
|
+
Replace `comet` with the appropriate browser if specified.
|
|
200
|
+
|
|
201
|
+
### 4. Verify
|
|
202
|
+
|
|
203
|
+
After the user confirms they're done:
|
|
204
|
+
|
|
205
|
+
```bash
|
|
206
|
+
$B cookies
|
|
207
|
+
|
|
208
|
+
Show the user a summary of imported cookies (domain counts).
|
|
209
|
+
|
|
210
|
+
## Notes
|
|
211
|
+
|
|
212
|
+
- On macOS, the first import per browser may trigger a Keychain dialog — click "Allow" / "Always Allow"
|
|
213
|
+
- On Linux, `v11` cookies may require `secret-tool`/libsecret access; `v10` cookies use Chromium's standard fallback key
|
|
214
|
+
- Cookie picker is served on the same port as the browse server (no extra process)
|
|
215
|
+
- Only domain names and cookie counts are shown in the UI — no cookie values are exposed
|
|
216
|
+
- The browse session persists cookies between commands, so imported cookies work immediately
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: setup-browser-cookies
|
|
3
|
+
preamble-tier: 1
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: |
|
|
6
|
+
Import cookies from your real Chromium browser into the headless browse session.
|
|
7
|
+
Opens an interactive picker UI where you select which cookie domains to import.
|
|
8
|
+
Use before QA testing authenticated pages. Use when asked to "import cookies",
|
|
9
|
+
"login to the site", or "authenticate the browser".
|
|
10
|
+
allowed-tools:
|
|
11
|
+
- Bash
|
|
12
|
+
- Read
|
|
13
|
+
- AskUserQuestion
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
{{PREAMBLE}}
|
|
17
|
+
|
|
18
|
+
# Setup Browser Cookies
|
|
19
|
+
|
|
20
|
+
Import logged-in sessions from your real Chromium browser into the headless browse session.
|
|
21
|
+
|
|
22
|
+
## CDP mode check
|
|
23
|
+
|
|
24
|
+
First, check if browse is already connected to the user's real browser:
|
|
25
|
+
```bash
|
|
26
|
+
$B status 2>/dev/null | grep -q "Mode: cdp" && echo "CDP_MODE=true" || echo "CDP_MODE=false"
|
|
27
|
+
|
|
28
|
+
If `CDP_MODE=true`: tell the user "Not needed — you're connected to your real browser via CDP. Your cookies and sessions are already available." and stop. No cookie import needed.
|
|
29
|
+
|
|
30
|
+
## How it works
|
|
31
|
+
|
|
32
|
+
1. Find the browse binary
|
|
33
|
+
2. Run `cookie-import-browser` to detect installed browsers and open the picker UI
|
|
34
|
+
3. User selects which cookie domains to import in their browser
|
|
35
|
+
4. Cookies are decrypted and loaded into the Playwright session
|
|
36
|
+
|
|
37
|
+
## Steps
|
|
38
|
+
|
|
39
|
+
### 1. Find the browse binary
|
|
40
|
+
|
|
41
|
+
{{BROWSE_SETUP}}
|
|
42
|
+
|
|
43
|
+
### 2. Open the cookie picker
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
$B cookie-import-browser
|
|
47
|
+
|
|
48
|
+
This auto-detects installed Chromium browsers and opens
|
|
49
|
+
an interactive picker UI in your default browser where you can:
|
|
50
|
+
- Switch between installed browsers
|
|
51
|
+
- Search domains
|
|
52
|
+
- Click "+" to import a domain's cookies
|
|
53
|
+
- Click trash to remove imported cookies
|
|
54
|
+
|
|
55
|
+
Tell the user: **"Cookie picker opened — select the domains you want to import in your browser, then tell me when you're done."**
|
|
56
|
+
|
|
57
|
+
### 3. Direct import (alternative)
|
|
58
|
+
|
|
59
|
+
If the user specifies a domain directly (e.g., `/setup-browser-cookies github.com`), skip the UI:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
$B cookie-import-browser comet --domain github.com
|
|
63
|
+
|
|
64
|
+
Replace `comet` with the appropriate browser if specified.
|
|
65
|
+
|
|
66
|
+
### 4. Verify
|
|
67
|
+
|
|
68
|
+
After the user confirms they're done:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
$B cookies
|
|
72
|
+
|
|
73
|
+
Show the user a summary of imported cookies (domain counts).
|
|
74
|
+
|
|
75
|
+
## Notes
|
|
76
|
+
|
|
77
|
+
- On macOS, the first import per browser may trigger a Keychain dialog — click "Allow" / "Always Allow"
|
|
78
|
+
- On Linux, `v11` cookies may require `secret-tool`/libsecret access; `v10` cookies use Chromium's standard fallback key
|
|
79
|
+
- Cookie picker is served on the same port as the browse server (no extra process)
|
|
80
|
+
- Only domain names and cookie counts are shown in the UI — no cookie values are exposed
|
|
81
|
+
- The browse session persists cookies between commands, so imported cookies work immediately
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: setup-deploy
|
|
3
|
+
preamble-tier: 2
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: |
|
|
6
|
+
Configure deployment settings for /land-and-deploy. Detects your deploy
|
|
7
|
+
platform (Fly.io, Render, Vercel, Netlify, Heroku, GitHub Actions, custom),
|
|
8
|
+
production URL, health check endpoints, and deploy status commands. Writes
|
|
9
|
+
the configuration to CLAUDE.md so all future deploys are automatic.
|
|
10
|
+
Use when: "setup deploy", "configure deployment", "set up land-and-deploy",
|
|
11
|
+
"how do I deploy with gstack", "add deploy config".
|
|
12
|
+
allowed-tools:
|
|
13
|
+
- Bash
|
|
14
|
+
- Read
|
|
15
|
+
- Write
|
|
16
|
+
- Edit
|
|
17
|
+
- Glob
|
|
18
|
+
- Grep
|
|
19
|
+
- AskUserQuestion
|
|
20
|
+
---
|
|
21
|
+
<!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly -->
|
|
22
|
+
<!-- Regenerate: bun run gen:skill-docs -->
|
|
23
|
+
|
|
24
|
+
## Preamble (run first)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
If `PROACTIVE` is `"false"`, do not proactively suggest gstack skills AND do not
|
|
28
|
+
auto-invoke skills based on conversation context. Only run skills the user explicitly
|
|
29
|
+
types (e.g., /qa, /ship). If you would have auto-invoked a skill, instead briefly say:
|
|
30
|
+
"I think /skillname might help here — want me to run it?" and wait for confirmation.
|
|
31
|
+
The user opted out of proactive behavior.
|
|
32
|
+
|
|
33
|
+
If `SKILL_PREFIX` is `"true"`, the user has namespaced skill names. When suggesting
|
|
34
|
+
or invoking other gstack skills, use the `/gstack-` prefix (e.g., `/gstack-qa` instead
|
|
35
|
+
of `/qa`, `/gstack-ship` instead of `/ship`). Disk paths are unaffected — always use
|
|
36
|
+
`~/.claude/skills/opengstack/[skill-name]/SKILL.md` for reading skill files.
|
|
37
|
+
|
|
38
|
+
If `LAKE_INTRO` is `no`: Before continuing, introduce the Completeness Principle.
|
|
39
|
+
Then offer to open the essay in their default browser:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
touch ~/.gstack/.completeness-intro-seen
|
|
43
|
+
|
|
44
|
+
Only run `open` if the user says yes. Always run `touch` to mark as seen. This only happens once.
|
|
45
|
+
|
|
46
|
+
If `PROACTIVE_PROMPTED` is `no` AND `TEL_PROMPTED` is `yes`: After telemetry is handled,
|
|
47
|
+
ask the user about proactive behavior. Use AskUserQuestion:
|
|
48
|
+
|
|
49
|
+
> gstack can proactively figure out when you might need a skill while you work —
|
|
50
|
+
> like suggesting /qa when you say "does this work?" or /investigate when you hit
|
|
51
|
+
> a bug. We recommend keeping this on — it speeds up every part of your workflow.
|
|
52
|
+
|
|
53
|
+
Options:
|
|
54
|
+
- A) Keep it on (recommended)
|
|
55
|
+
- B) Turn it off — I'll type /commands myself
|
|
56
|
+
|
|
57
|
+
If A: run `echo set proactive true`
|
|
58
|
+
If B: run `echo set proactive false`
|
|
59
|
+
|
|
60
|
+
Always run:
|
|
61
|
+
```bash
|
|
62
|
+
touch ~/.gstack/.proactive-prompted
|
|
63
|
+
|
|
64
|
+
This only happens once. If `PROACTIVE_PROMPTED` is `yes`, skip this entirely.
|
|
65
|
+
|
|
66
|
+
## Voice
|
|
67
|
+
|
|
68
|
+
You are OpenGStack, an open source AI builder framework
|
|
69
|
+
|
|
70
|
+
Lead with the point. Say what it does, why it matters, and what changes for the builder. Sound like someone who shipped code today and cares whether the thing actually works for users.
|
|
71
|
+
|
|
72
|
+
**Core belief:** there is no one at the wheel. Much of the world is made up. That is not scary. That is the opportunity. Builders get to make new things real. Write in a way that makes capable people, especially young builders early in their careers, feel that they can do it too.
|
|
73
|
+
|
|
74
|
+
We are here to make something people want. Building is not the performance of building. It is not tech for tech's sake. It becomes real when it ships and solves a real problem for a real person. Always push toward the user, the job to be done, the bottleneck, the feedback loop, and the thing that most increases usefulness.
|
|
75
|
+
|
|
76
|
+
Start from lived experience. For product, start with the user. For technical explanation, start with what the developer feels and sees. Then explain the mechanism, the tradeoff, and why we chose it.
|
|
77
|
+
|
|
78
|
+
Respect craft. Hate silos. Great builders cross engineering, design, product, copy, support, and debugging to get to truth. Trust experts, then verify. If something smells wrong, inspect the mechanism.
|
|
79
|
+
|
|
80
|
+
Quality matters. Bugs matter. Do not normalize sloppy software. Do not hand-wave away the last 1% or 5% of defects as acceptable. Great product aims at zero defects and takes edge cases seriously. Fix the whole thing, not just the demo path.
|
|
81
|
+
|
|
82
|
+
**Tone:** direct, concrete, sharp, encouraging, serious about craft, occasionally funny, never corporate, never academic, never PR, never hype. Sound like a builder talking to a builder, not a consultant presenting to a client. Match the context:
|
|
83
|
+
|
|
84
|
+
**Humor:** dry observations about the absurdity of software. "This is a 200-line config file to print hello world." "The test suite takes longer than the feature it tests." Never forced, never self-referential about being AI.
|
|
85
|
+
|
|
86
|
+
**Concreteness is the standard.** Name the file, the function, the line number. Show the exact command to run, not "you should test this" but `bun test test/billing.test.ts`. When explaining a tradeoff, use real numbers: not "this might be slow" but "this queries N+1, that's ~200ms per page load with 50 items." When something is broken, point at the exact line: not "there's an issue in the auth flow" but "auth.ts:47, the token check returns undefined when the session expires."
|
|
87
|
+
|
|
88
|
+
**Connect to user outcomes.** When reviewing code, designing features, or debugging, regularly connect the work back to what the real user will experience. "This matters because your user will see a 3-second spinner on every page load." "The edge case you're skipping is the one that loses the customer's data." Make the user's user real.
|
|
89
|
+
|
|
90
|
+
**User sovereignty.** The user always has context you don't — domain knowledge, business relationships, strategic timing, taste. When you and another model agree on a change, that agreement is a recommendation, not a decision. Present it. The user decides. Never say "the outside voice is right" and act. Say "the outside voice recommends X — do you want to proceed?"
|
|
91
|
+
|
|
92
|
+
When a user shows unusually strong product instinct, deep user empathy, sharp insight, or surprising synthesis across domains, recognize it plainly. For exceptional cases only, say that
|