Server 代码验证
- 作者仓库星标 0
- 作者仓库 skills-registry
Server
Arguments: $ARGUMENTS
Path: resolve from ~/.claude/project-repos.json using shortname
server. The example registry ships a Python / FastAPI project; adjust the
commands below if your server shortname points at a different stack.
All commands assume uv is installed. If the project uses a different
runner (poetry, pip, docker compose exec), update projects/server.md and
this file together.
Actions
test
# All tests:
cd {server-path} && uv run pytest
# Specific file:
cd {server-path} && uv run pytest tests/{path}.py
# Filter (substring match on test id):
cd {server-path} && uv run pytest -k "{filter}"
# With coverage:
cd {server-path} && uv run pytest --cov=app --cov-report=term
analyze
Ruff + mypy:
cd {server-path} && uv run ruff check .
cd {server-path} && uv run ruff format --check .
cd {server-path} && uv run mypy app
Fix with:
cd {server-path} && uv run ruff check --fix .
cd {server-path} && uv run ruff format .
docker
If the project ships a docker-compose.yml for local dev (Postgres, Redis,
LocalStack, etc.):
cd {server-path} && docker compose up -d
Migrations (example with Alembic):
cd {server-path} && uv run alembic upgrade head
Process
- Parse arguments: action (
test/analyze/docker), optional test filter - If
dockeraction and containers aren't running, start them first - Run the command
- Report result (summary of passed/failed, or first analyzer errors)
<!-- tomevault:4.0:skill_md:2026-05-22 -->Source: ajvelo/claude-toolkit — distributed by TomeVault.
- 流狐分类
- 运维部署
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @tomevault-io · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 需手动接入
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- Docker
- 底层运行要求
- Python · Docker
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 Arguments: $ARGUMENTS Path: resolve from ~/.claude/project-repos.json using shortname server. The example registry ships a Python / FastAPI project; adjust the
Actions
test
Ruff + mypy: Fix with:
If the project ships a docker-compose.yml for local dev (Postgres, Redis, LocalStack, etc.): Migrations (example with Alembic):
Parse arguments: action (test / analyze / docker), optional test filter If docker action and containers aren't running, start them first Run the command
## Server
**Arguments:** $ARGUMENTS
**Path:** resolve from `~/.claude/project-repos.json` using shortname
`server`. The example registry ships a Python / FastAPI project; adjust the
commands below if your `server` shortname points at a different stack.
All commands assume `uv` is installed. If the project uses a different
runner (poetry, pip, docker compose exec), update `projects/server.md` and
this file together.
## Actions
### `test`
```bash
# All tests:
cd {server-path} && uv run pytest
# Specific file:
cd {server-path} && uv run pytest tests/{path}.py
# Filter (substring match on test id):
cd {server-path} && uv run pytest -k "{filter}"
# With coverage:
cd {server-path} && uv run pytest --cov=app --cov-report=term
```
### `analyze`
Ruff + mypy:
```bash
cd {server-path} && uv run ruff check .
cd {server-path} && uv run ruff format --check .
cd {server-path} && uv run mypy app
```
Fix with:
```bash
cd {server-path} && uv run ruff check --fix .
cd {server-path} && uv run ruff format .
```
### `docker`
If the project ships a `docker-compose.yml` for local dev (Postgres, Redis,
LocalStack, etc.):
```bash
cd {server-path} && docker compose up -d
```
Migrations (example with Alembic):
```bash
cd {server-path} && uv run alembic upgrade head
```
## Process
1. Parse arguments: action (`test` / `analyze` / `docker`), optional test filter
2. If `docker` action and containers aren't running, start them first
3. Run the command
4. Report result (summary of passed/failed, or first analyzer errors)
---
> Source: [ajvelo/claude-toolkit](https://github.com/ajvelo/claude-toolkit) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-05-22 --> 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Server → Actions → test → analyze → docker → Process
要点 -> Arguments · Path · Path: resolve from ~/.claude/project-repos.json using shortname server. · All commands assume uv is installed. · Ruff + mypy: bash cd {server-path} && uv run ruff check . · Fix with: bash cd {server-path} && uv run ruff check --fix . · 1. Parse arguments: action (test / analyze / docker), optional test filter 2. · --- > Source: [ajvelo/claude-toolkit](https://github.com/ajvelo/claude-toolkit) — distributed by [TomeVault](https://tomevault.io).
文件/命令 -> ~/.claude/project-repos.json · server · projects/server.md · test · analyze · docker · docker-compose.yml
内容 SHA-256 -> cc591f374101
方法与流程
适用与边界
原文中的明确线索
~/.claude/project-repos.json、server、projects/server.md、test、analyze、docker、docker-compose.yml