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:
7
.github/workflows/lint-agents.yml
vendored
7
.github/workflows/lint-agents.yml
vendored
@@ -5,6 +5,7 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- 'design/**'
|
- 'design/**'
|
||||||
- 'engineering/**'
|
- 'engineering/**'
|
||||||
|
- 'game-development/**'
|
||||||
- 'marketing/**'
|
- 'marketing/**'
|
||||||
- 'paid-media/**'
|
- 'paid-media/**'
|
||||||
- 'product/**'
|
- 'product/**'
|
||||||
@@ -28,9 +29,9 @@ jobs:
|
|||||||
id: changed
|
id: changed
|
||||||
run: |
|
run: |
|
||||||
FILES=$(git diff --name-only --diff-filter=ACMR origin/${{ github.base_ref }}...HEAD -- \
|
FILES=$(git diff --name-only --diff-filter=ACMR origin/${{ github.base_ref }}...HEAD -- \
|
||||||
'design/*.md' 'engineering/*.md' 'marketing/*.md' 'paid-media/*.md' 'product/*.md' \
|
'design/**/*.md' 'engineering/**/*.md' 'game-development/**/*.md' 'marketing/**/*.md' 'paid-media/**/*.md' 'product/**/*.md' \
|
||||||
'project-management/*.md' 'testing/*.md' 'support/*.md' \
|
'project-management/**/*.md' 'testing/**/*.md' 'support/**/*.md' \
|
||||||
'spatial-computing/*.md' 'specialized/*.md' 'strategy/*.md')
|
'spatial-computing/**/*.md' 'specialized/**/*.md' 'strategy/**/*.md')
|
||||||
{
|
{
|
||||||
echo "files<<ENDOFLIST"
|
echo "files<<ENDOFLIST"
|
||||||
echo "$FILES"
|
echo "$FILES"
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ OUT_DIR="$REPO_ROOT/integrations"
|
|||||||
TODAY="$(date +%Y-%m-%d)"
|
TODAY="$(date +%Y-%m-%d)"
|
||||||
|
|
||||||
AGENT_DIRS=(
|
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
|
testing support spatial-computing specialized
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -275,7 +275,7 @@ run_conversions() {
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
(( count++ )) || true
|
(( 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
|
done
|
||||||
|
|
||||||
echo "$count"
|
echo "$count"
|
||||||
|
|||||||
@@ -259,7 +259,7 @@ install_claude_code() {
|
|||||||
local count=0
|
local count=0
|
||||||
mkdir -p "$dest"
|
mkdir -p "$dest"
|
||||||
local dir f first_line
|
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
|
testing support spatial-computing specialized; do
|
||||||
[[ -d "$REPO_ROOT/$dir" ]] || continue
|
[[ -d "$REPO_ROOT/$dir" ]] || continue
|
||||||
while IFS= read -r -d '' f; do
|
while IFS= read -r -d '' f; do
|
||||||
@@ -267,7 +267,7 @@ install_claude_code() {
|
|||||||
[[ "$first_line" == "---" ]] || continue
|
[[ "$first_line" == "---" ]] || continue
|
||||||
cp "$f" "$dest/"
|
cp "$f" "$dest/"
|
||||||
(( count++ )) || true
|
(( 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
|
done
|
||||||
ok "Claude Code: $count agents -> $dest"
|
ok "Claude Code: $count agents -> $dest"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ set -euo pipefail
|
|||||||
AGENT_DIRS=(
|
AGENT_DIRS=(
|
||||||
design
|
design
|
||||||
engineering
|
engineering
|
||||||
|
game-development
|
||||||
marketing
|
marketing
|
||||||
paid-media
|
paid-media
|
||||||
product
|
product
|
||||||
@@ -21,7 +22,6 @@ AGENT_DIRS=(
|
|||||||
support
|
support
|
||||||
spatial-computing
|
spatial-computing
|
||||||
specialized
|
specialized
|
||||||
strategy
|
|
||||||
)
|
)
|
||||||
|
|
||||||
REQUIRED_FRONTMATTER=("name" "description" "color")
|
REQUIRED_FRONTMATTER=("name" "description" "color")
|
||||||
@@ -87,7 +87,7 @@ else
|
|||||||
if [[ -d "$dir" ]]; then
|
if [[ -d "$dir" ]]; then
|
||||||
while IFS= read -r f; do
|
while IFS= read -r f; do
|
||||||
files+=("$f")
|
files+=("$f")
|
||||||
done < <(find "$dir" -maxdepth 1 -name "*.md" -type f | sort)
|
done < <(find "$dir" -name "*.md" -type f | sort)
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user