python-testing-patterns
77构建可靠的 Python 测试套件
Python 测试常常会变得脆弱、缓慢或不完整。此技能指导 pytest 结构、fixtures、mocks、异步测试、覆盖率和 CI 设置。
构建 Cohere 实体抽取流水线
非结构化文本在输入应用或数据库之前,通常需要先提取可靠字段。此技能指导 Python 开发者使用 Cohere v2 结构化输出和 JSON Schema 进行抽取。
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "cohere-v2-python" from https://skillstore.io/skills/activeinferenceinstitute-cohere-v2-python.md and its manifest at https://skillstore.io/api/skills/activeinferenceinstitute-cohere-v2-python/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
正在使用“cohere-v2-python”。 从会议公告中抽取实体。
预期结果:
正在使用“cohere-v2-python”。 为支持工单设计情感分类器。
预期结果:
该技能会生成受控类别集、schema 要求,以及针对无效响应的重试指导。
正在使用“cohere-v2-python”。 审查一个用于生产环境的抽取流水线。
预期结果:
响应会重点指出 API key 处理、速率限制、解析保护措施、token 监控和应用层验证。
Most static findings are false positives caused by Markdown code fences, placeholder API-key examples, and reference URLs. No prompt-injection text or malicious exfiltration behavior was found, but one insecure database credential example should be corrected.
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
https://skillstore.io/skills/activeinferenceinstitute-cohere-v2-python/audits/9?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report[](https://skillstore.io/skills/activeinferenceinstitute-cohere-v2-python?utm_source=security_passport_badge)<a href="https://skillstore.io/skills/activeinferenceinstitute-cohere-v2-python?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/activeinferenceinstitute-cohere-v2-python/security.svg" alt="Skillstore security assessment" loading="lazy"></a><iframe src="https://skillstore.io/embed/skills/activeinferenceinstitute-cohere-v2-python.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>ActiveInferenceInstitute. (2026). cohere-v2-python security audit report (audit version 9) [Author version unspecified]. Skillstore. https://skillstore.io/skills/activeinferenceinstitute-cohere-v2-python/audits/9@techreport{activeinferenceinstitute-activeinferenceinstitute-cohere-v2-python-2026,
author = {ActiveInferenceInstitute},
title = {cohere-v2-python security audit report (audit version 9)},
institution = {Skillstore},
year = {2026},
number = {9},
url = {https://skillstore.io/skills/activeinferenceinstitute-cohere-v2-python/audits/9},
note = {Author version unspecified}
}cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "cohere-v2-python security audit report (audit version 9)"
version: "unspecified"
type: report
authors:
- name: "ActiveInferenceInstitute"
date-released: "2026-07-07"
url: "https://skillstore.io/skills/activeinferenceinstitute-cohere-v2-python/audits/9"
identifiers:
- type: other
value: "skillstore:activeinferenceinstitute-cohere-v2-python:audit:9"
description: "Skillstore immutable audit report identifier"
在将经过验证的记录加载到数据库或分析系统之前,从文档中抽取标准化字段。
使用受控标签将用户评论分类为情感和方面类别。
在文章或报告中识别人员、组织、事件和日期。
使用 cohere-v2-python skill 设计一个 Python 示例,从以下文本中抽取人员、组织、地点和日期:[paste text]。
使用此技能,创建一个 JSON Schema 模式方案,用于抽取发票供应商详情、日期、行项目、税费和总额。
使用此技能,概述一个批量抽取工作流,包括 schema 复用、解析、重试、token 监控和存储准备。
审查我的 Cohere v2 抽取设计,关注 schema 缺口、隐私风险、错误处理、速率限制和下游验证需求。
许可证
MIT
Skillstore 修订
r1
版本提示
作者未声明版本。
引用
d46e62089a6dfc9e14ea02eebd9b8e2ad2dfe1f4
维护新鲜度
2026/7/18
使用量
10 次下载 · 421 次浏览
文件结构
构建可靠的 Python 测试套件
Python 测试常常会变得脆弱、缓慢或不完整。此技能指导 pytest 结构、fixtures、mocks、异步测试、覆盖率和 CI 设置。
为分发打包 Python 项目
Python 打包需要正确的元数据、构建工具和发布步骤。此技能指导 Claude、Codex 和 Claude Code 完成包布局、构建和发布。
优化 Python 性能
如果没有清晰的测量结果,缓慢的 Python 代码很难改进。此技能指导 Claude、Codex 和 Claude Code 完成性能分析、基准测试以及有针对性的优化模式。
构建 SurrealDB Python 工作流
SurrealDB 项目需要可靠的 Python 示例,用于查询、图、向量和实时更新。此技能通过面向数据应用和 RAG 系统的聚焦模式来指导 SDK 使用。
构建异步 Python 系统
如果任务、超时和阻塞调用处理不当,异步 Python 代码可能会失败。此技能提供实用的 asyncio 模式,用于构建可靠的并发应用程序。
使用 uv 更快管理 Python 项目
Python 依赖管理在不同工具之间可能缓慢且不一致。此技能展示了用于项目、虚拟环境、锁文件、CI 和迁移的 uv 工作流。
创建可用于发表的 Matplotlib 图形
由 davila7
在复杂科学绘图中,Matplotlib 很难始终如一地使用。此技能提供实用示例、样式指导和辅助脚本,帮助创建更清晰的图形。
使用 SimPy 构建离散事件仿真
由 davila7
复杂队列和共享资源在部署前难以评估。此技能可指导您进行 SimPy 建模、监控、同步和结果分析。
快速计算数学表达式
由 Decalogue
当用户需要快速获得数值答案时,手动算术检查会拖慢智能体。此技能会计算基础数学表达式并返回简洁结果。
构建 scikit-learn 机器学习工作流
由 davila7
机器学习项目需要一致的预处理、评估和模型选择模式。此技能为 Claude、Codex 和 Claude Code 提供聚焦于 scikit-learn 的指导,并附带参考资料和示例。
使用 Azure AI Vision Python 分析图像
由 sickn33
图像分析工作流需要标题说明、OCR、检测和裁剪,而无需重新构建 SDK 示例。此技能指导 Claude、Codex 和 Claude Code 使用适用于 Python 的 Azure AI Vision 图像分析。
Audit Python Web Apps Before Release
由 glenskii
Python teams need repeatable checks for common application security controls. This skill provides configurable pytest coverage with clear evidence, boundaries, and release decisions.