mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-12 05:36:40 +00:00
- Add scripts/install/skills/install.sh to restore skills from skills-lock.json via npx skills experimental_install - Add scripts/install/skills/update.sh to update all skills by re-running skills add for each source in skills-lock.json - Add make install-skills and make update-skills targets - Add .github/workflows/update-skills.yml for daily automated updates matching Dependabot schedule (00:00 UTC), opens PR on lock changes - Add docs/agents/meta/caveman.md as SPOT for caveman mode, startup notification, and token-budget tier progression - Update AGENTS.md with RFC 2119-compliant skills installation check - Update docs/agents/action/commit.md: replace ALWAYS with MUST - Update pyproject.toml: respect-gitignore = true, exclude .agents - Track skills-lock.json and add .agents to .gitignore Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
24 lines
718 B
Bash
Executable File
24 lines
718 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# shellcheck shell=bash
|
|
# Restore agent skills from skills-lock.json for reproducible installs.
|
|
# Supports Claude Code, Codex, Gemini CLI, Cursor, Copilot, Windsurf, Cline, and more.
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
|
|
REPO_ROOT="$(cd -- "${SCRIPT_DIR}/../../.." && pwd)"
|
|
|
|
log() { printf '%s\n' "$*"; }
|
|
warn() { printf '%s\n' "$*" >&2; }
|
|
|
|
if ! command -v npx &>/dev/null; then
|
|
warn "skills: npx not found — skipping installation."
|
|
warn "Install Node.js to enable skills: https://nodejs.org"
|
|
exit 0
|
|
fi
|
|
|
|
cd "${REPO_ROOT}"
|
|
log "skills: restoring from skills-lock.json..."
|
|
npx --yes skills experimental_install
|
|
log "skills: installation complete."
|