Research task

From Kastalien-Research/thoughtbox · View interactive version

Research task is an AI agent skill from the GitHub repository Kastalien-Research/thoughtbox. Execute a research task using compositional workflow planning. Characterizes the task, selects an approach from a library of research strategies, executes it, and self-evaluates output quality.

How to use this skill

Skill file

Research this topic: $ARGUMENTS

Workflow

Phase 1: Task Characterization

Rate the research task on each dimension (1-5):

| Dimension | 1 (Low) | 5 (High) |

|---|---|---|

| Scope | Point question (single fact) | Frontier mapping (state of entire field) |

| Domain structure | Single field, established methods | Distant cross-domain analogy |

| Evidence type | Empirical data, measurements | Theoretical arguments, first-principles |

| Time horizon | What's true right now | What could become true (speculative) |

| Fidelity | Ballpark / directional | Rigorous / publication-grade |

Phase 1b: Workflow Library Query

Query the MAP-Elites workflow library for strategies matching this task's coordinates:

sqlite3 research-workflows/workflows.db "SELECT id, name, archetype, fitness_score FROM workflows WHERE status IN ('active', 'seed') ORDER BY fitness_score DESC LIMIT 10;"

For more targeted retrieval, filter by behavioral region:

sqlite3 research-workflows/workflows.db "SELECT w.id, w.name, ws.name as step_name, ws.description, ws.rationale FROM workflows w JOIN workflow_steps ws ON w.id = ws.workflow_id WHERE w.archetype = '<archetype>' AND w.status IN ('active', 'seed') ORDER BY w.fitness_score DESC, ws.step_order;"

Use retrieved workflows to inform Phase 2 strategy selection. Prefer workflows with high fitness scores and usage counts.

Phase 2: Strategy Selection

Based on the characterization and library query, select the most appropriate research archetype:

Exploratory (high scope, moderate fidelity)

Confirmatory (low scope, high fidelity)

Analytical (moderate scope, high evidence)

Generative (high domain structure, moderate time horizon)

Applied (low time horizon, high fidelity)

Phase 3: Compositional Planning

Don't just pick one strategy. Identify which sub-techniques from multiple strategies suit this specific task:

  1. Select 2-3 relevant archetypes from Phase 2
  2. For each, identify the steps that apply to this task
  3. Note why each step exists (what it optimizes for)
  4. Compose a novel workflow combining the best elements
  5. Record which elements were borrowed from which archetype

Phase 4: Execution

Execute the composed workflow using available tools:

Phase 5: Self-Evaluation

Score your output on each dimension (0-1):

  1. Coherence — Does it tell a consistent story? Internal contradictions?
  2. Grounding — Are claims supported by retrieved evidence?
  3. Compression — Can key findings be stated concisely? (If not, thesis may be unclear)
  4. Surprise — Did anything non-obvious surface? (Confirming the known has low value)
  5. Actionability — Does the output enable a decision or next step?

Report the scores honestly. Low scores on surprise or actionability are useful signals — they indicate the research question may need reframing.

Phase 5b: Library Update

Log this execution and update the workflow library:

# Log the execution
sqlite3 research-workflows/workflows.db "INSERT INTO executions (task_description, task_scope, task_domain_structure, task_evidence_type, task_time_horizon, task_fidelity, score_coherence, score_grounding, score_compression, score_surprise, score_actionability, score_composite) VALUES ('<description>', <scope>, <domain>, <evidence>, <horizon>, <fidelity>, <coherence>, <grounding>, <compression>, <surprise>, <actionability>, <composite>);"

If composite score exceeds the current occupant of this behavioral region, the composed workflow becomes a candidate for library insertion.

Phase 6: Output

## Research: [Topic]

### Characterization
Scope: [1-5] | Domain: [1-5] | Evidence: [1-5] | Horizon: [1-5] | Fidelity: [1-5]

### Strategy
[Which archetypes were combined and why]

### Findings
[Structured findings — use headers, tables, or lists as appropriate]

### Quality Assessment
Coherence: [0-1] | Grounding: [0-1] | Compression: [0-1] | Surprise: [0-1] | Actionability: [0-1]

### Key Takeaway
[Single paragraph — the compressed thesis]

### Recommended Next Steps
[What to do with these findings]
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.