[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FAANV3F3B6B6CA1TCQGZJD":3,"skill-same:01M7FAANV3F3B6B6CA1TCQGZJD":62},{"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":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":47},"01M7FAANV3F3B6B6CA1TCQGZJD","sdk-and-api-clients",null,"Integrate with Langflow through REST APIs, OpenAPI contracts, Python SDK clients, streaming runs, and flow\u002Fproject push-pull workflows.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Flangflow\u002Fsub-skills\u002Fsdk-and-api-clients\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: sdk-and-api-clients\ndescription: \"Integrate with Langflow through REST APIs, OpenAPI contracts,\n  Python SDK clients, streaming runs, and flow\u002Fproject push-pull workflows.\"\ndisable-model-invocation: true\nmetadata:\n  disco-role: operating\nlicense: MIT\n---\n\n# SDK And API Clients\n\nUse this sub-skill when the task is to call a Langflow server from application code, validate API examples, inspect OpenAPI contracts, normalize flow JSON for source control, or debug client-side API failures.\n\nRoute elsewhere when the user wants local flow execution with `lfx run` or `lfx serve` (`..\u002Fexecutor-cli\u002FSKILL.md`), backend route\u002Fservice implementation (`..\u002Fbackend-runtime\u002FSKILL.md`), flow JSON authoring semantics (`..\u002Fflow-authoring\u002FSKILL.md`), or deployment and server configuration (`..\u002Fdeployment-and-operations\u002FSKILL.md`).\n\n## Fast Start\n\n1. Use `references\u002Fsdk-reference.md` for Python SDK construction, sync\u002Fasync clients, CRUD, run\u002Fstream helpers, push\u002Fpull, environment config, and typed exceptions.\n2. Use `references\u002Fapi-contracts.md` for REST endpoint shapes, OpenAPI files, streaming event contracts, TypeScript client notes, and API example validation strategy.\n3. Use `references\u002Ftroubleshooting.md` for install\u002Fimport errors, auth and HTTP failures, streaming edge cases, schema problems, normalization surprises, and backend-boundary signals.\n4. Run `scripts\u002Fnormalize_flow_file.py` when a flow JSON file must be made deterministic and safe for git before review or push.\n\n## Common Workflows\n\n- **Construct a Python client:** prefer `from langflow_sdk import Client, AsyncClient`; pass `base_url`, optional `api_key`, and optional `timeout`. Use context managers (`with Client(...) as client:` or `async with AsyncClient(...) as client:`) when the client owns its HTTP transport.\n- **Run a flow:** call `client.run(flow_id_or_endpoint, input_value=\"...\")` for the simple case, or `client.run_flow(flow_id_or_endpoint, RunRequest(...))` when setting `input_type`, `output_type`, `tweaks`, or `stream` explicitly.\n- **Stream a flow:** iterate `client.stream(...)` or `async for chunk in client.stream(...)`; handle `chunk.is_token`, `chunk.is_end`, and `chunk.is_error`, and map `LangflowAuthError`\u002F`LangflowHTTPError` separately from event-level failures.\n- **Manage flows and projects:** use `list_flows`, `get_flow`, `create_flow`, `update_flow`, `upsert_flow`, `delete_flow`, `list_projects`, `download_project`, and `upload_project`; `push`\u002F`pull` wrap file-based flow upsert and normalized download.\n- **Normalize a flow file:** run `python scripts\u002Fnormalize_flow_file.py flow.json --output flow.normalized.json --code-as-lines` to strip secrets and volatile UI\u002Fserver fields with deterministic JSON output.\n\n## Validation Checklist\n\n- Verify the target server URL includes scheme and port, for example `http:\u002F\u002Flocalhost:7860`, and does not include trailing API path segments.\n- Verify API keys are passed as `x-api-key` through SDK `api_key` or explicit HTTP headers; do not embed real keys in examples or committed TOML.\n- For write operations, validate IDs and payloads with SDK models (`FlowCreate`, `FlowUpdate`, `ProjectCreate`, `RunRequest`) before sending.\n- For streaming clients, assert non-2xx HTTP statuses raise typed SDK exceptions before parsing stream chunks, and assert final `end` chunks are optional in error paths.\n- For OpenAPI or docs examples, prefer offline schema\u002Fexample linting first; only run live examples against an intentionally started local or test Langflow instance.\n\n## References And Helpers\n\n- [SDK reference](references\u002Fsdk-reference.md)\n- [API contracts](references\u002Fapi-contracts.md)\n- [Troubleshooting](references\u002Ftroubleshooting.md)\n- [Flow normalization helper](scripts\u002Fnormalize_flow_file.py)\n","# SDK And API Clients\n\nUse this sub-skill when the task is to call a Langflow server from application code, validate API examples, inspect OpenAPI contracts, normalize flow JSON for source control, or debug client-side API failures.\n\nRoute elsewhere when the user wants local flow execution with `lfx run` or `lfx serve` (`..\u002Fexecutor-cli\u002FSKILL.md`), backend route\u002Fservice implementation (`..\u002Fbackend-runtime\u002FSKILL.md`), flow JSON authoring semantics (`..\u002Fflow-authoring\u002FSKILL.md`), or deployment and server configuration (`..\u002Fdeployment-and-operations\u002FSKILL.md`).\n\n## Fast Start\n\n1. Use `references\u002Fsdk-reference.md` for Python SDK construction, sync\u002Fasync clients, CRUD, run\u002Fstream helpers, push\u002Fpull, environment config, and typed exceptions.\n2. Use `references\u002Fapi-contracts.md` for REST endpoint shapes, OpenAPI files, streaming event contracts, TypeScript client notes, and API example validation strategy.\n3. Use `references\u002Ftroubleshooting.md` for install\u002Fimport errors, auth and HTTP failures, streaming edge cases, schema problems, normalization surprises, and backend-boundary signals.\n4. Run `scripts\u002Fnormalize_flow_file.py` when a flow JSON file must be made deterministic and safe for git before review or push.\n\n## Common Workflows\n\n- **Construct a Python client:** prefer `from langflow_sdk import Client, AsyncClient`; pass `base_url`, optional `api_key`, and optional `timeout`. Use context managers (`with Client(...) as client:` or `async with AsyncClient(...) as client:`) when the client owns its HTTP transport.\n- **Run a flow:** call `client.run(flow_id_or_endpoint, input_value=\"...\")` for the simple case, or `client.run_flow(flow_id_or_endpoint, RunRequest(...))` when setting `input_type`, `output_type`, `tweaks`, or `stream` explicitly.\n- **Stream a flow:** iterate `client.stream(...)` or `async for chunk in client.stream(...)`; handle `chunk.is_token`, `chunk.is_end`, and `chunk.is_error`, and map `LangflowAuthError`\u002F`LangflowHTTPError` separately from event-level failures.\n- **Manage flows and projects:** use `list_flows`, `get_flow`, `create_flow`, `update_flow`, `upsert_flow`, `delete_flow`, `list_projects`, `download_project`, and `upload_project`; `push`\u002F`pull` wrap file-based flow upsert and normalized download.\n- **Normalize a flow file:** run `python scripts\u002Fnormalize_flow_file.py flow.json --output flow.normalized.json --code-as-lines` to strip secrets and volatile UI\u002Fserver fields with deterministic JSON output.\n\n## Validation Checklist\n\n- Verify the target server URL includes scheme and port, for example `http:\u002F\u002Flocalhost:7860`, and does not include trailing API path segments.\n- Verify API keys are passed as `x-api-key` through SDK `api_key` or explicit HTTP headers; do not embed real keys in examples or committed TOML.\n- For write operations, validate IDs and payloads with SDK models (`FlowCreate`, `FlowUpdate`, `ProjectCreate`, `RunRequest`) before sending.\n- For streaming clients, assert non-2xx HTTP statuses raise typed SDK exceptions before parsing stream chunks, and assert final `end` chunks are optional in error paths.\n- For OpenAPI or docs examples, prefer offline schema\u002Fexample linting first; only run live examples against an intentionally started local or test Langflow instance.\n\n## References And Helpers\n\n- [SDK reference](references\u002Fsdk-reference.md)\n- [API contracts](references\u002Fapi-contracts.md)\n- [Troubleshooting](references\u002Ftroubleshooting.md)\n- [Flow normalization helper](scripts\u002Fnormalize_flow_file.py)\n",{"name":5,"license":15,"metadata":24,"description":7,"disable-model-invocation":26},{"disco-role":25},"operating",true,"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","06-前端与设计\u002Flangflow\u002Fsub-skills\u002Fsdk-and-api-clients",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":36,"prompt":46,"zipAvailable":26},[37,40,43],{"tool":38,"command":39},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill sdk-and-api-clients",{"tool":41,"command":42},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill sdk-and-api-clients",{"tool":44,"command":45},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill sdk-and-api-clients","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Flangflow\u002Fsub-skills\u002Fsdk-and-api-clients\u002FSKILL.md",[48,54,58],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fapi-contracts.md","REFERENCE","参考文档",9843,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Flangflow\u002Fsub-skills\u002Fsdk-and-api-clients\u002Freferences\u002Fapi-contracts.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fsdk-reference.md",11930,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Flangflow\u002Fsub-skills\u002Fsdk-and-api-clients\u002Freferences\u002Fsdk-reference.md",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Ftroubleshooting.md",9171,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Flangflow\u002Fsub-skills\u002Fsdk-and-api-clients\u002Freferences\u002Ftroubleshooting.md",[63,70,75,82,89,96],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"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.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":71,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"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":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"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":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"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":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"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":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"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",[],[]]