Files
APAW/archive/install-apaw.sh
¨NW¨ 5a77528b23 refactor: clean up root directory - move deprecated files to archive
Archive:
- docker-compose.yml, Dockerfile.playwright
- scripts/ (legacy test scripts)
- docs/, .test/ (old documentation and tests)
- IMPROVEMENT_PROPOSAL.md (superseded by .kilo/)
- BROWSER_VISIBILITY.md, README.Docker.md
- cleanup-packages.sh, fix-permissions.sh, install-apaw.sh

Keep in root:
- .kilo/ (active system)
- .claude/ (Claude Code runtime)
- AGENTS.md (agent reference)
- README.md (main documentation)
- src/ (utility code)
- package.json, tsconfig.json (project config)
2026-04-05 03:52:10 +01:00

50 lines
1.7 KiB
Bash

#!/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)"