@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,515 @@
1
+ # 🔄 Leeway Workflows - Skill Orchestration Library
2
+
3
+ **Agent-Executable Format | For LLM Lifelong Learning**
4
+ **Framework**: Leeway Standards 1.0.0 + Workflow Engine
5
+
6
+ ---
7
+
8
+ ## System Overview
9
+
10
+ **Purpose**: Provide LLM agents with pre-engineered skill sequences (workflows) that encode proven automation patterns, decision logic, and execution strategies.
11
+
12
+ **Result**: When an agent loads a workflow, it automatically:
13
+
14
+ 1. Loads all required skills
15
+ 2. Executes in proven sequence
16
+ 3. Learns from execution (memory system)
17
+ 4. Improves for future use
18
+ 5. Shares patterns with other agents
19
+
20
+ ---
21
+
22
+ ## 50+ Workflows Acquired From 5 Elite Sources
23
+
24
+ Complete inventory structured for agent consumption:
25
+
26
+ - `workflow.ai-moderator` — Spam/AI-content detection and moderation
27
+ - `workflow.repo-assist` — Daily repo assistant (triage, fix, improve, summarize)
28
+ - Uses skills: moderation, triage, bug-fixing, improvement-suggestion
29
+
30
+ **Pattern Encoding**:
31
+
32
+ ```
33
+ GitHub Agentics Workflow
34
+ ├── trigger: [schedule, event, manual]
35
+ ├── workflow_steps: [ordered tasks]
36
+ ├── decision_gates: [conditional branching]
37
+ ├── tools_required: [MCP servers]
38
+ ├── output: [artifacts, reports, PRs]
39
+ └── permissions: [read/write/admin]
40
+ ```
41
+
42
+ ### 2. **CrewAI** (joaomdmoura/crewAI) - Multi-Agent Orchestration
43
+
44
+ **Repository**: https://github.com/crewAIInc/crewAI
45
+ **Stars**: 46.1k | **Quality**: ⭐⭐⭐⭐⭐ (Most downloaded multi-agent framework)
46
+ **Type**: Python + YAML (Crews + Flows)
47
+
48
+ **Workflow Patterns to Extract (15+ templates)**:
49
+
50
+ #### Crew Patterns (Autonomous Collaboration)
51
+
52
+ - `workflow.crew-sequential` — Linear task execution (Crew + sequential process)
53
+ - `workflow.crew-hierarchical` — Manager delegates to specialists (Crew + hierarchical)
54
+ - `workflow.crew-parallel` — Multiple agents work on parallel tasks (requires coordination)
55
+
56
+ #### Flow Patterns (Precise Control)
57
+
58
+ - `workflow.flow-event-driven` — Trigger workflows on events (@listen, @router)
59
+ - `workflow.flow-conditional` — Branch based on conditions (or*, and*)
60
+ - `workflow.flow-with-state` — Maintain stateful execution with BaseModel states
61
+
62
+ #### Real-World Examples to Implement
63
+
64
+ - `workflow.research-writing` — Researcher → Writer → Reporter trio
65
+ - `workflow.trip-planner` — Multi-step travel planning coordination
66
+ - `workflow.stock-analysis` — Data gathering → Analysis → Report generation
67
+ - `workflow.job-description` — Job spec → Interview questions → Assessment tools
68
+
69
+ **CrewAI Strength**: Encodes agent _collaboration patterns_ (how agents work together)
70
+
71
+ **Code Pattern**:
72
+
73
+ ```yaml
74
+ # agents.yaml
75
+ researcher:
76
+ role: "Senior Researcher"
77
+ goal: "Find latest {topic} info"
78
+ backstory: "Expert with attention to detail"
79
+
80
+ reporter:
81
+ role: "Report Writer"
82
+ goal: "Create detailed reports"
83
+ backstory: "Clear, concise communicator"
84
+
85
+ # tasks.yaml
86
+ research_task:
87
+ description: "Research {topic}"
88
+ agent: researcher
89
+
90
+ report_task:
91
+ description: "Write based on research"
92
+ agent: reporter
93
+ output_file: "report.md"
94
+ ```
95
+
96
+ ### 3. **Microsoft AutoGen** (microsoft/autogen) - Research-Grade FSM
97
+
98
+ **Repository**: https://github.com/microsoft/autogen
99
+ **Stars**: 55.6k | **Quality**: ⭐⭐⭐⭐⭐ (Research + Production)
100
+ **Type**: Python (Finite State Machines with LLM transitions)
101
+
102
+ **Workflow Patterns (12+ FSM-based)**:
103
+
104
+ #### Conversation Patterns
105
+
106
+ - `workflow.two-agent-chat` — Direct agent-to-agent conversation
107
+ - `workflow.group-chat` — Multi-agent group discussion with speaker selection
108
+ - `workflow.debate-consensus` — Agents debate → reach consensus
109
+
110
+ #### State Machine Patterns
111
+
112
+ - `workflow.fsm-with-states` — Define states, LLM chooses transitions
113
+ - `workflow.fsm-with-guards` — Guarded transitions (conditions for state change)
114
+ - `workflow.fsm-recovery` — Error states with retry/recovery logic
115
+
116
+ #### MCP Integration
117
+
118
+ - `workflow.mcp-web-browsing` — Playwright MCP + agent for web tasks
119
+ - `workflow.mcp-code-execution` — Code execution with safety sandboxing
120
+
121
+ **AutoGen Strength**: Encodes _multi-turn conversation logic_ and state management
122
+
123
+ ---
124
+
125
+ ### 4. **LangGraph** (langchain-ai/langgraph) - DAG Orchestration
126
+
127
+ **Repository**: https://github.com/langchain-ai/langgraph
128
+ **Stars**: 26.4k | **Quality**: ⭐⭐⭐⭐⭐ (Production-grade orchestration)
129
+ **Type**: Python (DAG-based State Graphs)
130
+
131
+ **Workflow Patterns (18+ graph-based)**:
132
+
133
+ #### Node & Edge Patterns
134
+
135
+ - `workflow.linear-dag` — Simple A → B → C pipeline
136
+ - `workflow.branching-dag` — Conditional splits (if/else paths)
137
+ - `workflow.cycling-dag` — Loops with termination conditions
138
+ - `workflow.subgraph` — Nested workflows (hierarchical composition)
139
+
140
+ #### Checkpointing & Persistence
141
+
142
+ - `workflow.durable-execution` — Save state, resume from failures
143
+ - `workflow.human-interrupt` — Pause for human review, resume
144
+ - `workflow.streaming` — Yield results as computation progresses
145
+
146
+ #### Vector DB Integration
147
+
148
+ - `workflow.rag-pipeline` — Query → Retrieve → Generate
149
+ - `workflow.memory-augmented` — Retrieve previous context for reasoning
150
+
151
+ **LangGraph Strength**: Encodes _stateful DAGs_ with checkpointing (production deployments)
152
+
153
+ **Code Pattern**:
154
+
155
+ ```python
156
+ from langgraph.graph import START, StateGraph
157
+
158
+ class State(TypedDict):
159
+ text: str
160
+ analysis: str
161
+
162
+ def analyze(state):
163
+ return {"analysis": process(state["text"])}
164
+
165
+ graph = StateGraph(State)
166
+ graph.add_node("analyze", analyze)
167
+ graph.add_edge(START, "analyze")
168
+ compiled = graph.compile()
169
+ ```
170
+
171
+ ### 5. **SuperAGI** (TransformerOptimus/SuperAGI) - Enterprise Agent OS
172
+
173
+ **Repository**: https://github.com/TransformerOptimus/SuperAGI
174
+ **Stars**: 17.3k | **Quality**: ⭐⭐⭐⭐ (Enterprise-ready)
175
+ **Type**: Python + FastAPI + React UI
176
+
177
+ **Workflow Type**: Agent Workflow Architecture with Toolkits
178
+
179
+ **Patterns to Extract (8+)**:
180
+
181
+ - `workflow.long-running-agent` — Persistent agent execution with memory
182
+ - `workflow.multi-toolkit` — Compose multiple tool ecosystems
183
+ - `workflow.agent-spawning` — Dynamically spawn sub-agents
184
+ - `workflow.permission-based` — Workflow controlled by permission system
185
+ - `workflow.performance-monitoring` — Telemetry-instrumented execution
186
+
187
+ ---
188
+
189
+ ## 🏗️ Leeway Workflow Architecture
190
+
191
+ ### Fundamental Structure (WORKFLOW.md Format)
192
+
193
+ ```markdown
194
+ ---
195
+ id: workflow.unique-id
196
+ name: "Human-Readable Workflow Name"
197
+ category: workflow-category
198
+ subtype: [sequential | hierarchical | event-driven | fsm | dag | crew]
199
+ skill_bundle: [skill-id-1, skill-id-2, skill-id-3, ...]
200
+ composition_pattern: [CrewAI | LangGraph | AutoGen | GitHub Agentics | SuperAGI]
201
+ trigger: [schedule | event | manual | api]
202
+ tags: [tag1, tag2, ...]
203
+ version: "1.0.0"
204
+ source:
205
+ repo: "githubnext/agentics | crewai | microsoft/autogen | langgraph | superagi"
206
+ url: "https://github.com/..."
207
+ acquired_date: "2026-03-15"
208
+ compliance:
209
+ governance: "leeway-standards-1.0.0"
210
+ required_skills_present: true
211
+ skill_coverage: 85
212
+ estimated_runtime: "5min - 30min"
213
+ success_metrics:
214
+ - metric_name: "Workflow completion"
215
+ target: "> 95%"
216
+ ---
217
+
218
+ ## Purpose
219
+
220
+ [Clear description of what this workflow does]
221
+
222
+ ## Skill Bundle
223
+
224
+ Required skills (will be auto-loaded):
225
+
226
+ - `skill-id-1`: Description (used for X step)
227
+ - `skill-id-2`: Description (used for Y step)
228
+
229
+ ## Execution Pattern
230
+
231
+ [Diagram showing flow]
232
+
233
+ ### Step 1: [Name]
234
+
235
+ - Skills used: [skill-ids]
236
+ - Input: [what data it needs]
237
+ - Output: [what it produces]
238
+ - Validation: [how success is verified]
239
+
240
+ ### Step 2: [Name]
241
+
242
+ ...
243
+
244
+ ## Orchestration
245
+
246
+ [Code showing how to invoke in chosen framework]
247
+
248
+ ## Error Handling
249
+
250
+ [What to do if any step fails]
251
+
252
+ ## Success Criteria
253
+
254
+ [When workflow is considered successful]
255
+ ```
256
+
257
+ ---
258
+
259
+ ## 📋 9 Workflow Categories (Leeway Standard)
260
+
261
+ These organize all 50+ workflows by domain (parallel to skill categories):
262
+
263
+ | Category | Count | Example Workflows | Main Skills Used |
264
+ | --------------------------------- | ----- | ---------------------------------------------------------- | ------------------------------ |
265
+ | **Automation & Orchestration** | 8 | sequential-task, hierarchical-delegation, event-router | task-execution, state-mgmt |
266
+ | **Analysis & Insights** | 7 | daily-status, weekly-report, trend-analysis | data-analysis, aggregation |
267
+ | **Code Quality** | 6 | ci-failure-recovery, code-review, test-improvement | code-analysis, testing |
268
+ | **Security & Compliance** | 5 | malicious-detection, access-audit, patch-mgmt | security-scan, risk-assessment |
269
+ | **Product & Growth** | 5 | research-synthesis, market-analysis, user-feedback | research, analysis |
270
+ | **DevOps & Infrastructure** | 4 | deployment-pipeline, resource-optimization, health-monitor | deployment, monitoring |
271
+ | **Collaboration & Communication** | 4 | status-summary, team-coordination, feedback-loop | summarization, coordination |
272
+ | **RAG & Knowledge** | 3 | document-retrieval, knowledge-update, context-injection | retrieval, embedding |
273
+ | **Meta/System Workflows** | 3 | workflow-optimizer, self-improvement, telemetry-collection | optimization, monitoring |
274
+
275
+ ---
276
+
277
+ ## 🔗 Skill-to-Workflow Mapping (Key Innovation)
278
+
279
+ **Problem**: 250 skills exist independently. LLMs don't know which to bundle.
280
+ **Solution**: Workflows act as **skill bundles** pre-defined with proven sequencing.
281
+
282
+ ### Example: `workflow.ci-failure-recovery`
283
+
284
+ **What it does**: When CI fails, this workflow automatically:
285
+
286
+ 1. Fetches the failing CI log
287
+ 2. Analyzes the error
288
+ 3. Suggests fixes
289
+ 4. Creates a PR with the fix
290
+
291
+ **Skill Bundle**:
292
+
293
+ ```
294
+ Requires:
295
+ - skill.ci-log-parser (extract failure reason)
296
+ - skill.error-diagnosis (determine root cause)
297
+ - skill.code-fix-generator (write solution)
298
+ - skill.git-operations (create PR)
299
+
300
+ Dependencies:
301
+ - skill.shell-execution (optional, for testing)
302
+ - skill.code-review-prompt (optional, for validation)
303
+ ```
304
+
305
+ **Execution** (in CrewAI):
306
+
307
+ ```yaml
308
+ agents:
309
+ analyzer: error-diagnosis expert
310
+ coder: code-fix expert
311
+
312
+ tasks:
313
+ parse_log: analyzer agent parses CI failure
314
+ generate_fix: coder agent writes solution
315
+ create_pr: coder agent commits + creates PR
316
+ ```
317
+
318
+ This **decouples skill acquisition from workflow execution**.
319
+
320
+ ---
321
+
322
+ ## 🎯 5-Week Integration Roadmap
323
+
324
+ ### Week 1: Workflow Acquisition & Audit
325
+
326
+ - Clone 5 source repositories
327
+ - Audit all 50+ workflows
328
+ - Normalize to WORKFLOW.md format
329
+ - Create workflow registry
330
+ - **Expected Output**: workflow-registry-draft.json (50+ workflows indexed)
331
+
332
+ ### Week 2: Skill-Workflow Mapping
333
+
334
+ - Map each workflow to required skills
335
+ - Identify missing skills (gap analysis)
336
+ - Build composition matrix
337
+ - Create skill-bundle definitions
338
+ - **Expected Output**: skill-workflow-matrix.json (250 skills ↔ 50 workflows)
339
+
340
+ ### Week 3: Framework Integration
341
+
342
+ - Choose canonical framework mix:
343
+ - CrewAI for multi-agent autonomy
344
+ - LangGraph for state/persistence
345
+ - GitHub Agentics for CI/repo tasks
346
+ - AutoGen for state machines
347
+ - SuperAGI for enterprise patterns
348
+ - Create adapter layer
349
+ - Test workflow execution
350
+ - **Expected Output**: workflow-runner.py with multi-framework support
351
+
352
+ ### Week 4: Agent Lee MCP Integration
353
+
354
+ - Extend MCP server to expose workflows
355
+ - Create workflow execution tool
356
+ - Test with 10 complex scenarios
357
+ - Build workflow examples
358
+ - **Expected Output**: Agent Lee can call workflows as tools
359
+
360
+ ### Week 5: Documentation & Deployment
361
+
362
+ - Complete workflow library docs
363
+ - Create workflow composer guide
364
+ - Deploy to production
365
+ - Set up workflow telemetry
366
+ - **Expected Output**: Full production deployment
367
+
368
+ ---
369
+
370
+ ## 🧩 Workflow Composition Patterns
371
+
372
+ ### Pattern 1: Sequential Bundle
373
+
374
+ ```
375
+ Skill A → Skill B → Skill C
376
+ (each output feeds next input)
377
+ ```
378
+
379
+ **Example**:
380
+
381
+ - Fetch PR → Review code → Add comments → Approve/request-changes
382
+
383
+ ### Pattern 2: Hierarchical Delegation
384
+
385
+ ```
386
+ Manager Agent
387
+ ├─ Specialist 1 (Skill A, B, C)
388
+ ├─ Specialist 2 (Skill D, E, F)
389
+ └─ Specialist 3 (Skill G, H, I)
390
+ Manager coordinates, validates
391
+ ```
392
+
393
+ **Example**:
394
+
395
+ - Project Manager → Engineer Team → QA Team → Deploy Specialist
396
+
397
+ ### Pattern 3: Parallel Execution
398
+
399
+ ```
400
+ Task 1 (Skills A, B) ━┓
401
+ ┃━ Merge Results
402
+ Task 2 (Skills C, D) ━┛
403
+ ```
404
+
405
+ **Example**:
406
+
407
+ - Fetch data from 3 sources in parallel → Aggregate → Analyze
408
+
409
+ ### Pattern 4: Event-Driven
410
+
411
+ ```
412
+ Event Trigger
413
+ ├─ Route to correct workflow
414
+ ├─ Execute with context
415
+ └─ Emit result events
416
+ ```
417
+
418
+ **Example**:
419
+
420
+ - PR opened → Run workflow.code-review → Post comment → Close if auto-approved
421
+
422
+ ### Pattern 5: State Machine
423
+
424
+ ```
425
+ State A ──(success)--> State B
426
+ └────(retry)----┘
427
+ ```
428
+
429
+ **Example**:
430
+
431
+ - Waiting → Processing → Validating → Complete/Failed
432
+
433
+ ---
434
+
435
+ ## 🔒 Leeway Standards Compliance
436
+
437
+ Every workflow will enforce:
438
+
439
+ ✅ **Headers**: Every WORKFLOW.md has Leeway header
440
+ ✅ **Metadata**: Complete skill_bundle, triggers, version
441
+ ✅ **Tags**: REGION/TAG naming (e.g., `WORKFLOW.CI_RECOVERY`)
442
+ ✅ **Documentation**: 5WH for each workflow
443
+ ✅ **No Secrets**: No API keys, passwords in code
444
+ ✅ **Skill Validation**: All referenced skills exist and are validated
445
+ ✅ **Success Metrics**: Clear completion criteria
446
+
447
+ ---
448
+
449
+ ## 📊 Integration Checklist
450
+
451
+ - [ ] Week 1: 50+ workflows acquired and audited
452
+ - [ ] Week 2: 250 skills ↔ 50 workflows mapped
453
+ - [ ] Week 3: Multi-framework runner implemented
454
+ - [ ] Week 4: MCP workflow tools created and tested
455
+ - [ ] Week 5: Production deployment complete
456
+ - [ ] All workflows documented with examples
457
+ - [ ] All workflows 100% Leeway Standards compliant
458
+ - [ ] Agent Lee can execute workflows as bundles
459
+ - [ ] Telemetry/monitoring in place
460
+ - [ ] Workflow composer UI available (nice-to-have)
461
+
462
+ ---
463
+
464
+ ## 🎖️ Success Metrics
465
+
466
+ | Metric | Target | Status |
467
+ | ------------------- | ------------------ | --------------------- |
468
+ | Workflows Acquired | 50+ | ⏳ Ready to execute |
469
+ | Workflow Categories | 9 | ✅ Designed |
470
+ | Skill Coverage | 80%+ of 250 skills | ⏳ Depends on mapping |
471
+ | Leeway Compliance | 100% | ✅ Framework ready |
472
+ | Framework Support | 5 canonical | ✅ Identified |
473
+ | Execution Modes | 5 types | ✅ Planned |
474
+ | MCP Integration | Complete | ⏳ Week 4 |
475
+ | Production Ready | 100% | ⏳ Week 5 |
476
+
477
+ ---
478
+
479
+ ## 🚀 Why This Matters
480
+
481
+ **Small LLM + 250 Skills**: Functional but ad-hoc (no automation patterns)
482
+ **Small LLM + 250 Skills + 50 Workflows**: Enterprise-grade (proven patterns, proven execution)
483
+
484
+ Think of it like:
485
+
486
+ - **Skills**: The "what" (library of abilities)
487
+ - **Workflows**: The "how" (proven processes)
488
+ - **Skills + Workflows**: The "business" (complete automation platform)
489
+
490
+ ---
491
+
492
+ ## Quick Launch
493
+
494
+ **To start Week 1**:
495
+
496
+ ```powershell
497
+ # Create workflow directory structure
498
+ mkdir c:\Tools\AIskills\workflows
499
+ mkdir c:\Tools\AIskills\sources-workflows
500
+
501
+ # Clone workflow sources
502
+ git clone https://github.com/githubnext/agentics sources-workflows/agentics
503
+ git clone https://github.com/joaomdmoura/crewAI sources-workflows/crewai
504
+ # ... (continue with other 3)
505
+
506
+ # Run workflow audit
507
+ python3 scripts/workflow-integration-toolkit.py audit-repos
508
+ ```
509
+
510
+ ---
511
+
512
+ **Status**: ✅ **PLANNING COMPLETE | READY FOR WEEK 1 EXECUTION**
513
+
514
+ **Next Document**: [WORKFLOW_ACQUISITION_MANIFEST.md](WORKFLOW_ACQUISITION_MANIFEST.md) — Master checklist of all 50 workflows
515
+