You can easily reuse the Croissant Toolkit and all its specialized skills in your other projects by adding it as a Git submodule. This allows you to maintain the toolkit as a linked repository that can be updated independently.
Navigate to the root of your target project and run:
git submodule add https://github.com/codata/croissant-toolkit.git vendor/croissant-toolkitThis will clone the toolkit into a vendor/croissant-toolkit directory and track it in your .gitmodules file.
If you are cloning a project that already contains this submodule, you must initialize it:
git submodule update --init --recursiveTo update to the latest version of the toolkit later:
git submodule update --remote vendor/croissant-toolkitTo use the skills from the toolkit in your project's Python scripts, you need to add the toolkit directory to your sys.path.
Add this snippet at the beginning of your scripts:
import sys
import os
from pathlib import Path
# Path to the submodule
toolkit_root = Path(__file__).parent / "vendor" / "croissant-toolkit"
sys.path.append(str(toolkit_root))
# Now you can import or run toolkit scripts
# Example: Using the ODRL expert identity
from vendor.croissant_toolkit.skills.odrl_expert.scripts import odrl_clientAlternatively, set the PYTHONPATH before running your scripts:
export PYTHONPATH=$PYTHONPATH:$(pwd)/vendor/croissant-toolkitIf you want to run a skill directly from your project's CLI:
# Execute the YouTuber skill within the submodule
python3 vendor/croissant-toolkit/.gemini/skills/youtuber/scripts/search_youtube.py "Data Engineering"my-new-project/
βββ .git/
βββ .gitmodules
βββ src/
β βββ main.py (Reusing toolkit logic)
βββ vendor/
βββ croissant-toolkit/ (The Submodule)
βββ .gemini/skills/ (Available Skills)
βββ ...
By using submodules, you ensure that any improvements or new skills added to the main Croissant Toolkit repo can be easily pulled into all your active projects.