[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FAM6YS0KHE4HHWVCBXF8AG":3,"skill-same:01M7FAM6YS0KHE4HHWVCBXF8AG":67},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":48},"01M7FAM6YS0KHE4HHWVCBXF8AG","serving-and-cli",null,"Operate Mellea 0.8.0.dev0's m CLI and OpenAI-compatible server safely, including serving, routing, response schemas, streaming, decomposition, migration, evaluation routing, and bounded adapter commands.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fmellea\u002Fsub-skills\u002Fserving-and-cli\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: serving-and-cli\ndescription: \"Operate Mellea 0.8.0.dev0's m CLI and OpenAI-compatible server\n  safely, including serving, routing, response schemas, streaming,\n  decomposition, migration, evaluation routing, and bounded adapter commands.\"\ndisable-model-invocation: true\nmetadata:\n  disco-role: operating\nlicense: Apache 2.0\n---\n\n# Serving and CLI\n\nUse this route for the `m` entry point, `m serve`,\n`POST \u002Fv1\u002Fchat\u002Fcompletions`, `GET \u002Fhealth`, OpenAI-compatible clients, model\nrouting, response formats, SSE streaming, `m decompose`, `m fix`, or the\nbounded CLI aspects of `m alora` and `m eval`. The operating contract is for\nMellea `0.8.0.dev0` and Python 3.11+.\n\n## Route the task\n\n1. Run the safe bundled checker before invoking a side-effectful command:\n   `python scripts\u002Fcheck_cli_surface.py --mode static`. To render installed\n   help without executing a callback, use `--mode help --target \u003Cname>`.\n2. Read [CLI reference](references\u002Fcli-reference.md) for exact command families,\n   current defaults, output files, prerequisites, and side effects.\n3. For `m serve`, request\u002Fresponse fields, structured output, routing, streaming,\n   multimodal messages, and error envelopes, read\n   [Serving API](references\u002Fserving-api.md).\n4. Before binding a socket or exposing a process, read\n   [Deployment and configuration](references\u002Fdeployment-and-config.md).\n5. For missing extras, schema failures, port conflicts, backend errors, partial\n   output, or command-safety recovery, read\n   [Troubleshooting](references\u002Ftroubleshooting.md).\n\n## Safety gates\n\n- Help and static inspection are safe. `m serve` imports user code and starts a\n  blocking server; `m decompose` and `m eval` call models and write files;\n  `m fix genslots` writes unless `--dry-run`; aLoRA commands may download a\n  model, consume substantial compute, overwrite local files, prompt, or upload\n  to Hugging Face Hub.\n- Require an explicit decision before a public bind, provider call, model\n  download, training run, remote upload, or non-dry-run rewrite. Never use a\n  side-effectful command as an installation probe.\n- Prefer `127.0.0.1` over the `m serve` wildcard default. The built-in service\n  has no authentication, TLS, rate limiting, or authorization layer.\n- Treat request `model` as untrusted routing metadata. Route only through a\n  fixed allowlist; never derive a provider URL, import, credential, or arbitrary\n  model loader directly from it.\n- Validate `json_schema` before generation. A response schema affects output\n  only when the served function accepts `format` and passes it into Mellea.\n- True incremental streaming needs an uncomputed thunk and a streaming-capable\n  backend. A computed result becomes one SSE content chunk.\n\n## Minimal workflows\n\n### Plan a serving request\n\n1. Choose a local host and an unused port; prefer `127.0.0.1:8080`.\n2. Confirm the app's `serve` signature and backend prerequisites without\n   importing untrusted, side-effectful application code.\n3. Draft one minimal request with `model` and a user message.\n4. Add exactly one advanced feature at a time: `stream`, `response_format`,\n   tools, multimodal content, or model routing.\n5. Check `\u002Fhealth`, then send the bounded request and inspect the response or\n   SSE `[DONE]` marker.\n\n### Plan a CLI migration or pipeline\n\n1. Render the exact nested help surface and check paths\u002Fcredentials first.\n2. For `fix`, run `--dry-run` and review every match before writing.\n3. For `decompose` or `eval`, bound model\u002Ftoken\u002Ftimeout settings and use a new\n   output path; these commands make provider calls and files.\n4. Inspect generated Python, validators, and result counts before executing or\n   treating a run as successful.\n5. Record which operations were deferred because they need a live backend,\n   training resources, or remote write approval.\n\n### Route a difficult request\n\n- Structured-output endpoint with routing and streaming: read all of\n  [Serving API](references\u002Fserving-api.md), use a fixed route allowlist, validate\n  the JSON schema, and ensure the streaming branch returns an uncomputed thunk.\n- Missing server extra: run help\u002Fstatic checks, install `server`, and repeat\n  help; do not start Uvicorn as a dependency test.\n- Decompose\u002Ffix misuse: read the failure table in\n  [Troubleshooting](references\u002Ftroubleshooting.md), preserve generated or\n  rewritten artifacts, and recover with a narrower, reviewable operation.\n\n## Ownership boundaries\n\nRoute provider selection, model identifiers, credentials, backend extras, and\nprovider failures to `..\u002Fbackends-and-models\u002FSKILL.md`. Route evaluation design,\njudge validity, and sampling semantics to\n`..\u002Fsampling-and-evaluation\u002FSKILL.md`. Route tool execution, tool-call loops,\nand MCP to `..\u002Ftools-and-agents\u002FSKILL.md` when that route is available; this\nskill covers only the HTTP envelope and CLI boundary for tools.\n","# Serving and CLI\n\nUse this route for the `m` entry point, `m serve`,\n`POST \u002Fv1\u002Fchat\u002Fcompletions`, `GET \u002Fhealth`, OpenAI-compatible clients, model\nrouting, response formats, SSE streaming, `m decompose`, `m fix`, or the\nbounded CLI aspects of `m alora` and `m eval`. The operating contract is for\nMellea `0.8.0.dev0` and Python 3.11+.\n\n## Route the task\n\n1. Run the safe bundled checker before invoking a side-effectful command:\n   `python scripts\u002Fcheck_cli_surface.py --mode static`. To render installed\n   help without executing a callback, use `--mode help --target \u003Cname>`.\n2. Read [CLI reference](references\u002Fcli-reference.md) for exact command families,\n   current defaults, output files, prerequisites, and side effects.\n3. For `m serve`, request\u002Fresponse fields, structured output, routing, streaming,\n   multimodal messages, and error envelopes, read\n   [Serving API](references\u002Fserving-api.md).\n4. Before binding a socket or exposing a process, read\n   [Deployment and configuration](references\u002Fdeployment-and-config.md).\n5. For missing extras, schema failures, port conflicts, backend errors, partial\n   output, or command-safety recovery, read\n   [Troubleshooting](references\u002Ftroubleshooting.md).\n\n## Safety gates\n\n- Help and static inspection are safe. `m serve` imports user code and starts a\n  blocking server; `m decompose` and `m eval` call models and write files;\n  `m fix genslots` writes unless `--dry-run`; aLoRA commands may download a\n  model, consume substantial compute, overwrite local files, prompt, or upload\n  to Hugging Face Hub.\n- Require an explicit decision before a public bind, provider call, model\n  download, training run, remote upload, or non-dry-run rewrite. Never use a\n  side-effectful command as an installation probe.\n- Prefer `127.0.0.1` over the `m serve` wildcard default. The built-in service\n  has no authentication, TLS, rate limiting, or authorization layer.\n- Treat request `model` as untrusted routing metadata. Route only through a\n  fixed allowlist; never derive a provider URL, import, credential, or arbitrary\n  model loader directly from it.\n- Validate `json_schema` before generation. A response schema affects output\n  only when the served function accepts `format` and passes it into Mellea.\n- True incremental streaming needs an uncomputed thunk and a streaming-capable\n  backend. A computed result becomes one SSE content chunk.\n\n## Minimal workflows\n\n### Plan a serving request\n\n1. Choose a local host and an unused port; prefer `127.0.0.1:8080`.\n2. Confirm the app's `serve` signature and backend prerequisites without\n   importing untrusted, side-effectful application code.\n3. Draft one minimal request with `model` and a user message.\n4. Add exactly one advanced feature at a time: `stream`, `response_format`,\n   tools, multimodal content, or model routing.\n5. Check `\u002Fhealth`, then send the bounded request and inspect the response or\n   SSE `[DONE]` marker.\n\n### Plan a CLI migration or pipeline\n\n1. Render the exact nested help surface and check paths\u002Fcredentials first.\n2. For `fix`, run `--dry-run` and review every match before writing.\n3. For `decompose` or `eval`, bound model\u002Ftoken\u002Ftimeout settings and use a new\n   output path; these commands make provider calls and files.\n4. Inspect generated Python, validators, and result counts before executing or\n   treating a run as successful.\n5. Record which operations were deferred because they need a live backend,\n   training resources, or remote write approval.\n\n### Route a difficult request\n\n- Structured-output endpoint with routing and streaming: read all of\n  [Serving API](references\u002Fserving-api.md), use a fixed route allowlist, validate\n  the JSON schema, and ensure the streaming branch returns an uncomputed thunk.\n- Missing server extra: run help\u002Fstatic checks, install `server`, and repeat\n  help; do not start Uvicorn as a dependency test.\n- Decompose\u002Ffix misuse: read the failure table in\n  [Troubleshooting](references\u002Ftroubleshooting.md), preserve generated or\n  rewritten artifacts, and recover with a narrower, reviewable operation.\n\n## Ownership boundaries\n\nRoute provider selection, model identifiers, credentials, backend extras, and\nprovider failures to `..\u002Fbackends-and-models\u002FSKILL.md`. Route evaluation design,\njudge validity, and sampling semantics to\n`..\u002Fsampling-and-evaluation\u002FSKILL.md`. Route tool execution, tool-call loops,\nand MCP to `..\u002Ftools-and-agents\u002FSKILL.md` when that route is available; this\nskill covers only the HTTP envelope and CLI boundary for tools.\n",{"name":5,"license":24,"metadata":25,"description":7,"disable-model-invocation":27},"Apache 2.0",{"disco-role":26},"operating",true,"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","06-前端与设计\u002Fmellea\u002Fsub-skills\u002Fserving-and-cli",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":27},[38,41,44],{"tool":39,"command":40},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill serving-and-cli",{"tool":42,"command":43},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill serving-and-cli",{"tool":45,"command":46},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill serving-and-cli","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fmellea\u002Fsub-skills\u002Fserving-and-cli\u002FSKILL.md",[49,55,59,63],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fcli-reference.md","REFERENCE","参考文档",10672,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fmellea\u002Fsub-skills\u002Fserving-and-cli\u002Freferences\u002Fcli-reference.md",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fdeployment-and-config.md",7785,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fmellea\u002Fsub-skills\u002Fserving-and-cli\u002Freferences\u002Fdeployment-and-config.md",{"path":60,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Fserving-api.md",11927,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fmellea\u002Fsub-skills\u002Fserving-and-cli\u002Freferences\u002Fserving-api.md",{"path":64,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Ftroubleshooting.md",13424,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fmellea\u002Fsub-skills\u002Fserving-and-cli\u002Freferences\u002Ftroubleshooting.md",[68,76,81,88,95,102],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":72,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":77,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":72,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":72,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":72,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":72,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":72,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]