Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:29:44 +08:00
commit 3e62448b18
8 changed files with 190 additions and 0 deletions

14
commands/get-mode.md Normal file
View File

@@ -0,0 +1,14 @@
---
name: get-mode
description: "Show the current VIBESAFE_ENV (mode) visible to this session."
arguments: []
---
Report the Vibesafe mode for this session by reading `VIBESAFE_ENV` (falls back to config default if unset).
Steps:
1) `echo "VIBESAFE_ENV=${VIBESAFE_ENV:-<unset>}"`
2) If unset, note that the config default (`project.env` in vibesafe.toml) will apply.
Example:
- `/vibesafe:get-mode`

18
commands/init.md Normal file
View File

@@ -0,0 +1,18 @@
---
name: init
description: "Initialize the Vibesafe plugin session: report mode, list commands, and verify MCP connectivity."
arguments: []
---
Run a quick readiness check:
- Show current mode (`VIBESAFE_ENV` or config default)
- List available Vibesafe commands
- Confirm MCP server connectivity
Example:
- `/vibesafe:init`
Steps:
1) `echo "VIBESAFE_ENV=${VIBESAFE_ENV:-<unset>}"`
2) `vibesafe status || true` # harmless status check
3) `echo "Commands: scan, compile, test, save, diff, status, mcp"`

18
commands/set-mode.md Normal file
View File

@@ -0,0 +1,18 @@
---
name: set-mode
description: "Set VIBESAFE_ENV for subsequent Vibesafe commands (dev|prod)."
arguments:
- name: env
description: "Mode to set (dev or prod)"
required: true
---
Set the Vibesafe mode for this session by exporting `VIBESAFE_ENV`, then report the new value.
Steps (run in order):
1) `export VIBESAFE_ENV="{{ env }}"`
2) `echo "VIBESAFE_ENV=$VIBESAFE_ENV"`
Examples:
- `/vibesafe:set-mode dev`
- `/vibesafe:set-mode prod`

18
commands/vibe.md Normal file
View File

@@ -0,0 +1,18 @@
---
name: vibe
description: "Run vibesafe CLI commands through the MCP server. Usage: /vibe <subcommand> [args] where subcommand ∈ {scan, compile, test, save, diff, status, mcp}."
arguments:
- name: subcommand
description: "vibesafe subcommand to execute (scan | compile | test | save | diff | status | mcp)"
required: true
---
Run Vibesafe toolchain actions via MCP.
Examples:
- `/vibe scan`
- `/vibe compile --target app.math.ops/fibonacci`
- `/vibe test --target app.math.ops/fibonacci`
- `/vibe status`
- `/vibe diff`
- `/vibe save --target app.math.ops/fibonacci`