phase-hive โ Team research layer¶
Hive is the team-level counterpart to flowie. Where flowie tracks an individual researcher's project workflow and session state, Hive connects to a shared GitHub organisation private repo that the whole lab or team uses to:
- Announce shared research directions
- Share curated findings (always explicitly โ never automatic)
- Coordinate recommended analysis methods and tools
- Broadcast relevant literature they want all team members to see
Privacy rule (enforced absolutely): Nothing from a personal .neuroflow/ project is ever automatically sent to Hive. Every share is an explicit, intentional action by the researcher. The Hive is a shared workspace, not a surveillance layer.
Hive repo structure (GitHub org private repo)¶
{org}/{hive-repo}/
โโโ hive.md โ team identity: who we are, what we study, norms
โโโ directions.md โ active research directions (updated by PIs / team leads)
โโโ sync.json โ sync metadata: last pull per member, last push timestamps
โโโ shared/
โโโ methods/ โ recommended analysis methods and pipelines
โโโ literature/ โ curated papers the team wants everyone to read
โโโ findings/ โ explicitly shared results and summaries
Local hive state (per-project)¶
When a project has joined a Hive, the following folder exists:
.neuroflow/hive/
โโโ hive.md โ local copy of team identity (pulled from org repo)
โโโ directions.md โ local copy of team research directions
โโโ sync.json โ sync metadata: hive_repo URL, last_pull, last_push, member_handle
Command modes¶
This skill is invoked by the /hive command, which supports five modes:
--init¶
Connect the current neuroflow project to a Hive repo for the first time.
- Ask for the GitHub org and repo name:
{org}/{hive-repo} - Ask for the researcher's GitHub handle (used as
member_handlein sync.json) - Clone or fetch the hive repo to read
hive.mdanddirections.md - Create
.neuroflow/hive/with local copies of both files and an initialsync.json - Update
.neuroflow/flow.mdto add ahive/row - Write
hive_repo: {org}/{hive-repo}andhive_member: {handle}toproject_config.md - Confirm: print the team identity from
hive.mdand the active directions fromdirections.md
--sync¶
Pull the latest state from the Hive repo and update local copies.
- Fetch the latest
hive.md,directions.md, andsync.jsonfrom the org repo - Update
.neuroflow/hive/hive.mdanddirections.md - Update
sync.jsonwithlast_pull: [timestamp] - Report what changed (diff summary: new directions, updated team info)
- If any new directions overlap with the current project's research question or modality, highlight them as potentially relevant
--view¶
Display the current state of the team Hive without syncing.
- Read local
.neuroflow/hive/hive.mdanddirections.md - Read
sync.jsonto show when last synced - Print team identity, active directions, and last sync timestamp
- Note: "Run
/hive --syncto fetch the latest updates from the team."
--share¶
Explicitly share a finding, method, or curation from this project to the Hive.
This is the only way anything from a personal project reaches the Hive. It is always user-initiated.
- Ask what to share:
- A finding (summary + file)
- A recommended method or pipeline (markdown description)
- A curated paper (citation + abstract + why it's relevant)
- Ask for a title and one-line description
- Compose the sharing entry and show it to the user for review
- Only after explicit confirmation: push to
shared/{category}/{slug}.mdin the Hive repo via GitHub API (or gh CLI if available) - Update local
sync.jsonwithlast_push: [timestamp]and a log entry - Confirm: "Shared to Hive:
shared/{category}/{slug}.md"
If the user has not connected to a Hive (--init not run), stop and prompt them to run /hive --init first.
--recommend¶
Get team-aware recommendations for the current project phase.
- Read local
hive.mdanddirections.md - Read the current project's
project_config.mdto know phase, modality, and research question - Check
shared/methods/andshared/literature/in the Hive (if accessible) for relevant shared content - Surface:
- Team directions that overlap with this project
- Recommended methods shared by teammates for the same modality
- Literature curated by the team relevant to the research question
- Present as a compact digest: "Your team has shared X relevant items for your current phase"
Privacy and data governance¶
| What | Shared to Hive? |
|---|---|
| Research question | Never automatically โ only if user explicitly runs --share |
| Session logs | Never |
| Raw data paths or outputs | Never |
| Analysis results | Never automatically โ only with --share |
| Personal project_config.md fields | Never |
Something the user explicitly approves via --share |
Yes, after confirmation |
The Hive is pull-first: the researcher benefits from team knowledge without being required to share anything back.
Authentication¶
Hive uses the same GitHub credentials as the user's local git config. The gh CLI (GitHub CLI) is preferred for push operations โ check with gh auth status. If not available, fall back to constructing GitHub API calls with a PAT (personal access token) that the user provides.
Authentication instructions:
Relevant skills¶
neuroflow:neuroflow-coreโ read first; defines the command lifecycle and.neuroflow/write rulesneuroflow:phase-flowieโ the personal-project counterpart to Hive; understand flowie before implementing Hive to avoid overlap