luxonis/oak-examples · Archived

bootstrap-example

Bootstrap an OAK project from an example in oak-examples. Use when the user wants to copy, extract, start, scaffold, or create a host-script or standalone app/project from an existing repository example, especially for oakctl app create handoff or customization.

First seen May 18, 2026

Installation

$ npx skills add luxonis/oak-examples --skill bootstrap-example

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 965
License LICENSE
Default branch main
Open issues 28
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

CompatibilityRequires Python 3 and git. Uses an accessible
Declared agents claude-code

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 4,293 B
  • docs SUMMARY.md 287 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 3 installs

SKILL.md

Bootstrap Example

Use this skill when the user wants to copy, extract, bootstrap, or start an OAK project from an example in oak-examples.

Workflow

  1. Clarify the target app before choosing an example: task, required hardware, host-script vs standalone mode, UI needs, model/inference needs, streaming/output needs, and whether the user wants the smallest scaffold or closest production-shaped app.
  2. Before selecting an example, run the helper with --print-index to acquire the local checkout path and INDEX.md path. This command uses the current checkout when available; otherwise it shallow-clones https://github.com/luxonis/oak-examples.git into a local cache with --depth 1 from the default branch main:
python3 scripts/bootstrap_from_example.py --print-index
  1. Read the printed index: path and identify candidate examples. The index links are relative to the printed repo: path; resolve those paths locally and read the candidate AGENTS.md files before choosing. Prefer the closest task and hardware match first, then the closest execution shape.
  2. Choose a new output directory for the generated project. For installable-skill usage, default to a new subdirectory under the user's current working directory, such as ./raw-stream-app; do not write directly into the current directory. The output directory must not already exist.
  3. Run this skill's bundled helper.
python3 scripts/bootstrap_from_example.py <example-path> ./<new-project-dir>
  1. Use --repo /path/to/oak-examples when the user already has a preferred checkout, or when you need to clone into a specific location.
python3 scripts/bootstrap_from_example.py --repo /tmp/oak-examples <example-path> ./<new-project-dir>
  1. Inspect the generated project's AGENTS.md, CLAUDE.md, and LICENSE; confirm they link to ESSENTIAL_KNOWLEDGE.md, any ## Related Examples links use GitHub main URLs, and whether bootstrap copied the repo root license or preserved example-specific license files.
  2. If the copied example includes its own top-level license files or explicit third-party headers, keep those terms instead of assuming Apache-2.0 applies uniformly.
  3. Tell the user where the project was created, that oakapp.toml identifier was changed if present, and that dependencies, hardware compatibility, runtime validation, and final license review still need to be handled separately.

Example

python3 scripts/bootstrap_from_example.py custom-frontend/raw-stream ./raw-stream-app

Available Scripts

  • scripts/bootstrapfromexample.py: finds or shallow-clones oak-examples, prints the local INDEX.md path with --print-index, copies an example into a new project, writes AGENTS.md and CLAUDE.md, copies ESSENTIAL_KNOWLEDGE.md, carries over the repo root LICENSE when the example does not already provide a top-level license file, converts cross-example links to GitHub main URLs, and rewrites oakapp.toml identifiers.

Selection Checklist

  • Task: detection, depth, streaming, frontend, ROS, C++, calibration, measurement, or integration.
  • Hardware: RVC2/RVC4, stereo, ToF, thermal, IMU, autofocus, or multi-device requirements.
  • Mode: host script, standalone OAK App, or both.
  • Shape: minimal scaffold, packaged app, frontend/backend app, ROS workspace, C++ app, or evaluation tool.
  • Inputs/outputs: camera/media input, model choice, visualization, service/API, stream protocol, or dataset/export target.

Safety

  • Never overwrite an existing output directory. Ask the user for a new path instead.
  • Do not edit the source example while bootstrapping unless the user separately asked for repository changes.
  • Do not claim the generated project is runnable until dependencies and hardware requirements are checked.