Single-commit clean baseline after security scrub of niche-tells, project codenames, internal jargon, and contributor-email leaks. Contents: - 100 Rust crates (_primitives/_rust/) - 37 agent manifests (_manifests/) + generated specs (_generated/) - 67 user-invocable skills (skills/) - 33 hooks (hooks/) - Composition blocks (_blocks/) - Documentation (docs/, README.md) - TS adapter packages (_ts_packages/) - Assembler (_assembler/) - Roles (_roles/) - Templates (_templates/) - Forgejo CI (.forgejo/) Author: Denis Parfionovich <info@greendragon.info> License: see LICENSE.
23 lines
699 B
Bash
23 lines
699 B
Bash
# shellcheck shell=bash
|
|
# lib-skills.sh — skill directory copy loop.
|
|
#
|
|
# Skills live in $KIT_DIR/skills/<name>/ and are synced into
|
|
# $SKILLS_DIR/<name>/ on every install.
|
|
#
|
|
# Requires: say from lib-log.sh.
|
|
# Requires: backup_dir from lib-backup.sh.
|
|
# Reads globals: $KIT_DIR, $SKILLS_DIR.
|
|
|
|
install_skills() {
|
|
[ -d "$KIT_DIR/skills" ] || return 0
|
|
say "copying skills"
|
|
backup_dir "$SKILLS_DIR"
|
|
local skill_dir skill_name
|
|
for skill_dir in "$KIT_DIR/skills/"*/; do
|
|
[ -d "$skill_dir" ] || continue
|
|
skill_name="$(basename "$skill_dir")"
|
|
mkdir -p "$SKILLS_DIR/$skill_name"
|
|
cp -rf "$skill_dir"* "$SKILLS_DIR/$skill_name/" 2>/dev/null || true
|
|
say " -> $skill_name"
|
|
done
|
|
}
|