Awesome Cohub
中文
Playbooksadvancedcohub.bp.skill-catalog-cache2 min

When

/skill:foo missing, stale, wrong body, or works in Agent disk read but not in slash menu (or the reverse).

Decision tree

1) Is the skill in the right layer?

IntentPut files inThen
Only this Space/workspace/.agents/skills/<name>/Save project; reload chat
Personal all Spacesconfig Space (name=config) .agents/skills/Save config Space (publish + Redis SET)
Whole deploymentplatform Space idSave platform Space
Shared subset of Spacesmod Space .agents/skills/Save mod + ensure consumer mounts mod

2) Packaging

.agents/skills/<name>/SKILL.md   # required
# assets beside SKILL.md inside <name>/

Frontmatter name: should match /skill:name (valid name regex enforced).

3) Visibility API

# authenticated
curl -sS -H "Authorization: Bearer $TOKEN" \
  "https://api.cohub.live/api/skills?spaceId=$SPACE_ID" | jq .

Empty without auth+space is expected.

4) Cache freshness

  • Redis TTL 24 hours if nothing republishes.
  • User/platform Save → publishSkillsCacheFromDir overwrites cache key.
  • Mod skills carry structured provenance (v2.5): the slash menu and cohub skills show which mod Space + mount slug a skill comes from.
  • Project skills load directly from the live workspace (v2.7): the revision-keyed Redis layer is gone, so edits are fresh immediately.
  • If still stale: Save again, remount mod, hard refresh composer, new Chat (system prompt skill list rebuilds per identity state).

5) Owner vs collaborator

Slash/API may list user skills for the authenticated user. Agent prompt injection of user skills only when actorUserId === space.ownerUserId (see execution-identity playbook). Collaborators can see different behavior.

Done when

  • [ ] Skill appears in GET /api/skills?spaceId=
  • [ ] /skill:name expands without Unknown skill
  • [ ] Agent can read the sandbox path from the catalog entry
  • [ ] You know which layer owns the file

Avoid

  • Editing only Redis mental model without fixing source files
  • Expecting Home project skills to become user-scope without config publish
  • Duplicate names across layers without intending override