计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
lov-backend【效率与协作】在 uni-api(FastAPI 聚合网关)项目内为某个 app 新增网关能力:新建业务 package 与 router, 注册进 router/__init__.py 并接入 config/app_groups.py 分组,让该 app 通过网关调用聚合 API。 触发:给 uni-api 加网关能力 / add gateway endpoints in uni-api。
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
在 uni-api(FastAPI 聚合网关)仓库里为该 app 新增一组网关端点并挂进 /docs 分组,让该 app
通过网关调用聚合后的上游 API。改动只落在 uni-api 既有约定内,不引入新框架。
lov-install-zenmux-api。lov-refactor-api。lov-frontend 模块处理。Every generated Skill is connected to the shared user-profile/v1 contract in
skill.yaml. Read the shared user, brand, workspace, preferences, and this
Skill's skills.<skill_id> namespace at the start of every run. Keep the source
portable: resolved personal values belong in the shared profile, never here.
When the user directly states a durable preference or brand fact, persist it
through scripts/profile_store.py and report the saved profile path. Put
Skill-specific values under records.<field>; use brand.<field> or
user.<field> for shared values. Do not persist inferred secrets or credentials.
See references/user-profile.md for the complete contract.
Read references/skill-composition.md before deciding whether to invoke or
extend any adjacent capability. The record distinguishes optional upstream and
downstream handoffs from embedded Kit modules. Do not silently depend on a
sibling Skill that is not shipped with this source.
You MUST follow these steps in order.
SKILL_DIR if the environment provides it;否则从当前上下文推断已安装的模块目录。main.py、router/、packages/、settings.py)。AGENTS.md 的运行前提(.env 必填字段、socksio 等)已满足,避免破坏 app 启动。references/uni-api-patterns.md 掌握 uni-api 既有约定后再动手。Resolve context.profile on every invocation. The precedence is current request,
project context, Skill-specific profile records, shared preferences, shared
brand/user profile, then safe defaults. A direct user statement about a durable
preference or brand fact should be saved with scripts/profile_store.py record
using --confirm, followed by a concise saved-path report.
packages/llm、packages/spider 等能力,避免重复造轮子。lov-install-zenmux-api(不同网关槽位)与 lov-refactor-api(下游可选重构),
记录见 references/skill-composition.md。packages/<domain>/(新能力则新建目录)。复用已有
packages/llm、packages/spider 等模块,保持依赖最小化。router/<capability>.py(复杂能力用 router/<capability>/ 包):
APIRouter(prefix='/<capability>', tags=['<Tag>']),tag 名用英文驼峰/短横线,与 app 分组对应。packages/common.pydantic 的 BaseModel,字段尽量少。@standard_error_handler() 装饰路由,保证错误结构统一(见 packages/fastapi/standard_error.py)。router/llm.py、router/account.py 的写法保持一致。router/__init__.py 里 import 并 root_router.include_router(...)。config/app_groups.py 的 APP_GROUPS(新增分组或并入现有组)。
分组名即 /docs Tab 名,用简洁中文。settings.py 的 Settings 加字段,并在 .env.sample
补充占位,不硬编码密钥到源码。python -c "import main" 通过(先满足 AGENTS.md 前提);openapi.json 出现新 tag;/docs 出现对应 Tab。router/__init__.py 注册完整、config/app_groups.py 分组正确、无硬编码密钥。.env(含 AGENTS.md 列出的必填变量)与 socksio 等运行前提。