@agentlee5/agent-skills 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/.leeway/config.json +133 -0
  2. package/LICENSE +21 -0
  3. package/LeeWay-Standards/LICENSE +21 -0
  4. package/LeeWay-Standards/README.md +324 -0
  5. package/LeeWay-Standards/examples/NexusButton.tsx +90 -0
  6. package/LeeWay-Standards/examples/example-agent.js +89 -0
  7. package/LeeWay-Standards/package.json +61 -0
  8. package/LeeWay-Standards/schemas/leeway-config.schema.json +81 -0
  9. package/LeeWay-Standards/schemas/leeway-header.schema.json +63 -0
  10. package/LeeWay-Standards/src/agents/discovery/architecture-map-agent.js +134 -0
  11. package/LeeWay-Standards/src/agents/discovery/docs-agent.js +126 -0
  12. package/LeeWay-Standards/src/agents/discovery/explain-agent.js +95 -0
  13. package/LeeWay-Standards/src/agents/discovery/intent-registry-agent.js +119 -0
  14. package/LeeWay-Standards/src/agents/discovery/schema-agent.js +116 -0
  15. package/LeeWay-Standards/src/agents/discovery/sitemap-agent.js +88 -0
  16. package/LeeWay-Standards/src/agents/governance/align-agent.js +155 -0
  17. package/LeeWay-Standards/src/agents/governance/assess-agent.js +161 -0
  18. package/LeeWay-Standards/src/agents/governance/audit-agent.js +185 -0
  19. package/LeeWay-Standards/src/agents/integrity/circular-dependency-agent.js +88 -0
  20. package/LeeWay-Standards/src/agents/integrity/dependency-graph-agent.js +107 -0
  21. package/LeeWay-Standards/src/agents/integrity/duplicate-logic-agent.js +108 -0
  22. package/LeeWay-Standards/src/agents/integrity/import-agent.js +83 -0
  23. package/LeeWay-Standards/src/agents/integrity/module-policy-agent.js +94 -0
  24. package/LeeWay-Standards/src/agents/integrity/refactor-scan-agent.js +113 -0
  25. package/LeeWay-Standards/src/agents/integrity/syntax-agent.js +84 -0
  26. package/LeeWay-Standards/src/agents/mcp/endpoint-agent.js +106 -0
  27. package/LeeWay-Standards/src/agents/mcp/env-agent.js +111 -0
  28. package/LeeWay-Standards/src/agents/mcp/health-agent-lite.js +119 -0
  29. package/LeeWay-Standards/src/agents/mcp/manifest-agent.js +87 -0
  30. package/LeeWay-Standards/src/agents/mcp/port-agent.js +125 -0
  31. package/LeeWay-Standards/src/agents/mcp/process-agent.js +124 -0
  32. package/LeeWay-Standards/src/agents/mcp/runtime-agent.js +108 -0
  33. package/LeeWay-Standards/src/agents/mcp/transport-agent.js +78 -0
  34. package/LeeWay-Standards/src/agents/orchestration/doctor-agent.js +149 -0
  35. package/LeeWay-Standards/src/agents/orchestration/memory-agent-lite.js +125 -0
  36. package/LeeWay-Standards/src/agents/orchestration/router-agent.js +110 -0
  37. package/LeeWay-Standards/src/agents/security/permission-agent.js +98 -0
  38. package/LeeWay-Standards/src/agents/security/policy-agent.js +100 -0
  39. package/LeeWay-Standards/src/agents/security/privacy-agent.js +83 -0
  40. package/LeeWay-Standards/src/agents/security/prompt-security-agent.js +103 -0
  41. package/LeeWay-Standards/src/agents/security/secret-scan-agent.js +108 -0
  42. package/LeeWay-Standards/src/agents/security/tool-access-agent.js +105 -0
  43. package/LeeWay-Standards/src/agents/standards/authority-agent.js +114 -0
  44. package/LeeWay-Standards/src/agents/standards/discovery-pipeline-agent.js +91 -0
  45. package/LeeWay-Standards/src/agents/standards/header-agent.js +120 -0
  46. package/LeeWay-Standards/src/agents/standards/placement-agent.js +96 -0
  47. package/LeeWay-Standards/src/agents/standards/region-agent.js +99 -0
  48. package/LeeWay-Standards/src/agents/standards/registry-agent.js +153 -0
  49. package/LeeWay-Standards/src/agents/standards/tag-agent.js +111 -0
  50. package/LeeWay-Standards/src/cli/leeway.js +225 -0
  51. package/LeeWay-Standards/src/core/compliance-scorer.js +168 -0
  52. package/LeeWay-Standards/src/core/compliance-scorer.test.js +121 -0
  53. package/LeeWay-Standards/src/core/header-parser.js +207 -0
  54. package/LeeWay-Standards/src/core/header-parser.test.js +198 -0
  55. package/LeeWay-Standards/src/core/region-classifier.js +137 -0
  56. package/LeeWay-Standards/src/core/region-classifier.test.js +100 -0
  57. package/LeeWay-Standards/src/core/tag-validator.js +139 -0
  58. package/LeeWay-Standards/src/core/tag-validator.test.js +109 -0
  59. package/LeeWay-Standards/src/index.js +83 -0
  60. package/README.md +217 -0
  61. package/agent-config.yaml +456 -0
  62. package/agentbage.png.png +0 -0
  63. package/bin/leeway-skills-badge.js +52 -0
  64. package/bin/leeway-skills-mcp.js +48 -0
  65. package/bin/leeway-skills.js +160 -0
  66. package/bin/leeway-standards.js +49 -0
  67. package/config/.skillsignore +63 -0
  68. package/config/skills-config.json +70 -0
  69. package/documents/AGENT_LEARNING_REFERENCE.md +329 -0
  70. package/documents/AGENT_LEE_INTEGRATION.md +534 -0
  71. package/documents/COMPLETE_SYSTEM_OVERVIEW.md +502 -0
  72. package/documents/COMPREHENSIVE_SKILL_INTEGRATION_PLAN.md +644 -0
  73. package/documents/DIRECTORY_MAP.md +323 -0
  74. package/documents/EXTENDING.md +514 -0
  75. package/documents/FILE_DIRECTORY_GUIDE.md +427 -0
  76. package/documents/LEEWAY_BADGE_INTEGRATION.md +76 -0
  77. package/documents/LEEWAY_IMPLEMENTATION_SUMMARY.md +384 -0
  78. package/documents/LEEWAY_INTEGRATION_GUIDE.md +414 -0
  79. package/documents/LEEWAY_NPM_SDK.md +66 -0
  80. package/documents/LEEWAY_QUICK_START.md +288 -0
  81. package/documents/LEEWAY_SKILLS_BRANDING.md +375 -0
  82. package/documents/LEEWAY_SKILLS_MCP_SUMMARY.md +593 -0
  83. package/documents/LEEWAY_STANDARDS_COMPLIANCE.md +361 -0
  84. package/documents/LEEWAY_UNIFIED_ARCHITECTURE.md +473 -0
  85. package/documents/LEEWAY_WORKFLOWS_QUICK_REFERENCE.md +307 -0
  86. package/documents/LEEWAY_WORKFLOWS_STRATEGIC_PLAN.md +515 -0
  87. package/documents/LIFELONG_LEARNING_LAYER.md +478 -0
  88. package/documents/MCP_ARCHITECTURE.md +683 -0
  89. package/documents/QUICK_REFERENCE.md +301 -0
  90. package/documents/SETUP.md +325 -0
  91. package/documents/SETUP_SUMMARY.md +413 -0
  92. package/documents/SKILL_ACQUISITION_EXECUTIVE_SUMMARY.md +373 -0
  93. package/documents/SKILL_ACQUISITION_IMPLEMENTATION.md +692 -0
  94. package/documents/SKILL_ACQUISITION_MANIFEST.md +404 -0
  95. package/documents/SKILL_ACQUISITION_QUICK_REFERENCE.md +349 -0
  96. package/documents/SKILL_WORKFLOW_COMPOSITION_MATRIX.md +537 -0
  97. package/documents/STRUCTURE.md +382 -0
  98. package/documents/SYSTEM_TRANSFORMATION_SUMMARY.md +560 -0
  99. package/documents/USAGE.md +390 -0
  100. package/documents/WORKFLOW_ACQUISITION_MANIFEST.md +576 -0
  101. package/documents/aiskills.txt +460 -0
  102. package/mcp-server/README.md +697 -0
  103. package/mcp-server/dist/badge-proof.d.ts +66 -0
  104. package/mcp-server/dist/badge-proof.d.ts.map +1 -0
  105. package/mcp-server/dist/badge-proof.js +324 -0
  106. package/mcp-server/dist/badge-proof.js.map +1 -0
  107. package/mcp-server/dist/index.d.ts +64 -0
  108. package/mcp-server/dist/index.d.ts.map +1 -0
  109. package/mcp-server/dist/index.js +263 -0
  110. package/mcp-server/dist/index.js.map +1 -0
  111. package/mcp-server/dist/install-badge-proof.d.ts +3 -0
  112. package/mcp-server/dist/install-badge-proof.d.ts.map +1 -0
  113. package/mcp-server/dist/install-badge-proof.js +109 -0
  114. package/mcp-server/dist/install-badge-proof.js.map +1 -0
  115. package/mcp-server/package.json +43 -0
  116. package/mcp-server/src/badge-proof.ts +469 -0
  117. package/mcp-server/src/index.ts +355 -0
  118. package/mcp-server/src/install-badge-proof.ts +132 -0
  119. package/mcp-server/tsconfig.json +22 -0
  120. package/package.json +84 -0
  121. package/scripts/init-leeway.js +217 -0
  122. package/scripts/leeway-agents/compliance-monitor.js +374 -0
  123. package/scripts/leeway-agents/header-injector.js +321 -0
  124. package/scripts/skill-integration-toolkit.py +319 -0
  125. package/scripts/skills-registry.json +1117 -0
  126. package/scripts/sync-skills.ps1 +275 -0
  127. package/scripts/verify-leeway-setup.js +249 -0
  128. package/scripts/workflow-integration-toolkit.py +522 -0
  129. package/sdk/application-installer.js +92 -0
  130. package/sdk/index.js +43 -0
  131. package/sdk/paths.js +167 -0
  132. package/skills/agent-autonomy/autonomous-conductor/SKILL.md +206 -0
  133. package/skills/agent-autonomy/full-stack-delivery/SKILL.md +206 -0
  134. package/skills/agent-orchestration/multi-agent-orchestration/SKILL.md +68 -0
  135. package/skills/agent-patterns/agent-design-patterns/SKILL.md +70 -0
  136. package/skills/ai-ml/llm-prompting/SKILL.md +71 -0
  137. package/skills/ai-ml/ml-model-development/SKILL.md +67 -0
  138. package/skills/ai-ml/multimodal-systems/SKILL.md +71 -0
  139. package/skills/ai-ml/retrieval-generation-fine-tuning/SKILL.md +71 -0
  140. package/skills/architecture/system-design/SKILL.md +67 -0
  141. package/skills/code-analysis/refactoring/SKILL.md +64 -0
  142. package/skills/code-analysis/security-vulnerability-scanning/SKILL.md +71 -0
  143. package/skills/code-analysis/static-analysis/SKILL.md +64 -0
  144. package/skills/code-generation/full-stack-application/SKILL.md +70 -0
  145. package/skills/code-generation/microservices-architecture/SKILL.md +71 -0
  146. package/skills/code-generation/python-codegen/SKILL.md +64 -0
  147. package/skills/code-generation/typescript-codegen/SKILL.md +64 -0
  148. package/skills/data-analysis/advanced-analytics/SKILL.md +71 -0
  149. package/skills/data-analysis/pandas-analysis/SKILL.md +66 -0
  150. package/skills/database-design/database-design-optimization/SKILL.md +70 -0
  151. package/skills/debugging/javascript-debugging/SKILL.md +67 -0
  152. package/skills/debugging/python-debugging/SKILL.md +67 -0
  153. package/skills/devops/dockerfile-creation/SKILL.md +64 -0
  154. package/skills/devops/kubernetes-deployment/SKILL.md +65 -0
  155. package/skills/documentation/api-documentation/SKILL.md +67 -0
  156. package/skills/error-handling/resilience-patterns/SKILL.md +70 -0
  157. package/skills/git-workflow/git-collaboration/SKILL.md +67 -0
  158. package/skills/infrastructure/cicd-pipelines/SKILL.md +70 -0
  159. package/skills/infrastructure/infrastructure-as-code/SKILL.md +70 -0
  160. package/skills/observability/monitoring-and-observability/SKILL.md +70 -0
  161. package/skills/performance-optimization/performance-engineering/SKILL.md +70 -0
  162. package/skills/prompt-optimization/prompt-engineering-advanced/SKILL.md +70 -0
  163. package/skills/quality-assurance/deployment-validator/SKILL.md +382 -0
  164. package/skills/quality-assurance/web-security-sweep/SKILL.md +320 -0
  165. package/skills/rag-knowledge/rag-systems/SKILL.md +70 -0
  166. package/skills/research/knowledge-synthesis/SKILL.md +71 -0
  167. package/skills/security/authentication-authorization/SKILL.md +71 -0
  168. package/skills/security/code-security/SKILL.md +66 -0
  169. package/skills/security/secure-architecture/SKILL.md +71 -0
  170. package/skills/self-optimization/dev-loop-optimizer/SKILL.md +344 -0
  171. package/skills/self-optimization/memory-learning/SKILL.md +335 -0
  172. package/skills/self-optimization/runtime-self-profiling/SKILL.md +250 -0
  173. package/skills/testing/advanced-testing-strategies/SKILL.md +71 -0
  174. package/skills/testing/integration-testing/SKILL.md +66 -0
  175. package/skills/testing/load-testing-capacity/SKILL.md +71 -0
  176. package/skills/testing/unit-testing/SKILL.md +66 -0
  177. package/skills/tool-integration/custom-tool-creation/SKILL.md +70 -0
  178. package/skills/web-development/advanced-frontend-patterns/SKILL.md +71 -0
  179. package/skills/web-development/api-design/SKILL.md +71 -0
  180. package/skills/web-development/css-styling/SKILL.md +67 -0
  181. package/skills/web-development/react-development/SKILL.md +79 -0
  182. package/skills/workflow-composition/workflow-orchestration/SKILL.md +70 -0
@@ -0,0 +1,692 @@
1
+ # 🚀 Skill Acquisition Implementation Guide
2
+
3
+ **Immediate Action Plan**: Pull 250+ skills from elite GitHub repos
4
+ **Timeline**: Execute over 5 weeks
5
+ **Goal**: Unified, world-class skill library for Agent Lee
6
+
7
+ ---
8
+
9
+ ## 📦 Phase 1: Repository Cloning & Audit (Week 1)
10
+
11
+ ### Step 1.1: Create Source Directory
12
+
13
+ ```powershell
14
+ # Create sources directory
15
+ mkdir c:\Tools\AIskills\sources
16
+ cd c:\Tools\AIskills\sources
17
+
18
+ # Create subdirectories for each source
19
+ mkdir claude-skills
20
+ mkdir anthropic-skills
21
+ mkdir ui-ux-pro-max
22
+ mkdir openclaw-skills
23
+ mkdir community-skills
24
+ ```
25
+
26
+ ### Step 1.2: Clone Primary Source - alirezarezvani/claude-skills
27
+
28
+ ```powershell
29
+ cd c:\Tools\AIskills\sources\claude-skills
30
+ git clone https://github.com/alirezarezvani/claude-skills.git .
31
+
32
+ # Expected output:
33
+ # ✅ ~500MB repository
34
+ # ✅ 177+ skills in various directories
35
+ # ✅ 254 Python tools in /scripts/
36
+ # ✅ Templates, agents, personas
37
+
38
+ # Verify structure
39
+ dir # Should show: engineering/, marketing/, product-team/, etc.
40
+ ```
41
+
42
+ **Audit Output**:
43
+
44
+ ```
45
+ [Count Skills in claude-skills]
46
+ - engineering/: 24 core + 25 POWERFUL + 12 Playwright + 7 self-improving = 68 skills
47
+ - marketing-skill/: 43 skills in 7 pods
48
+ - product-team/: 12 skills
49
+ - project-management/: 6 skills
50
+ - ra-qm-team/: 12 skills
51
+ - c-level-advisor/: 28 skills
52
+ - business-growth/: 4 skills
53
+ - finance/: 2 skills
54
+ - scripts/: 254 Python tools
55
+ TOTAL: 177+ skills → ✅ READY
56
+ ```
57
+
58
+ ### Step 1.3: Clone Secondary Sources
59
+
60
+ ```powershell
61
+ # Anthropic Official Skills
62
+ cd c:\Tools\AIskills\sources\anthropic-skills
63
+ git clone https://github.com/anthropics/skills.git .
64
+
65
+ # UI/UX Pro Max
66
+ cd c:\Tools\AIskills\sources\ui-ux-pro-max
67
+ git clone https://github.com/nextlevelbuilder/ui-ux-pro-max-skill.git .
68
+
69
+ # OpenClaw Archive
70
+ cd c:\Tools\AIskills\sources\openclaw-skills
71
+ git clone https://github.com/openclaw/skills.git .
72
+
73
+ # Community (create separate directories for each)
74
+ mkdir c:\Tools\AIskills\sources\community-skills\superpowers
75
+ cd c:\Tools\AIskills\sources\community-skills\superpowers
76
+ git clone https://github.com/obra/superpowers.git .
77
+
78
+ # Repeat for other community skills as needed
79
+ ```
80
+
81
+ ### Step 1.4: Audit All Sources
82
+
83
+ ```python
84
+ # Create audit script (python3)
85
+ import os
86
+ import json
87
+ from pathlib import Path
88
+
89
+ sources_dir = Path("c:/Tools/AIskills/sources")
90
+ audit = {}
91
+
92
+ for source in sources_dir.iterdir():
93
+ if source.is_dir():
94
+ skill_count = 0
95
+ script_count = 0
96
+
97
+ # Count skills (SKILL.md files)
98
+ for skill_md in source.rglob("SKILL.md"):
99
+ skill_count += 1
100
+
101
+ # Count scripts
102
+ for script in source.rglob("*.py"):
103
+ script_count += 1
104
+
105
+ audit[source.name] = {
106
+ "skills": skill_count,
107
+ "python_scripts": script_count,
108
+ "path": str(source)
109
+ }
110
+
111
+ # Print audit report
112
+ for source, stats in audit.items():
113
+ print(f"{source}: {stats['skills']} skills, {stats['python_scripts']} tools")
114
+
115
+ # Save audit
116
+ with open("sources_audit.json", "w") as f:
117
+ json.dump(audit, f, indent=2)
118
+ ```
119
+
120
+ **Expected Audit Output**:
121
+
122
+ ```
123
+ claude-skills: 177 skills, 254 python_scripts
124
+ anthropic-skills: 15 skills, 45 python_scripts
125
+ ui-ux-pro-max: 1 skill, 8 python_scripts
126
+ openclaw-skills: 50+ skills, 25 python_scripts
127
+ community-skills: 30+ skills, 15 python_scripts
128
+
129
+ TOTAL: 250+ skills, 350+ tools ✅
130
+ ```
131
+
132
+ ---
133
+
134
+ ## 🎯 Phase 2: Category Mapping & Preparation (Week 1)
135
+
136
+ ### Step 2.1: Create Unified Category Structure
137
+
138
+ ```powershell
139
+ # Create standardized category directories
140
+ $categories = @(
141
+ "code-generation",
142
+ "code-analysis",
143
+ "testing-qa",
144
+ "devops-deployment",
145
+ "database-design",
146
+ "api-development",
147
+ "data-engineering",
148
+ "machine-learning",
149
+ "ai-orchestration",
150
+ "security-compliance",
151
+ "ui-ux-design",
152
+ "frontend-web",
153
+ "mobile-development",
154
+ "product-management",
155
+ "marketing-growth",
156
+ "project-management",
157
+ "business-operations",
158
+ "c-suite-advisory",
159
+ "compliance-regulatory",
160
+ "documentation",
161
+ "communication",
162
+ "meta-skills",
163
+ "specialized"
164
+ )
165
+
166
+ foreach ($cat in $categories) {
167
+ mkdir "c:\Tools\AIskills\skills\$cat"
168
+ }
169
+ ```
170
+
171
+ ### Step 2.2: Create Category Mapping Document
172
+
173
+ ```markdown
174
+ # Category Mapping - Skills Allocation
175
+
176
+ ## code-generation (5 skills)
177
+
178
+ - typescript-codegen (existing)
179
+ - python-codegen (existing)
180
+ - fullstack-codegen (existing)
181
+ - go-lang-codegen (NEW from claude-skills)
182
+ - rust-code-generator (NEW from claude-skills)
183
+
184
+ ## code-analysis (8 skills)
185
+
186
+ - static-analysis (existing)
187
+ - refactoring-assistant (existing)
188
+ - api-design-reviewer (NEW - claude-skills POWERFUL)
189
+ - security-code-scanner (NEW)
190
+ - performance-analyzer (NEW)
191
+ - dependency-auditor (NEW)
192
+ - codebase-navigator (NEW)
193
+ - tech-debt-tracker (NEW)
194
+
195
+ [... continue for all 23 categories ...]
196
+ ```
197
+
198
+ ### Step 2.3: Prepare Deduplication Index
199
+
200
+ Create `deduplication_index.json`:
201
+
202
+ ```json
203
+ {
204
+ "existing_leeway_skills": 44,
205
+ "planned_acquisitions": 206,
206
+ "expected_total": 250,
207
+ "deduplication_rules": {
208
+ "ci-cd-pipeline-pipeline": {
209
+ "leeway": "ci-cd-pipeline-generator (v1, basic)",
210
+ "source_skill": "claude-skills:ci-cd-pipeline-builder (POWERFUL tier)",
211
+ "decision": "REPLACE_AND_ENHANCE",
212
+ "action": "Archive original, import POWERFUL version"
213
+ },
214
+ "security-auditor": {
215
+ "leeway": "basic security check",
216
+ "source_skill": "claude-skills:skill-security-auditor (POWERFUL)",
217
+ "decision": "REPLACE",
218
+ "action": "Use production-grade security auditor"
219
+ }
220
+ }
221
+ }
222
+ ```
223
+
224
+ ---
225
+
226
+ ## 🔄 Phase 3: Batch Processing - Core Skills (Week 2)
227
+
228
+ ### Step 3.1: Batch 1 - Engineering Core (24 skills)
229
+
230
+ ```python
231
+ # batch_normalize_skills.py
232
+ from skill_integration_toolkit import LeewaySkillNormalizer
233
+ from pathlib import Path
234
+
235
+ normalizer = LeewaySkillNormalizer("c:/Tools/AIskills/skills")
236
+
237
+ # Engineering core skills
238
+ engineering_skills = [
239
+ ("c:/Tools/AIskills/sources/claude-skills/engineering",
240
+ [
241
+ "architecture-decision-framework",
242
+ "frontend-expert",
243
+ "backend-architecture",
244
+ "fullstack-engineer",
245
+ "qa-automation",
246
+ # ... all 24 core skills
247
+ ])
248
+ ]
249
+
250
+ for source_base, skill_names in engineering_skills:
251
+ for skill_name in skill_names:
252
+ skill_path = f"{source_base}/{skill_name}"
253
+
254
+ # Normalize to Leeway format
255
+ result = normalizer.normalize_skill(
256
+ source_path=skill_path,
257
+ category="code-generation", # ← automatically route based on skill
258
+ source_repo="alirezarezvani/claude-skills",
259
+ skill_id=skill_name
260
+ )
261
+
262
+ if result:
263
+ print(f"✅ {skill_name}")
264
+ else:
265
+ print(f"⏭️ SKIPPED: {skill_name} (duplicate or error)")
266
+
267
+ # Generate report
268
+ report = normalizer.generate_integration_report()
269
+ print(f"\nBatch 1 Report: {report['normalized_skills']} skills normalized")
270
+ ```
271
+
272
+ **Expected Output**:
273
+
274
+ ```
275
+ ✅ architecture-decision-framework
276
+ ✅ frontend-expert
277
+ ✅ backend-architecture
278
+ ... (24 total)
279
+ Batch 1 Report: 24 skills normalized, 0 skipped
280
+ ```
281
+
282
+ ### Step 3.2: Extract Python Tools from Batch 1
283
+
284
+ ```bash
285
+ # Copy scripts
286
+ cp -r sources/claude-skills/engineering/*/scripts/* skills/code-generation/*/scripts/
287
+ cp -r sources/claude-skills/engineering-team/*/scripts/* skills/devops-deployment/*/scripts/
288
+
289
+ # Verify no external dependencies in Python tools
290
+ python3 -c "
291
+ import ast
292
+ import os
293
+
294
+ for script in os.walk('skills/'):
295
+ if script[-1]: # files
296
+ for file in script[-1]:
297
+ if file.endswith('.py'):
298
+ with open(os.path.join(script[0], file)) as f:
299
+ try:
300
+ tree = ast.parse(f.read())
301
+ imports = [node.names[0].name for node in ast.walk(tree)
302
+ if isinstance(node, ast.Import)]
303
+ # Check for stdlib only
304
+ except:
305
+ pass
306
+ "
307
+ ```
308
+
309
+ ### Step 3.3: Batch 1 Quality Assurance
310
+
311
+ ```python
312
+ # qa_batch_1.py
313
+ import json
314
+ from pathlib import Path
315
+
316
+ leeway_skills = Path("c:/Tools/AIskills/skills")
317
+
318
+ # Checklist for each skill
319
+ qa_results = []
320
+
321
+ for category_dir in leeway_skills.glob("code-*"):
322
+ for skill_dir in category_dir.glob("*"):
323
+ checks = {
324
+ "skill_id": skill_dir.name,
325
+ "has_skill_md": (skill_dir / "SKILL.md").exists(),
326
+ "has_metadata": (skill_dir / "metadata.json").exists(),
327
+ "has_readme": (skill_dir / "README.md").exists(),
328
+ "has_scripts": (skill_dir / "scripts").exists(),
329
+ "yaml_valid": check_yaml_frontmatter(skill_dir / "SKILL.md"),
330
+ "no_secrets": scan_for_secrets(skill_dir),
331
+ "compliant": True # Set to False if any check fails
332
+ }
333
+ qa_results.append(checks)
334
+
335
+ # Report
336
+ passed = sum(1 for r in qa_results if r["compliant"])
337
+ print(f"QA: {passed}/{len(qa_results)} skills passed")
338
+ ```
339
+
340
+ ### Step 3.4: Batch 2 - POWERFUL Tier (25 skills)
341
+
342
+ Repeat steps 3.1-3.3 for POWERFUL tier skills:
343
+
344
+ - rag-architect
345
+ - database-designer
346
+ - security-auditor
347
+ - ci-cd-builder
348
+ - mcp-server-builder
349
+ - etc.
350
+
351
+ **Target**: All 25 POWERFUL skills normalized and verified by mid-Week 2
352
+
353
+ ---
354
+
355
+ ## 📊 Phase 4: Specialized Batches (Week 2-3)
356
+
357
+ ### Step 4.1: Marketing Skills Batch (43 skills)
358
+
359
+ ```python
360
+ # Process 7 marketing pods
361
+ marketing_pods = {
362
+ "content": 8,
363
+ "seo": 5,
364
+ "cro": 6,
365
+ "channels": 6,
366
+ "growth": 4,
367
+ "intelligence": 4,
368
+ "sales": 2
369
+ }
370
+
371
+ for pod, count in marketing_pods.items():
372
+ # Normalize all skills in pod
373
+ # Extract scripts
374
+ # Verify orchestration routing
375
+ # Test skill composition
376
+
377
+ # Expected: 43 marketing skills in 'marketing-growth' category
378
+ ```
379
+
380
+ ### Step 4.2: C-Suite & Executive Skills (28 skills)
381
+
382
+ ```python
383
+ # Process C-suite advisory skills
384
+ c_suite_roles = [
385
+ "ceo-advisor",
386
+ "cto-advisor",
387
+ "cfo-advisor",
388
+ # ... 28 total roles and advisors
389
+ ]
390
+
391
+ for skill in c_suite_roles:
392
+ # Normalize
393
+ # Create persona if applicable
394
+ # Link to orchestration protocol
395
+ ```
396
+
397
+ ### Step 4.3: Design System Generator (1 skill + assets)
398
+
399
+ ```python
400
+ # Special handling for UI/UX Pro Max design system
401
+
402
+ # 1. Normalize the skill
403
+ normalizer.normalize_skill(
404
+ source_path="sources/ui-ux-pro-max/src/ui-ux-pro-max",
405
+ category="ui-ux-design",
406
+ source_repo="nextlevelbuilder/ui-ux-pro-max-skill",
407
+ skill_id="design-system-generator"
408
+ )
409
+
410
+ # 2. Extract and embed reference assets
411
+ references = {
412
+ "styles.csv": 67,
413
+ "colors.csv": 161,
414
+ "typography.csv": 57,
415
+ "charts.csv": 25,
416
+ "stacks.csv": 13,
417
+ "ux-guidelines.csv": 99,
418
+ "industries.json": 161
419
+ }
420
+
421
+ for asset, count in references.items():
422
+ # Copy from source
423
+ shutil.copy(
424
+ f"sources/ui-ux-pro-max/src/ui-ux-pro-max/data/{asset}",
425
+ f"skills/ui-ux-design/design-system-generator/references/{asset}"
426
+ )
427
+ print(f"✅ Embedded: {asset} ({count} entries)")
428
+
429
+ # 3. Copy search.py script
430
+ shutil.copy(
431
+ "sources/ui-ux-pro-max/src/ui-ux-pro-max/scripts/search.py",
432
+ "skills/ui-ux-design/design-system-generator/scripts/search.py"
433
+ )
434
+ ```
435
+
436
+ ---
437
+
438
+ ## 🏗️ Phase 5: Integration & Indexing (Week 4)
439
+
440
+ ### Step 5.1: Build Master Registry
441
+
442
+ ```python
443
+ # build_master_registry.py
444
+ from skill_integration_toolkit import SkillRegistry
445
+
446
+ registry = SkillRegistry("c:/Tools/AIskills/skills")
447
+
448
+ # Build complete registry
449
+ all_skills = registry.build_registry()
450
+ print(f"✅ Indexed {len(all_skills)} skills")
451
+
452
+ # Build search index
453
+ index = registry.build_search_index()
454
+ print(f"✅ Built search index with {len(index)} entries")
455
+
456
+ # Save registry
457
+ registry.save_registry("c:/Tools/AIskills/skill-registry-complete.json")
458
+
459
+ # Generate summary
460
+ summary = {
461
+ "total_skills": len(all_skills),
462
+ "by_category": {},
463
+ "by_tier": {},
464
+ "by_source": {}
465
+ }
466
+
467
+ for skill in all_skills:
468
+ # Aggregate stats
469
+ category = skill["category"]
470
+ tier = skill.get("tier", "core")
471
+ source = skill.get("source", {}).get("repo", "unknown")
472
+
473
+ summary["by_category"][category] = summary["by_category"].get(category, 0) + 1
474
+ summary["by_tier"][tier] = summary["by_tier"].get(tier, 0) + 1
475
+ summary["by_source"][source] = summary["by_source"].get(source, 0) + 1
476
+
477
+ print(json.dumps(summary, indent=2))
478
+ ```
479
+
480
+ **Expected Output**:
481
+
482
+ ```
483
+ ✅ Indexed 250 skills
484
+ ✅ Built search index with 580 entries
485
+
486
+ Summary:
487
+ {
488
+ "total_skills": 250,
489
+ "by_category": {
490
+ "code-generation": 5,
491
+ "marketing-growth": 43,
492
+ "c-suite-advisory": 28,
493
+ ...
494
+ },
495
+ "by_tier": {
496
+ "core": 120,
497
+ "advanced": 85,
498
+ "specialized": 45
499
+ },
500
+ "by_source": {
501
+ "alirezarezvani/claude-skills": 177,
502
+ "anthropics/skills": 15,
503
+ "nextlevelbuilder/ui-ux-pro-max": 1,
504
+ ...
505
+ }
506
+ }
507
+ ```
508
+
509
+ ### Step 5.2: Generate Deduplication Report
510
+
511
+ ```python
512
+ # deduplication_report.py
513
+ dedup_report = {
514
+ "total_unique_skills": 250,
515
+ "conflicts_resolved": 8,
516
+ "replaced_skills": 3,
517
+ "merged_skills": 5,
518
+ "decisions": [
519
+ {
520
+ "skill": "ci-cd-pipeline-builder",
521
+ "conflict_with": "ci-cd-pipeline-generator",
522
+ "decision": "REPLACE",
523
+ "reason": "POWERFUL tier is more comprehensive"
524
+ },
525
+ # ... other decisions
526
+ ]
527
+ }
528
+
529
+ with open("deduplication_report.json", "w") as f:
530
+ json.dump(dedup_report, f, indent=2)
531
+
532
+ print(f"✅ Deduplication Report: {len(dedup_report['decisions'])} decisions made")
533
+ ```
534
+
535
+ ---
536
+
537
+ ## ✅ Phase 6: Testing & Validation (Week 5)
538
+
539
+ ### Step 6.1: Verify Agent Lee Integration
540
+
541
+ ```python
542
+ # test_with_agent_lee.py
543
+
544
+ # 1. Start MCP server
545
+ mcp_server = start_mcp_server("c:/Tools/AIskills/mcp-server")
546
+
547
+ # 2. Test skill discovery via MCP
548
+ discovered_tools = mcp_server.list_tools()
549
+ print(f"✅ Discovered {len(discovered_tools)} skills via MCP")
550
+
551
+ # 3. Test execution of sample skills
552
+ test_skills = [
553
+ ("typescript-codegen", {"instruction": "Create simple API", "context": {}}),
554
+ ("senior-architect", {"instruction": "Design scalable system", "context": {}}),
555
+ ("marketing-orchestrator", {"instruction": "Plan launch", "context": {}}),
556
+ ]
557
+
558
+ for skill_name, params in test_skills:
559
+ result = mcp_server.call_tool(skill_name, params)
560
+ print(f"✅ {skill_name} execution successful")
561
+
562
+ # 4. Test skill composition
563
+ print("✅ All 250 skills verified with Agent Lee")
564
+ ```
565
+
566
+ ### Step 6.2: Final Documentation
567
+
568
+ Create `FINAL_SKILL_LIBRARY_README.md`:
569
+
570
+ ```markdown
571
+ # Leeway Skills - Complete Unified Library
572
+
573
+ ## 📊 Library Statistics
574
+
575
+ - **Total Skills**: 250+
576
+ - **Categories**: 23
577
+ - **Python Tools**: 350+
578
+ - **Compliance**: 100% Leeway Standards
579
+ - **Sources**: 5 elite repositories
580
+ - **Tier Distribution**:
581
+ - Core: 120 skills
582
+ - Advanced: 85 skills
583
+ - Specialized: 45 skills
584
+
585
+ ## 🚀 Quick Start
586
+
587
+ 1. Ensure MCP server is running
588
+ 2. Agent Lee automatically discovers all 250 skills
589
+ 3. Call any skill via MCP protocol
590
+ 4. Use skill orchestration for complex workflows
591
+
592
+ ## 📚 Skills by Domain
593
+
594
+ ### Engineering (68 skills)
595
+
596
+ - Code generation (5)
597
+ - Code analysis (8)
598
+ - Testing & QA (15)
599
+ - DevOps & infra (10)
600
+ - Database design (6)
601
+ - API development (8)
602
+ - Security (10)
603
+
604
+ ### Business & Growth (95 skills)
605
+
606
+ - Marketing (43)
607
+ - Product Management (12)
608
+ - Project Management (6)
609
+ - Business Operations (10)
610
+ - C-Suite Advisory (28)
611
+ - Sales & Contracts (4)
612
+ - Finance (2)
613
+
614
+ ### Design & UX (20 skills)
615
+
616
+ - UI/UX Design systems
617
+ - Frontend development
618
+ - User research
619
+ - Design patterns
620
+
621
+ ### Compliance & Meta (42+ skills)
622
+
623
+ - Regulatory & quality
624
+ - Security & compliance
625
+ - Meta-skills & orchestration
626
+ - Community & specialized
627
+
628
+ ## 🔧 Using Skills with Agent Lee
629
+
630
+ See AGENT_LEE_INTEGRATION.md for complete integration guide.
631
+
632
+ ## 📖 Skill Registry
633
+
634
+ Search all 250 skills in: skill-registry-complete.json
635
+ ```
636
+
637
+ ---
638
+
639
+ ## 🎯 Success Criteria
640
+
641
+ ✅ **Phase 1**: All 5 source repos cloned and audited
642
+ ✅ **Phase 2**: Category structure ready, 250 skill slots prepared
643
+ ✅ **Phase 3**: Core 68 engineering skills normalized
644
+ ✅ **Phase 4**: Specialized batches processed (135+ skills)
645
+ ✅ **Phase 5**: Master registry built, 250 skills indexed
646
+ ✅ **Phase 6**: All skills tested with Agent Lee, documented
647
+
648
+ **Final Status**: 250+ world-class skills, ready for production 🚀
649
+
650
+ ---
651
+
652
+ ## 📞 Troubleshooting
653
+
654
+ ### Skill Won't Normalize
655
+
656
+ ```python
657
+ # Debug script
658
+ from skill_integration_toolkit import LeewaySkillNormalizer
659
+ normalizer = LeewaySkillNormalizer("c:/Tools/AIskills/skills")
660
+
661
+ try:
662
+ normalizer.normalize_skill(
663
+ source_path="path/to/skill",
664
+ category="category",
665
+ source_repo="repo"
666
+ )
667
+ except Exception as e:
668
+ print(f"Error: {e}")
669
+ # Check SKILL.md exists
670
+ # Check YAML frontmatter is valid
671
+ # Check no circular dependencies
672
+ ```
673
+
674
+ ### MCP Server Won't List Skills
675
+
676
+ ```powershell
677
+ # Verify skills directory
678
+ dir c:\Tools\AIskills\skills\
679
+
680
+ # Verify script-registry-complete.json exists
681
+ ls c:\Tools\AIskills\skill-registry-complete.json
682
+
683
+ # Check MCP server logs
684
+ cat c:\Tools\AIskills\.leeway\logs\mcp-*.log
685
+ ```
686
+
687
+ ---
688
+
689
+ **Timeline**: 5 weeks to execution
690
+ **Result**: Unified 250+ skill library for world-class LLM capabilities
691
+ **Status**: READY FOR LAUNCH 🎉
692
+