Awesome Cohub
中文
Playbooksintermediatecohub.bp.dot-cohub-layers2 min

When

You need models, slash / templates, Space theme/background, or hooks — and must know which Space and which folder actually win.

Outcome

  • Models you expect appear in the picker (platform ← user)
  • /my-command expands from the right prompt layer
  • Space background/theme apply from this Space’s .cohub
  • You stop putting prompts under .cohub/ by mistake

Rules of thumb

GoalPut it hereActivate
Account-wide modelsHome or config Space → .cohub/models.jsonSave that Space
Env-wide modelsplatform Space → .cohub/models.jsonSave platform
Personal slash templatesHome or config → .agents/prompts/*.mdSave that Space
Project slash templatesproject → .agents/prompts/*.mdlive in workspace (cached by revision)
Skills.agents/skills/<name>/ (same layering)Save if Home/config/platform
New chat backgroundproject → .cohub/space.jsonfiles in that Space
Space theme CSSproject → .cohub/theme.cssfiles in that Space
Hooksproject → .cohub/hooks/*files in that Space

Priority (skills & slash prompts):

platform → mods → user (Home or config) → project workspace

Same name → later wins.

Models:

platform → user

Steps

A. Personal models + default slash commands

  1. Open your Home Space, or a Space with name === "config" (pick one; do not split config across both).
  2. Add or edit: ``text .cohub/models.json .agents/prompts/review.md # → type /review in composer .agents/skills/... AGENTS.md ``
  3. Save.
  4. In another Space (as owner), confirm models / /review / skills.
  5. Sandbox check: ``bash ls /configs/user/.cohub ls /configs/user/.agents/prompts ``

B. Project-only slash recipe

  1. In the project Space: ``text .agents/prompts/ship.md ``
  2. Composer: /ship …
  3. Optional: project skill under .agents/skills/
  4. Do not expect this to appear for all your Spaces unless you also publish via config or a Mod.

C. Theme / new chat background (ordinary Space)

  1. In the Space you want styled: ``text .cohub/space.json # background payloads (see product changelog) .cohub/theme.css # optional custom CSS ``
  2. Reload Chat / new chat surface; confirm background.
  3. This is local to the Space, not published as personal config.

D. Hooks

  1. .cohub/hooks/<name>.yml in the project Space.
  2. FS triggers ignore .cohub/** (no self-loop).
  3. Prefer disk state for loops — see anti-pattern loop-without-disk-state.

Prompt file shape

---
description: Short help for the slash picker
argument-hint: optional hint
category: optional
---

Template body. Args: $1 $2 or $@ / $ARGUMENTS

Filename without .md is the slash name (ship.md → /ship). /skill:name is a different pipeline (skills), not prompt-templates.

Done when

  • [ ] You can name which layer provides a given model / /command / background
  • [ ] Config changes only stick after Save on config/platform
  • [ ] Project presentation files live under that Space’s .cohub/

Avoid

  • Editing /configs/user inside a project sandbox
  • Expecting project .cohub/models.json to become global
  • Putting slash templates under .cohub/ instead of .agents/prompts/
  • Mixing Home and name=config as two config sources

See also