Audit Summary
Comprehensive audit of all 16 agent skill structures and refactoring plan for standardization and consolidation.
Current State
- All agents: 16/16 have top-level
skills/ directories ✅
- No nested structures: 0 agents with
agent/skills/ (already refactored)
- Total skills: 368 skill directories, 10,332 files across all agents
- Manifest coverage: 16/16 agents have skills.md and skills.csv ✅
Skills Distribution (Org-Wide)
| Category |
Skill Dirs |
Files |
Status |
| agent-attached |
178 |
3,777 |
Specialized, agent-specific |
| local |
80 |
3,134 |
General-purpose, reusable |
| plugin-provided |
69 |
1,860 |
Third-party integrations |
| platform-managed |
26 |
497 |
Built-in, platform skills |
| directory-installed |
15 |
1,064 |
Directory-scoped skills |
Audit Checklist / Scope
Findings / Risks
1. Manifest Accuracy Discrepancies (Priority: High)
- Finding: Significant discrepancies between directory structure and CSV manifests
- Root Cause: Manifests not regenerated after skill additions/moves
- Impact: Skill discovery tools may miss available skills
- Evidence:
- prd-agent: 102 SKILL.md files vs. 57 CSV entries (+45 missing)
- woo-config-agent: 31 SKILL.md files vs. 30 CSV entries (+1 missing)
- wp-config-agent: 31 SKILL.md files vs. 37 CSV entries (-6 over-reported)
- Risk Level: High - Discovery and automation tools may fail silently
2. Absolute Path References (Non-Portable) (Priority: High)
- Finding: All manifests use absolute paths (
/root/.codex/skills/...)
- Impact: Paths not portable across environments (local, CI, different machines)
- Risk Level: High - Manifests break in different deployment contexts
- Solution: Convert to relative paths (
./skills/agent-attached/...)
3. Inconsistent Skill Categorization (Priority: Medium)
- Finding: Varied use of skill categories across agents
- Patterns:
- Some agents: 5 categories (agent-attached, local, plugin-provided, platform-managed, directory-installed)
- Others: 2 categories (only agent-attached, local)
- Impact: Inconsistent organization makes discovery and management difficult
- Risk Level: Medium - Maintainability and scalability concerns
4. Missing SKILL.md Entrypoints (Priority: Medium)
- Finding: Some skill directories lack SKILL.md files (documentation/metadata)
- Impact: Skills not discoverable by CI/CD and documentation generation tools
- Scope: ~15-20 skill directories missing entrypoints
- Risk Level: Medium - Skills may be undocumented and unused
5. Redundant Skill Copies (Priority: Low)
- Finding: Same skill exists in multiple agents (e.g., documents, github, google-drive)
- Impact: Maintenance burden, version inconsistency, duplication waste
- Scope: ~10-15 candidate skills for consolidation
- Risk Level: Low - Efficiency and maintainability concern
Remediation Actions
Phase 1: Inventory & Validation (Week 1)
Deliverable: Complete skills inventory with metadata
Phase 2: Create Missing SKILL.md Files (Week 1-2)
Deliverable: All skill directories have valid SKILL.md entrypoints
Phase 3: Normalize Skill Paths in Manifests (Week 2)
Deliverable: Updated manifests with relative, portable paths
Phase 4: Consolidate Duplicate Skills (Week 2-3)
Deliverable: Consolidated shared skills, updated manifests
Phase 5: Standardize Skill Categorization (Week 3)
Deliverable: Standardized skill categorization across all 16 agents
Phase 6: Update Agent Metadata (Week 3-4)
Deliverable: Updated AGENT.md and provider configs for all agents
Phase 7: Validation & Testing (Week 4)
Deliverable: Validation report with 100% pass rate
Phase 8: CI/CD Integration (Week 4)
Deliverable: Automated manifest validation in CI/CD
Acceptance Criteria
Additional Context
Per-Agent Breakdown (Top 10 by Skill Count)
| Agent |
SKILL.md |
agent-attached |
local |
total files |
| prd-agent |
102 |
25 |
13 |
1,360 |
| tour-operator-config-agent |
30 |
10 |
20 |
1,066 |
| woo-config-agent |
31 |
10 |
1 |
942 |
| wp-config-agent |
31 |
11 |
1 |
929 |
| website-content-strategist-agent |
67 |
28 |
1 |
928 |
| prd-factory-planner-agent |
57 |
24 |
10 |
918 |
| ai-readiness-estimator-agent |
51 |
19 |
1 |
855 |
| client-website-discovery-assistant-agent |
67 |
1 |
3 |
759 |
| zendesk-support-agent |
37 |
17 |
3 |
757 |
| design-partner-agent |
47 |
1 |
1 |
700 |
Related Issues & PRs
Effort Estimate
- Duration: 4-5 weeks
- Effort: 40-60 hours (1 FTE)
- Risk: Low (refactoring, non-user-facing)
- Dependencies: None (standalone initiative)
Success Criteria for Refactoring
Definition of Ready (DoR)
Definition of Done (DoD)
Audit conducted: 2026-07-23 | Refactoring plan: 8 phases | Estimated effort: 40-60 hours
Per-Agent Refactoring Guide
This section provides step-by-step instructions for refactoring each of the 16 agents. Follow this process for each agent in sequence:
Agent Refactoring Checklist (For Each Agent)
Before Starting:
Phase 1: Inventory & Validation
Phase 2: Manifest Accuracy
Phase 3: Normalize Paths
Phase 4: Categorize Skills
Phase 5: Validate SKILL.md Entrypoints
Phase 6: Update Agent Metadata
Phase 7: Update Provider Instructions
Phase 8: Update Core Instructions
Phase 9: Regenerate Checksums
cd agents/{agent}
find . -type f ! -name ".DS_Store" ! -name "checksums.sha256" -exec sha256sum {} \; | sort > checksums.sha256
Phase 10: Validation Tests
Phase 11: Documentation Update
Phase 12: Create & Test PR
Agent Refactoring Order
Recommended sequence (by complexity/size):
- ✅ prd-factory-planner-agent (57 SKILL.md files, 24 agent-attached + 10 local)
- ⏳ tour-operator-config-agent (30 SKILL.md files, 10 agent-attached + 20 local)
- ☐ woo-config-agent (31 SKILL.md files, 10 agent-attached + 1 local)
- ☐ wp-config-agent (31 SKILL.md files, 11 agent-attached + 1 local)
- ☐ website-content-strategist-agent (67 SKILL.md files, 28 agent-attached + 1 local)
- ☐ prd-agent (102 SKILL.md files, 25 agent-attached + 13 local)
- ☐ ai-readiness-estimator-agent (51 SKILL.md files, 19 agent-attached + 1 local)
- ☐ client-website-discovery-assistant-agent (67 SKILL.md files, 1 agent-attached + 3 local)
- ☐ zendesk-support-agent (37 SKILL.md files, 17 agent-attached + 3 local)
- ☐ design-partner-agent (47 SKILL.md files, 1 agent-attached + 1 local)
- ☐ linear-advisor-agent (42 SKILL.md files, 16 agent-attached + 10 local)
- ☐ proposal-desk-agent (50 SKILL.md files, 6 agent-attached + 3 local)
- ☐ website-scope-estimator-agent (49 SKILL.md files, 5 agent-attached + 10 local)
- ☐ playwright-testing-agent (21 SKILL.md files, 2 agent-attached + 2 local)
- ☐ harvest-analytical-agent (20 SKILL.md files, 0 agent-attached + 1 local)
- ☐ pagespeed-agent (25 SKILL.md files, 3 agent-attached + 0 local)
Batch Refactoring Script
For Phase 1-2 batch work, use this script to validate all agents:
#!/bin/bash
# Validate all agents for manifest discrepancies
for agent_dir in agents/*/; do
agent_name=$(basename "$agent_dir")
# Count SKILL.md files
skill_count=$(find "$agent_dir/skills" -name "SKILL.md" | wc -l)
# Count CSV entries
csv_count=$(tail -n +2 "$agent_dir/manifests/skills.csv" 2>/dev/null | wc -l)
# Check for absolute paths
absolute_paths=$(grep -r "/root/.codex" "$agent_dir/manifests/" 2>/dev/null | wc -l)
# Show results
status="✅"
[ $skill_count -ne $csv_count ] && status="⚠️"
[ $absolute_paths -gt 0 ] && status="❌"
printf "%s %-45s SKILL.md: %3d | CSV: %3d | Abs paths: %d\n" \
"$status" "$agent_name" "$skill_count" "$csv_count" "$absolute_paths"
done
Troubleshooting
Issue: SKILL.md not found for skill directory
→ Solution: Create minimal SKILL.md with frontmatter template
Issue: Manifest shows absolute paths
→ Solution: Use sed to replace /root/.codex/skills/ with ./skills/
Issue: CSV count doesn't match directory count
→ Solution: Regenerate CSV from filesystem using inventory script
Issue: Skills not discoverable in provider configs
→ Solution: Add to AGENT.md + update claude/copilot/openai/agent.md
Each agent refactoring takes 1-2 hours following this checklist. Total project: 16-32 hours.
Audit Summary
Comprehensive audit of all 16 agent skill structures and refactoring plan for standardization and consolidation.
Current State
skills/directories ✅agent/skills/(already refactored)Skills Distribution (Org-Wide)
Audit Checklist / Scope
Findings / Risks
1. Manifest Accuracy Discrepancies (Priority: High)
2. Absolute Path References (Non-Portable) (Priority: High)
/root/.codex/skills/...)./skills/agent-attached/...)3. Inconsistent Skill Categorization (Priority: Medium)
4. Missing SKILL.md Entrypoints (Priority: Medium)
5. Redundant Skill Copies (Priority: Low)
Remediation Actions
Phase 1: Inventory & Validation (Week 1)
SKILLS_INVENTORY.md)Deliverable: Complete skills inventory with metadata
Phase 2: Create Missing SKILL.md Files (Week 1-2)
Deliverable: All skill directories have valid SKILL.md entrypoints
Phase 3: Normalize Skill Paths in Manifests (Week 2)
/root/.codex/skills/hermes/skill-name./skills/agent-attached/skill-namemanifests/skills.mdfor each agentmanifests/skills.csvfor each agentDeliverable: Updated manifests with relative, portable paths
Phase 4: Consolidate Duplicate Skills (Week 2-3)
skills/(outside agents/)Deliverable: Consolidated shared skills, updated manifests
Phase 5: Standardize Skill Categorization (Week 3)
agent-attached— Specialized for this agentlocal— General-purpose, locally managedplugin-provided— Via plugin integration (e.g., GitHub, Slack)platform-managed— Built-in, platform-provideddirectory-installed— Directory-scoped skillsskills/README.mdDeliverable: Standardized skill categorization across all 16 agents
Phase 6: Update Agent Metadata (Week 3-4)
agent/instructions/AGENTS.mdwith skill integration patternsclaude/agent.md,copilot/agent.md,openai/agent.mdto reference skillsDeliverable: Updated AGENT.md and provider configs for all agents
Phase 7: Validation & Testing (Week 4)
Deliverable: Validation report with 100% pass rate
Phase 8: CI/CD Integration (Week 4)
scripts/agents/regenerate-skills-manifest.cjs:Deliverable: Automated manifest validation in CI/CD
Acceptance Criteria
.github/reports/agents/SKILLS_AUDIT_2026-07-23.md)Additional Context
Per-Agent Breakdown (Top 10 by Skill Count)
Related Issues & PRs
Effort Estimate
Success Criteria for Refactoring
Definition of Ready (DoR)
Definition of Done (DoD)
.github/reports/agents/SKILLS_AUDIT_2026-07-23.md)Audit conducted: 2026-07-23 | Refactoring plan: 8 phases | Estimated effort: 40-60 hours
Per-Agent Refactoring Guide
This section provides step-by-step instructions for refactoring each of the 16 agents. Follow this process for each agent in sequence:
Agent Refactoring Checklist (For Each Agent)
Before Starting:
feat/refactor-{agent-name}-skillsPhase 1: Inventory & Validation
skills/agent-attached/skills/local/find agents/{agent}/ -type f -exec sha256sum {} \;Phase 2: Manifest Accuracy
manifests/skills.mdmanifests/skills.csvPhase 3: Normalize Paths
manifests/skills.md/root/.codex/skills/(absolute)./skills/agent-attached/or./skills/local/test -dchecksPhase 4: Categorize Skills
agent-attached/— Specialized for this agent onlylocal/— General-purpose, reusableplugin-provided/— Third-party integration (GitHub, Slack, etc)platform-managed/— Built-in, platform-provideddirectory-installed/— Directory-scoped skillsPhase 5: Validate SKILL.md Entrypoints
Phase 6: Update Agent Metadata
agents/{agent}/AGENT.md:Phase 7: Update Provider Instructions
agents/{agent}/claude/agent.md:agents/{agent}/copilot/agent.md:agents/{agent}/openai/agent.md:Phase 8: Update Core Instructions
agents/{agent}/agent/instructions/AGENTS.md:Phase 9: Regenerate Checksums
Phase 10: Validation Tests
ls skills/*/SKILL.md | wc -lmatches expected countgrep -r "/root/.codex" manifests/returns nothing (no absolute paths)find skills -type l -! -exec test -e {} \;Phase 11: Documentation Update
docs/AGENT_SKILL_REFACTORING.md:Phase 12: Create & Test PR
Agent Refactoring Order
Recommended sequence (by complexity/size):
Batch Refactoring Script
For Phase 1-2 batch work, use this script to validate all agents:
Troubleshooting
Issue: SKILL.md not found for skill directory
→ Solution: Create minimal SKILL.md with frontmatter template
Issue: Manifest shows absolute paths
→ Solution: Use
sedto replace/root/.codex/skills/with./skills/Issue: CSV count doesn't match directory count
→ Solution: Regenerate CSV from filesystem using inventory script
Issue: Skills not discoverable in provider configs
→ Solution: Add to AGENT.md + update claude/copilot/openai/agent.md
Each agent refactoring takes 1-2 hours following this checklist. Total project: 16-32 hours.