
Ljg Push
Pushes ljg-* skills to the ljg-skills repo, mirroring org-mode master and markdown md branches with conversion.
- skills.sh installs
- 4.7K
- GitHub stars
- 7.8K
- last updated
- Aug 21, 2026
What it does
- Covers syncing changed
~/.agents/skills/ljg-*skills to master in org-mode, then converting and pushing to the md branch - Includes a hard README consistency gate that blocks pushes when local skills are missing from the README, unless
--skip-readme-checkis passed - Enforces automatic org-to-markdown conversion of files, headers, example blocks, and output-format instructions, with a pre-commit residue audit on the md branch
- Designed for shipping updated ljg-* skills, and not for pushing non-ljg skills or arbitrary git repositories
Install
$ npx -y skills add lijigang/ljg-skills --skill ljg-push -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
ljg-push: 推送 ljg-* skills
把本地 ~/.agents/skills/ljg-* 里改过的 skills,一键同步到 github repo,覆盖 master 和 md 两个分支。
仓库路径(硬编码)
SKILLS_REPO="$HOME/code/ljg-skills" # 本地工作 repo
SKILLS_LOCAL="$HOME/.agents/skills" # 本地 skill 源
REPO_URL="git@github.com:lijigang/ljg-skills.git"
如果 $SKILLS_REPO 不存在,脚本会自动 clone。如果它存在但不是 ljg-skills 的 git repo,脚本会报错退出(不破坏现有目录)。
两条分支的差异
| 分支 | 输出格式 | 文件扩展 | 加粗 | 文件头 |
|---|---|---|---|---|
master(默认) | org-mode | .org | *bold* | #+title: 等 |
md | markdown | .md | **bold** | YAML frontmatter |
~/.agents/skills/ 里的 skill 是 master 风格(源版本)。md 分支的差异由脚本自动转换 + 必要时手工补。
脚本推完 md 后会自动切回 master。本地 $HOME/code/ljg-skills 应该始终停在源分支,方便下次查看和安装。
工作流
按 Workflows/Push.md 步骤执行 → 调用 Tools/Push.sh。
README 一致性(硬 gate)
每次 push 前,脚本强制做一件事:把 README 跟 local skills 对一遍。
- 列出
~/.agents/skills/ljg-*全部 skill 名 - grep
$SKILLS_REPO/README.md里出现的ljg-xxx - 找出 local 有但 README 没有的——几乎肯定意味着 README 漏更新
- 命中 → push 中止,报告差异
每次 push 都是检视 README 的机会。问自己:
- 新增 skill 了吗?README 的 skill 清单 / 安装命令需要加一行
- 删了 skill 吗?README 对应行要删
- 某个 skill 的描述大改了吗?README 的简介可能要同步
Details
- Repository
- github.com/lijigang/ljg-skills
- Categories
- Git & Releases, Skill & Plugin Building
- First seen
- May 16, 2026
More from lijigang/ljg-skills
All 20Similar to Ljg Push
More Git & Releases
pr-writergetsentry/skills4.7K installsCreate or refresh reviewer-facing PR titles and descriptions. Use when opening a PR, updating its title or body, or preparing branch changes for review.
oh-my-issuesthedotmack/claude-mem4.5K installsCluster a GitHub issue backlog by root cause into a small set of plan-master issues, redirect children with a standardized comment, and bundle architectural-fix
create-branchgetsentry/skills4.4K installsCreate a git branch following Sentry naming conventions. Use when asked to "create a branch", "new branch", "start a branch", "make a branch", "switch to a new
gh-review-requestsgetsentry/skills4.4K installsFetch unread GitHub notifications for open PRs where review is requested from a specified team or opened by a team member. Use when asked to "find PRs I need to
commit-worksoftaworks/agent-toolkit4.2K installsCreate high-quality git commits: review/stage intended changes, split into logical commits, and write clear commit messages (including Conventional Commits). Us
Releaseschpet/linear-cli3.9K installsThis skill should be used when the user asks to "make a release", "create a release", "cut a release", "release a new version", "publish a release", or mentions