Skip to content
Back to skills

Search Workflows

ASecurity

"Run and adapt tree-of-thoughts DFS/BFS search workflows with

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
toolspythonbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill search-workflows --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Search Workflows?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Search Workflows
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-search-workflows/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-search-workflows)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: search-workflows
description: "Run and adapt tree-of-thoughts DFS/BFS search workflows with
  deterministic validation."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# search-workflows

Use this sub-skill when a task needs to run, adapt, or debug the `tree-of-thoughts` DFS or BFS orchestration classes. It covers search parameters, output parsing, autosave behavior, deterministic fake-agent smoke tests, and workflow-specific troubleshooting.

Do not use this sub-skill for model/provider setup details. If the task asks how to configure `TotAgent`, OpenAI credentials, or custom model callers, route that part to [agents-and-models](../agents-and-models/) and return here for DFS/BFS orchestration.

## Runtime assets

- [DFS and BFS workflow recipes](references/dfs-bfs-workflows.md) — constructors, safe recipes, output schemas, validation, autosave notes, and custom/fake agent patterns.
- [Workflow troubleshooting](references/troubleshooting.md) — empty/pruned outputs, evaluation ordering surprises, recursion growth, autosave paths, and real-model network/API-key failures.
- [Deterministic fake-agent smoke helper](scripts/fake_agent_search_smoke.py) — network-free checks for both DFS and BFS.

## Fast safe checks

Run from any working directory that has an installed `tree-of-thoughts` package and dependencies:

```bash
python /path/to/search-workflows/scripts/fake_agent_search_smoke.py --mode dfs --max-loops 1 --number-of-agents 2 --no-autosave
python /path/to/search-workflows/scripts/fake_agent_search_smoke.py --mode bfs --max-loops 1 --number-of-agents 2 --breadth-limit 2 --no-autosave
```

Expected signal: each command exits 0 and prints a JSON summary with the requested `mode`, generated-thought counts, parsed output keys, and a non-empty fake-agent call count.

## Operating rules

1. Import DFS from the root package: `from tree_of_thoughts import ToTDFSAgent`.
2. Import BFS from its module: `from tree_of_thoughts.bfs import BFSWithTotAgent`; it is not exported by the package root.
3. Give search agents an object with `.run(task) -> {"thought": str, "evaluation": float}`. The bundled fake script is the safest template.
4. Treat `.run(...)` results as JSON strings for both DFS and BFS; parse with `json.loads` before validating fields.
5. Keep `number_of_agents`, `max_loops`, and BFS `breadth_limit` small during smoke checks because both workflows can multiply calls quickly; start with `--max-loops 1 --number-of-agents 2`.

Files in this skill

  • SKILL.md2.5 KB
  • references/dfs-bfs-workflows.md8.4 KB
  • references/troubleshooting.md6.6 KB
  • scripts/fake_agent_search_smoke.py7.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.