Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Ai Skills Library Push?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/samuelasherrivello-ai-skills-library-push)
---
name: ai-skills-library-push
description: Copy named or all valid global Codex skills into this AI Skills Library checkout. Use when importing global skills into the library.
---
# AI Skills Library Push
Use this skill only to copy global Codex skills into the local library checkout. It does not publish changes to GitHub.
1. Require exactly one argument: a skill folder name or the literal `all`.
2. Resolve the global source as `$HOME/.agents/skills` and the library destination as this repository's `.agents/skills`. Show both full paths and the selected scope. Known `ai-skills-create-*`, `ai-skills-library-*`, `ai-skills-openspec-*`, Docker sandbox, `ai-skills-triage-*`, `slidev-*`, and the three `ai-skills-productivity` skill names map to their matching categories. The helper skips `tiled-ai-*` skills because they belong in [ai-skills-tiled](https://github.com/SamuelAsherRivello/ai-skills-tiled). Ask the user to select a category for any other unmapped name before running the helper.
3. For a named skill, validate the selected source. For `all`, select every valid top-level global skill directory. A valid skill is a real directory containing `SKILL.md`; refuse a symbolic link or junction as the selected directory and refuse linked files or directories within it.
4. When the library checkout is available, use its `scripts/skill-copy-lifecycle.ps1` helper with `-Action push -Skill <name|all>`. Pass `-Category <category>` for an unmapped named skill after the user chooses its category. Preflight the complete selection before copying anything. A missing/invalid source, invalid destination, unapproved conflict, or inability to write to the checkout fails the operation without changing any skill. If the checkout is not writable, clearly say no skills changed and suggest asking a library maintainer to import the skill.
5. If source and destination contents match, skip that skill. If a destination is absent, plan a physical directory copy. If contents differ, inspect the substantive differences and newest file modification time. Use a newer copy automatically only when it is clearly better; if it is inferior or quality is unclear, stop and ask the user which copy to retain. Pass `-ReplaceConflicts` only after that evaluation authorizes replacement; for `all`, preflight every conflict before copying any skill.
6. Copy only after every selected skill passes preflight. Verify each destination is a physical directory with `SKILL.md` and content matching its source. If a copy fails, remove only directories newly created by this invocation, leaving sources and pre-existing destinations unchanged.
7. Report `Changed`, `Skipped`, and `Failed` names separately. Do not create a junction or symbolic link, move/delete a source, fetch/commit/push Git history, or modify unrelated skills. If the helper is unavailable, follow these same steps with filesystem copy operations.
## Library checkout exception
When running from inside the `ai-skills-library` checkout, treat its categorized `.agents/skills/<category>/<skill>` tree as the canonical catalog. `push all` remains the supported operation for importing global skills into that catalog; preserve the category layout and preflight every selected skill before copying. For a named global skill, use `push` with the appropriate category.