项目引导程序
- 作者仓库星标 0
- 作者仓库 skills-registry
- 领域
- 运维部署
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @tomevault-io · 未声明许可证
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 需简单配置
- 是否需要外部接口密钥
- 不需要
- 兼容的系统
- Docker
- 运行环境要求
- Docker
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
.claude/skills/project-bootstrap/scripts/init_project.py \
--name acme \
--root /path/to/acme
# Project Bootstrap
Create a ready-to-run project skeleton with core, portal, docker, and k8s resources. Default stack matches Auth9 (Rust + React Router 7 + TypeScript + Vite).
## Quick Start
1. Choose a project name and target directory.
2. Run the initializer script.
```bash
.claude/skills/project-bootstrap/scripts/init_project.py \
--name acme \
--root /path/to/acme
```
Optional overrides:
```bash
.claude/skills/project-bootstrap/scripts/init_project.py \
--name acme \
--root /path/to/acme \
--core-port 8080 \
--portal-port 3000 \
--namespace acme
```
## Workflow
1. Confirm requested stack. If no explicit preference, use default stack.
2. Run the initializer script with required parameters.
3. Verify local run instructions:
- Core: `cd core && cargo run`
- Portal: `cd portal && npm install && npm run dev`
- Docker: `cd docker && docker-compose up -d`
4. Hand off the generated skeleton and next steps.
## What Gets Generated
- `core/` Rust service with `/health` and `/ready`
- `portal/` React Router 7 + Vite + TypeScript app
- `docker/` Dockerfiles and `docker-compose.yml`
- `k8s/` Base manifests for core and portal
- `scripts/` Local reset script
- `deploy/` K8s deploy/upgrade/cleanup scripts
## Script Templates
- `scripts/reset-docker.sh` – reset local Docker environment
- `deploy/deploy.sh` – apply k8s base manifests
- `deploy/upgrade.sh` – restart k8s deployments
- `deploy/cleanup.sh` – cleanup k8s namespace
Each script supports optional Auth9 extras via `ENABLE_AUTH9_EXTRAS=true`.
## Templates
Templates live in:
```
assets/template/
```
Use placeholders:
- `{{project_name}}`
- `{{core_port}}`
- `{{portal_port}}`
- `{{namespace}}`
## References
- `references/stack.md` for optional extensions (Keycloak/DB/Redis/etc.)
---
> Source: [c9r-io/auth9](https://github.com/c9r-io/auth9) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-05-22 -->
章节与文件索引
按说明文件中的顺序排列。
快速入门
工作流程
生成什么
脚本模板
模板
文件/命令 -> cd core && cargo run · cd portal && npm install && npm run dev · cd docker && docker-compose up -d · core/ · /health · /ready · portal/ · docker/
内容校验值 -> 125763faf526
当前原文的自动摘译,尚未人工审校。
快速入门
选择项目名称和目标目录。运行初始化脚本。可选覆盖:
工作流程
确认请求的堆栈。如果没有明确的首选项,请使用默认堆栈。使用所需参数运行初始化脚本。验证本地运行指令: 核心:
cd core && cargo run门户:cd portal && npm install && npm run dev生成什么
core/Rust 服务,包含/health和/readyportal/React Router 7 + Vite + TypeScript 应用程序docker/Dockerfiles 和docker-compose.ymlk8s/核心和门户的基本清单scripts/本地重置脚本脚本模板
scripts/reset-docker.sh– 重置本地 Docker 环境deploy/deploy.sh– 应用 k8s 基本清单deploy/upgrade.sh– 重新启动 k8s 部署deploy/cleanup.sh– 清理 k8s 命名空间 每个脚本通过ENABLE_AUTH9_EXTRAS=true支持可选的 Auth9 附加功能。模板
模板位于:使用占位符:
{{project_name}}{{core_port}}{{portal_port}}