@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.
- package/.leeway/config.json +133 -0
- package/LICENSE +21 -0
- package/LeeWay-Standards/LICENSE +21 -0
- package/LeeWay-Standards/README.md +324 -0
- package/LeeWay-Standards/examples/NexusButton.tsx +90 -0
- package/LeeWay-Standards/examples/example-agent.js +89 -0
- package/LeeWay-Standards/package.json +61 -0
- package/LeeWay-Standards/schemas/leeway-config.schema.json +81 -0
- package/LeeWay-Standards/schemas/leeway-header.schema.json +63 -0
- package/LeeWay-Standards/src/agents/discovery/architecture-map-agent.js +134 -0
- package/LeeWay-Standards/src/agents/discovery/docs-agent.js +126 -0
- package/LeeWay-Standards/src/agents/discovery/explain-agent.js +95 -0
- package/LeeWay-Standards/src/agents/discovery/intent-registry-agent.js +119 -0
- package/LeeWay-Standards/src/agents/discovery/schema-agent.js +116 -0
- package/LeeWay-Standards/src/agents/discovery/sitemap-agent.js +88 -0
- package/LeeWay-Standards/src/agents/governance/align-agent.js +155 -0
- package/LeeWay-Standards/src/agents/governance/assess-agent.js +161 -0
- package/LeeWay-Standards/src/agents/governance/audit-agent.js +185 -0
- package/LeeWay-Standards/src/agents/integrity/circular-dependency-agent.js +88 -0
- package/LeeWay-Standards/src/agents/integrity/dependency-graph-agent.js +107 -0
- package/LeeWay-Standards/src/agents/integrity/duplicate-logic-agent.js +108 -0
- package/LeeWay-Standards/src/agents/integrity/import-agent.js +83 -0
- package/LeeWay-Standards/src/agents/integrity/module-policy-agent.js +94 -0
- package/LeeWay-Standards/src/agents/integrity/refactor-scan-agent.js +113 -0
- package/LeeWay-Standards/src/agents/integrity/syntax-agent.js +84 -0
- package/LeeWay-Standards/src/agents/mcp/endpoint-agent.js +106 -0
- package/LeeWay-Standards/src/agents/mcp/env-agent.js +111 -0
- package/LeeWay-Standards/src/agents/mcp/health-agent-lite.js +119 -0
- package/LeeWay-Standards/src/agents/mcp/manifest-agent.js +87 -0
- package/LeeWay-Standards/src/agents/mcp/port-agent.js +125 -0
- package/LeeWay-Standards/src/agents/mcp/process-agent.js +124 -0
- package/LeeWay-Standards/src/agents/mcp/runtime-agent.js +108 -0
- package/LeeWay-Standards/src/agents/mcp/transport-agent.js +78 -0
- package/LeeWay-Standards/src/agents/orchestration/doctor-agent.js +149 -0
- package/LeeWay-Standards/src/agents/orchestration/memory-agent-lite.js +125 -0
- package/LeeWay-Standards/src/agents/orchestration/router-agent.js +110 -0
- package/LeeWay-Standards/src/agents/security/permission-agent.js +98 -0
- package/LeeWay-Standards/src/agents/security/policy-agent.js +100 -0
- package/LeeWay-Standards/src/agents/security/privacy-agent.js +83 -0
- package/LeeWay-Standards/src/agents/security/prompt-security-agent.js +103 -0
- package/LeeWay-Standards/src/agents/security/secret-scan-agent.js +108 -0
- package/LeeWay-Standards/src/agents/security/tool-access-agent.js +105 -0
- package/LeeWay-Standards/src/agents/standards/authority-agent.js +114 -0
- package/LeeWay-Standards/src/agents/standards/discovery-pipeline-agent.js +91 -0
- package/LeeWay-Standards/src/agents/standards/header-agent.js +120 -0
- package/LeeWay-Standards/src/agents/standards/placement-agent.js +96 -0
- package/LeeWay-Standards/src/agents/standards/region-agent.js +99 -0
- package/LeeWay-Standards/src/agents/standards/registry-agent.js +153 -0
- package/LeeWay-Standards/src/agents/standards/tag-agent.js +111 -0
- package/LeeWay-Standards/src/cli/leeway.js +225 -0
- package/LeeWay-Standards/src/core/compliance-scorer.js +168 -0
- package/LeeWay-Standards/src/core/compliance-scorer.test.js +121 -0
- package/LeeWay-Standards/src/core/header-parser.js +207 -0
- package/LeeWay-Standards/src/core/header-parser.test.js +198 -0
- package/LeeWay-Standards/src/core/region-classifier.js +137 -0
- package/LeeWay-Standards/src/core/region-classifier.test.js +100 -0
- package/LeeWay-Standards/src/core/tag-validator.js +139 -0
- package/LeeWay-Standards/src/core/tag-validator.test.js +109 -0
- package/LeeWay-Standards/src/index.js +83 -0
- package/README.md +217 -0
- package/agent-config.yaml +456 -0
- package/agentbage.png.png +0 -0
- package/bin/leeway-skills-badge.js +52 -0
- package/bin/leeway-skills-mcp.js +48 -0
- package/bin/leeway-skills.js +160 -0
- package/bin/leeway-standards.js +49 -0
- package/config/.skillsignore +63 -0
- package/config/skills-config.json +70 -0
- package/documents/AGENT_LEARNING_REFERENCE.md +329 -0
- package/documents/AGENT_LEE_INTEGRATION.md +534 -0
- package/documents/COMPLETE_SYSTEM_OVERVIEW.md +502 -0
- package/documents/COMPREHENSIVE_SKILL_INTEGRATION_PLAN.md +644 -0
- package/documents/DIRECTORY_MAP.md +323 -0
- package/documents/EXTENDING.md +514 -0
- package/documents/FILE_DIRECTORY_GUIDE.md +427 -0
- package/documents/LEEWAY_BADGE_INTEGRATION.md +76 -0
- package/documents/LEEWAY_IMPLEMENTATION_SUMMARY.md +384 -0
- package/documents/LEEWAY_INTEGRATION_GUIDE.md +414 -0
- package/documents/LEEWAY_NPM_SDK.md +66 -0
- package/documents/LEEWAY_QUICK_START.md +288 -0
- package/documents/LEEWAY_SKILLS_BRANDING.md +375 -0
- package/documents/LEEWAY_SKILLS_MCP_SUMMARY.md +593 -0
- package/documents/LEEWAY_STANDARDS_COMPLIANCE.md +361 -0
- package/documents/LEEWAY_UNIFIED_ARCHITECTURE.md +473 -0
- package/documents/LEEWAY_WORKFLOWS_QUICK_REFERENCE.md +307 -0
- package/documents/LEEWAY_WORKFLOWS_STRATEGIC_PLAN.md +515 -0
- package/documents/LIFELONG_LEARNING_LAYER.md +478 -0
- package/documents/MCP_ARCHITECTURE.md +683 -0
- package/documents/QUICK_REFERENCE.md +301 -0
- package/documents/SETUP.md +325 -0
- package/documents/SETUP_SUMMARY.md +413 -0
- package/documents/SKILL_ACQUISITION_EXECUTIVE_SUMMARY.md +373 -0
- package/documents/SKILL_ACQUISITION_IMPLEMENTATION.md +692 -0
- package/documents/SKILL_ACQUISITION_MANIFEST.md +404 -0
- package/documents/SKILL_ACQUISITION_QUICK_REFERENCE.md +349 -0
- package/documents/SKILL_WORKFLOW_COMPOSITION_MATRIX.md +537 -0
- package/documents/STRUCTURE.md +382 -0
- package/documents/SYSTEM_TRANSFORMATION_SUMMARY.md +560 -0
- package/documents/USAGE.md +390 -0
- package/documents/WORKFLOW_ACQUISITION_MANIFEST.md +576 -0
- package/documents/aiskills.txt +460 -0
- package/mcp-server/README.md +697 -0
- package/mcp-server/dist/badge-proof.d.ts +66 -0
- package/mcp-server/dist/badge-proof.d.ts.map +1 -0
- package/mcp-server/dist/badge-proof.js +324 -0
- package/mcp-server/dist/badge-proof.js.map +1 -0
- package/mcp-server/dist/index.d.ts +64 -0
- package/mcp-server/dist/index.d.ts.map +1 -0
- package/mcp-server/dist/index.js +263 -0
- package/mcp-server/dist/index.js.map +1 -0
- package/mcp-server/dist/install-badge-proof.d.ts +3 -0
- package/mcp-server/dist/install-badge-proof.d.ts.map +1 -0
- package/mcp-server/dist/install-badge-proof.js +109 -0
- package/mcp-server/dist/install-badge-proof.js.map +1 -0
- package/mcp-server/package.json +43 -0
- package/mcp-server/src/badge-proof.ts +469 -0
- package/mcp-server/src/index.ts +355 -0
- package/mcp-server/src/install-badge-proof.ts +132 -0
- package/mcp-server/tsconfig.json +22 -0
- package/package.json +84 -0
- package/scripts/init-leeway.js +217 -0
- package/scripts/leeway-agents/compliance-monitor.js +374 -0
- package/scripts/leeway-agents/header-injector.js +321 -0
- package/scripts/skill-integration-toolkit.py +319 -0
- package/scripts/skills-registry.json +1117 -0
- package/scripts/sync-skills.ps1 +275 -0
- package/scripts/verify-leeway-setup.js +249 -0
- package/scripts/workflow-integration-toolkit.py +522 -0
- package/sdk/application-installer.js +92 -0
- package/sdk/index.js +43 -0
- package/sdk/paths.js +167 -0
- package/skills/agent-autonomy/autonomous-conductor/SKILL.md +206 -0
- package/skills/agent-autonomy/full-stack-delivery/SKILL.md +206 -0
- package/skills/agent-orchestration/multi-agent-orchestration/SKILL.md +68 -0
- package/skills/agent-patterns/agent-design-patterns/SKILL.md +70 -0
- package/skills/ai-ml/llm-prompting/SKILL.md +71 -0
- package/skills/ai-ml/ml-model-development/SKILL.md +67 -0
- package/skills/ai-ml/multimodal-systems/SKILL.md +71 -0
- package/skills/ai-ml/retrieval-generation-fine-tuning/SKILL.md +71 -0
- package/skills/architecture/system-design/SKILL.md +67 -0
- package/skills/code-analysis/refactoring/SKILL.md +64 -0
- package/skills/code-analysis/security-vulnerability-scanning/SKILL.md +71 -0
- package/skills/code-analysis/static-analysis/SKILL.md +64 -0
- package/skills/code-generation/full-stack-application/SKILL.md +70 -0
- package/skills/code-generation/microservices-architecture/SKILL.md +71 -0
- package/skills/code-generation/python-codegen/SKILL.md +64 -0
- package/skills/code-generation/typescript-codegen/SKILL.md +64 -0
- package/skills/data-analysis/advanced-analytics/SKILL.md +71 -0
- package/skills/data-analysis/pandas-analysis/SKILL.md +66 -0
- package/skills/database-design/database-design-optimization/SKILL.md +70 -0
- package/skills/debugging/javascript-debugging/SKILL.md +67 -0
- package/skills/debugging/python-debugging/SKILL.md +67 -0
- package/skills/devops/dockerfile-creation/SKILL.md +64 -0
- package/skills/devops/kubernetes-deployment/SKILL.md +65 -0
- package/skills/documentation/api-documentation/SKILL.md +67 -0
- package/skills/error-handling/resilience-patterns/SKILL.md +70 -0
- package/skills/git-workflow/git-collaboration/SKILL.md +67 -0
- package/skills/infrastructure/cicd-pipelines/SKILL.md +70 -0
- package/skills/infrastructure/infrastructure-as-code/SKILL.md +70 -0
- package/skills/observability/monitoring-and-observability/SKILL.md +70 -0
- package/skills/performance-optimization/performance-engineering/SKILL.md +70 -0
- package/skills/prompt-optimization/prompt-engineering-advanced/SKILL.md +70 -0
- package/skills/quality-assurance/deployment-validator/SKILL.md +382 -0
- package/skills/quality-assurance/web-security-sweep/SKILL.md +320 -0
- package/skills/rag-knowledge/rag-systems/SKILL.md +70 -0
- package/skills/research/knowledge-synthesis/SKILL.md +71 -0
- package/skills/security/authentication-authorization/SKILL.md +71 -0
- package/skills/security/code-security/SKILL.md +66 -0
- package/skills/security/secure-architecture/SKILL.md +71 -0
- package/skills/self-optimization/dev-loop-optimizer/SKILL.md +344 -0
- package/skills/self-optimization/memory-learning/SKILL.md +335 -0
- package/skills/self-optimization/runtime-self-profiling/SKILL.md +250 -0
- package/skills/testing/advanced-testing-strategies/SKILL.md +71 -0
- package/skills/testing/integration-testing/SKILL.md +66 -0
- package/skills/testing/load-testing-capacity/SKILL.md +71 -0
- package/skills/testing/unit-testing/SKILL.md +66 -0
- package/skills/tool-integration/custom-tool-creation/SKILL.md +70 -0
- package/skills/web-development/advanced-frontend-patterns/SKILL.md +71 -0
- package/skills/web-development/api-design/SKILL.md +71 -0
- package/skills/web-development/css-styling/SKILL.md +67 -0
- package/skills/web-development/react-development/SKILL.md +79 -0
- package/skills/workflow-composition/workflow-orchestration/SKILL.md +70 -0
|
@@ -0,0 +1,534 @@
|
|
|
1
|
+
# Agent Lee Integration Guide
|
|
2
|
+
|
|
3
|
+
**Connect Agent Lee to Leeway Skills via MCP**
|
|
4
|
+
|
|
5
|
+
## Quick Start (5 minutes)
|
|
6
|
+
|
|
7
|
+
### Step 1: Start the MCP Server
|
|
8
|
+
|
|
9
|
+
```powershell
|
|
10
|
+
cd c:\Tools\Leeway-Skills\mcp-server
|
|
11
|
+
npm install # First time only
|
|
12
|
+
npm run build # Build TypeScript
|
|
13
|
+
npm start # Start the server
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Expected output:
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
[Leeway Skills MCP] Loaded 44 skills from registry
|
|
20
|
+
[Leeway Skills MCP] Server started successfully
|
|
21
|
+
[Leeway Skills MCP] Serving 44 skills
|
|
22
|
+
[Leeway Skills MCP] Ready to accept tool calls from LLMs
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Keep this running in a terminal window.
|
|
26
|
+
|
|
27
|
+
### Step 2: Configure Agent Lee
|
|
28
|
+
|
|
29
|
+
Add to your Agent Lee configuration file (e.g., `.agent.json` or `config.yaml`):
|
|
30
|
+
|
|
31
|
+
```json
|
|
32
|
+
{
|
|
33
|
+
"version": "1.0.0",
|
|
34
|
+
"agent": {
|
|
35
|
+
"name": "Agent Lee",
|
|
36
|
+
"model": "claude-3-opus-20240229",
|
|
37
|
+
"creator": "Leonard Jerome Lee"
|
|
38
|
+
},
|
|
39
|
+
"mcp": {
|
|
40
|
+
"enabled": true,
|
|
41
|
+
"servers": [
|
|
42
|
+
{
|
|
43
|
+
"name": "leeway-skills",
|
|
44
|
+
"description": "Leeway Skills MCP Server - 44 AI skills as tools",
|
|
45
|
+
"command": "node",
|
|
46
|
+
"args": ["c:\\Tools\\Leeway-Skills\\mcp-server\\dist\\index.js"],
|
|
47
|
+
"env": {
|
|
48
|
+
"LEEWAY_SKILLS_PATH": "c:\\Tools\\Leeway-Skills"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"capabilities": {
|
|
54
|
+
"tools": {
|
|
55
|
+
"enabled": true,
|
|
56
|
+
"discover": true,
|
|
57
|
+
"execute": true,
|
|
58
|
+
"chain": true
|
|
59
|
+
},
|
|
60
|
+
"skills": {
|
|
61
|
+
"enabled": true,
|
|
62
|
+
"skillLibrary": "leeway-skills"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"instructions": "You are Agent Lee, powered by Leeway Skills. You have access to 44 professional AI skills as tools. Use the appropriate skill for each task.",
|
|
66
|
+
"tools": {
|
|
67
|
+
"mcpServers": ["leeway-skills"],
|
|
68
|
+
"autoDiscover": true,
|
|
69
|
+
"caching": {
|
|
70
|
+
"enabled": true,
|
|
71
|
+
"ttl": 3600
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Step 3: Use Skills in Agent Lee Prompts
|
|
78
|
+
|
|
79
|
+
```
|
|
80
|
+
Agent Lee, use the typescript-codegen skill to generate a type-safe REST API client.
|
|
81
|
+
|
|
82
|
+
Agent Lee, apply the llm-prompting skill to improve this prompt:
|
|
83
|
+
"Create a user management system"
|
|
84
|
+
|
|
85
|
+
Agent Lee, help me debug this Python code using the python-debugging skill.
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Step 4: Agent Lee Responds with Skill Results
|
|
89
|
+
|
|
90
|
+
Agent Lee now:
|
|
91
|
+
|
|
92
|
+
- ✅ Discovers available skills via MCP
|
|
93
|
+
- ✅ Calls the appropriate skill
|
|
94
|
+
- ✅ Integrates skill results into responses
|
|
95
|
+
- ✅ Can chain multiple skills together
|
|
96
|
+
- ✅ Can pass skills to other agents
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## Detailed Configuration
|
|
101
|
+
|
|
102
|
+
### Full Agent Lee Config Example
|
|
103
|
+
|
|
104
|
+
```yaml
|
|
105
|
+
# agent-lee-config.yaml
|
|
106
|
+
version: "1.0.0"
|
|
107
|
+
name: "Agent Lee"
|
|
108
|
+
description: "Advanced AI Agent with Leeway Skills Integration"
|
|
109
|
+
creator: "Leonard Jerome Lee"
|
|
110
|
+
organization: "Leeway Industries"
|
|
111
|
+
|
|
112
|
+
# AI Model Configuration
|
|
113
|
+
ai:
|
|
114
|
+
provider: "anthropic"
|
|
115
|
+
model: "claude-3-opus-20240229"
|
|
116
|
+
maxTokens: 4096
|
|
117
|
+
temperature: 0.7
|
|
118
|
+
|
|
119
|
+
# MCP Server Configuration
|
|
120
|
+
mcp:
|
|
121
|
+
enabled: true
|
|
122
|
+
stdio: true
|
|
123
|
+
servers:
|
|
124
|
+
- name: "leeway-skills"
|
|
125
|
+
description: "Enterprise skills library via MCP"
|
|
126
|
+
command: "node"
|
|
127
|
+
args:
|
|
128
|
+
- "c:\\Tools\\Leeway-Skills\\mcp-server\\dist\\index.js"
|
|
129
|
+
env:
|
|
130
|
+
LEEWAY_SKILLS_PATH: "c:\\Tools\\Leeway-Skills"
|
|
131
|
+
autostart: true
|
|
132
|
+
restartPolicy: "on-failure"
|
|
133
|
+
|
|
134
|
+
# Tool Configuration
|
|
135
|
+
tools:
|
|
136
|
+
mcp:
|
|
137
|
+
enabled: true
|
|
138
|
+
autoDiscover: true
|
|
139
|
+
toolCache:
|
|
140
|
+
enabled: true
|
|
141
|
+
ttl: 3600
|
|
142
|
+
|
|
143
|
+
leeway:
|
|
144
|
+
skillLibrary: "leeway-skills"
|
|
145
|
+
autoLoad: true
|
|
146
|
+
categories:
|
|
147
|
+
- "code-generation"
|
|
148
|
+
- "code-analysis"
|
|
149
|
+
- "agent-patterns"
|
|
150
|
+
- "ai-ml"
|
|
151
|
+
- "testing"
|
|
152
|
+
- "devops"
|
|
153
|
+
|
|
154
|
+
# Agent Behavior
|
|
155
|
+
behavior:
|
|
156
|
+
skillPreference: "Use Leeway Skills for all applicable tasks"
|
|
157
|
+
chaining:
|
|
158
|
+
enabled: true
|
|
159
|
+
maxDepth: 5
|
|
160
|
+
execution:
|
|
161
|
+
timeout: 30000
|
|
162
|
+
retries: 2
|
|
163
|
+
|
|
164
|
+
# Memory & Context
|
|
165
|
+
memory:
|
|
166
|
+
enabled: true
|
|
167
|
+
skillHistory: true
|
|
168
|
+
executionLogs: true
|
|
169
|
+
loggingPath: ".leeway/logs"
|
|
170
|
+
|
|
171
|
+
# Instructions for Agent Lee
|
|
172
|
+
instructions: |
|
|
173
|
+
You are Agent Lee, an advanced autonomous agent created by Leonard Jerome Lee.
|
|
174
|
+
|
|
175
|
+
You have access to the Leeway Skills library with 44 professional skills as tools.
|
|
176
|
+
These skills cover:
|
|
177
|
+
- Code generation (TypeScript, Python, Full-stack)
|
|
178
|
+
- Code analysis and refactoring
|
|
179
|
+
- AI/ML expertise (LLM prompting, ML models)
|
|
180
|
+
- Agent patterns and orchestration
|
|
181
|
+
- Testing and debugging
|
|
182
|
+
- DevOps and infrastructure
|
|
183
|
+
- Database design
|
|
184
|
+
- And 18 more domains
|
|
185
|
+
|
|
186
|
+
When a user asks for something:
|
|
187
|
+
1. Identify the most relevant skill(s)
|
|
188
|
+
2. Call the skill with appropriate context
|
|
189
|
+
3. Integrate the result into your response
|
|
190
|
+
4. If needed, chain multiple skills
|
|
191
|
+
5. Explain what you did and why
|
|
192
|
+
|
|
193
|
+
Always prefer Leeway Skills over generic responses. They provide expert-level guidance.
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Agent Lee Custom Initialization
|
|
197
|
+
|
|
198
|
+
Create `agent-lee-init.js`:
|
|
199
|
+
|
|
200
|
+
```javascript
|
|
201
|
+
import AgentLee from "@leeway/agent-lee";
|
|
202
|
+
import MCPClient from "@modelcontextprotocol/sdk/client/index.js";
|
|
203
|
+
|
|
204
|
+
// Initialize Agent Lee
|
|
205
|
+
const agentLee = new AgentLee({
|
|
206
|
+
name: "Agent Lee",
|
|
207
|
+
creator: "Leonard Jerome Lee",
|
|
208
|
+
model: "claude-3-opus-20240229",
|
|
209
|
+
});
|
|
210
|
+
|
|
211
|
+
// Connect to Leeway Skills MCP Server
|
|
212
|
+
const mcpClient = new MCPClient({
|
|
213
|
+
serverCommand: "node",
|
|
214
|
+
serverArgs: ["c:\\Tools\\Leeway-Skills\\mcp-server\\dist\\index.js"],
|
|
215
|
+
});
|
|
216
|
+
|
|
217
|
+
await mcpClient.connect();
|
|
218
|
+
const leewaySkills = await mcpClient.listTools();
|
|
219
|
+
|
|
220
|
+
// Inject Leeway Skills as tools into Agent Lee
|
|
221
|
+
agentLee.setTools(leewaySkills);
|
|
222
|
+
|
|
223
|
+
// Now Agent Lee has access to all Leeway Skills
|
|
224
|
+
console.log(`Agent Lee initialized with ${leewaySkills.length} skills`);
|
|
225
|
+
|
|
226
|
+
// Example usage
|
|
227
|
+
const result = await agentLee.process(
|
|
228
|
+
"Generate a TypeScript API client using the typescript-codegen skill",
|
|
229
|
+
);
|
|
230
|
+
console.log(result);
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## Skill Usage Examples
|
|
236
|
+
|
|
237
|
+
### Example 1: Code Generation
|
|
238
|
+
|
|
239
|
+
**Prompt**:
|
|
240
|
+
|
|
241
|
+
```
|
|
242
|
+
Use the typescript-codegen skill to create a REST API client for a User management service.
|
|
243
|
+
Include proper error handling and async/await patterns.
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
**Agent Lee Response**:
|
|
247
|
+
|
|
248
|
+
```
|
|
249
|
+
I'll use the typescript-codegen skill to create a robust API client.
|
|
250
|
+
|
|
251
|
+
[Calling: typescript-codegen]
|
|
252
|
+
- Instruction: Create REST API client for User management
|
|
253
|
+
- Context: Framework=axios, Patterns=async/await, Services=User management
|
|
254
|
+
- Options: includeErrorHandling=true, includeTypes=true
|
|
255
|
+
|
|
256
|
+
Generated result:
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
export class UserAPIClient {
|
|
260
|
+
private baseURL = "/api/users";
|
|
261
|
+
|
|
262
|
+
async getUser(id: string): Promise<User> { ... }
|
|
263
|
+
async createUser(data: UserInput): Promise<User> { ... }
|
|
264
|
+
async deleteUser(id: string): Promise<void> { ... }
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
Agent Lee: This client uses the typescript-codegen skill's best practices for type safety and async patterns.
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
### Example 2: Agent Orchestration
|
|
273
|
+
|
|
274
|
+
**Prompt**:
|
|
275
|
+
|
|
276
|
+
```
|
|
277
|
+
I need to build a multi-agent system. Use the agent-orchestration skill to show me the architecture.
|
|
278
|
+
Then apply the agent-autonomy-patterns skill to add decision-making capabilities.
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
**Agent Lee Response**:
|
|
282
|
+
|
|
283
|
+
```
|
|
284
|
+
I'll use two Leeway Skills to build your multi-agent system.
|
|
285
|
+
|
|
286
|
+
[Calling: agent-orchestration]
|
|
287
|
+
Result: Multi-agent architecture with:
|
|
288
|
+
- Coordinator agent
|
|
289
|
+
- Worker agents
|
|
290
|
+
- Message queue
|
|
291
|
+
- State management
|
|
292
|
+
|
|
293
|
+
[Calling: agent-autonomy-patterns]
|
|
294
|
+
Result: Added autonomous capabilities:
|
|
295
|
+
- Goal-setting
|
|
296
|
+
- Decision-making
|
|
297
|
+
- Self-reflection
|
|
298
|
+
- Adaptive learning
|
|
299
|
+
|
|
300
|
+
Combined result: Your system now has orchestrated multi-agents with autonomous decision-making.
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
### Example 3: Skill Chaining
|
|
304
|
+
|
|
305
|
+
**Prompt**:
|
|
306
|
+
|
|
307
|
+
```
|
|
308
|
+
Generate TypeScript code, then analyze it for issues, then create tests for it.
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
**Agent Lee Response**:
|
|
312
|
+
|
|
313
|
+
```
|
|
314
|
+
I'll chain three Leeway Skills together:
|
|
315
|
+
|
|
316
|
+
[1] typescript-codegen → Generated API client code
|
|
317
|
+
[2] static-analysis → Found 3 potential issues
|
|
318
|
+
• Error handling not comprehensive
|
|
319
|
+
• Missing input validation
|
|
320
|
+
• Type safety could be improved
|
|
321
|
+
[3] unit-testing → Created comprehensive test suite
|
|
322
|
+
• 15 unit tests
|
|
323
|
+
• 3 integration tests
|
|
324
|
+
• Mock implementations
|
|
325
|
+
|
|
326
|
+
Final result: Production-ready typed code with full test coverage.
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
---
|
|
330
|
+
|
|
331
|
+
## Advanced Features
|
|
332
|
+
|
|
333
|
+
### Multi-Agent Skill Sharing
|
|
334
|
+
|
|
335
|
+
**Agent Lee sharing skills with other agents:**
|
|
336
|
+
|
|
337
|
+
```javascript
|
|
338
|
+
// Agent Lee discovers all Leeway Skills
|
|
339
|
+
const availableSkills = await agentLee.discoverTools();
|
|
340
|
+
|
|
341
|
+
// Agent Lee shares skills with Agent Alice
|
|
342
|
+
await agentAlice.receiveTools(...availableSkills);
|
|
343
|
+
|
|
344
|
+
// Agent Alice can now use any Leeway Skill
|
|
345
|
+
const result = await agentAlice.useTool("llm-prompting", {
|
|
346
|
+
instruction: "Improve this prompt for clarity",
|
|
347
|
+
context: { originalPrompt: userInput },
|
|
348
|
+
});
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
### Skill Composition
|
|
352
|
+
|
|
353
|
+
**Creating complex workflows:**
|
|
354
|
+
|
|
355
|
+
```javascript
|
|
356
|
+
const workflow = agentLee.createWorkflow([
|
|
357
|
+
{
|
|
358
|
+
name: "code-generation",
|
|
359
|
+
skill: "typescript-codegen",
|
|
360
|
+
input: { instruction: "Create API types" },
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
name: "architecture-review",
|
|
364
|
+
skill: "system-design-architecture",
|
|
365
|
+
input: { instruction: "Review the architecture" },
|
|
366
|
+
dependsOn: ["code-generation"],
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
name: "create-tests",
|
|
370
|
+
skill: "unit-testing",
|
|
371
|
+
input: { instruction: "Create tests" },
|
|
372
|
+
dependsOn: ["code-generation"],
|
|
373
|
+
},
|
|
374
|
+
]);
|
|
375
|
+
|
|
376
|
+
const result = await workflow.execute();
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
### Conditional Skill Selection
|
|
380
|
+
|
|
381
|
+
**Agent Lee choosing skills dynamically:**
|
|
382
|
+
|
|
383
|
+
```javascript
|
|
384
|
+
const taskDescription = "Optimize this Python code";
|
|
385
|
+
|
|
386
|
+
// Agent Lee analyzes the task
|
|
387
|
+
const bestSkill = await agentLee.selectSkill(taskDescription);
|
|
388
|
+
// Result: "performance-optimization" skill
|
|
389
|
+
|
|
390
|
+
// Execute the selected skill
|
|
391
|
+
const result = await agentLee.executeTool(bestSkill, {
|
|
392
|
+
instruction: taskDescription,
|
|
393
|
+
});
|
|
394
|
+
```
|
|
395
|
+
|
|
396
|
+
---
|
|
397
|
+
|
|
398
|
+
## Troubleshooting
|
|
399
|
+
|
|
400
|
+
### Agent Lee Can't Find MCP Server
|
|
401
|
+
|
|
402
|
+
**Problem**:
|
|
403
|
+
|
|
404
|
+
```
|
|
405
|
+
Error: Could not connect to MCP server
|
|
406
|
+
```
|
|
407
|
+
|
|
408
|
+
**Solution**:
|
|
409
|
+
|
|
410
|
+
1. Ensure MCP server is running
|
|
411
|
+
2. Check command path is correct in config
|
|
412
|
+
3. Verify Node.js is installed and in PATH
|
|
413
|
+
4. Check server logs for startup errors
|
|
414
|
+
|
|
415
|
+
### Skills Not Appearing in Agent Lee
|
|
416
|
+
|
|
417
|
+
**Problem**:
|
|
418
|
+
|
|
419
|
+
```
|
|
420
|
+
0 tools available
|
|
421
|
+
```
|
|
422
|
+
|
|
423
|
+
**Solution**:
|
|
424
|
+
|
|
425
|
+
1. Verify registry file exists: `ls c:\Tools\Leeway-Skills\scripts\skills-registry.json`
|
|
426
|
+
2. Check registry JSON is valid: `cat registry.json | jq .`
|
|
427
|
+
3. Ensure skills have `"enabled": true` in registry
|
|
428
|
+
4. Restart Agent Lee after making config changes
|
|
429
|
+
|
|
430
|
+
### Skill Execution Timeout
|
|
431
|
+
|
|
432
|
+
**Problem**: Agent Lee hangs when calling skills
|
|
433
|
+
|
|
434
|
+
**Solution**:
|
|
435
|
+
|
|
436
|
+
1. Increase timeout in config: `execution: { timeout: 60000 }`
|
|
437
|
+
2. Check skill is not waiting for input
|
|
438
|
+
3. Monitor MCP server logs for errors
|
|
439
|
+
4. Check system resources (CPU, memory)
|
|
440
|
+
|
|
441
|
+
---
|
|
442
|
+
|
|
443
|
+
## Performance Optimization
|
|
444
|
+
|
|
445
|
+
### Skill Caching
|
|
446
|
+
|
|
447
|
+
```json
|
|
448
|
+
{
|
|
449
|
+
"tools": {
|
|
450
|
+
"skillCache": {
|
|
451
|
+
"enabled": true,
|
|
452
|
+
"ttl": 3600,
|
|
453
|
+
"maxSize": 100
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
```
|
|
458
|
+
|
|
459
|
+
### Parallel Skill Execution
|
|
460
|
+
|
|
461
|
+
```javascript
|
|
462
|
+
// Execute multiple skills in parallel
|
|
463
|
+
const results = await Promise.all([
|
|
464
|
+
agentLee.useTool("typescript-codegen", params1),
|
|
465
|
+
agentLee.useTool("unit-testing", params2),
|
|
466
|
+
agentLee.useTool("static-analysis", params3),
|
|
467
|
+
]);
|
|
468
|
+
```
|
|
469
|
+
|
|
470
|
+
### Skill Pool
|
|
471
|
+
|
|
472
|
+
```javascript
|
|
473
|
+
// Maintain pool of skill instances for concurrent usage
|
|
474
|
+
const skillPool = agentLee.createSkillPool({
|
|
475
|
+
poolSize: 5,
|
|
476
|
+
skillName: "typescript-codegen",
|
|
477
|
+
});
|
|
478
|
+
```
|
|
479
|
+
|
|
480
|
+
---
|
|
481
|
+
|
|
482
|
+
## Monitoring & Logging
|
|
483
|
+
|
|
484
|
+
### Enable Detailed Logging
|
|
485
|
+
|
|
486
|
+
```json
|
|
487
|
+
{
|
|
488
|
+
"logging": {
|
|
489
|
+
"level": "debug",
|
|
490
|
+
"format": "json",
|
|
491
|
+
"outputs": ["console", ".leeway/logs/agent-lee.log"]
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
```
|
|
495
|
+
|
|
496
|
+
### Monitor Skill Usage
|
|
497
|
+
|
|
498
|
+
```javascript
|
|
499
|
+
// Track skill execution
|
|
500
|
+
agentLee.on("skill-executed", (event) => {
|
|
501
|
+
console.log(`Skill: ${event.skillName}`);
|
|
502
|
+
console.log(`Duration: ${event.duration}ms`);
|
|
503
|
+
console.log(`Success: ${event.success}`);
|
|
504
|
+
});
|
|
505
|
+
```
|
|
506
|
+
|
|
507
|
+
---
|
|
508
|
+
|
|
509
|
+
## Best Practices
|
|
510
|
+
|
|
511
|
+
1. ✅ **Always specify the skill name explicitly** - Don't rely on auto-detection
|
|
512
|
+
2. ✅ **Provide rich context** - Include code, requirements, framework info
|
|
513
|
+
3. ✅ **Validate skill output** - Don't blindly use generated results
|
|
514
|
+
4. ✅ **Log skill usage** - Enable execution logging for audits
|
|
515
|
+
5. ✅ **Monitor performance** - Track skill execution times
|
|
516
|
+
6. ✅ **Chain strategically** - Limit chaining depth to 3-5 skills
|
|
517
|
+
7. ✅ **Handle errors gracefully** - Plan for skill execution failures
|
|
518
|
+
|
|
519
|
+
---
|
|
520
|
+
|
|
521
|
+
## Support
|
|
522
|
+
|
|
523
|
+
For issues or questions:
|
|
524
|
+
|
|
525
|
+
- Check MCP server logs: `mcp-server/logs/`
|
|
526
|
+
- Review skill documentation: `skills/{category}/{skill}/SKILL.md`
|
|
527
|
+
- Read Leeway Standards: `documents/LEEWAY_STANDARDS_COMPLIANCE.md`
|
|
528
|
+
|
|
529
|
+
---
|
|
530
|
+
|
|
531
|
+
**Status**: ✅ Ready to Use
|
|
532
|
+
**Organization**: Leeway Industries | By Leonard Jerome Lee
|
|
533
|
+
**Last Updated**: March 15, 2026
|
|
534
|
+
|