satangthevalue/ai-skills/agent-skills-github-sync

Claude Code and agent skill by satangthevalue/ai-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when synchronizing Hermes Agent local skills with a remote GitHub repository. Guides the backup, management, and deployment of agent skills.

Install

npx vskill@latest install satangthevalue/ai-skills/agent-skills-github-sync

SKILL.md

The same SKILL.md was published earlier as satangthevalue/ai-skills/agent-skills-github-sync.

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):

bash
rsync -av --exclude='.git' --exclude='.curator_backups' --exclude='.curator_state' --exclude='.bundled_manifest' ~/.hermes/skills/ ~/path-to-repo/skills/
bash
# 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`:

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
1. **Syncing caches or private configs:** Always exclude dotfiles/lockfiles (like `.usage.json`, `.curator_state`, `.bundled_manifest`, and lockfiles) during sync.
2. **Commit conflicts:** Always pull before pushing when working across multiple environments.
3. **Session Cache:** Changing local files directly requires starting a new session or running `hermes status` / reloading to update active memory in some setups.
4. **Git Author Identity Errors:** In a clean or containerized VPS environment, git commits may fail with "Author identity unknown". Always ensure `git config user.name` and `git config user.email` are configured (locally or globally) before attempting to commit.
5. **README.md and INDEX.md must be included in every sync:** The file `/home/thaieasyvps/.hermes/skills/README.md` and `INDEX.md` form the TOC for `github.com/SatangTheValue/ai-skills`. Always `git add skills/ README.md INDEX.md` — not just `skills/` — so the catalog stays current after skill additions.
6. **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 repository `skills/` folder
- [ ] Git commit message specifies the timestamp of synchronization
- [ ] `git push` command finishes successfully with exit code 0

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Grok Build (Cursor)
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/satangthevalue/ai-skills/agent-skills-github-sync/badge)](https://verified-skill.com/skills/satangthevalue/ai-skills/agent-skills-github-sync)

Something wrong with this skill or its page? Tell us.