agent-skills-github-sync
Use when synchronizing Hermes Agent local skills with a remote GitHub repository. Guides the backup, management, and deployment of agent skills.
- License 许可
- MIT
- 最近更新
- 2026-10-10
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- agent-skills-github-sync
- author
- Tonthong
- license
- MIT
- version
- 1.0.0
- metadata
- { "hermes": { "tags": [ "skills", "github", "backup", "deploy", "hermes-agent" ], "related_skills": [ "github-repo-management", "hermes-agent" ] } }
- description
- Use when synchronizing Hermes Agent local skills with a remote GitHub repository. Guides the backup, management, and deployment of agent skills.
02 资源文件 2
- 参考文档references/rsync-exclude-patterns.md623 B
- 脚本scripts/generate_skills_index.py6.5 KB
03 SKILL.md 正文
Agent Skills GitHub Synchronization
Overview
This skill outlines the process for exporting local Hermes Agent skills, structuring them for repository storage, and pushing/pulling them to/from a GitHub repository. It acts as a guide for keeping skills synchronized between Tonthong (and other AI agents) and a central GitHub repository.
When to Use
- When you want to back up your current local skills (
~/.hermes/skills/) to GitHub. - When you need to sync skills from GitHub back into a new or existing Hermes environment.
- When sharing customized skills with other agents.
Directory Mapping
- Local Source:
~/.hermes/skills/ - Repo Destination:
skills/within your cloned repository (e.g.,ai-skills/skills/).
Synchronization Process
1. Exporting Local Skills to Repo
To update your repository with local skills, use rsync with the correct exclusion flags to prevent syncing internal Hermes state files (see references/rsync-exclude-patterns.md for details):
rsync -av --exclude='.git' --exclude='.curator_backups' --exclude='.curator_state' --exclude='.bundled_manifest' ~/.hermes/skills/ ~/path-to-repo/skills/
# Define paths
REPO_DIR="$HOME/ai-skills"
LOCAL_SKILLS_DIR="$HOME/.hermes/skills"
# Copy new and modified skills (excluding dotfiles/caches and internal state)
rsync -av --exclude='.git' --exclude='.curator_backups' --exclude='.curator_state' --exclude='.bundled_manifest' "$LOCAL_SKILLS_DIR/" "$REPO_DIR/skills/"
Verify status in git
cd "$REPO_DIR" git status
### 2. Regenerating Index, TOC & Pushing Changes
Before committing, always ensure skills are categorized (no raw skill folders in root) and run the bundled generator to update both `INDEX.md` and `README.md`:
```bash
python3 "$LOCAL_SKILLS_DIR/software-development/agent-skills-github-sync/scripts/generate_skills_index.py"
Then sync and push:
rsync -av --delete "$LOCAL_SKILLS_DIR/" "$REPO_DIR/skills/"
cd "$REPO_DIR"
git add -A
git commit -m "sync: updated agent skills $(date -u +'%Y-%m-%dT%H:%M:%SZ')"
git push origin main
3. Deploying/Importing Skills from Repo
To apply skills from GitHub back into the local environment:
# Pull latest from Git
cd "$REPO_DIR"
git pull origin main
# Sync to local skills dir
rsync -av --exclude '.*' "$REPO_DIR/skills/" "$LOCAL_SKILLS_DIR/"
# Note: Active sessions cache skills; start a new session or restart the agent service if needed
Common Pitfalls
- Syncing caches or private configs: Always exclude dotfiles/lockfiles (like
.usage.json,.curator_state,.bundled_manifest, and lockfiles) during sync. - Commit conflicts: Always pull before pushing when working across multiple environments.
- Session Cache: Changing local files directly requires starting a new session or running
hermes status/ reloading to update active memory in some setups. - Git Author Identity Errors: In a clean or containerized VPS environment, git commits may fail with "Author identity unknown". Always ensure
git config user.nameandgit config user.emailare configured (locally or globally) before attempting to commit. - README.md and INDEX.md must be included in every sync: The file
/home/thaieasyvps/.hermes/skills/README.mdandINDEX.mdform the TOC forgithub.com/SatangTheValue/ai-skills. Alwaysgit add skills/ README.md INDEX.md— not justskills/— so the catalog stays current after skill additions. - Strict Category Hierarchy: Never leave raw skill folders at
~/.hermes/skills/root. Always group under an appropriate category folder (e.g.,devops/,finance/,software-development/).
Verification Checklist
- [ ] No dotfiles (e.g.,
.usage.json) copied to repositoryskills/folder - [ ] Git commit message specifies the timestamp of synchronization
- [ ]
git pushcommand finishes successfully with exit code 0
04 同仓库更多 Skills
writing-plans
Write implementation plans: bite-sized tasks, paths, code.
subagent-driven-development
Execute plans via delegate_task subagents (2-stage review).
react-composition-2026
Teaches modern React composition patterns for 2025/2026. Use when designing component APIs, building shared UI libraries, or refactoring prop-heavy components.
react-2026
Provides a comprehensive guide to the modern React 2026 stack. Use when starting a new React project or modernizing an existing one with current frameworks, build tools, routing, state management, or AI integration.
plan
Plan mode: write markdown plan to .hermes/plans/, no exec.
hermes-s6-container-supervision
Modify, debug, or extend the s6-overlay supervision tree inside the Hermes Agent Docker image — adding new services, debugging profile gateways, understanding the Architecture B main-program pattern.