Skip to content

feat(skills): add skills.create_dir to separate creation from upstream sync - #2

Merged
claude-bot-maiixu[bot] merged 1 commit into
mainfrom
feat/skills-create-dir
Apr 12, 2026
Merged

feat(skills): add skills.create_dir to separate creation from upstream sync#2
claude-bot-maiixu[bot] merged 1 commit into
mainfrom
feat/skills-create-dir

Conversation

@claude-bot-maiixu

Copy link
Copy Markdown

Problem

skill_manager_tool.py and skills_sync.py both write to the same ~/.hermes/skills/ (hardcoded SKILLS_DIR). This makes it impossible to keep upstream bundled skills and agent/user-created skills in separate directories without inspecting .bundled_manifest.

Solution

Add skills.create_dir config key. When set, new skills created via skill_manage() go there instead of the default ~/.hermes/skills/.

skills:
  create_dir: ~/code/personal-intelligence/hermes/skills   # agent-created
  external_dirs:
    - ~/code/personal-intelligence/hermes/bundled-skills   # upstream bundled

Result:

  • bundled-skills/ — upstream sync writes here (unchanged behavior)
  • skills/ — agent/user creates here (new behavior via create_dir)

Changes

  • hermes_cli/config.py: add skills.create_dir schema key (default empty = backwards-compatible)
  • tools/skill_manager_tool.py: replace hardcoded SKILLS_DIR with _get_skills_create_dir() that reads config
  • agent/skill_utils.py: include create_dir in get_all_skills_dirs() read path so created skills are discoverable

Backwards-compatible: empty create_dir falls back to ~/.hermes/skills/, no behaviour change for existing installs.

🤖 Generated with Claude Code

…sync

By default both skills_sync (upstream bundled) and skill_manager (agent-
created) write to the same ~/.hermes/skills/. This makes it impossible
to keep upstream bundled skills and agent/user-created skills in separate
directories without inspecting .bundled_manifest.

Add skills.create_dir config key (default: empty = ~/.hermes/skills/).
When set, new skills created via skill_manage() go there instead.

This lets users configure:
  skills:
    create_dir: ~/personal-intelligence/hermes/skills    # agent-created here
    external_dirs:
      - ~/personal-intelligence/hermes/bundled-skills    # upstream bundled here

Also update get_all_skills_dirs() to include create_dir in the read path
so created skills are discoverable alongside bundled and external ones.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@claude-bot-maiixu
claude-bot-maiixu Bot requested a review from maiixu April 12, 2026 19:02
@claude-bot-maiixu
claude-bot-maiixu Bot merged commit 8fc29dc into main Apr 12, 2026
@claude-bot-maiixu
claude-bot-maiixu Bot deleted the feat/skills-create-dir branch April 12, 2026 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants