Skip to content
Back to skills

Research Gate

ASecurity

Run research in stages with the host's specialist skills. A Python controller checks evidence anchors, binds approvals to artifact versions, and restores the next stage from project files.

  • 10 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 27, 2026
ai-agentspythongobash

Works with

  • cli

Security analysis

A100/100

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

Scanned November 27, 2026

npx -y skills add AfonsoZhang/Novum --skill research-gate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Research Gate?

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

Security grade badge for Research Gate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/afonsozhang-research-gate/badge)](https://www.skillsdirectory.com/skills/afonsozhang-research-gate)

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: research-gate
description: >-
  Run research in stages with the host's specialist skills. A Python controller
  checks evidence anchors, binds approvals to artifact versions, and restores
  the next stage from project files.
disable-model-invocation: true
---

# Research Gate Controller (Middle Tier)

The current host agent uses its native tools and specialist skills to do the research. The bundled Python controller (`scripts/research_gate.py`) reads the project files, verifies the inputs for each stage, and records the next action.

## Modular layout

Read references and templates on demand; do not duplicate gate logic in prompts:

- [Principles & authority order](references/principles.md)
- [Stage gate contracts](references/gates.md)
- [Controller workflow & stage boundaries](references/workflow.md)
- [Artifact ledgers, IDs & verbatim anchors](references/artifacts-and-ids.md)
- Controller scripts: `scripts/research_gate.py`, `controller.py`, `gates.py`, `anchors.py`, `inputs.py`, `state.py`, `models.py`
- Stage templates: `templates/topic.md`, `literature.md`, `protocol.md`, `execution.md`, `analysis.md`, `manuscript.md`, `review.md`, `delivery.md`

## Controller CLI

Resolve the skill directory independently of `cwd`:

```bash
GATE="python3 $RESEARCH_ROOT/.claude/skills/research-gate/scripts/research_gate.py"
```

Core commands:

```bash
$GATE init --root . --goal "<research objective>" [--paper-type "<optional contribution label>"] [--venue "<target venue>"] [--report-language "<preferred language>"]
$GATE preflight --root .
$GATE status --root .
$GATE continue --root .
$GATE source --root . --id SRC-1 --title "..." --identity "..." --file path/to/snapshot.txt
$GATE retrieval --root . --id RET-1 --intent adversarial --provider openalex --query "..." --ref SRC-1 --status satisfied --source-id SRC-1
$GATE gate <stage> --root .
$GATE approve --stage topic --root . --version "<presented-version>" --by user --response "<explicit user decision>"
$GATE approve --stage plan --root . --version "<presented-version>" --by user --response "<frozen protocol approval>"
$GATE rework --target <stage> --root . --reason "<concrete diagnosis>"
```

The three validation scripts default to on in every project. When the user chooses a setting, run `$GATE check <name> on|off --root .`. At initialization, `--disable-check <name>` can be repeated. `status` shows the saved choices.

| Name | Script | When it runs |
|---|---|---|
| `run-records` | `check_run_records.py` | Experiment gate with planned and observed runs |
| `latex-integrity` | `precheck.py` | Writing gate with LaTeX files |
| `figures` | `validate_figure.py` | Writing gate with plot scripts |

Apply these choices to specialist calls within the gated workflow as well. The protocol still determines the required files. Gates continue to verify evidence, audit inputs and approvals. Enabling a previously skipped script makes its gate due for a check against the current files.

## Artifact & stage pipeline

```text
preflight -> topic -> [topic approval] -> literature -> plan -> [protocol approval] -> experiment -> analysis -> writing -> review -> delivery
```

## Non-negotiable rules

1. **Disk state + gate results are truth.** Never advance a stage because you remember doing it; run `$GATE gate <stage> --root .` and verify exit code `0`.
2. **Stop at the first failing gate.** Follow gate error messages back to the implicated artifact, source snapshot, or gap closure.
3. **Approvals are SHA-256 bound.** Natural language "continue" never approves `topic` or `plan`. Only `$GATE approve` records approval, and the presented version binds the contribution type and proposal, or the frozen protocol and its declared plan files.
4. **Verbatim anchor grounding.** Every `source-backed` or `verified` `EVD-*` row must carry a backticked verbatim substring present in its registered `SRC-*` snapshot or referenced local file.
5. **Stage boundary & clean context reconstruction.** After a gate passes, report the closed boundary (`artifactHash`, `nextStage`, any pending approval). The user may `/clear` the session and resume via `$GATE continue --root .` without relying on lossy compaction summaries.

Files in this skill

  • SKILL.md4.1 KB
  • references/artifacts-and-ids.md2.7 KB
  • references/gates.md4.3 KB
  • references/principles.md2.5 KB
  • references/workflow.md4.9 KB
  • scripts/anchors.py16.9 KB
  • scripts/controller.py22.3 KB
  • scripts/gates.py15.2 KB
  • scripts/inputs.py12.3 KB
  • scripts/models.py6.7 KB
  • scripts/research_gate.py9.1 KB
  • scripts/state.py6.2 KB
  • templates/analysis.md754 B
  • templates/delivery.md474 B
  • templates/execution.md659 B
  • templates/literature.md585 B
  • templates/manuscript.md663 B
  • templates/protocol.md1.2 KB
  • templates/review.md405 B
  • templates/topic.md988 B

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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