Pydantic-deepagents build-and-compile
Building, compiling, and resolving dependency issues across languages
install
source · Clone the upstream repo
git clone https://github.com/vstorm-co/pydantic-deepagents
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/vstorm-co/pydantic-deepagents "$T" && mkdir -p ~/.claude/skills && cp -r "$T/apps/cli/skills/build-and-compile" ~/.claude/skills/vstorm-co-pydantic-deepagents-build-and-compile && rm -rf "$T"
manifest:
apps/cli/skills/build-and-compile/SKILL.mdsource content
Build & Compile
Strategies for building code and resolving dependency issues.
Build System Detection
Check for build files in order:
→Makefile
(read it first to understand targets)make
→CMakeLists.txtcmake -B build && cmake --build build
/pyproject.toml
→setup.pypip install -e .
→package.jsonnpm install && npm run build
→Cargo.tomlcargo build --release
→go.modgo build ./...- No build system → compile directly (
,gcc
,g++
, etc.)rustc
Compilation Strategies
C/C++
- Always read the Makefile/CMakeLists first
- Common flags:
-O2 -Wall -lm -lpthread - Missing headers →
apt-get install lib<name>-dev - Linking errors → check library order (dependencies last:
)-lfoo -lbar -lm
Python
- Use virtual environments when possible
for editable installspip install -e .- Missing modules → check
,requirements.txtpyproject.toml - Version conflicts → read the actual error, pin versions
Multi-language projects
- Build dependencies first (C libraries before Python bindings)
- Check for Cython, SWIG, or FFI bridges
- Environment variables often needed:
,LD_LIBRARY_PATHPYTHONPATH
Dependency Resolution
- Read the FULL error message — the missing dependency is usually named
- Search for the package:
,apt-cache search <name>pip search <name> - Install the minimum needed — don't install everything
- If a package is unavailable, check for alternatives or build from source
Common Build Failures
| Error | Likely Cause | Fix |
|---|---|---|
| Missing dev headers | |
| Missing library at link time | Add flag |
| Missing Python package | |
| Build tools missing | |
| Binary built for newer system | Rebuild from source |