skills-experimental/caffe-cifar-10/SKILL.md
Guidance for building and training with the Caffe deep learning framework on CIFAR-10 dataset. This skill applies when tasks involve compiling Caffe from source, training convolutional neural networks on image classification datasets, or working with legacy deep learning frameworks that have compatibility issues with modern systems.
npx skillsauth add bianhaifeng789-hue/openclaw-config caffe-cifar-10Install this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill provides procedural guidance for building the Caffe deep learning framework from source and training models on the CIFAR-10 dataset. Caffe is a legacy framework (circa 2014-2017) with known compatibility issues on modern systems, requiring careful handling of dependencies and configuration.
Before attempting to build Caffe, research known compatibility issues for the target system:
pkg-config --modversion opencv4), Python version, compiler version, and CUDA version if applicablegit clone https://github.com/BVLC/caffe.git
cd caffe
git checkout v1.0 # Note: tag is "v1.0", not "v1.0.0"
Verification: Confirm the checkout with git describe --tags
Install all required dependencies before configuration:
Verification: For each library, verify installation with pkg-config --exists <library> or check header file presence
Copy and modify the configuration template:
cp Makefile.config.example Makefile.config
Key configuration decisions:
CPU_ONLY := 1 for CPU-only buildsOPENCV_VERSION := 3 - this causes compilation failuresVerification: Review the final Makefile.config for consistency - no duplicate definitions, no conflicting settings
For OpenCV 4.x compatibility, modify source files that use deprecated APIs:
cv::CV_LOAD_IMAGE_COLOR → cv::IMREAD_COLORCV_CAP_PROP_* → cv::CAP_PROP_*Verification: Grep for deprecated symbols before building
make clean # If retrying after failure
make all -j2 # Start with low parallelism
Critical: Avoid make -j$(nproc) initially - this can exhaust memory and cause silent failures. Scale up parallelism only after confirming stable compilation.
Verification: Check that build completes without OOM kills (dmesg | grep -i kill)
make test -j2
make pycaffe -j2
Verification: Run make runtest to verify build integrity
cd data/cifar10
./get_cifar10.sh
Verification: Check that LMDB or LevelDB files are created in the expected location
For custom iteration counts, edit examples/cifar10/cifar10_quick_solver.prototxt:
max_iter: Set to desired iteration countsnapshot: Set snapshot frequency appropriatelytest_interval: Adjust based on max_iterVerification: Validate prototxt syntax before training
./examples/cifar10/train_quick.sh
Verification: Monitor output for loss convergence and accuracy metrics
Confirm model files are created at the expected paths with expected accuracy.
Symptom: Compilation errors referencing CV_LOAD_IMAGE_COLOR, CV_LOAD_IMAGE_GRAYSCALE, or similar
Cause: Caffe 1.0 was written for OpenCV 2.x/3.x APIs
Solution: Apply OpenCV 4 compatibility patches to source files, or build OpenCV 3.x from source
Wrong approach: Setting OPENCV_VERSION := 3 without patching - this tells Caffe to expect OpenCV 3 APIs but doesn't make OpenCV 4 compatible
Symptom: Build process terminates with "Killed" message, no error output
Cause: Parallel compilation exhausting system memory
Solution: Use make -j2 or even make -j1 for memory-constrained systems
Verification: Check dmesg | tail -20 for OOM killer messages
Symptom: Conflicting or duplicate definitions cause unexpected build behavior
Cause: Incremental edits leaving multiple Python configurations or conflicting library paths
Solution: Plan all configuration changes before editing; review entire file for consistency after editing
Symptom: Marking steps complete before verification, leading to compounding errors
Cause: Assuming commands succeeded based on lack of immediate error
Solution: Verify each step explicitly before proceeding:
Symptom: Build fails looking for Python.h or numpy headers
Cause: PYTHON_INCLUDE paths in Makefile.config don't match system paths
Solution: Use python3 -c "import sysconfig; print(sysconfig.get_paths()['include'])" and python3 -c "import numpy; print(numpy.get_include())" to get correct paths
Before marking any major step complete, verify:
make runtest passesbusiness
IAA 日报飞书输出能力。 支持把固定 CSV 模板一键转换成: - 中文运营结论 - 飞书卡片 JSON - 飞书发送载荷 Use when: - 需要把 IAA 日报直接发到飞书 - 需要从 CSV 一键生成运营日报
data-ai
IAA日报分析模型 功能: - 渠道日报自动分析 - 小时级+日级ROI联动判断 - 按地区输出加量/降量/停投建议 - 按产品类型输出阈值 - 自动识别利润区/观察区/止损区 Use when: - 分析每天投放数据 - 生成运营日报结论 - 判断是否加量/降量/停投 - 对比美加澳/日韩表现 Keywords: - 日报模型, 投放日报, 加量, 降量, 停投, ROI日报, 分地区分析
data-ai
IAA固定日报分析模板 功能: - 固定字段模板(可直接贴每天数据) - 自动输出总盘结论 - 自动输出美加澳/日韩结论 - 自动给出加量/降量/停投建议 - 适配文件修复/清理两类产品 Use when: - 需要固定日报格式 - 每天复盘渠道表现 - 给运营团队出统一结论 Keywords: - 固定模板, 日报模板, ROI模板, IAA日报, 运营模板
development
# HyperlinkPool Pattern Skill HyperlinkPool Pattern - HyperlinkPool class + strings array + stringMap + Index 0 no hyperlink + intern(hyperlink) + get(id) + undefined handling + 5-minute reset + OSC8 hyperlink interning。 ## 功能概述 从Claude Code的ink/screen.ts提取的HyperlinkPool模式,用于OpenClaw的OSC8超链接池管理。 ## 核心机制 ### HyperlinkPool Class ```typescript export class HyperlinkPool { private strings: string[] = [''] // Index 0 = no hyperlink private stringMap = new Map<string, number>() // strings