mirror of
https://github.com/msitarzewski/agency-agents
synced 2026-04-25 03:08:24 +00:00
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:
parent
e5b256d0ce
commit
74e756be57
7
.github/workflows/lint-agents.yml
vendored
7
.github/workflows/lint-agents.yml
vendored
@ -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<<ENDOFLIST"
|
||||
echo "$FILES"
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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"
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user