refactor: sync agent directory lists across all scripts (#253)
Syncs agent directory lists (academic/, sales/, strategy/) across all three scripts: lint-agents.sh, convert.sh, install.sh. Refactors install.sh to use shared AGENT_DIRS constant, eliminating duplication. Closes #242.
This commit is contained in:
@@ -62,8 +62,8 @@ OUT_DIR="$REPO_ROOT/integrations"
|
|||||||
TODAY="$(date +%Y-%m-%d)"
|
TODAY="$(date +%Y-%m-%d)"
|
||||||
|
|
||||||
AGENT_DIRS=(
|
AGENT_DIRS=(
|
||||||
academic design engineering game-development marketing paid-media sales product project-management
|
academic design engineering game-development marketing paid-media product project-management
|
||||||
testing support spatial-computing specialized
|
sales spatial-computing specialized strategy support testing
|
||||||
)
|
)
|
||||||
|
|
||||||
# --- Usage ---
|
# --- Usage ---
|
||||||
|
|||||||
@@ -103,6 +103,12 @@ INTEGRATIONS="$REPO_ROOT/integrations"
|
|||||||
|
|
||||||
ALL_TOOLS=(claude-code copilot antigravity gemini-cli opencode openclaw cursor aider windsurf qwen kimi)
|
ALL_TOOLS=(claude-code copilot antigravity gemini-cli opencode openclaw cursor aider windsurf qwen kimi)
|
||||||
|
|
||||||
|
# Standard agent category directories (keep sorted, sync with convert.sh / lint-agents.sh)
|
||||||
|
AGENT_DIRS=(
|
||||||
|
academic design engineering game-development marketing paid-media product project-management
|
||||||
|
sales spatial-computing specialized strategy support testing
|
||||||
|
)
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Usage
|
# Usage
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
@@ -301,8 +307,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 academic design engineering game-development marketing paid-media sales product project-management \
|
for dir in "${AGENT_DIRS[@]}"; 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
|
||||||
first_line="$(head -1 "$f")"
|
first_line="$(head -1 "$f")"
|
||||||
@@ -320,8 +325,7 @@ install_copilot() {
|
|||||||
local count=0
|
local count=0
|
||||||
mkdir -p "$dest_github" "$dest_copilot"
|
mkdir -p "$dest_github" "$dest_copilot"
|
||||||
local dir f first_line
|
local dir f first_line
|
||||||
for dir in academic design engineering game-development marketing paid-media sales product project-management \
|
for dir in "${AGENT_DIRS[@]}"; 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
|
||||||
first_line="$(head -1 "$f")"
|
first_line="$(head -1 "$f")"
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
AGENT_DIRS=(
|
AGENT_DIRS=(
|
||||||
|
academic
|
||||||
design
|
design
|
||||||
engineering
|
engineering
|
||||||
game-development
|
game-development
|
||||||
@@ -18,10 +19,12 @@ AGENT_DIRS=(
|
|||||||
paid-media
|
paid-media
|
||||||
product
|
product
|
||||||
project-management
|
project-management
|
||||||
testing
|
sales
|
||||||
support
|
|
||||||
spatial-computing
|
spatial-computing
|
||||||
specialized
|
specialized
|
||||||
|
strategy
|
||||||
|
support
|
||||||
|
testing
|
||||||
)
|
)
|
||||||
|
|
||||||
REQUIRED_FRONTMATTER=("name" "description" "color")
|
REQUIRED_FRONTMATTER=("name" "description" "color")
|
||||||
|
|||||||
Reference in New Issue
Block a user