Skill Library Publisher
Purpose
Use the personal skill repository as the canonical place for authored skills:
/home/teng/claude_code/codex-skills-hub
Repository layout:
skills/local/<skill-name>/ # new authored skills go here first
skills/global/<skill-name>/ # mirror of ~/.codex/skills
skills/workspace/<project>/<skill-name>/
registry/SKILL_INVENTORY.tsv
registry/skills.json
scripts/sync_skills.py
scripts/validate_skills.py
Workflow for new skills
Normalize the skill name to lowercase hyphen-case.
Create the skill under:
/home/teng/claude_code/codex-skills-hub/skills/local/<skill-name>/SKILL.mdKeep
SKILL.mdconcise:- YAML frontmatter has
nameanddescription. descriptionincludes explicit Chinese and English trigger phrases.- Body contains workflow/checklists only; large details go one level down into
references/.
- YAML frontmatter has
Validate:
python scripts/validate_skills.pyRefresh mirrors and inventory:
python scripts/sync_skills.py --applyCommit and push when remote exists:
python scripts/sync_skills.py --apply --commit --push
Workflow for modified skills
When a global or workspace skill was edited, run from the repo root:
python scripts/sync_skills.py --dry-run
python scripts/sync_skills.py --apply --commit --push
If GitHub remote is missing or push fails, keep the local commit and report the exact remote setup needed.
Safety rules
- Do not commit secrets:
.env, tokens, private keys,*.pem,*.key. - Do not edit mirrored third-party skills as if they are authored local skills; copy/adapt into
skills/local/if a custom version is needed. - Prefer dry-run before apply.
- If creating a hook-heavy skill, keep it local/workspace until one real project validates it.
Auto-upload service
To keep the repository synced automatically after manual skill edits, use:
python scripts/sync_skills.py --watch --interval 60 --apply --commit --push
For a user service, adapt:
services/codex-skills-hub-sync.service.example