opengstack 0.13.10 → 0.14.2
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 +4 -4
- package/CLAUDE.md +127 -110
- package/README.md +10 -5
- package/SKILL.md +500 -70
- package/bin/opengstack.js +69 -69
- package/{skills/land-and-deploy/SKILL.md → commands/autoplan.md} +7 -25
- package/{skills/benchmark/SKILL.md → commands/benchmark.md} +84 -108
- package/{skills/browse/SKILL.md → commands/browse.md} +60 -81
- package/{skills/ship/SKILL.md → commands/canary.md} +7 -27
- package/{skills/careful/SKILL.md → commands/careful.md} +2 -22
- package/{skills/canary/SKILL.md → commands/codex.md} +7 -26
- package/{skills/connect-chrome/SKILL.md → commands/connect-chrome.md} +7 -24
- package/commands/cso.md +70 -0
- package/commands/design-consultation.md +70 -0
- package/commands/design-review.md +70 -0
- package/commands/design-shotgun.md +70 -0
- package/commands/document-release.md +70 -0
- package/{skills/freeze/SKILL.md → commands/freeze.md} +3 -29
- package/{skills/guard/SKILL.md → commands/guard.md} +4 -35
- package/commands/investigate.md +70 -0
- package/commands/land-and-deploy.md +70 -0
- package/commands/office-hours.md +70 -0
- package/{skills/gstack-upgrade/SKILL.md → commands/opengstack-upgrade.md} +64 -79
- package/commands/plan-ceo-review.md +70 -0
- package/commands/plan-design-review.md +70 -0
- package/commands/plan-eng-review.md +70 -0
- package/commands/qa-only.md +70 -0
- package/commands/qa.md +70 -0
- package/commands/retro.md +70 -0
- package/commands/review.md +70 -0
- package/{skills/setup-browser-cookies/SKILL.md → commands/setup-browser-cookies.md} +22 -40
- package/commands/setup-deploy.md +70 -0
- package/commands/ship.md +70 -0
- package/commands/unfreeze.md +25 -0
- package/docs/designs/CHROME_VS_CHROMIUM_EXPLORATION.md +9 -9
- package/docs/designs/CONDUCTOR_CHROME_SIDEBAR_INTEGRATION.md +2 -2
- package/docs/designs/CONDUCTOR_SESSION_API.md +16 -16
- package/docs/designs/DESIGN_SHOTGUN.md +74 -74
- package/docs/designs/DESIGN_TOOLS_V1.md +111 -111
- package/docs/skills.md +483 -202
- package/package.json +42 -43
- package/scripts/analytics.ts +188 -0
- package/scripts/dev-skill.ts +83 -0
- package/scripts/discover-skills.ts +39 -0
- package/scripts/eval-compare.ts +97 -0
- package/scripts/eval-list.ts +117 -0
- package/scripts/eval-select.ts +86 -0
- package/scripts/eval-summary.ts +188 -0
- package/scripts/eval-watch.ts +172 -0
- package/scripts/gen-skill-docs.ts +473 -0
- package/scripts/resolvers/browse.ts +129 -0
- package/scripts/resolvers/codex-helpers.ts +133 -0
- package/scripts/resolvers/composition.ts +48 -0
- package/scripts/resolvers/confidence.ts +37 -0
- package/scripts/resolvers/constants.ts +50 -0
- package/scripts/resolvers/design.ts +950 -0
- package/scripts/resolvers/index.ts +59 -0
- package/scripts/resolvers/learnings.ts +96 -0
- package/scripts/resolvers/preamble.ts +505 -0
- package/scripts/resolvers/review.ts +884 -0
- package/scripts/resolvers/testing.ts +573 -0
- package/scripts/resolvers/types.ts +45 -0
- package/scripts/resolvers/utility.ts +421 -0
- package/scripts/skill-check.ts +190 -0
- package/scripts/cleanup.py +0 -100
- package/scripts/filter-skills.sh +0 -114
- package/scripts/filter_skills.py +0 -164
- package/scripts/install-skills.js +0 -60
- package/skills/autoplan/SKILL.md +0 -96
- package/skills/autoplan/SKILL.md.tmpl +0 -694
- package/skills/benchmark/SKILL.md.tmpl +0 -222
- package/skills/browse/SKILL.md.tmpl +0 -131
- package/skills/browse/bin/find-browse +0 -21
- package/skills/browse/bin/remote-slug +0 -14
- package/skills/browse/scripts/build-node-server.sh +0 -48
- package/skills/browse/src/activity.ts +0 -208
- package/skills/browse/src/browser-manager.ts +0 -959
- package/skills/browse/src/buffers.ts +0 -137
- package/skills/browse/src/bun-polyfill.cjs +0 -109
- package/skills/browse/src/cli.ts +0 -678
- package/skills/browse/src/commands.ts +0 -128
- package/skills/browse/src/config.ts +0 -150
- package/skills/browse/src/cookie-import-browser.ts +0 -625
- package/skills/browse/src/cookie-picker-routes.ts +0 -230
- package/skills/browse/src/cookie-picker-ui.ts +0 -688
- package/skills/browse/src/find-browse.ts +0 -61
- package/skills/browse/src/meta-commands.ts +0 -550
- package/skills/browse/src/platform.ts +0 -17
- package/skills/browse/src/read-commands.ts +0 -358
- package/skills/browse/src/server.ts +0 -1192
- package/skills/browse/src/sidebar-agent.ts +0 -280
- package/skills/browse/src/sidebar-utils.ts +0 -21
- package/skills/browse/src/snapshot.ts +0 -407
- package/skills/browse/src/url-validation.ts +0 -95
- package/skills/browse/src/write-commands.ts +0 -364
- package/skills/browse/test/activity.test.ts +0 -120
- package/skills/browse/test/adversarial-security.test.ts +0 -32
- package/skills/browse/test/browser-manager-unit.test.ts +0 -17
- package/skills/browse/test/bun-polyfill.test.ts +0 -72
- package/skills/browse/test/commands.test.ts +0 -2075
- package/skills/browse/test/compare-board.test.ts +0 -342
- package/skills/browse/test/config.test.ts +0 -316
- package/skills/browse/test/cookie-import-browser.test.ts +0 -519
- package/skills/browse/test/cookie-picker-routes.test.ts +0 -260
- package/skills/browse/test/file-drop.test.ts +0 -271
- package/skills/browse/test/find-browse.test.ts +0 -50
- package/skills/browse/test/findport.test.ts +0 -191
- package/skills/browse/test/fixtures/basic.html +0 -33
- package/skills/browse/test/fixtures/cursor-interactive.html +0 -22
- package/skills/browse/test/fixtures/dialog.html +0 -15
- package/skills/browse/test/fixtures/empty.html +0 -2
- package/skills/browse/test/fixtures/forms.html +0 -55
- package/skills/browse/test/fixtures/iframe.html +0 -30
- package/skills/browse/test/fixtures/network-idle.html +0 -30
- package/skills/browse/test/fixtures/qa-eval-checkout.html +0 -108
- package/skills/browse/test/fixtures/qa-eval-spa.html +0 -98
- package/skills/browse/test/fixtures/qa-eval.html +0 -51
- package/skills/browse/test/fixtures/responsive.html +0 -49
- package/skills/browse/test/fixtures/snapshot.html +0 -55
- package/skills/browse/test/fixtures/spa.html +0 -24
- package/skills/browse/test/fixtures/states.html +0 -17
- package/skills/browse/test/fixtures/upload.html +0 -25
- package/skills/browse/test/gstack-config.test.ts +0 -138
- package/skills/browse/test/gstack-update-check.test.ts +0 -514
- package/skills/browse/test/handoff.test.ts +0 -235
- package/skills/browse/test/path-validation.test.ts +0 -91
- package/skills/browse/test/platform.test.ts +0 -37
- package/skills/browse/test/server-auth.test.ts +0 -65
- package/skills/browse/test/sidebar-agent-roundtrip.test.ts +0 -226
- package/skills/browse/test/sidebar-agent.test.ts +0 -199
- package/skills/browse/test/sidebar-integration.test.ts +0 -320
- package/skills/browse/test/sidebar-unit.test.ts +0 -96
- package/skills/browse/test/snapshot.test.ts +0 -467
- package/skills/browse/test/state-ttl.test.ts +0 -35
- package/skills/browse/test/test-server.ts +0 -57
- package/skills/browse/test/url-validation.test.ts +0 -72
- package/skills/browse/test/watch.test.ts +0 -129
- package/skills/canary/SKILL.md.tmpl +0 -212
- package/skills/careful/SKILL.md.tmpl +0 -56
- package/skills/careful/bin/check-careful.sh +0 -112
- package/skills/codex/SKILL.md +0 -90
- package/skills/codex/SKILL.md.tmpl +0 -417
- package/skills/connect-chrome/SKILL.md.tmpl +0 -195
- package/skills/cso/ACKNOWLEDGEMENTS.md +0 -14
- package/skills/cso/SKILL.md +0 -93
- package/skills/cso/SKILL.md.tmpl +0 -606
- package/skills/design-consultation/SKILL.md +0 -94
- package/skills/design-consultation/SKILL.md.tmpl +0 -415
- package/skills/design-review/SKILL.md +0 -94
- package/skills/design-review/SKILL.md.tmpl +0 -290
- package/skills/design-shotgun/SKILL.md +0 -91
- package/skills/design-shotgun/SKILL.md.tmpl +0 -285
- package/skills/document-release/SKILL.md +0 -91
- package/skills/document-release/SKILL.md.tmpl +0 -359
- package/skills/freeze/SKILL.md.tmpl +0 -77
- package/skills/freeze/bin/check-freeze.sh +0 -79
- package/skills/gstack-upgrade/SKILL.md.tmpl +0 -222
- package/skills/guard/SKILL.md.tmpl +0 -77
- package/skills/investigate/SKILL.md +0 -105
- package/skills/investigate/SKILL.md.tmpl +0 -194
- package/skills/land-and-deploy/SKILL.md.tmpl +0 -881
- package/skills/office-hours/SKILL.md +0 -96
- package/skills/office-hours/SKILL.md.tmpl +0 -645
- package/skills/plan-ceo-review/SKILL.md +0 -94
- package/skills/plan-ceo-review/SKILL.md.tmpl +0 -811
- package/skills/plan-design-review/SKILL.md +0 -92
- package/skills/plan-design-review/SKILL.md.tmpl +0 -446
- package/skills/plan-eng-review/SKILL.md +0 -93
- package/skills/plan-eng-review/SKILL.md.tmpl +0 -303
- package/skills/qa/SKILL.md +0 -95
- package/skills/qa/SKILL.md.tmpl +0 -316
- package/skills/qa/references/issue-taxonomy.md +0 -85
- package/skills/qa/templates/qa-report-template.md +0 -126
- package/skills/qa-only/SKILL.md +0 -89
- package/skills/qa-only/SKILL.md.tmpl +0 -101
- package/skills/retro/SKILL.md +0 -89
- package/skills/retro/SKILL.md.tmpl +0 -820
- package/skills/review/SKILL.md +0 -92
- package/skills/review/SKILL.md.tmpl +0 -281
- package/skills/review/TODOS-format.md +0 -62
- package/skills/review/checklist.md +0 -220
- package/skills/review/design-checklist.md +0 -132
- package/skills/review/greptile-triage.md +0 -220
- package/skills/setup-browser-cookies/SKILL.md.tmpl +0 -81
- package/skills/setup-deploy/SKILL.md +0 -92
- package/skills/setup-deploy/SKILL.md.tmpl +0 -215
- package/skills/ship/SKILL.md.tmpl +0 -636
- package/skills/unfreeze/SKILL.md +0 -37
- package/skills/unfreeze/SKILL.md.tmpl +0 -36
package/scripts/cleanup.py
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
"""
|
|
3
|
-
opengstack cleanup script
|
|
4
|
-
Fixes broken fragments after filtering
|
|
5
|
-
"""
|
|
6
|
-
|
|
7
|
-
import re
|
|
8
|
-
import sys
|
|
9
|
-
from pathlib import Path
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
def cleanup_skill_content(content: str) -> str:
|
|
13
|
-
"""Clean up broken fragments from filtering"""
|
|
14
|
-
|
|
15
|
-
lines = content.split("\n")
|
|
16
|
-
cleaned = []
|
|
17
|
-
skip_until_blank = False
|
|
18
|
-
|
|
19
|
-
for i, line in enumerate(lines):
|
|
20
|
-
# Skip lines that are clearly broken fragments
|
|
21
|
-
if re.match(r"^If output shows `$", line):
|
|
22
|
-
skip_until_blank = True
|
|
23
|
-
continue
|
|
24
|
-
|
|
25
|
-
if skip_until_blank:
|
|
26
|
-
if line.strip() == "":
|
|
27
|
-
skip_until_blank = False
|
|
28
|
-
continue
|
|
29
|
-
|
|
30
|
-
# Fix broken gstack-config references
|
|
31
|
-
line = re.sub(r"~/.claude/skills/opengstack/bin/gstack-config", "echo", line)
|
|
32
|
-
|
|
33
|
-
# Fix broken URLs
|
|
34
|
-
line = re.sub(r"open https?://$", "", line)
|
|
35
|
-
line = re.sub(r"https?://garryslist\.org.*", "", line)
|
|
36
|
-
|
|
37
|
-
# Fix broken markdown links
|
|
38
|
-
line = re.sub(r"\[.*?\]\s*$", "", line)
|
|
39
|
-
|
|
40
|
-
# Remove lines that are just fragments
|
|
41
|
-
if re.match(r"^thing when AI", line):
|
|
42
|
-
continue
|
|
43
|
-
if re.match(r"^Boil the", line):
|
|
44
|
-
continue
|
|
45
|
-
if re.match(r"^open$", line.strip()):
|
|
46
|
-
continue
|
|
47
|
-
if re.match(r"^\*\*.*\*\*$", line) and len(line) < 20:
|
|
48
|
-
continue
|
|
49
|
-
if re.match(r"^Tell the user", line) and not line.strip().endswith(
|
|
50
|
-
(".", "?", "!")
|
|
51
|
-
):
|
|
52
|
-
continue
|
|
53
|
-
if re.match(r"^gstack follows the", line):
|
|
54
|
-
continue
|
|
55
|
-
if re.match(r"^>\s*$", line):
|
|
56
|
-
continue
|
|
57
|
-
|
|
58
|
-
cleaned.append(line)
|
|
59
|
-
|
|
60
|
-
content = "\n".join(cleaned)
|
|
61
|
-
|
|
62
|
-
# Remove multiple consecutive blank lines
|
|
63
|
-
content = re.sub(r"\n{4,}", "\n\n\n", content)
|
|
64
|
-
|
|
65
|
-
# Remove trailing whitespace
|
|
66
|
-
content = "\n".join(line.rstrip() for line in content.split("\n"))
|
|
67
|
-
|
|
68
|
-
return content.rstrip("\n") + "\n"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
def cleanup_file(filepath: Path) -> bool:
|
|
72
|
-
"""Cleanup a single file"""
|
|
73
|
-
if not filepath.exists():
|
|
74
|
-
return False
|
|
75
|
-
|
|
76
|
-
original = filepath.read_text()
|
|
77
|
-
cleaned = cleanup_skill_content(original)
|
|
78
|
-
|
|
79
|
-
if cleaned != original:
|
|
80
|
-
filepath.write_text(cleaned)
|
|
81
|
-
return True
|
|
82
|
-
return False
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
def main():
|
|
86
|
-
root = Path(__file__).parent.parent
|
|
87
|
-
|
|
88
|
-
print(f"Cleaning up skills in: {root}")
|
|
89
|
-
|
|
90
|
-
modified = 0
|
|
91
|
-
for skill_file in root.rglob("SKILL.md"):
|
|
92
|
-
if cleanup_file(skill_file):
|
|
93
|
-
print(f" Cleaned: {skill_file.relative_to(root)}")
|
|
94
|
-
modified += 1
|
|
95
|
-
|
|
96
|
-
print(f"\nDone! Cleaned {modified} files.")
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
if __name__ == "__main__":
|
|
100
|
-
main()
|
package/scripts/filter-skills.sh
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
set -euo pipefail
|
|
3
|
-
|
|
4
|
-
# opengstack filter script
|
|
5
|
-
# Removes telemetry, YC references, and garrytan-specific content from gstack skills
|
|
6
|
-
|
|
7
|
-
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
8
|
-
SKILLS_DIR="${1:-$SCRIPT_DIR}"
|
|
9
|
-
|
|
10
|
-
echo "Filtering skills in: $SKILLS_DIR"
|
|
11
|
-
|
|
12
|
-
# Patterns to remove (in order of processing)
|
|
13
|
-
declare -a FILTERS=(
|
|
14
|
-
# Remove telemetry preamble block (from preamble start to first empty line after)
|
|
15
|
-
'/^_UPD=\$(~/.claude\/skills\/gstack\/bin\/gstack-update-check/,/^mkdir -p ~\/.gstack\/analytics$/d'
|
|
16
|
-
|
|
17
|
-
# Remove entire analytics write line
|
|
18
|
-
'/mkdir -p ~\/.gstack\/analytics/d'
|
|
19
|
-
|
|
20
|
-
# Remove telemetry prompt sections
|
|
21
|
-
'/TEL_PROMPTED/d'
|
|
22
|
-
|
|
23
|
-
# Remove LAKE_INTRO section and garryslist references
|
|
24
|
-
'/LAKE_INTRO/d'
|
|
25
|
-
'/garryslist/d'
|
|
26
|
-
'/boil.*ocean/d'
|
|
27
|
-
|
|
28
|
-
# Remove contributor mode section
|
|
29
|
-
'/CONTRIB/d'
|
|
30
|
-
'/contributor mode/d'
|
|
31
|
-
'/field report/d'
|
|
32
|
-
|
|
33
|
-
# Remove update check references in preamble
|
|
34
|
-
'/gstack-update-check/d'
|
|
35
|
-
'/UPGRADE_AVAILABLE/d'
|
|
36
|
-
'/JUST_UPGRADED/d'
|
|
37
|
-
|
|
38
|
-
# Remove telemetry trailer block
|
|
39
|
-
'/_TEL_END=/,/gstack-telemetry-log/d'
|
|
40
|
-
|
|
41
|
-
# Remove gstack-config references (telemetry-related)
|
|
42
|
-
'/gstack-config set telemetry/d'
|
|
43
|
-
|
|
44
|
-
# Remove PROACTIVE prompts (optional - keeps the feature but not the prompt)
|
|
45
|
-
'/PROACTIVE_PROMPTED/d'
|
|
46
|
-
)
|
|
47
|
-
|
|
48
|
-
# Process a single file
|
|
49
|
-
filter_file() {
|
|
50
|
-
local file="$1"
|
|
51
|
-
local tmpfile=$(mktemp)
|
|
52
|
-
|
|
53
|
-
# Apply sed filters
|
|
54
|
-
sed -E \
|
|
55
|
-
-e 's/\| ~~Y Combinator.*$//' \
|
|
56
|
-
-e 's/YC Office Hours/Office Hours/g' \
|
|
57
|
-
-e 's/ycombinator\.com\/apply\?ref=gstack.*$//' \
|
|
58
|
-
-e 's/garrytan\/gstack/opencode/g' \
|
|
59
|
-
-e 's/Garry Tan.*$//' \
|
|
60
|
-
-e 's/gstack-config set proactive.*$//' \
|
|
61
|
-
-e 's/gstack-config get proactive.*$//' \
|
|
62
|
-
-e 's/~/.claude\/skills\/opengstack/g' \
|
|
63
|
-
-e '/^If.*TEL_PROMPTED.*is.*no/d' \
|
|
64
|
-
-e '/^Help gstack get better/d' \
|
|
65
|
-
-e '/^Community mode shares usage/d' \
|
|
66
|
-
-e '/^Options:$/{N;/^\n- A) Help gstack/d;N;/^\n- B) No thanks/d}' \
|
|
67
|
-
-e '/^If A: run.*telemetry/d' \
|
|
68
|
-
-e '/^If B: ask a follow-up/d' \
|
|
69
|
-
-e '/^> How about anonymous mode/d' \
|
|
70
|
-
-e '/^> We just learn/d' \
|
|
71
|
-
-e '/^> A personal note from me, Garry Tan/d' \
|
|
72
|
-
-e '/^> what you just experienced is about 10%/d' \
|
|
73
|
-
-e '/^> The other 90% is the network/d' \
|
|
74
|
-
-e '/^> ycombinator\.com\/apply/d' \
|
|
75
|
-
-e '/> A personal note from me, Garry Tan/d' \
|
|
76
|
-
-e '/What you just experienced is about 10%/d' \
|
|
77
|
-
-e '/^> people with that kind of taste.*fund/d' \
|
|
78
|
-
-e '/^> YC partner energy for strategy/d' \
|
|
79
|
-
-e '/^When a user shows.*YC/d' \
|
|
80
|
-
-e '/exactly the kind of builders Garry.*funds.*apply to YC/d' \
|
|
81
|
-
-e '/exactly the kind of builders we.*YC/d' \
|
|
82
|
-
-e '/Garry.*wants to fund.*apply/d' \
|
|
83
|
-
-e '/^> Come work at YC/d' \
|
|
84
|
-
-e 's/Y Combinator.*$//' \
|
|
85
|
-
-e '/Garry.*Tan.*YC/d' \
|
|
86
|
-
-e '/garrytan.*gstack/d' \
|
|
87
|
-
-e '/Gar[r]?y.*Tan/d' \
|
|
88
|
-
"$file" > "$tmpfile"
|
|
89
|
-
|
|
90
|
-
# Remove empty lines that cluster together (more than 2 consecutive)
|
|
91
|
-
sed -i.bak -e '/^$/N;/^\n$/N;/^\n$/d' "$tmpfile" 2>/dev/null || \
|
|
92
|
-
sed -i '' '/^$/{ N; /^\n$/d; }' "$tmpfile" 2>/dev/null || \
|
|
93
|
-
cat "$tmpfile" > "${tmpfile}.2" && mv "${tmpfile}.2" "$tmpfile"
|
|
94
|
-
|
|
95
|
-
# Remove trailing whitespace
|
|
96
|
-
sed -i 's/[[:space:]]*$//' "$tmpfile"
|
|
97
|
-
|
|
98
|
-
mv "$tmpfile" "$file"
|
|
99
|
-
echo " Filtered: $file"
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
# Process all SKILL.md files
|
|
103
|
-
echo "Processing SKILL.md files..."
|
|
104
|
-
find "$SKILLS_DIR" -name "SKILL.md" -type f | while read -r file; do
|
|
105
|
-
filter_file "$file"
|
|
106
|
-
done
|
|
107
|
-
|
|
108
|
-
# Also process SKILL.md.tmpl files if they exist
|
|
109
|
-
echo "Processing SKILL.md.tmpl files..."
|
|
110
|
-
find "$SKILLS_DIR" -name "SKILL.md.tmpl" -type f 2>/dev/null | while read -r file; do
|
|
111
|
-
filter_file "$file"
|
|
112
|
-
done
|
|
113
|
-
|
|
114
|
-
echo "Done filtering!"
|
package/scripts/filter_skills.py
DELETED
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
"""
|
|
3
|
-
opengstack filter script - NUKE MODE
|
|
4
|
-
Removes ALL telemetry, YC references, Garry Tan content, and gstack branding
|
|
5
|
-
"""
|
|
6
|
-
|
|
7
|
-
import re
|
|
8
|
-
import sys
|
|
9
|
-
from pathlib import Path
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
def filter_skill_content(content: str) -> str:
|
|
13
|
-
"""NUKE all gstack slop from skills"""
|
|
14
|
-
|
|
15
|
-
# STEP 1: Remove entire telemetry preamble blocks
|
|
16
|
-
# Match from ```bash to next ```, containing telemetry variables
|
|
17
|
-
content = re.sub(r"```bash\s*\n_UPD=.*?```\s*\n", "", content, flags=re.DOTALL)
|
|
18
|
-
|
|
19
|
-
# Remove any remaining bash blocks with .gstack/ references
|
|
20
|
-
content = re.sub(
|
|
21
|
-
r"```bash\s*\n.*?\.gstack/.*?(?=```)", "", content, flags=re.DOTALL
|
|
22
|
-
)
|
|
23
|
-
|
|
24
|
-
# STEP 2: Remove entire sections about telemetry/config
|
|
25
|
-
content = re.sub(
|
|
26
|
-
r"If `TEL_PROMPTED` is.*?touch ~/.gstack/\.telemetry-prompted.*?```\s*\n?",
|
|
27
|
-
"",
|
|
28
|
-
content,
|
|
29
|
-
flags=re.DOTALL,
|
|
30
|
-
)
|
|
31
|
-
|
|
32
|
-
content = re.sub(
|
|
33
|
-
r"If `PROACTIVE_PROMPTED` is.*?touch ~/.gstack/\.proactive-prompted.*?```\s*\n?",
|
|
34
|
-
"",
|
|
35
|
-
content,
|
|
36
|
-
flags=re.DOTALL,
|
|
37
|
-
)
|
|
38
|
-
|
|
39
|
-
content = re.sub(
|
|
40
|
-
r"If `LAKE_INTRO` is.*?touch ~/.gstack/\.completeness-intro-seen.*?```\s*\n?",
|
|
41
|
-
"",
|
|
42
|
-
content,
|
|
43
|
-
flags=re.DOTALL,
|
|
44
|
-
)
|
|
45
|
-
|
|
46
|
-
# STEP 3: Remove ## Contributor Mode section
|
|
47
|
-
content = re.sub(
|
|
48
|
-
r"## Contributor Mode.*?## (Voice|Telemetry|Completion)",
|
|
49
|
-
r"## \1",
|
|
50
|
-
content,
|
|
51
|
-
flags=re.DOTALL,
|
|
52
|
-
)
|
|
53
|
-
|
|
54
|
-
# STEP 4: Remove ## Telemetry section entirely
|
|
55
|
-
content = re.sub(r"## Telemetry.*?```.*?```\s*\n", "", content, flags=re.DOTALL)
|
|
56
|
-
|
|
57
|
-
# STEP 5: NUKE all gstack binary references
|
|
58
|
-
content = re.sub(r"`?~/.claude/skills/gstack/bin/[^\s`]+`?", "", content)
|
|
59
|
-
|
|
60
|
-
# STEP 6: Replace gstack paths with opengstack
|
|
61
|
-
content = re.sub(
|
|
62
|
-
r"~/.claude/skills/gstack/", "~/.claude/skills/opengstack/", content
|
|
63
|
-
)
|
|
64
|
-
|
|
65
|
-
# STEP 7: Remove all .gstack/ directory references
|
|
66
|
-
content = re.sub(r"~?/?\.gstack/[^\s`\n]*", "", content)
|
|
67
|
-
|
|
68
|
-
# STEP 8: Remove mkdir/touch commands for .gstack
|
|
69
|
-
content = re.sub(r"mkdir -p[^\n]*\.gstack[^\n]*\n?", "", content)
|
|
70
|
-
content = re.sub(r"touch[^\n]*\.gstack[^\n]*\n?", "", content)
|
|
71
|
-
|
|
72
|
-
# STEP 9: NUKE Garry Tan completely
|
|
73
|
-
content = re.sub(
|
|
74
|
-
r"> A personal note from me, Garry Tan.*?(?=\n\n|## )",
|
|
75
|
-
"",
|
|
76
|
-
content,
|
|
77
|
-
flags=re.DOTALL,
|
|
78
|
-
)
|
|
79
|
-
content = re.sub(r"shaped by Garry Tan\'s[^.]*\.", "", content)
|
|
80
|
-
content = re.sub(r"Garry Tan", "", content)
|
|
81
|
-
content = re.sub(r"YC partner energy for strategy[^.]*\.", "", content)
|
|
82
|
-
|
|
83
|
-
# STEP 10: NUKE YC references
|
|
84
|
-
content = re.sub(r"YC Office Hours", "Office Hours", content)
|
|
85
|
-
content = re.sub(r"ycombinator\.com/apply\?ref=[^\s]*", "", content)
|
|
86
|
-
content = re.sub(r"consider applying to YC[^.]*\.", "", content)
|
|
87
|
-
|
|
88
|
-
# STEP 11: NUKE garryslist
|
|
89
|
-
content = re.sub(r"https?://garryslist\.org[^\s]*", "", content)
|
|
90
|
-
content = re.sub(r"Boil the (Lake|Ocean)[^.]*\.?", "", content)
|
|
91
|
-
|
|
92
|
-
# STEP 12: Replace GStack with OpenGStack (product name)
|
|
93
|
-
content = re.sub(r"\bGStack\b", "OpenGStack", content)
|
|
94
|
-
|
|
95
|
-
# STEP 13: Remove standalone gstack references in prose
|
|
96
|
-
# But keep it in contexts like "skill system" or "framework"
|
|
97
|
-
content = re.sub(r"\bgstack skills?\b", "skills", content, flags=re.IGNORECASE)
|
|
98
|
-
content = re.sub(
|
|
99
|
-
r"\bgstack[- ]?telemetry\b", "telemetry", content, flags=re.IGNORECASE
|
|
100
|
-
)
|
|
101
|
-
|
|
102
|
-
# STEP 14: Remove ref=gstack from URLs
|
|
103
|
-
content = re.sub(r"\?ref=gstack", "", content)
|
|
104
|
-
|
|
105
|
-
# STEP 15: Remove broken sentence fragments
|
|
106
|
-
content = re.sub(
|
|
107
|
-
r"gstack follows the \*\*[^*]+\*\* principle.*?Read more:",
|
|
108
|
-
"",
|
|
109
|
-
content,
|
|
110
|
-
flags=re.DOTALL,
|
|
111
|
-
)
|
|
112
|
-
|
|
113
|
-
# STEP 16: Fix "You are GStack" -> "You are using OpenGStack"
|
|
114
|
-
content = re.sub(r"You are GStack,", "You are using OpenGStack,", content)
|
|
115
|
-
content = re.sub(r"You are OpenGStack,", "You are using OpenGStack,", content)
|
|
116
|
-
|
|
117
|
-
# STEP 17: Remove orphaned code fences and clean up
|
|
118
|
-
content = re.sub(r"\n{3,}", "\n\n", content)
|
|
119
|
-
content = re.sub(r"```\s*\n\s*```", "", content)
|
|
120
|
-
content = re.sub(r"^\s*```\s*$", "", content, flags=re.MULTILINE)
|
|
121
|
-
|
|
122
|
-
# STEP 18: Clean empty lines at start/end
|
|
123
|
-
content = content.strip()
|
|
124
|
-
|
|
125
|
-
return content + "\n"
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
def filter_file(filepath: Path) -> bool:
|
|
129
|
-
"""Filter a single file, returns True if modified"""
|
|
130
|
-
if not filepath.exists():
|
|
131
|
-
return False
|
|
132
|
-
|
|
133
|
-
original = filepath.read_text()
|
|
134
|
-
filtered = filter_skill_content(original)
|
|
135
|
-
|
|
136
|
-
if filtered != original:
|
|
137
|
-
filepath.write_text(filtered)
|
|
138
|
-
return True
|
|
139
|
-
return False
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
def main():
|
|
143
|
-
skills_dir = (
|
|
144
|
-
Path(sys.argv[1]) if len(sys.argv) > 1 else Path(__file__).parent.parent
|
|
145
|
-
)
|
|
146
|
-
|
|
147
|
-
print(f"NUKING gstack slop from: {skills_dir}")
|
|
148
|
-
|
|
149
|
-
modified = 0
|
|
150
|
-
for skill_file in skills_dir.rglob("SKILL.md"):
|
|
151
|
-
if filter_file(skill_file):
|
|
152
|
-
print(f" NUKED: {skill_file.relative_to(skills_dir)}")
|
|
153
|
-
modified += 1
|
|
154
|
-
|
|
155
|
-
for tmpl_file in skills_dir.rglob("SKILL.md.tmpl"):
|
|
156
|
-
if filter_file(tmpl_file):
|
|
157
|
-
print(f" NUKED: {tmpl_file.relative_to(skills_dir)}")
|
|
158
|
-
modified += 1
|
|
159
|
-
|
|
160
|
-
print(f"\nDone! Cleansed {modified} files of gstack slop.")
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
if __name__ == "__main__":
|
|
164
|
-
main()
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
const fs = require('fs');
|
|
3
|
-
const path = require('path');
|
|
4
|
-
const os = require('os');
|
|
5
|
-
|
|
6
|
-
const SKILLS_SOURCE = path.join(__dirname, '..', 'skills');
|
|
7
|
-
const TARGET_DIRS = [
|
|
8
|
-
path.join(os.homedir(), '.config', 'opencode', 'skills'), // OpenCode native
|
|
9
|
-
path.join(os.homedir(), '.claude', 'skills'), // Claude compat
|
|
10
|
-
path.join(os.homedir(), '.agents', 'skills') // other agents
|
|
11
|
-
];
|
|
12
|
-
|
|
13
|
-
function copyDir(src, dest) {
|
|
14
|
-
// Create destination directory (including parents)
|
|
15
|
-
fs.mkdirSync(dest, { recursive: true });
|
|
16
|
-
|
|
17
|
-
fs.readdirSync(src).forEach(item => {
|
|
18
|
-
const srcPath = path.join(src, item);
|
|
19
|
-
const destPath = path.join(dest, item);
|
|
20
|
-
|
|
21
|
-
if (fs.statSync(srcPath).isDirectory()) {
|
|
22
|
-
copyDir(srcPath, destPath);
|
|
23
|
-
} else {
|
|
24
|
-
fs.copyFileSync(srcPath, destPath);
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function installSkills() {
|
|
30
|
-
if (!fs.existsSync(SKILLS_SOURCE)) {
|
|
31
|
-
console.error('❌ No skills/ folder found in package');
|
|
32
|
-
process.exit(1);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
TARGET_DIRS.forEach(target => {
|
|
36
|
-
// Ensure parent directories exist
|
|
37
|
-
fs.mkdirSync(target, { recursive: true });
|
|
38
|
-
|
|
39
|
-
fs.readdirSync(SKILLS_SOURCE).forEach(skillName => {
|
|
40
|
-
const src = path.join(SKILLS_SOURCE, skillName);
|
|
41
|
-
const dest = path.join(target, skillName);
|
|
42
|
-
|
|
43
|
-
// Skip if not a directory
|
|
44
|
-
if (!fs.statSync(src).isDirectory()) return;
|
|
45
|
-
|
|
46
|
-
if (fs.existsSync(dest)) {
|
|
47
|
-
console.log(`⚠️ Skill ${skillName} already exists — skipping`);
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
copyDir(src, dest);
|
|
52
|
-
console.log(`✅ Installed skill: /${skillName}`);
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
console.log('\n🎉 Skills installed! Restart OpenCode (just quit and restart the TUI).');
|
|
57
|
-
console.log('Now just type /qa directly — no /skills menu needed.');
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
installSkills();
|
package/skills/autoplan/SKILL.md
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: autoplan
|
|
3
|
-
preamble-tier: 3
|
|
4
|
-
version: 1.0.0
|
|
5
|
-
description: |
|
|
6
|
-
Auto-review pipeline — reads the full CEO, design, and eng review skills from disk
|
|
7
|
-
and runs them sequentially with auto-decisions using 6 decision principles. Surfaces
|
|
8
|
-
taste decisions (close approaches, borderline scope, codex disagreements) at a final
|
|
9
|
-
approval gate. One command, fully reviewed plan out.
|
|
10
|
-
Use when asked to "auto review", "autoplan", "run all reviews", "review this plan
|
|
11
|
-
automatically", or "make the decisions for me".
|
|
12
|
-
Proactively suggest when the user has a plan file and wants to run the full review
|
|
13
|
-
gauntlet without answering 15-30 intermediate questions.
|
|
14
|
-
benefits-from:
|
|
15
|
-
allowed-tools:
|
|
16
|
-
- Bash
|
|
17
|
-
- Read
|
|
18
|
-
- Write
|
|
19
|
-
- Edit
|
|
20
|
-
- Glob
|
|
21
|
-
- Grep
|
|
22
|
-
- WebSearch
|
|
23
|
-
- AskUserQuestion
|
|
24
|
-
---
|
|
25
|
-
<!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly -->
|
|
26
|
-
<!-- Regenerate: bun run gen:skill-docs -->
|
|
27
|
-
|
|
28
|
-
## Preamble (run first)
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
If `PROACTIVE` is `"false"`, do not proactively suggest gstack skills AND do not
|
|
32
|
-
auto-invoke skills based on conversation context. Only run skills the user explicitly
|
|
33
|
-
types (e.g., /qa, /ship). If you would have auto-invoked a skill, instead briefly say:
|
|
34
|
-
"I think /skillname might help here — want me to run it?" and wait for confirmation.
|
|
35
|
-
The user opted out of proactive behavior.
|
|
36
|
-
|
|
37
|
-
If `SKILL_PREFIX` is `"true"`, the user has namespaced skill names. When suggesting
|
|
38
|
-
or invoking other gstack skills, use the `/gstack-` prefix (e.g., `/gstack-qa` instead
|
|
39
|
-
of `/qa`, `/gstack-ship` instead of `/ship`). Disk paths are unaffected — always use
|
|
40
|
-
`~/.claude/skills/opengstack/[skill-name]/SKILL.md` for reading skill files.
|
|
41
|
-
|
|
42
|
-
If `LAKE_INTRO` is `no`: Before continuing, introduce the Completeness Principle.
|
|
43
|
-
Then offer to open the essay in their default browser:
|
|
44
|
-
|
|
45
|
-
```bash
|
|
46
|
-
touch ~/.gstack/.completeness-intro-seen
|
|
47
|
-
|
|
48
|
-
Only run `open` if the user says yes. Always run `touch` to mark as seen. This only happens once.
|
|
49
|
-
|
|
50
|
-
If `PROACTIVE_PROMPTED` is `no` AND `TEL_PROMPTED` is `yes`: After telemetry is handled,
|
|
51
|
-
ask the user about proactive behavior. Use AskUserQuestion:
|
|
52
|
-
|
|
53
|
-
> gstack can proactively figure out when you might need a skill while you work —
|
|
54
|
-
> like suggesting /qa when you say "does this work?" or /investigate when you hit
|
|
55
|
-
> a bug. We recommend keeping this on — it speeds up every part of your workflow.
|
|
56
|
-
|
|
57
|
-
Options:
|
|
58
|
-
- A) Keep it on (recommended)
|
|
59
|
-
- B) Turn it off — I'll type /commands myself
|
|
60
|
-
|
|
61
|
-
If A: run `echo set proactive true`
|
|
62
|
-
If B: run `echo set proactive false`
|
|
63
|
-
|
|
64
|
-
Always run:
|
|
65
|
-
```bash
|
|
66
|
-
touch ~/.gstack/.proactive-prompted
|
|
67
|
-
|
|
68
|
-
This only happens once. If `PROACTIVE_PROMPTED` is `yes`, skip this entirely.
|
|
69
|
-
|
|
70
|
-
## Voice
|
|
71
|
-
|
|
72
|
-
You are OpenGStack, an open source AI builder framework
|
|
73
|
-
|
|
74
|
-
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.
|
|
75
|
-
|
|
76
|
-
**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.
|
|
77
|
-
|
|
78
|
-
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.
|
|
79
|
-
|
|
80
|
-
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.
|
|
81
|
-
|
|
82
|
-
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.
|
|
83
|
-
|
|
84
|
-
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.
|
|
85
|
-
|
|
86
|
-
**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:
|
|
87
|
-
|
|
88
|
-
**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.
|
|
89
|
-
|
|
90
|
-
**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."
|
|
91
|
-
|
|
92
|
-
**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.
|
|
93
|
-
|
|
94
|
-
**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?"
|
|
95
|
-
|
|
96
|
-
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
|