一键导入
dependency
Add dependencies. Poetry for Python, CPM through CMake for C++.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Add dependencies. Poetry for Python, CPM through CMake for C++.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | dependency |
| description | Add dependencies. Poetry for Python, CPM through CMake for C++. |
Add a project dependency. Handles Python (Poetry) and C++ (CPM through CMake) projects, including hybrid projects where both apply.
.ai/bin/agent-dependency add <package> [version] [--dev]
.ai/project.yml / heuristics.poetry add <package> (or poetry add --group dev <package> with --dev).
.venv/) if not already done.pyproject.toml and poetry.lock.CPMAddPackage block to cmake/Dependencies.cmake.README.md and commit both manifest and lock files.requirements.txt only): uses pip install and warns to migrate to Poetry.<owner>/<repo> <tag-or-commit>, for example fmtlib/fmt 10.2.1.| Forbidden | Correct alternative |
|---|---|
pip install <pkg> | .ai/bin/agent-dependency add <pkg> |
poetry add <pkg> directly | .ai/bin/agent-dependency add <pkg> |
Manual requirements.txt edit | .ai/bin/agent-dependency add <pkg> |
apt install lib<pkg>-dev | CPM in cmake/Dependencies.cmake or documented find_package for system SDKs |
Committing pyproject.toml alone | Always commit poetry.lock in the same commit |
Poetry MUST use Python 3.10+. If the wrong version is active, run
/python-env-setup fix first.
Session initialization — run at the start of EVERY session before any other action.
Karpathy-inspired behavioural guidance for non-trivial coding, debugging, review, or refactor work. Use to surface assumptions, keep changes minimal, and define verifiable success criteria.
Manage dependency-aware multi-session workflows in agent_roadmaps/.
Orchestrate build workflows. Environment setup, compilation, and testing.
Validate constraint compliance at any time during development.
Create a new project from the repo_template. Supports Python, C++/CUDA, and Hybrid projects. Template-only skill.