Skip to content

Commit 44d83a8

Browse files
cwinvestmentsclaude
andcommitted
fix: dynamic skill count in start-memstack.bat
- Count SKILL.md files at runtime instead of hardcoded "17 public skills" - Update version from v3.2.1 to v3.3.4 - Skip VS Code launch if 'code' command not found Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 421cad4 commit 44d83a8

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

start-memstack.bat

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@echo off
22
REM ============================================================
3-
REM MemStack v3.2.1 - Session Launcher
3+
REM MemStack v3.3.4 - Session Launcher
44
REM
55
REM Usage: start-memstack.bat (launch session)
66
REM start-memstack.bat link <path> (link project)
@@ -54,14 +54,23 @@ if %errorlevel% equ 0 (
5454

5555
:headroom_done
5656

57-
REM 4. Open VS Code
57+
REM 4. Count skills
58+
set /a SKILL_COUNT=0
59+
for /r "%MEMSTACK_DIR%\skills" %%f in (SKILL.md) do set /a SKILL_COUNT+=1
60+
61+
REM 5. Open VS Code (if available)
5862
echo.
59-
echo [4/4] Opening VS Code...
60-
code "%MEMSTACK_DIR%"
63+
where code >nul 2>nul
64+
if %errorlevel% neq 0 (
65+
echo [5/5] VS Code not found, skipping...
66+
) else (
67+
echo [5/5] Opening VS Code...
68+
code "%MEMSTACK_DIR%"
69+
)
6170

6271
echo.
6372
echo =========================================
64-
echo MemStack v3.2.1 ready - 17 public skills
73+
echo MemStack v3.3.4 ready - %SKILL_COUNT% skills
6574
echo =========================================
6675
echo.
6776

0 commit comments

Comments
 (0)