Files
APAW/install-apaw.sh
NW 8d49a78e63 feat: add global install support for Claude Code commands
- install-apaw.sh: one-command installer for any target project
  copies .claude/commands/, rules/, initialises efficiency_score.json
- README: global install instructions (sed /project: -> /user:)
  and per-project install via install-apaw.sh

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-03 18:13:22 +01:00

50 lines
1.7 KiB
Bash
Executable File

#!/usr/bin/env bash
# APAW — Claude Code Agent Pipeline Installer
#
# Usage:
# ./install-apaw.sh # install in current directory
# ./install-apaw.sh /path/to/project # install in target project
#
# After install, use /project:pipeline <task> in Claude Code
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
TARGET="${1:-.}"
if [ ! -d "$TARGET" ]; then
echo "Error: target directory '$TARGET' does not exist"
exit 1
fi
echo "Installing APAW Claude Code pipeline into: $TARGET"
mkdir -p "$TARGET/.claude/commands"
mkdir -p "$TARGET/.claude/rules"
mkdir -p "$TARGET/.claude/logs"
cp "$SCRIPT_DIR/.claude/commands/"*.md "$TARGET/.claude/commands/"
cp "$SCRIPT_DIR/.claude/rules/global.md" "$TARGET/.claude/rules/"
if [ ! -f "$TARGET/.claude/logs/efficiency_score.json" ]; then
echo '[]' > "$TARGET/.claude/logs/efficiency_score.json"
fi
echo ""
echo "Done. 14 agent commands installed."
echo ""
echo "Quick start in Claude Code:"
echo " /project:pipeline <describe your task>"
echo ""
echo "Or step by step:"
echo " /project:refine <vague idea> — clarify requirements"
echo " /project:mine <topic> — check git history for duplicates"
echo " /project:analyze <feature> — design system (Opus)"
echo " /project:tests <feature> — write failing tests (TDD red)"
echo " /project:implement <feature> — write code (TDD green, Opus)"
echo " /project:skeptic <feature> — adversarial code review"
echo " /project:perf <feature> — performance check"
echo " /project:security <feature> — OWASP audit (Opus)"
echo " /project:release <version> — tag and publish"
echo " /project:evaluate <task> — score agents (Haiku)"