跳到正文
cccskills
免费在 GitHub 公开

python-patterns

Team conventions for Python development — credentials, API clients, LLM response parsing, testing patterns, and data pipeline structure. Covers dotenv loading, retry logic, secret validation, and pipeline anti-patterns.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(5)

  • SKILL.md1.5 KB
  • references/api-clients.md1.5 KB
  • references/credentials.md829 B
  • references/pipelines.md2.5 KB
  • references/testing.md1.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Python Patterns — Team Conventions

Unified conventions for team Python projects: credential management, API clients, testing discipline, and data pipeline structure. Supplements standard patterns with team-specific rules.

When to Activate

  • Writing credential/secret handling code or .env files
  • Creating or modifying API clients (GitHub, Stripe, LLM APIs)
  • Parsing LLM responses or structured API outputs
  • Writing or reviewing tests (TDD workflow, mocking external APIs)
  • Building or debugging data pipeline stages
  • Reviewing code that handles HTTP responses or LLM output

Quick Rules

Credentials:

  • Never hardcode or use real defaults. Fail fast if missing. Always create .env.example.

APIs:

  • Always timeout (30s). Only retry transient errors (429, 5xx). Always validate response structure.

Tests:

  • Mock external APIs. Set random_state=42. Target 80%+ coverage. Test behavior, not internals.

Pipelines:

  • Each stage is independently runnable. Validate input before processing. Include metadata in every output. Fail fast on invalid data.

Details

Read references/credentials.md, references/api-clients.md, references/testing.md, and references/pipelines.md for full examples and anti-patterns.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

User asks for design, planning, or approach exploration before implementation. Covers new features, components, refactors, or architecture decisions. Creates design docs and proposes approaches with trade-offs.

中文简介正在准备中。当前显示原文说明。

Benkapner/claude-code-basecamp182026年10月1日 更新

ci-guard

免费

Use when starting work in a repository under repositories/ that may lack CI configuration. Detects missing CI workflows (GitHub Actions, GitLab CI, CircleCI) and alerts the user to add one. Skips repos marked as research-only.

中文简介正在准备中。当前显示原文说明。

Benkapner/claude-code-basecamp182026年10月1日 更新

Use when the user asks to measure command execution time or optimize a feedback loop. Records explicit measurements and recommends faster alternatives such as unit tests versus integration tests. It is opt-in; it does not run on every command.

中文简介正在准备中。当前显示原文说明。

Benkapner/claude-code-basecamp182026年10月1日 更新

Measurement-driven code refactoring — profile before changing, measure after, keep only if metrics improve. Covers complexity reduction, extraction patterns, and bulk refactoring for mechanical changes across many files.

中文简介正在准备中。当前显示原文说明。

Benkapner/claude-code-basecamp182026年10月1日 更新

Scan projects for credential leaks, secrets in code, insecure patterns, LLM API key exposure, PII leakage to external AI services, and .env/.gitignore misconfigurations. Especially useful for data and API integrations, regardless of implementation language.

中文简介正在准备中。当前显示原文说明。

Benkapner/claude-code-basecamp182026年10月1日 更新

Use when committing or pushing changes and the repository needs a version bump. Analyzes commits using conventional commit prefixes to determine whether the next release is a major, minor, or patch increment. Also use when the user asks about versioning, release planning, or changelog generation.

中文简介正在准备中。当前显示原文说明。

Benkapner/claude-code-basecamp182026年10月1日 更新

查看 Benkapner 的全部技能

报告此技能的问题