claude-sprint-gate 1.0.0 → 1.1.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.
Potentially problematic release.
This version of claude-sprint-gate might be problematic. Click here for more details.
- package/README.md +4 -10
- package/bin/ccsg.js +12 -15
- package/deploy.sh +14 -21
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -85,22 +85,16 @@ your-project/
|
|
|
85
85
|
### npx (recommended)
|
|
86
86
|
|
|
87
87
|
```bash
|
|
88
|
-
npx
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
With mission mode:
|
|
92
|
-
|
|
93
|
-
```bash
|
|
94
|
-
npx ccsg --with-mission
|
|
88
|
+
npx claude-sprint-gate
|
|
95
89
|
```
|
|
96
90
|
|
|
97
91
|
Global (all projects):
|
|
98
92
|
|
|
99
93
|
```bash
|
|
100
|
-
npx
|
|
94
|
+
npx claude-sprint-gate --global
|
|
101
95
|
```
|
|
102
96
|
|
|
103
|
-
That's it.
|
|
97
|
+
That's it. Installs the hook, creates goal directories, and drops a `mission.md` template.
|
|
104
98
|
|
|
105
99
|
### curl (no Node required)
|
|
106
100
|
|
|
@@ -108,7 +102,7 @@ That's it. Run it from your project directory and CCSG is installed.
|
|
|
108
102
|
curl -fsSL https://raw.githubusercontent.com/panbergco/claude-code-sprint-gate/master/deploy.sh | bash
|
|
109
103
|
```
|
|
110
104
|
|
|
111
|
-
Add `--
|
|
105
|
+
Add `--global` the same way: `| bash -s -- --global`
|
|
112
106
|
|
|
113
107
|
### Manual setup
|
|
114
108
|
|
package/bin/ccsg.js
CHANGED
|
@@ -16,10 +16,9 @@ if (flags.has("--help") || flags.has("-h")) {
|
|
|
16
16
|
ccsg — Claude Code Sprint Gate
|
|
17
17
|
|
|
18
18
|
Usage:
|
|
19
|
-
npx
|
|
20
|
-
npx
|
|
21
|
-
npx
|
|
22
|
-
npx ccsg --uninstall Remove from current project
|
|
19
|
+
npx claude-sprint-gate Install into current project
|
|
20
|
+
npx claude-sprint-gate --global Install for all projects
|
|
21
|
+
npx claude-sprint-gate --uninstall Remove from current project
|
|
23
22
|
`);
|
|
24
23
|
process.exit(0);
|
|
25
24
|
}
|
|
@@ -160,16 +159,14 @@ First sprint. Define what needs to be built and verify it works.
|
|
|
160
159
|
info("Created starter goal: goals-open/goal-sprint-v1.md");
|
|
161
160
|
}
|
|
162
161
|
|
|
163
|
-
// Mission template
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
warn("mission.md already exists, skipping");
|
|
172
|
-
}
|
|
162
|
+
// Mission template (always included)
|
|
163
|
+
const missionDest = path.join(root, "mission.md");
|
|
164
|
+
if (!fs.existsSync(missionDest)) {
|
|
165
|
+
const missionContent = await download("mission-template.md");
|
|
166
|
+
fs.writeFileSync(missionDest, missionContent);
|
|
167
|
+
info("Created mission.md — edit to set your product vision");
|
|
168
|
+
} else {
|
|
169
|
+
warn("mission.md already exists, skipping");
|
|
173
170
|
}
|
|
174
171
|
}
|
|
175
172
|
|
|
@@ -182,7 +179,7 @@ First sprint. Define what needs to be built and verify it works.
|
|
|
182
179
|
console.log(" Hook: .claude/hooks/ccsg.sh");
|
|
183
180
|
console.log(" Settings: .claude/settings.json");
|
|
184
181
|
console.log(" Goals: goals-open/ → goals-completed/");
|
|
185
|
-
|
|
182
|
+
console.log(" Mission: mission.md (edit to set your product vision)");
|
|
186
183
|
}
|
|
187
184
|
console.log(
|
|
188
185
|
"\n Edit goals-open/goal-sprint-v1.md, then start Claude Code.\n"
|
package/deploy.sh
CHANGED
|
@@ -5,11 +5,9 @@
|
|
|
5
5
|
# Usage:
|
|
6
6
|
# curl -fsSL https://raw.githubusercontent.com/panbergco/claude-code-sprint-gate/master/deploy.sh | bash
|
|
7
7
|
# curl -fsSL https://raw.githubusercontent.com/panbergco/claude-code-sprint-gate/master/deploy.sh | bash -s -- --global
|
|
8
|
-
# curl -fsSL https://raw.githubusercontent.com/panbergco/claude-code-sprint-gate/master/deploy.sh | bash -s -- --with-mission
|
|
9
8
|
#
|
|
10
9
|
# Flags:
|
|
11
10
|
# --global Install to ~/.claude/ (all projects)
|
|
12
|
-
# --with-mission Also download mission-template.md as mission.md
|
|
13
11
|
# --uninstall Remove CCSG from current project
|
|
14
12
|
#
|
|
15
13
|
|
|
@@ -31,21 +29,18 @@ error() { echo -e "${BOLD}${RED}[CCSG]${RESET} $1"; }
|
|
|
31
29
|
|
|
32
30
|
# ── Parse flags ─────────────────────────────────────────────────────
|
|
33
31
|
MODE="project"
|
|
34
|
-
WITH_MISSION=false
|
|
35
32
|
ACTION="install"
|
|
36
33
|
|
|
37
34
|
for arg in "$@"; do
|
|
38
35
|
case "$arg" in
|
|
39
|
-
--global)
|
|
40
|
-
--
|
|
41
|
-
--uninstall) ACTION="uninstall" ;;
|
|
36
|
+
--global) MODE="global" ;;
|
|
37
|
+
--uninstall) ACTION="uninstall" ;;
|
|
42
38
|
--help|-h)
|
|
43
39
|
echo "CCSG — Claude Code Sprint Gate (remote deploy)"
|
|
44
40
|
echo ""
|
|
45
41
|
echo "Usage:"
|
|
46
42
|
echo " curl -fsSL $REPO_RAW/deploy.sh | bash"
|
|
47
43
|
echo " curl -fsSL $REPO_RAW/deploy.sh | bash -s -- --global"
|
|
48
|
-
echo " curl -fsSL $REPO_RAW/deploy.sh | bash -s -- --with-mission"
|
|
49
44
|
echo " curl -fsSL $REPO_RAW/deploy.sh | bash -s -- --uninstall"
|
|
50
45
|
exit 0
|
|
51
46
|
;;
|
|
@@ -156,19 +151,17 @@ STARTER
|
|
|
156
151
|
info "Created starter goal: goals-open/goal-sprint-v1.md"
|
|
157
152
|
fi
|
|
158
153
|
|
|
159
|
-
# Mission template
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
if
|
|
163
|
-
|
|
164
|
-
curl -fsSL "$REPO_RAW/mission-template.md" -o "$MISSION_DEST"
|
|
165
|
-
else
|
|
166
|
-
wget -qO "$MISSION_DEST" "$REPO_RAW/mission-template.md"
|
|
167
|
-
fi
|
|
168
|
-
info "Created mission.md — edit it to activate mission mode"
|
|
154
|
+
# Mission template (always included)
|
|
155
|
+
MISSION_DEST="$PROJECT_ROOT/mission.md"
|
|
156
|
+
if [ ! -f "$MISSION_DEST" ]; then
|
|
157
|
+
if command -v curl &>/dev/null; then
|
|
158
|
+
curl -fsSL "$REPO_RAW/mission-template.md" -o "$MISSION_DEST"
|
|
169
159
|
else
|
|
170
|
-
|
|
160
|
+
wget -qO "$MISSION_DEST" "$REPO_RAW/mission-template.md"
|
|
171
161
|
fi
|
|
162
|
+
info "Created mission.md — edit to set your product vision"
|
|
163
|
+
else
|
|
164
|
+
warn "mission.md already exists, skipping"
|
|
172
165
|
fi
|
|
173
166
|
fi
|
|
174
167
|
|
|
@@ -186,13 +179,13 @@ else
|
|
|
186
179
|
echo -e " ${DIM}Hook:${RESET} .claude/hooks/ccsg.sh"
|
|
187
180
|
echo -e " ${DIM}Settings:${RESET} .claude/settings.json"
|
|
188
181
|
echo -e " ${DIM}Goals:${RESET} goals-open/ → goals-completed/"
|
|
189
|
-
|
|
182
|
+
echo -e " ${DIM}Mission:${RESET} mission.md (edit to set your product vision)"
|
|
190
183
|
fi
|
|
191
184
|
|
|
192
185
|
echo ""
|
|
193
186
|
echo -e " ${DIM}Next:${RESET}"
|
|
194
|
-
echo " 1. Edit
|
|
195
|
-
|
|
187
|
+
echo " 1. Edit mission.md with your product vision"
|
|
188
|
+
echo " 2. Edit goals-open/goal-sprint-v1.md with your sprint items"
|
|
196
189
|
echo " Start Claude Code and the agent cannot stop until all items are done."
|
|
197
190
|
echo ""
|
|
198
191
|
echo -e " ${DIM}Repo:${RESET} https://github.com/panbergco/claude-code-sprint-gate"
|