Support nested agent directories and add game-development category

- Add game-development to AGENT_DIRS in convert.sh, lint-agents.sh,
  install.sh, and the CI workflow
- Remove maxdepth 1 from find commands so nested subdirectories
  (e.g., game-development/unity/) are discovered
- Update CI git diff globs to **/*.md for recursive matching
- Remove strategy from lint AGENT_DIRS (playbooks, not agents)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Michael Sitarzewski
2026-03-10 09:06:47 -05:00
parent e5b256d0ce
commit 74e756be57
4 changed files with 10 additions and 9 deletions

View File

@@ -42,7 +42,7 @@ OUT_DIR="$REPO_ROOT/integrations"
TODAY="$(date +%Y-%m-%d)"
AGENT_DIRS=(
design engineering marketing paid-media product project-management
design engineering game-development marketing paid-media product project-management
testing support spatial-computing specialized
)
@@ -275,7 +275,7 @@ run_conversions() {
esac
(( count++ )) || true
done < <(find "$dirpath" -maxdepth 1 -name "*.md" -type f -print0 | sort -z)
done < <(find "$dirpath" -name "*.md" -type f -print0 | sort -z)
done
echo "$count"

View File

@@ -259,7 +259,7 @@ install_claude_code() {
local count=0
mkdir -p "$dest"
local dir f first_line
for dir in design engineering marketing paid-media product project-management \
for dir in design engineering game-development marketing paid-media product project-management \
testing support spatial-computing specialized; do
[[ -d "$REPO_ROOT/$dir" ]] || continue
while IFS= read -r -d '' f; do
@@ -267,7 +267,7 @@ install_claude_code() {
[[ "$first_line" == "---" ]] || continue
cp "$f" "$dest/"
(( count++ )) || true
done < <(find "$REPO_ROOT/$dir" -maxdepth 1 -name "*.md" -type f -print0)
done < <(find "$REPO_ROOT/$dir" -name "*.md" -type f -print0)
done
ok "Claude Code: $count agents -> $dest"
}

View File

@@ -13,6 +13,7 @@ set -euo pipefail
AGENT_DIRS=(
design
engineering
game-development
marketing
paid-media
product
@@ -21,7 +22,6 @@ AGENT_DIRS=(
support
spatial-computing
specialized
strategy
)
REQUIRED_FRONTMATTER=("name" "description" "color")
@@ -87,7 +87,7 @@ else
if [[ -d "$dir" ]]; then
while IFS= read -r f; do
files+=("$f")
done < <(find "$dir" -maxdepth 1 -name "*.md" -type f | sort)
done < <(find "$dir" -name "*.md" -type f | sort)
fi
done
fi