Files
Phantom/archive/install-apaw.sh
NW 863a67db8e config: full APAW agent infrastructure + Phantom project files
- Added all agent definitions (.kile/agents/*.md)
- Added commands, rules, skills, shared modules
- Added src/, scripts/, tests/, docker/, agent-evolution/
- Extracted 3 archives: website/, workspace/, release/
- Created .env with Gitea creds for UniqueSoft/Phantom
- Created docs/ with project-specific guides
- Added .gitignore for node_modules
2026-05-18 17:53:59 +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)"