From 74e756be570aea2f8092011882f9ff707ea51390 Mon Sep 17 00:00:00 2001 From: Michael Sitarzewski Date: Tue, 10 Mar 2026 09:06:47 -0500 Subject: [PATCH] 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 --- .github/workflows/lint-agents.yml | 7 ++++--- scripts/convert.sh | 4 ++-- scripts/install.sh | 4 ++-- scripts/lint-agents.sh | 4 ++-- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/lint-agents.yml b/.github/workflows/lint-agents.yml index 290c9b4..6097254 100644 --- a/.github/workflows/lint-agents.yml +++ b/.github/workflows/lint-agents.yml @@ -5,6 +5,7 @@ on: paths: - 'design/**' - 'engineering/**' + - 'game-development/**' - 'marketing/**' - 'paid-media/**' - 'product/**' @@ -28,9 +29,9 @@ jobs: id: changed run: | FILES=$(git diff --name-only --diff-filter=ACMR origin/${{ github.base_ref }}...HEAD -- \ - 'design/*.md' 'engineering/*.md' 'marketing/*.md' 'paid-media/*.md' 'product/*.md' \ - 'project-management/*.md' 'testing/*.md' 'support/*.md' \ - 'spatial-computing/*.md' 'specialized/*.md' 'strategy/*.md') + 'design/**/*.md' 'engineering/**/*.md' 'game-development/**/*.md' 'marketing/**/*.md' 'paid-media/**/*.md' 'product/**/*.md' \ + 'project-management/**/*.md' 'testing/**/*.md' 'support/**/*.md' \ + 'spatial-computing/**/*.md' 'specialized/**/*.md' 'strategy/**/*.md') { echo "files< $dest" } diff --git a/scripts/lint-agents.sh b/scripts/lint-agents.sh index 65051b2..f5e3bb6 100755 --- a/scripts/lint-agents.sh +++ b/scripts/lint-agents.sh @@ -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