Skip to content

AndrewBrown-USDA/aigb-skills-usda / skills/install-skills

install-skills

Verified

Installs skills from aigb-skills into a coding agent's skill directory. Use when setting up aigb-skills for Claude Code, Cursor, Copilot, or Pi.

FileKindSize
SKILL.mdskill md6.0 KB
references/agent-paths.mdmarkdown1.8 KB
references/skill-spec.mdmarkdown4.4 KB
scripts/install-core.shscript5.7 KB
scripts/install.shscript2.8 KB

scripts/install.sh

View on GitHub
#!/bin/bash
set -euo pipefail

# install.sh -- Install skills from aigb-skills to a coding agent's skill directory
# Usage: bash install.sh [OPTIONS]

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# shellcheck source=install-core.sh
source "${SCRIPT_DIR}/install-core.sh"

TARGET_AGENT=""
TARGET_PATH=""
SKILL_NAME=""
INSTALL_ALL=false
USE_SYMLINK=false
LIST_ONLY=false

print_help() {
    cat <<EOF
install.sh -- Install aigb-skills to a coding agent

USAGE:
    bash install.sh [OPTIONS]

OPTIONS:
    --target <agent>        Install to agent's skill directory
                           Supported: claude, cursor, copilot, pi, antigravity, codex
    --target-path <path>    Install to custom directory instead
    --skill <name>          Install a single skill (e.g., python-code-style)
    --all                   Install all skills (default)
    --symlink               Create symlinks instead of copying
    --list                  List available skills
    --help                  Show this help message

EXAMPLES:
    # Install all skills to Claude Code (symlinked)
    bash install.sh --target claude --all --symlink

    # Install a single skill to Cursor (copied)
    bash install.sh --target cursor --skill python-code-style

    # Install to custom directory
    bash install.sh --target-path ~/my-skills --all

    # List available skills
    bash install.sh --list

EOF
}

main() {
    while [[ $# -gt 0 ]]; do
        case "$1" in
            --target)
                TARGET_AGENT="$2"
                shift 2
                ;;
            --target-path)
                TARGET_PATH="$2"
                shift 2
                ;;
            --skill)
                SKILL_NAME="$2"
                shift 2
                ;;
            --all)
                INSTALL_ALL=true
                shift
                ;;
            --symlink)
                USE_SYMLINK=true
                shift
                ;;
            --list)
                LIST_ONLY=true
                shift
                ;;
            --help)
                print_help
                exit 0
                ;;
            *)
                install_skills_print_error "Unknown option: $1"
                print_help
                exit 1
                ;;
        esac
    done

    if [[ "$LIST_ONLY" == true ]]; then
        install_skills_list
        exit 0
    fi

    if [[ -n "$TARGET_PATH" ]]; then
        DEST_DIR="$TARGET_PATH"
    elif [[ -n "$TARGET_AGENT" ]]; then
        DEST_DIR="$(install_skills_get_agent_path "$TARGET_AGENT")"
    else
        install_skills_print_error "Must specify --target or --target-path"
        print_help
        exit 1
    fi

    if [[ "$INSTALL_ALL" != true ]] && [[ -z "$SKILL_NAME" ]]; then
        INSTALL_ALL=true
    fi

    install_skills_install "$DEST_DIR" "$SKILL_NAME" "$INSTALL_ALL" "$USE_SYMLINK"
}

main "$@"
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall