在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用rcc-dev-skills
星标0
分支0
更新时间2026年7月18日 15:00
RouteCodex 调试与架构路由入口
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
文件资源管理器
10 个文件SKILL.md
readonly菜单
RouteCodex 调试与架构路由入口
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | rcc-dev-skills |
| description | RouteCodex 调试与架构路由入口 |
feature_id / gate / owner 查询~/.rcc / provider 配置排障AGENTS.mddocs/agent-routing/05-foundation-contract.mddocs/agent-routing/00-entry-routing.mddocs/agent-routing/40-task-memory-routing.mdreferences/24-node-contract-debug-method.md任何会改实现的任务,先执行且不能跳过:
.mempalace、.local-index、dist、target、coverage
或其他生成物作为当前代码状态证据;文件发现必须从 git ls-files
加源码/文档 allowlist 和生成物 denylist 开始。docs/architecture/function-map.yml 查 feature_id 的 owner、allowed / forbidden paths。docs/architecture/mainline-call-map.yml 查 feature_id、caller、callee。docs/architecture/verification-map.yml 查必跑验证栈。docs/architecture/wiki/mainline-call-graph.md(或功能 wiki)核对节点闭环。.agent-collab/PROTOCOL.md;不要假设共享控制面、共享 worker 内存、可靠实时消息或可见工具状态。.agent-collab/ 视图:runs/*/heartbeat.json、claims/*/owner.json、最近 events.jsonl、handoff/、merge-queue/、KILL_SWITCH。feature_id、resource_id、mainline_node_id、gate_id,用 mkdir .agent-collab/claims/<semantic_id> 作为本地原子占用。owner.json、对应 runs/<run_id>/heartbeat.json 更新时间、events/evidence、handoff/merge-queue,以及当前 live agents/实际进程;heartbeat stale 且无 live agent 时按 stale claim 处理,不要把 owner.json 的 status=active 字面值当 blocker。evidence.jsonl;跨 worker 集成默认走 handoff/ 或 merge-queue/,checker 读取证据后再合并。function map / owner registry / verification mapmainline source / wiki / manifestMetadataCenter、上下文 carrier、日志投影、matchedPort/localPort 之类中间语义里再取一遍;MetadataCenter 只用于控制语义,不能当数据面第二真源。metadata、client_metadata、x-* / x-codex-* 都是请求协议数据面,默认透传;不要搬进 MetadataCenter,不要因为名字含 metadata 就判成 RouteCodex 控制信号。MetadataCenter 只写 RouteCodex 内部控制信号。clientConnectionState 生成的 abortSignal 写进 provider runtime metadata;只保留 state 不够,direct provider 会继续跑到自然结束。PROVIDER_NOT_AVAILABLE、default floor 或 route pool availability 问题时,优先建议并执行 live VR diagnostics。/_routecodex/diagnostics/virtual-router/status 或 routecodex port status <port> --json,确认 localPort、routingPolicyGroup、route prefix、pool、forwarder、availableTargets。/_routecodex/diagnostics/virtual-router/dry-run 或 routecodex port dry-run <port> ... --json 重放最小样本;短样本和 longcontext 大样本分开验证。PROVIDER_NOT_AVAILABLE,应解释为 default floor 保护。function map 和 mainline source,确认模块边界、允许路径、禁止路径、主线 caller/callee。~/.rcc 或用户真实配置文件。若现有配置暴露兼容失败,必须回代码唯一 owner 修正;需要清理/迁移用户配置文件时必须先获得 Jason 明确授权。routecodex restart --port <locator-port> 聚合重启一次 -> 配置全部成员端口 /health.version 一致 -> 检查目标 server log/样本目录错误 -> 修复发现的问题。缺任一项只能声明 source gate 通过,不能声明本轮完成。routecodex 安装面执行:先安装目标产物,再用全局 routecodex --version 确认版本,用任一成员端口作为 locator 执行一次 routecodex restart --port <locator-port>,然后验证该 aggregate instance 的全部配置成员端口。禁止逐端口循环 restart。rcc 的 release 安装、Homebrew/global shim、或正在工作的 release runtime。需要动 rcc release install 时,先确认这是本轮目标。rcc start、repo-local node dist/...、手工 snapshot、或临时 shim 代替标准 release/global 安装验证;这些只能作为定位证据,不能作为交付闭环。~/.rcc/install/current/package.json、目标端口 /health.version。不一致时先修安装/入口,不继续判断业务功能。npm run test:webui 这类 Jest/UI 单测不得启动、停止、重启 live server;若测试前后 server 变化,必须用 ~/.rcc/logs/server-<port>.log 的 signal_received / self_termination / restart_signal_received 追真正 stop owner,禁止把 install/restart/HTTP shutdown 误归因给 UI 单测。| 主题 | 文件 | 用途 |
|---|---|---|
| 架构总览 | references/00-architecture-map.md | 单一路径、分层职责、关键文件 |
| PipeDebug 流程 | references/10-pipedebug-flow.md | 按阶段切段定位 |
| 改动落点 | references/20-change-index.md | 功能改动先改哪 |
| 改动流程 | references/21-change-workflow.md | 功能变更先看什么、怎么锁唯一修改点 |
| servertool hook 骨架 | references/22-servertool-hook-skeleton-workflow.md | servertool/stopless CLI lifecycle + hook-governed 请求/响应骨架、测试闭环 |
| servertool 开发/调试流 | references/23-servertool-hook-dev-debug-flow.md | servertool hook skeleton 的实施顺序、debug 切段、证据链与删 TS 前置条件 |
| 节点合同调试法 | references/24-node-contract-debug-method.md | 高优先级方法:先生命周期/节点合同,再设计白盒与两端黑盒,最后才 debug/改代码 |
| 协议/SSE/continuation 边界 | references/25-protocol-sse-continuation-boundary.md | /v1/responses continuation Chat Process save/restore 不可变区、SSE transport-only、inbound/outbound 只归一化 |
| 唯一功能块 | references/30-unique-block-index.md | 快速锁唯一功能块 |
| owner / feature / gate | references/40-owner-registry.md | function map / verification map / source anchor |
~/.rcc / provider 配置 | references/50-rcc-config-ssot.md | runtime 配置真源、schema、排障命令 |
| note / MEMORY / skill | references/60-note-memory-flow.md | note→MEMORY→skill 提炼 |
| gate 反查 | references/70-gate-discovery.md | feature_id → required_gates |
| skill 写法 | references/80-skill-routing-convention.md | 主 skill 保持短入口 |
| 2026-05 lessons | references/91-lessons-2026-05.md | 5 月沉淀 |
| 2026-06 lessons | references/92-lessons-2026-06.md | 6 月沉淀 |
| 2026-07 lessons | references/93-lessons-2026-07.md | 7 月沉淀 |
00 / 301020 / 2140 / 7022 / 23 + 40 / 70506024:锁生命周期、节点合同、白盒/黑盒设计方法40 + 70:锁 owner、feature、gate22 / 23:锁 servertool 主线、落点、切段法、验证顺序servertool / stopless / reasoning_stop / hook run / followup / reenter / schema validation / tool injection,必须先读 22 再读 23。/v1/responses continuation、SSE、req_inbound/resp_outbound、history/tool loss、JSON/SSE parity,必须先读 25,再回 function map/mainline 锁 owner。resp_chatprocess save -> immutable store interval -> req_chatprocess restore 之间禁止任何语义转换、上下文恢复、history/tool 修补、required_action 推断、stopless/servertool guidance 注入。req_inbound / resp_outbound / SSE / handler / adapter / store transport 只能做语义等价归一化、投影、传输、scope 校验和释放。call_id 的 custom_tool_call_output chunk 属于 req-inbound 语义等价归一化,即使中间穿插独立 wait 等 function call/output,也只能在 Rust req-inbound context capture 按 custom-call owner 合并;无匹配 custom call 的真实 orphan 仍必须 fail-fast。禁止把该规则泛化到普通 function output,也不要在 handler、resp_outbound、store transport、provider runtime 或 TS bridge 补 history / continuation / tool_result。entryOriginRequest / capturedChatRequest / requestSemantics / session-only scope 在保存后到恢复前被用来补上下文或 history,先判定为越界 owner shortcut;修复方式是删除该逻辑并回 Chat Process continuation owner,而不是在 inbound/outbound/handler 再补一层。22 锁目标骨架、主线顺序、case matrix、黑盒闭环。23 锁实施顺序、debug 切段、证据链、删 TS 准入条件。24 锁高优先级方法:任何复杂 debug/设计先画生命周期,逐节点定义输入/输出/正常/错误/超预期,再补白盒节点测试和 provider/client 两端黑盒,最后才允许改代码。23 或 lessons,不能只留在 wiki、note.md、goal 或聊天。23 也是 servertool 开发 + debug 的执行真源:每轮新增的稳定 slice 顺序、串行验证顺序、黑盒口径、删 TS 前置条件,都必须回写到 23 或当月 lessons,不能只留在聊天或 note.md。23 或当月 lessons;禁止只留在 note.md 或聊天上下文里。mainline-call-map 仍是 binding pending,只能宣称“目标/骨架已锁定”,不能宣称 runtime 已 Rust-only 落地。x-routecodex-dry-run: provider-request,确认返回 routecodex.pipeline_dry_run、最终 providerRequest 和 stoppedBeforeProviderSend=true;若返回普通 provider response,先修 dry-run loopprovider-response*.json 走 npm run dry-run:codex-response -- --sample <file>,确认现有 response converter 输出;未 materialize 的 live sseStream 样本不能当离线响应证据HTTP -> Hub Pipeline -> VR -> Provider Runtime -> Upstreamfeature_id 改动必须同步 map + verification + source anchor~/.rcc 是运行时配置真源v3/ 是预期:V3 bin/tests 必须可全局安装验证。不得把一起 copy V3 当 bug;应验证目标 install surface。resource-operation-map、function-map resource_bindings、mainline resource_flow,再按资源改 runtime;禁止先写全局 request/response manager。request.mainline / response.mainline / responses.continuation.mainline / servertool.hook_skeleton.mainline / error.mainline / vr.route_availability.mainline / metadata.center.mainline 的相邻 resource_flow 与 owner resource_bindings;config/WebUI/runtime lifecycle/debug/internal-error/VR diagnostics 需先扩展资源分类再补。config.runtime_projection、runtime.instance_record、debug.internal_error_envelope、vr.diagnostic_decision),禁止借用 request/response/route.selection/debug snapshot 资源凑 coverage;剩余 stopless/SSE/stage_a 属下一层 backlog。stopless.*、sse.protocol_stream_projection / sse.provider_stream_aggregate、stage_a.* 资源;主线 edge 可全闭合到 108/108,但 feature-level resource_bindings backlog 仍需按 owner surfaces 分层处理,禁止为数字把非主线 owner 绑定到不相邻资源。resource_flow 已 108/108 后,只补 feature-level resource_bindings。servertool engine 子功能使用 plan/state/projection/policy 资源族(如 servertool.engine_action_plan、servertool.execution_contract_plan、servertool.registry_projection),不新增假 mainline flow,不把非相邻 owner 绑到 request/response/route 资源凑数。runtime.hub_pipeline_handle、runtime.http_entry_dispatch、server.handler_transport_envelope、models.capability_catalog、cli.command_dispatch_intent),不要把 shell/handler owner 硬绑到 request/response/route truth 凑 coverage。protocol.* 资源;相邻但不同 feature 的 schema 修补必须拆资源(如 Responses function tool schema 与 tool parameters schema),禁止合并成一个多 writer 模糊资源凑覆盖。protocol.* side_channel 只读控制面,禁止进 provider/client body。config.*_plan / config.*_codec 资源;不要把 codec/path owner 绑定到 config.runtime_projection / provider profile projection 这类高层 materialization 资源凑数。119/119 只代表 map/doc/gate 闭合,不代表 runtime refactor 已完成。119/119 后,runtime refactor 前必须先跑 verify:resource-source-bindings 和红测 fixture;资源 owner 必须能经 function-map owner_module / allowed_paths 找到真实 feature_id: source anchor,查不到只能标 binding pending,禁止伪造 symbol/resource/edge。source-binding 绿门禁必须留在 verify:architecture-review-surface-light,红测 fixture 必须留在 verify:architecture-ci-longtail 并由 verify:function-map-build-wiring 锁住。.agent-collab claim 精确 feature_id / resource_id / mainline_node_id,再证明 owner/source/map/gate 可查;对 dry-run 相关 slice,runtime 改动前必须先有 request dry-run 最终 provider request 样本和 response dry-run converter 黑盒结果,后续修复先加失败 dry-run 样本再改唯一 owner。providerRequest,响应处理问题先用 response dry-run 固化 convertProviderResponseIfNeeded 黑盒输出;serialized live sseStream 没有 bodyText/raw/text 不是离线 replay 证据,必须重新 capture。test:pipeline-dry-run-blackbox-fixtures 是 dry-run runtime refactor 前置门禁,不是事后补测。native-exports.ts 外部调用点收敛到 owner-specific narrow host,再删除零引用 facade;禁止为了删桥让 handler/executor 直接接更多 native helper。routing-native-host.ts、runtime-lifecycle-host.ts),不能 mock broad native-exports.ts;只有纯 Rust/NAPI 输出证据测试才迁到 tests/sharedmodule/helpers/*direct-native*。responses-conversation-store-host.ts 的同一 host store binding;pending request 未有 response id 前不会持久化,direct-native 单独 binding 只适合纯 Rust 输出证据。tests/providers/helpers/llmswitch-native-exports-fake.ts;需要 handler 专属行为时放到 owner-specific fake(如 responses-handler-host-fakes.ts)。tests/modules/llmswitch/bridge/responses-request-handler-host-fake.ts 这类 owner-specific fake;禁止回到 llmswitch-native-exports-fake / broad native-exports.ts mock。provider-response-native-calls.ts / provider-response-effects.ts / provider-response-metadata-effects.ts 后,gate 检查这些 helper 的 shared invoker / fail-fast / MetadataCenter 证据,禁止为了旧 gate 把 helper 逻辑搬回主 host。provider-response-shared-pure-blocks.ts 只能调用 shouldAllowDirectResponsesPrebuiltSsePassthroughJson 的 native shell,禁止在 TS 重新写 /v1/responses + openai-responses + continuationOwner=direct 本地谓词。choices array bridge debug details 属于 Rust owner:provider-response-converter.ts 只能调用 buildChoicesArrayBridgeDebugDetailsJson 的 native shell,禁止在 TS 重新写 choices array message 判断、bridge seed/payload key probe 或 bridgePayloadHasDataChoices 本地投影。provider-response-converter.ts 只能调用 buildProviderResponseTimingBreakdownJson 的 native shell,禁止在 TS 重新写 clientInjectWaitMs / hubResponseExcludedMs 投影。若响应对象含 live sseStream,TS wrapper 必须先从 native JSON 入参剥离并在返回后按原引用恢复,禁止把 stream 对象送进 native JSON serialization。verify:hub-pipeline-native-reference-gate 和 red fixture,区分 private loader、owner-specific host、white-box mock、direct-native evidence、doc stale owner;runtime 禁 import direct-native helper,docs/wiki 禁把 broad native-exports.ts 写成语义 owner。verify:architecture-thin-wrapper-only 必须覆盖根仓 bridge/handler/converter/executor host 面并在 rootHostCheckedFiles=0 时失败;red fixture 要分别锁 second writer、TS ErrorErr 分类、flat metadata fallback、semantic payload fallback、malformed Rust plan downgrade 和 broad/dead facade 复活。V3Config05ManifestPublished 并借用资源/Hook 声明;禁止 runtime 读 config 文件/目录、动态发现/加载 hook、把 side-channel resource 写进 provider/client body,或为了 hook 规划 retain/full clone/JSON round-trip/SSE materialize/snapshot-copy 当前节点业务 payload。rg -n 'feature_id: <id>' docs/architecture/function-map.ymlrg -n 'resource_id: <id>|<id>@' docs/architecture/resource-operation-map.yml docs/architecture/function-map.yml docs/architecture/mainline-call-map.ymlnpm run audit:resource-global-coveragesed -n '1,120p' docs/architecture/resource-global-coverage-report.jsonnpm run verify:resource-operation-mapnpm run verify:resource-owner-uniquenessnpm run verify:resource-mainline-bindingsnpm run verify:resource-forbidden-writesnpm run verify:resource-side-channel-isolationnpm run verify:resource-source-bindingsnpm run test:resource-source-bindings-red-fixturesnpm run verify:architecture-review-surface-lightrg -n 'feature_id: <id>' docs/architecture/verification-map.ymlrg -n 'feature_id: <id>|<id>' sharedmodule src testsls ~/.rcc/provider/<id>/ && cat ~/.rcc/provider/<id>/config.v2.tomlSKILL.md 只做入口,不回填大段细节references/<nn>-<topic>.mdreferences/94-v3-rust-responses-direct-mvp.md