本地 开发
- 作者仓库星标 330
- 许可证 MIT
- 作者仓库 claude-skill-registry
Start Local Development Environment
Start the backend server and macOS app for local development.
Usage
Run /local-dev to start both the backend and app, or:
/local-dev backend- start backend only/local-dev app- build and run the macOS app (debug mode)/local-dev app --clean- clean build and run (forces Swift recompilation)/local-dev app --release- build and run in release mode
Commands
Backend
cd backend
lsof -ti:8000 | xargs kill -9 2>/dev/null || true
python3 -c "from dotenv import load_dotenv; load_dotenv(); import subprocess; subprocess.run(['python3', '-m', 'uvicorn', 'main:app', '--host', '0.0.0.0', '--port', '8000', '--reload'])"
App
app/scripts/dev-macos.sh $EXTRA_ARGS
Where $EXTRA_ARGS can be:
--clean- force clean build (removes build cache, ensures Swift recompilation)--release- build in release mode instead of debug--no-run- build only, don't launch the app
Argument Handling
When $ARGUMENTS is "backend", only start the backend.
When $ARGUMENTS is "app", build and run the macOS app.
When $ARGUMENTS starts with "app ", pass remaining args to the script (e.g., "app --clean").
When $ARGUMENTS is empty or "all", start both backend and app.
- 流狐分类
- 数据
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 94 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @majiayu000 · MIT
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 需简单配置
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- macOS
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- Shell 执行
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 Run /local-dev to start both the backend and app, or: /local-dev backend - start backend only /local-dev app - build and run the macOS app (debug mode)
Commands
Backend
Where $EXTRAARGS can be: --clean - force clean build (removes build cache, ensures Swift recompilation) --release - build in release mode instead of debug
When $ARGUMENTS is "backend", only start the backend. When $ARGUMENTS is "app", build and run the macOS app. When $ARGUMENTS starts with "app ", pass remaining args to the script (e.g., "app --clean").
# Start Local Development Environment
Start the backend server and macOS app for local development.
## Usage
Run `/local-dev` to start both the backend and app, or:
- `/local-dev backend` - start backend only
- `/local-dev app` - build and run the macOS app (debug mode)
- `/local-dev app --clean` - clean build and run (forces Swift recompilation)
- `/local-dev app --release` - build and run in release mode
## Commands
### Backend
```bash
cd backend
lsof -ti:8000 | xargs kill -9 2>/dev/null || true
python3 -c "from dotenv import load_dotenv; load_dotenv(); import subprocess; subprocess.run(['python3', '-m', 'uvicorn', 'main:app', '--host', '0.0.0.0', '--port', '8000', '--reload'])"
```
### App
```bash
app/scripts/dev-macos.sh $EXTRA_ARGS
```
Where `$EXTRA_ARGS` can be:
- `--clean` - force clean build (removes build cache, ensures Swift recompilation)
- `--release` - build in release mode instead of debug
- `--no-run` - build only, don't launch the app
## Argument Handling
When `$ARGUMENTS` is "backend", only start the backend.
When `$ARGUMENTS` is "app", build and run the macOS app.
When `$ARGUMENTS` starts with "app ", pass remaining args to the script (e.g., "app --clean").
When `$ARGUMENTS` is empty or "all", start both backend and app. 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Usage → Commands → Backend → App → Argument Handling
要点 -> Start the backend server and macOS app for local development. · When $ARGUMENTS is "backend", only start the backend.
文件/命令 -> /local-dev · /local-dev backend · /local-dev app · /local-dev app --clean · /local-dev app --release · $EXTRAARGS · --clean · --release
内容 SHA-256 -> d155bbeda4a1
原文结构
适用与边界
原文中的明确线索
/local-dev、/local-dev backend、/local-dev app、/local-dev app --clean、/local-dev app --release、$EXTRAARGS、--clean、--release