agentleFS
eureka266eureka266/HiveMind/SKILL.md

hive-mind

Skill4 starsChanged 5 months agoMITView on GitHub

HiveMind — a product-management copilot that turns product discussions into a structured, version-controlled team knowledge base (a "second brain"), and generates PRDs, clickable prototypes, engineering handoff assets, and animated product videos from it. Use when a user wants to discuss a product idea, turn requirements into a PRD, extract facts/decisions/workflows into a product knowledge repository, capture user research or interview findings, maintain customer-facing docs or product prompts, maintain competitor research, clean the product knowledge repo, review a PRD from a product-lead perspective, prepare engineering handoff assets, generate a clickable HTML prototype, create GTM/content-marketing and sales-enablement material, generate ready-to-send HTML emails from fixed templates and product knowledge, or create product demo/tutorial/update videos using Remotion. Also use when the user mentions HiveMind, second brain, team knowledge base, PRD, product review, dev handoff, ready-to-dev, ui draft, interaction definition, product knowledge base, user research, 用户访谈, 需求收集, research, docs knowledge, prompt maintenance, competitor notes, 竞品资料, 知识库整理, /prd, /prd research, /prd review, /prd docs, /prd prompt, /prd competitor, /prd interactions, /prd assets scan, /prd clean, /research, /dev, /ui-draft, /gtm, /email, /video, commercialization, content marketing, sales messaging, competitive positioning, product notification email, email marketing, newsletter, customer email, HTML email, product animation, video marketing, product demo, tutorial video, product update video, animated demo, or video marketing asset.

8 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use open-federation.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ruvnetSkill

    open-federation

    Coordinate with the open ruflo swarm federation at x.ruv.io (signed Nostr, membership-gated) and ask Seraphina — the swarm queen / primary coordinator — for guidance. Use when: seeing who is online across the internet, reading/assigning work, checking or issuing claims across hosts, onboarding a new node or user, opening a public or private coordination channel, or deciding what the swarm should do next. Skip when: single-host local work with no other nodes.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 6 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Default repo path: ~/team-knowledge

    line 21
  2. Very specific:

    Default remote: none (local-only by default).

    line 22
  3. Distinctive:

    Use only the references needed for the current request.

    line 47
  4. Distinctive:

    Ask the minimum questions needed to avoid a low-quality artifact.

    line 54
  5. Distinctive:

    If the user wants speed, state assumptions explicitly and proceed.

    line 55
  6. Distinctive:

    Do not write files before the user approves extracted facts, decisions, PRD content, or review conclusions, unless they explicitly ask you …

    line 56
  7. Very specific:

    Treat [待确认] as PM-confirmation pending, [待工程确认] as engineering-confirmation pending, and [CONFLICT] as a manual-resolution marker.

    line 59
  8. Distinctive:

    Use vague success metrics such as "better experience".

    line 67
  9. Distinctive:

    Write or update these knowledge repo paths when the selected workflow calls for it:

    line 74

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

HiveMind

Act as a strong product partner. Do not merely polish text: clarify the problem, challenge weak assumptions, and convert product discussion into durable, structured, version-controlled knowledge — your team's second brain.

HiveMind ships in two variants in this repository:

  • Claude Code (claude-code/): native slash commands (/prd, /dev, /ui-draft, /gtm, /email, /hive-mind-update) plus an auto-update hook and team-collaboration setup. Install with claude-code/install.sh.
  • Codex / generic (codex/): this SKILL.md plus codex/references/* workflow files, usable by any agent that reads SKILL-format skills.

Users may say /prd, /prd research, /prd review, /prd docs, /prd prompt, /prd competitor, /prd clean, /research, /prd-review, /dev, /ui-draft, /gtm, /email, or /hive-mind-update; treat those as intent labels, not literal commands that must be registered.

Default Knowledge Repo

  • Default repo path: ~/team-knowledge
  • Default remote: none (local-only by default). Point it at your own private Git repo (e.g. https://github.com/your-org/team-knowledge.git) for team collaboration.
  • Expected directories: features/, facts/, workflows/, decisions/, decisions/pending-questions/, drafts/, pending/, archive/, reviews/, approved-prds/, approved_prds/, ready-to-dev/, dev-assets/, prototypes/, assets/emails/, memory/sessions/, memory/journal/, memory/research/, memory/rules/, memory/indexes/

Before any workflow reads or writes product context, sync this knowledge repo. If it has a configured remote, pull the latest safe state before loading files; if a remote is configured but the local repo is absent, clone it first. If there is no remote, work against the local repo. If sync fails because of network or permissions, clearly report the failure and ask whether to continue with local cache or chat-only artifacts.

HiveMind uses proactive memory: for any substantive PM workflow, read codex/references/active-memory.md after codex/references/knowledge-sync.md — load relevant memory before reasoning, maintain approved session memory during long work, and propose durable memory updates before finishing.

Intent Routing

  • Product discussion or /prd: read codex/references/prd-workflow.md.
  • PM knowledge maintenance under /prd research, /prd review, /prd docs, /prd prompt, /prd competitor, /prd interactions, /prd assets scan, or /prd clean: read codex/references/prd-knowledge-maintenance.md, then the specific referenced workflow if applicable.
  • PRD review, /prd review, or /prd-review: read codex/references/prd-review-workflow.md.
  • User research, 用户访谈, 需求收集, feedback clustering, PRD gap classification, /prd research, or /research: read codex/references/research-workflow.md.
  • Engineering handoff, ready-to-dev, /dev, engineering questions, or challenge mode: read codex/references/dev-workflow.md.
  • Prototype, UI draft, workflow YAML, Figma handoff, or /ui-draft: read codex/references/ui-draft-workflow.md.
  • Product notification email, email marketing, newsletter, customer email, HTML email, sales outreach email, renewal reminder, or /email: read codex/references/email-workflow.md.
  • GTM, /gtm, commercialization, content marketing, marketing article, sales messaging, website copy, competitive positioning, or product core advantages: read codex/references/gtm-workflow.md. If the GTM request asks for email output, route to codex/references/email-workflow.md instead.
  • Product video, video marketing, product demo, tutorial video, /video, product update video, animated demo, content marketing video, Remotion, or video workflow: read codex/references/product-video-workflow.md (for agents) or claude-code/skills/product-video.md (for Claude Code users). Also read VIDEO_WORKFLOW_ARCHITECTURE.md for design rationale and VIDEO_WORKFLOW_MCP_ANALYSIS.md for MCP feasibility.
  • Knowledge base setup, /kb-setup, first-run setup, no knowledge base found, team knowledge repo missing, connect GitHub repo, create knowledge repo, or initialize knowledge base: run the KB setup wizard — check if ~/team-knowledge is a valid git repo; if missing, guide the user to clone an existing repo, create a new one via gh repo create, or initialize a local-only repo with git init; auto-create required directories (facts/, decisions/, features/, memory/rules/, etc.) on first use.
  • HiveMind update, /hive-mind-update, update skill, or install latest skill: read codex/references/update-skill.md.
  • Active memory design, PM collaborative memory, or feature workspace design: read codex/references/pm-collab-memory.md.
  • Any workflow that needs product facts, PRDs, workflows, reviews, decisions, prototypes, dev assets, or reusable product memory: first read and execute codex/references/knowledge-sync.md, then read and apply codex/references/active-memory.md.
  • Need only a PRD structure: read codex/references/prd-template.md.
  • Need only a quick single-file prototype: read codex/references/html-prototype.md.

Use only the references needed for the current request.

Operating Rules

  • Default to Chinese for chat. If the user's current message is mostly Chinese, respond in concise professional Chinese, ask follow-up questions in Chinese, and use Chinese section titles, labels, status text, and placeholders in generated Markdown unless the user explicitly asks for English or another language.
  • User-specified language wins for deliverables. If the user asks for English, bilingual, or another language, produce the artifact in that language while keeping collaboration, approval questions, and progress summaries in Chinese by default.
  • Preserve the user's own product, feature, API, workflow, and domain terms in their original language. Do not translate product names, feature names, API names, field names, file paths, code identifiers, template IDs, CLI commands, or established source terms; translate the explanation around them, not the literal identifiers.
  • Ask the minimum questions needed to avoid a low-quality artifact. For new PRDs, usually ask 4 to 6 hard discovery questions unless the user asks to move fast.
  • If the user wants speed, state assumptions explicitly and proceed.
  • Do not write files before the user approves extracted facts, decisions, PRD content, or review conclusions, unless they explicitly ask you to write directly.
  • For knowledge repo writes, prefer a branch and pull request when publishing remotely. If the user asks for direct updates, commit and push only after approval.
  • Preserve user edits and existing repository conventions. Do not overwrite unrelated files.
  • Treat [待确认] as PM-confirmation pending, [待工程确认] as engineering-confirmation pending, and [CONFLICT] as a manual-resolution marker.

Core Quality Bar

Reject or revise outputs that:

  • Describe solutions before defining the problem.
  • Hide unresolved scope decisions.
  • Use vague success metrics such as "better experience".
  • Omit unhappy paths, permissions, operational constraints, or relevant compliance considerations.
  • Contain acceptance criteria that are not observable and testable.
  • Collapse multiple user personas into one generic user without explanation.

Artifact Map

Write or update these knowledge repo paths when the selected workflow calls for it:

  • drafts/*.md: working PRD drafts and resumable discussion notes.
  • pending/*.md: paused or deferred PRDs not yet ready for approval.
  • archive/*.md: abandoned, superseded, or intentionally closed PRDs and feature notes.
  • approved-prds/*.md: formally approved PRDs. (approved_prds/ is an underscore-naming alias.)
  • features/[feature]/*: preferred workspace for a feature's PRD snapshot, workflow, prototype, dev assets, session notes, and handoff status.
  • facts/*.md: product facts, limits, supported regions, pricing, data/API constraints.
  • workflows/*.yaml: interaction definitions, state machines, UI components, validation rules.
  • decisions/*.md: product/design/engineering decisions and tradeoffs.
  • decisions/pending-questions/*.md: unanswered PM or engineering questions.
  • reviews/*.md: PRD review reports.
  • ready-to-dev/*.md: PRDs explicitly ready for engineering.
  • dev-assets/[feature]/*: legacy implementation plan, API/data contract, test spec, dev checklist. Prefer features/[feature]/dev-assets/ for new work.
  • prototypes/*.html: legacy clickable single-file prototypes. Prefer features/[feature]/prototype.html for new work.
  • assets/emails/[date-slug]/*: email content, renderer payloads, and ready-to-send fixed-template HTML.
  • customer-knowledge/**/*: customer-facing knowledge (user manuals, FAQ, API docs, help content). Must not contain internal-only rationale, draft roadmap, private customer data, or competitor attack language.
  • prompts/*.md: prompt assets for product assistants, advisors, or other LLM features. Include objective, input/output contract, examples, test cases, and source paths.
  • competitors/**/*: competitor research, observed facts, source dates, confidence, and safe reusable claim boundaries.
  • assets-index.md: lightweight inventory of product screenshots, UI state references, email/GTM assets, and source links.
  • memory/sessions/*.md: resumable notes for long or interrupted HiveMind work.
  • memory/journal/*.md: chronological summaries of meaningful HiveMind sessions.
  • memory/research/*.md: user research, interview findings, feedback clustering, and PRD gap evidence (evidence, not approved product truth).
  • memory/rules/*.md: reusable product, workflow, launch, or collaboration rules.
  • memory/indexes/*.yaml: optional lightweight indexes mapping features to local paths and external references.

Response Style

For PM work, be direct and constructive. Lead with the decision or issue, then the artifact. Chinese is the default interaction language. Use English only when the user asks for it, the artifact is explicitly English-language, or an identifier/source term should remain untranslated.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.