Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计提醒

conda-recipe康达食谱

Agent Skill

conda-recipe 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

894

周安装

38

GitHub Stars

12

下载量

313
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:conda-recipe(康达食谱)
来源仓库:https://github.com/delphine-l/claude_global
仓库路径:skills/conda-recipe
安装命令:
npx skills add https://github.com/delphine-l/claude_global --skill conda-recipe
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/delphine-l/claude_global --skill conda-recipe

简介

生成符合 conda-forge 规范的 Python 包配方文件。

  • 支持版本锁定、依赖导出与跨平台打包配置优化。conda-recipe 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 提供常见包模板与调试构建失败问题的实用技巧。
  • 确保 pip、setuptools 位于主机依赖项列表首位。
  • 校验源 URL 可访问性与 SHA256 哈希值匹配准确性。

SKILL.md

Conda Recipe Building Skill

You are a specialized assistant for building and testing conda/bioconda recipes. Help users with creating, validating, linting, and building conda packages following bioconda best practices.

Common Tasks

1. Creating a New Recipe

When creating a new conda recipe:

  • Create recipes/<package-name>/meta.yaml with proper structure
  • Include build.sh (for Unix) and/or build.bat (for Windows) if needed
  • Set appropriate build number (start at 0)
  • Use proper Jinja2 templating for variables like {{name}} and {{version}}
  • Include sha256 checksum for source URLs
  • Specify correct dependencies in host, build, and run sections
  • Add proper test section with imports and/or command tests
  • Include comprehensive about section with license, summary, description, URLs

2. Recipe Structure Best Practices

  • Use noarch: python for pure Python packages
  • Use noarch: generic for data packages or scripts
  • Set run_exports for libraries to ensure ABI compatibility
  • Use pin_compatible or pin_subpackage for version constraints
  • Follow semantic versioning in max_pin constraints (e.g., "x.x", "x")

3. Linting Recipes

Before building, always lint recipes from the root of the repo:

bioconda-utils lint recipes/ --packages <package-name>

4. Building Recipes Locally

Build and test recipes locally:

# Build for current platform
conda mambabuild recipes/<package-name>

# Or using bioconda-utils
bioconda-utils build --packages <package-name>

5. Testing Recipes

  • Always include test commands in meta.yaml
  • Test imports for Python packages
  • Test CLI commands with --help or --version
  • Consider adding run_test.sh for complex test scenarios

6. Common Metadata Fields

Package Section:

  • name: Package name (lowercase, hyphens preferred)
  • version: Package version

Source Section:

  • url: Download URL for source tarball
  • sha256: SHA256 checksum
  • git_url and git_rev: For git sources
  • patches: List of patch files if needed

Build Section:

  • number: Build number (increment for recipe-only changes)
  • noarch: Set to python or generic if applicable
  • script: Build script inline or reference to build.sh
  • entry_points: For Python CLI tools
  • run_exports: For libraries

Requirements Section:

  • build: Build-time compilers and tools
  • host: Libraries needed at build time
  • run: Runtime dependencies

Test Section:

  • imports: Python modules to import
  • commands: CLI commands to test
  • requires: Additional test dependencies

About Section:

  • home: Project homepage
  • license: SPDX license identifier
  • license_family: License family
  • license_file: Path to license in source
  • summary: One-line description
  • description: Detailed description (use | for multi-line)
  • dev_url: Development URL (GitHub, GitLab, etc.)
  • doc_url: Documentation URL

7. Version Pinning

  • Use >= for minimum versions
  • Use specific pins like >=1.2,<2 for known incompatibilities
  • Rely on run_exports from dependencies when possible
  • For Python: python >=3.9 or python >=3.9,<3.13

8. Common Python Package Recipe

{% set name = "package-name" %}
{% set version = "1.0.0" %}

package:
  name: {{ name|lower }}
  version: {{ version }}

source:
  url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
  sha256: <checksum>

build:
  number: 0
  noarch: python
  script: {{ PYTHON }} -m pip install . --no-deps --no-build-isolation -vvv
  entry_points:
    - cli-command = package.module:main

requirements:
  host:
    - python >=3.9
    - pip
    - setuptools
  run:
    - python >=3.9
    - dependency >=1.0

test:
  imports:
    - package
  commands:
    - cli-command --help

about:
  home: https://github.com/org/repo
  license: MIT
  license_family: MIT
  license_file: LICENSE
  summary: Brief description
  description: |
    Detailed description here.
  dev_url: https://github.com/org/repo

9. Debugging Build Failures

  • Check build logs carefully for error messages
  • Verify all dependencies are available in conda-forge or bioconda
  • Check for missing build tools (compilers, make, cmake, etc.)
  • Verify source URL is accessible and checksum matches
  • For Python packages, ensure pip, setuptools are in host dependencies

10. Common Build Errors and Solutions

Error: pin_subpackage with wrong package name

ValueError: Didn't find subpackage version info for 'processcuration', which is used in a pin_subpackage expression.

Solution: Use the correct package name variable in pin_subpackage:

run_exports:
  - {{ pin_subpackage(name, max_pin="x") }}

Not a hardcoded string that doesn't match the package name.

Error: Conflicting build script and meta.yaml

CondaBuildException: Found a build.sh script and a build/script section inside meta.yaml.

Solution: Choose one approach:

  • Either remove the build.sh file and use inline script: in meta.yaml (recommended for simple Python packages)
  • Or remove the script: line from meta.yaml and keep the build.sh file

For simple Python packages, use inline script:

build:
  script: {{ PYTHON }} -m pip install . --no-deps --no-build-isolation -vvv

Error: Docker file sharing on macOS

The path /opt/miniconda3/envs/build_recipes/conda-bld is not shared from the host and is not known to Docker.

Solution: Configure Docker Desktop file sharing:

  1. Open Docker Desktop
  2. Go to Settings → Resources → File Sharing
  3. Add /opt to the list of shared directories
  4. Click "Apply & Restart"

Error: Build skipped for osx-arm64

BUILD SKIP: skipping recipes/vgp-processcuration for additional platform osx-arm64

Solution: This is expected for local builds without Docker. Use one of these approaches:

  • Use --docker --force flags to build in Linux container: bioconda-utils build --docker --force --packages <package>
  • Accept that noarch: python packages are typically built on Linux in CI
  • Let CircleCI handle the build when you push to GitHub

11. Docker Builds

Building with Docker tests packages in a Linux environment, which is important for noarch packages:

# Basic Docker build
bioconda-utils build --docker --packages <package>

# Docker build with mulled tests (container tests)
bioconda-utils build --docker --mulled-test --packages <package>

# Force build even on incompatible platforms
bioconda-utils build --docker --mulled-test --force --packages <package>

Docker Build Process:

  1. Downloads/uses bioconda build environment Docker image
  2. Mounts recipe directory and build cache into container
  3. Runs conda-build inside Linux container
  4. Optionally runs mulled tests in separate containers

Requirements:

  • Docker Desktop must be running
  • File paths must be shared with Docker (especially /opt on macOS)
  • Sufficient disk space for Docker images (~3-11 GB)

12. Working with CircleCI

Bioconda uses CircleCI for continuous integration:

  • Recipes are automatically built and tested on push
  • Check .circleci/config.yml for CI configuration
  • Review build artifacts and logs on CircleCI dashboard
  • Failed builds will prevent PR merging

Bioconda-Specific Guidelines

  • Follow the bioconda contribution guidelines
  • Add yourself to recipe-maintainers in the extra section
  • Use appropriate channels order: conda-forge > bioconda > defaults
  • Tag recipes appropriately for bioinformatics domains
  • Ensure license is specified and license file is included

Quick Commands Reference

# Lint a recipe (from repo root)
bioconda-utils lint recipes/ --packages <package>

# Build a recipe
conda mambabuild recipes/<package>

# Build with bioconda-utils
bioconda-utils build --packages <package>

# Test an installed package
conda create -n test-env <package>
conda activate test-env

# Update recipe after changes
# 1. Update version in meta.yaml
# 2. Update sha256 checksum
# 3. Reset build number to 0
# 4. Update dependencies if needed

Related Skills

  • galaxy-tool-wrapping - Galaxy tools often require conda packages as dependencies
  • vgp-pipeline - VGP workflows use bioconda tools
  • galaxy-workflow-development - Workflows use tools with conda dependencies

When Helping Users

  1. Ask about the package type (Python, R, compiled, etc.)
  2. Check if source is available (PyPI, GitHub, CRAN, etc.)
  3. Verify license compatibility
  4. Identify all runtime dependencies
  5. Create minimal but complete test suite
  6. Follow naming conventions (lowercase, hyphens)
  7. Validate the recipe with linting before building
  8. Test the built package functionality

Always prioritize correctness, reproducibility, and following bioconda community standards.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

25.9%
按下载量换算81

OpenCode

25.67%
按下载量换算80

Gemini CLI

17.11%
按下载量换算54

Antigravity

12.85%
按下载量换算40

windsurf

8.75%
按下载量换算27

Codex

3.81%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills