Repository navigation
Plugin Development
A plugin is a directory whose name matches the id in its manifest.
plugins/example/
├── manifest.json
├── install.sh
├── update.sh
├── remove.sh
└── doctor.sh
Start from the template:
cp -a docs/plugin-template plugins/new-toolDeclare schema/version, ID, name, description, category, tags, homepage, upstream licensing, installed commands, supported targets, batch eligibility, lifecycle scripts, root requirements, argument-array adapters, and operational notes.
"adapters": {
"username": {
"command": ["example", "--json", "results.json", "{target}"]
}
}Never represent an adapter as an interpolated shell string. Keep every option and value in its own array element.
Lifecycle scripts source scripts/plugin-common.sh and receive OSINT_FORGE_PLUGIN_ID, OSINT_FORGE_PLUGIN_DIR, OSINT_FORGE_ROOT, OSINT_FORGE_STATE, OSINT_FORGE_DRY_RUN, and OSINT_FORGE_ASSUME_YES.
Wrap every system-changing command with the common run helper so dry-run mode remains accurate.
export OSINT_FORGE_ROOT="$PWD"
export OSINT_FORGE_STATE="$(mktemp -d)"
./bin/osint forge info new-tool
./bin/osint forge install new-tool --dry-run
bash -n plugins/new-tool/*.sh
python3 -m json.tool plugins/new-tool/manifest.jsonFollow CONTRIBUTING.md and the complete Plugin API.