一键导入
new-endpoint
Scaffold a new FastAPI REST endpoint with Pydantic models, service function stub, and dashboard integration pattern.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scaffold a new FastAPI REST endpoint with Pydantic models, service function stub, and dashboard integration pattern.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when working on Z's persona/identity system, crew YAML definitions, agent-rules.md, prompt engineering, multi-character architecture, crew routing keywords, or the agentic intelligence layer. Expert in Semantic Priming and LLM behaviour shaping.
Use when working on FastAPI endpoints, Python services, scheduled tasks, LLM routing, message bus, memory, voice/TTS, notifier, email rules, or any external API wrapper (Calendar, Gmail, SearXNG, Qdrant, weather). Covers the entire src/backend/ codebase.
Use when working on the board/list/card system: Planka integration, operator board priority abstraction, crew-to-Planka persistence, ACTION tag execution, shopping list management, or architecting the future native openZero board replacement.
Use when working on commercialisation strategy: BSL-1.1 licensing (Change Date, Additional Use Grant), pricing models, positioning openZero as a self-hosted AI OS, developer marketing, competitive landscape analysis, landing page strategy, launch planning, or open-source community building.
Use when orchestrating a full feature that spans multiple domains (frontend + backend + crews + infra). Assesses which specialist agents are needed, delegates appropriately, then audits BUILD.md and artifacts for staleness. User-invocable orchestrator.
Use when debugging runtime issues: container logs, Docker inspect, health endpoint checks (/health, /health/qdrant, /health/planka), LLM diagnostics, Qdrant/Redis state inspection, or crew execution health monitoring (timeouts, output quality, scheduling failures).
| name | new-endpoint |
| description | Scaffold a new FastAPI REST endpoint with Pydantic models, service function stub, and dashboard integration pattern. |
Creates a complete FastAPI endpoint scaffold following openZero conventions.
Ask for:
/api/dashboard/weather).Create the endpoint in src/backend/app/api/dashboard.py using the template in references/endpoint-template.py. Adapt:
Depends(require_auth).Create service function in the appropriate service file under src/backend/app/services/:
async def.except:).Dashboard integration pattern (if the endpoint serves a component):
private async fetchData() {
try {
const res = await fetch('/api/dashboard/weather');
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
// update component state
this.render();
} catch (e) {
console.error('Failed to fetch:', e);
}
}
Verify:
ruff check src/backend/
cd src/dashboard && npx tsc --noEmit