AgentSkillsCN

repo-integration

将已发布的GitHub仓库整合到当前项目中。在以下场景中使用:(1) 从论文的GitHub仓库中引入预训练模型或方法;(2) 将外部工具封装为特征提取器或预处理步骤;(3) 解决外部仓库与当前项目之间的依赖冲突;(4) 调整外部仓库的数据格式,使其与当前流水线的要求相匹配;(5) 从其他仓库中进行代码的外包或子模块化管理。

SKILL.md
--- frontmatter
name: repo-integration
description: >
  Integrate published GitHub repositories into the current project. Use when:
  (1) Adding a pretrained model or method from a paper's GitHub repo,
  (2) Wrapping an external tool as a feature extractor or preprocessing step,
  (3) Resolving dependency conflicts between an external repo and the current
  project, (4) Adapting an external repo's data format to match the current
  pipeline, (5) Vendoring or submoduling code from another repository.

Repo Integration

Systematic workflow for incorporating published research code into your project.

Workflow

  1. Evaluate the external repo before writing any code
  2. Choose an install strategy (pip, submodule, or vendor)
  3. Write an adapter to bridge their API to your project
  4. Isolate dependencies if there are conflicts
  5. Test the integration with your data

See references/integration-workflow.md for the full step-by-step process.

Adapter Patterns

Reusable code patterns for wrapping external repos as model inference, feature extraction, or preprocessing components.

See references/adapter-patterns.md for implementations.

References

FileApply When
references/integration-workflow.mdEvaluating, installing, and testing an external repo
references/adapter-patterns.mdWriting wrappers for models, feature extractors, preprocessors