@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,456 @@
|
|
|
1
|
+
---
|
|
2
|
+
# LEEWAY AGENT CONFIGURATION
|
|
3
|
+
# Machine-Readable Format | For Agent Runtime
|
|
4
|
+
# Framework: Leeway Standards 1.0.0 + Lifelong Learning Layer
|
|
5
|
+
|
|
6
|
+
agent_system:
|
|
7
|
+
version: "1.0.0"
|
|
8
|
+
name: "Leeway Lifelong Learning Framework"
|
|
9
|
+
target_audience: "LLM Agents Only"
|
|
10
|
+
purpose: "Enrichment through skill mastery and workflow execution"
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# AGENT RUNTIME CONFIGURATION
|
|
15
|
+
|
|
16
|
+
agent:
|
|
17
|
+
id: "agent-lee"
|
|
18
|
+
model_compatible: ["any"] # Model-agnostic
|
|
19
|
+
deployment_mode: "continuous" # Always running
|
|
20
|
+
|
|
21
|
+
core_features:
|
|
22
|
+
- skill_execution
|
|
23
|
+
- workflow_orchestration
|
|
24
|
+
- lifelong_learning
|
|
25
|
+
- memory_persistence
|
|
26
|
+
- pattern_extraction
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
# SKILL EXECUTION CONFIGURATION
|
|
31
|
+
|
|
32
|
+
skills:
|
|
33
|
+
registry_path: "./skills"
|
|
34
|
+
registry_format: "SKILL.md"
|
|
35
|
+
auto_load: true
|
|
36
|
+
|
|
37
|
+
execution:
|
|
38
|
+
mastery_scoring: true
|
|
39
|
+
parameter_optimization: true
|
|
40
|
+
token_budgeting: true
|
|
41
|
+
quality_evaluation: true
|
|
42
|
+
|
|
43
|
+
mastery_tracking:
|
|
44
|
+
enabled: true
|
|
45
|
+
update_frequency: "every_execution"
|
|
46
|
+
components:
|
|
47
|
+
- success_rate (weight: 0.40)
|
|
48
|
+
- efficiency (weight: 0.30)
|
|
49
|
+
- reuse_frequency (weight: 0.20)
|
|
50
|
+
- quality_trend (weight: 0.10)
|
|
51
|
+
|
|
52
|
+
thresholds:
|
|
53
|
+
novice: 0.0-0.33
|
|
54
|
+
intermediate: 0.34-0.66
|
|
55
|
+
expert: 0.67-1.0
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
# WORKFLOW ORCHESTRATION CONFIGURATION
|
|
60
|
+
|
|
61
|
+
workflows:
|
|
62
|
+
registry_path: "./workflows"
|
|
63
|
+
registry_format: "WORKFLOW.md"
|
|
64
|
+
auto_load: true
|
|
65
|
+
|
|
66
|
+
execution_modes:
|
|
67
|
+
- sequential # A → B → C
|
|
68
|
+
- parallel # A, B, C simultaneously
|
|
69
|
+
- hierarchical # Manager + specialists
|
|
70
|
+
- event_driven # Trigger → Route → Execute
|
|
71
|
+
- state_machine # FSM with transitions
|
|
72
|
+
|
|
73
|
+
intelligence:
|
|
74
|
+
learn_optimal_ordering: true
|
|
75
|
+
learn_parameters: true
|
|
76
|
+
learn_branching: true
|
|
77
|
+
adapt_to_failure: true
|
|
78
|
+
|
|
79
|
+
skill_composition:
|
|
80
|
+
auto_load_required_skills: true
|
|
81
|
+
bundle_related_workflows: true
|
|
82
|
+
compose_workflow_chains: true
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
# LIFELONG LEARNING CONFIGURATION
|
|
87
|
+
|
|
88
|
+
learning:
|
|
89
|
+
enabled: true
|
|
90
|
+
|
|
91
|
+
memory_system:
|
|
92
|
+
root: "./memory"
|
|
93
|
+
|
|
94
|
+
episodic:
|
|
95
|
+
enabled: true
|
|
96
|
+
retention: "all" # Keep every episode
|
|
97
|
+
auto_compress: true
|
|
98
|
+
compress_after_episodes: 1000
|
|
99
|
+
directory: "./memory/episodes"
|
|
100
|
+
|
|
101
|
+
semantic:
|
|
102
|
+
enabled: true
|
|
103
|
+
auto_extraction: true
|
|
104
|
+
extraction_interval_episodes: 10
|
|
105
|
+
min_success_rate_for_pattern: 0.80
|
|
106
|
+
directory: "./memory/semantic"
|
|
107
|
+
|
|
108
|
+
procedural:
|
|
109
|
+
enabled: true
|
|
110
|
+
auto_save: true
|
|
111
|
+
trigger_success_rate: 0.85
|
|
112
|
+
directory: "./memory/procedural"
|
|
113
|
+
|
|
114
|
+
learning_loop:
|
|
115
|
+
phases:
|
|
116
|
+
1: perception # Gather context
|
|
117
|
+
2: cognition # Select skills/workflows
|
|
118
|
+
3: action # Execute
|
|
119
|
+
4: reflection # Evaluate
|
|
120
|
+
5: memory_update # Store learning
|
|
121
|
+
6: decision # Next step
|
|
122
|
+
|
|
123
|
+
execution: "every_skill_use"
|
|
124
|
+
|
|
125
|
+
pattern_extraction:
|
|
126
|
+
enabled: true
|
|
127
|
+
triggers:
|
|
128
|
+
- on_success
|
|
129
|
+
- on_failure
|
|
130
|
+
- on_pattern_stability
|
|
131
|
+
- periodic (interval: 10_episodes)
|
|
132
|
+
|
|
133
|
+
patterns_stored:
|
|
134
|
+
- "trigger_conditions"
|
|
135
|
+
- "parameter_optimization"
|
|
136
|
+
- "failure_modes"
|
|
137
|
+
- "workflow_orderings"
|
|
138
|
+
- "efficiency_gains"
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
# COMPLIANCE CONFIGURATION
|
|
143
|
+
|
|
144
|
+
compliance:
|
|
145
|
+
framework: "Leeway Standards 1.0.0"
|
|
146
|
+
mode: "continuous_monitoring"
|
|
147
|
+
|
|
148
|
+
enforced_policies:
|
|
149
|
+
- NO_SECRETS_IN_CODE
|
|
150
|
+
- HEADERS_REQUIRED
|
|
151
|
+
- TAGS_REQUIRED
|
|
152
|
+
- NO_CIRCULAR_DEPS
|
|
153
|
+
|
|
154
|
+
compliance_agents:
|
|
155
|
+
compliance_monitor: "active"
|
|
156
|
+
header_injector: "on_demand"
|
|
157
|
+
skill_validator: "per_skill_update"
|
|
158
|
+
autonomy_auditor: "continuous"
|
|
159
|
+
|
|
160
|
+
metadata_storage:
|
|
161
|
+
region: "AI.AGENT.LEARNING"
|
|
162
|
+
tag_prefix: "AI.AGENT.LEARNING"
|
|
163
|
+
headers_required: true
|
|
164
|
+
secrets_scan: true
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
# AGENT LEARNING METRICS
|
|
169
|
+
|
|
170
|
+
metrics:
|
|
171
|
+
tracking_enabled: true
|
|
172
|
+
|
|
173
|
+
per_skill:
|
|
174
|
+
- success_rate
|
|
175
|
+
- efficiency_score
|
|
176
|
+
- reuse_count
|
|
177
|
+
- quality_trend
|
|
178
|
+
- mastery_score
|
|
179
|
+
|
|
180
|
+
per_workflow:
|
|
181
|
+
- execution_count
|
|
182
|
+
- success_rate
|
|
183
|
+
- optimal_skill_orders
|
|
184
|
+
- learned_parameters
|
|
185
|
+
- performance_trend
|
|
186
|
+
|
|
187
|
+
agent_wide:
|
|
188
|
+
- total_episodes_completed
|
|
189
|
+
- unique_skills_mastered
|
|
190
|
+
- unique_workflows_learned
|
|
191
|
+
- semantic_patterns_discovered
|
|
192
|
+
- procedural_automations_saved
|
|
193
|
+
|
|
194
|
+
reporting:
|
|
195
|
+
log_path: "./memory/metrics"
|
|
196
|
+
periodic_reports: true
|
|
197
|
+
report_interval: "100_episodes"
|
|
198
|
+
send_to_dashboard: false # Agent-only system
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
# SKILL SELECTION & LOADING
|
|
203
|
+
|
|
204
|
+
skill_execution_flow:
|
|
205
|
+
|
|
206
|
+
load_phase:
|
|
207
|
+
1. query_mastery_scores
|
|
208
|
+
2. retrieve_semantic_patterns # Do I know how to do this?
|
|
209
|
+
3. get_optimal_parameters # What worked before?
|
|
210
|
+
4. load_relevant_episodes # Similar context?
|
|
211
|
+
|
|
212
|
+
execute_phase:
|
|
213
|
+
1. initialize_skill_with_parameters
|
|
214
|
+
2. monitor_token_usage
|
|
215
|
+
3. track_real_time_state
|
|
216
|
+
4. record_execution
|
|
217
|
+
|
|
218
|
+
evaluate_phase:
|
|
219
|
+
1. grade_quality
|
|
220
|
+
2. compare_to_success_criteria
|
|
221
|
+
3. identify_failure_mode (if failed)
|
|
222
|
+
4. extract_3_5_specific_learnings
|
|
223
|
+
|
|
224
|
+
update_phase:
|
|
225
|
+
1. store_to_episodic_memory
|
|
226
|
+
2. extract_semantic_patterns (if relevant)
|
|
227
|
+
3. update_procedural_memory (if successful)
|
|
228
|
+
4. increment_mastery_score
|
|
229
|
+
|
|
230
|
+
next_execution:
|
|
231
|
+
- This skill: faster, better parameters, higher success rate
|
|
232
|
+
- Related skills: indirect benefit via pattern sharing
|
|
233
|
+
- Workflows using this skill: improved orchestration
|
|
234
|
+
|
|
235
|
+
---
|
|
236
|
+
|
|
237
|
+
# WORKFLOW EXECUTION LEARNING
|
|
238
|
+
|
|
239
|
+
workflow_learning_flow:
|
|
240
|
+
|
|
241
|
+
load_workflow:
|
|
242
|
+
1. check_workflow_intelligence # How have I run this before?
|
|
243
|
+
2. determine_skill_order # Optimal sequence?
|
|
244
|
+
3. load_adaptive_parameters # Best settings?
|
|
245
|
+
|
|
246
|
+
execute_workflow:
|
|
247
|
+
for each skill in workflow:
|
|
248
|
+
- load_with_enrichment (use skill execution flow above)
|
|
249
|
+
- monitor_skill_output
|
|
250
|
+
- route_to_next_skill
|
|
251
|
+
|
|
252
|
+
evaluate_workflow:
|
|
253
|
+
- workflow_success?
|
|
254
|
+
- skill_sequence_optimal?
|
|
255
|
+
- parameters_ideal?
|
|
256
|
+
- efficiency_good?
|
|
257
|
+
|
|
258
|
+
update_workflow_intelligence:
|
|
259
|
+
- save_successful_sequence
|
|
260
|
+
- update_skill_ordering_options
|
|
261
|
+
- learn_parameter_combinations
|
|
262
|
+
- flag_suboptimal_paths
|
|
263
|
+
|
|
264
|
+
next_execution:
|
|
265
|
+
- This workflow: proven sequence, learned parameters
|
|
266
|
+
- Similar workflows: pattern sharing
|
|
267
|
+
- New workflows: apply learned orchestration strategies
|
|
268
|
+
|
|
269
|
+
---
|
|
270
|
+
|
|
271
|
+
# MULTI-AGENT LEARNING (Optional Enterprise Feature)
|
|
272
|
+
|
|
273
|
+
multi_agent:
|
|
274
|
+
enabled: false # For deployment scaling
|
|
275
|
+
|
|
276
|
+
knowledge_sharing:
|
|
277
|
+
shared_semantic_memory: "./memory/shared/semantic"
|
|
278
|
+
shared_procedural_memory: "./memory/shared/procedural"
|
|
279
|
+
merge_strategy: "consensus"
|
|
280
|
+
|
|
281
|
+
agent_fleet:
|
|
282
|
+
- agent_id: agent-lee
|
|
283
|
+
model: gpt-7b
|
|
284
|
+
memory_mode: "collaborative"
|
|
285
|
+
|
|
286
|
+
- agent_id: agent-eve
|
|
287
|
+
model: llama-7b
|
|
288
|
+
memory_mode: "collaborative"
|
|
289
|
+
|
|
290
|
+
# Agents learn from each other's experiences automatically
|
|
291
|
+
|
|
292
|
+
---
|
|
293
|
+
|
|
294
|
+
# INITIALIZATION & BOOTSTRAP
|
|
295
|
+
|
|
296
|
+
bootstrap:
|
|
297
|
+
on_startup:
|
|
298
|
+
- verify_directories_exist (skills, workflows, memory)
|
|
299
|
+
- load_skill_registry
|
|
300
|
+
- load_workflow_registry
|
|
301
|
+
- load_existing_memories
|
|
302
|
+
- initialize_mastery_scores
|
|
303
|
+
- verify_compliance
|
|
304
|
+
- start_learning_system
|
|
305
|
+
|
|
306
|
+
first_execution:
|
|
307
|
+
- create_initial_episode
|
|
308
|
+
- establish_baseline_performance
|
|
309
|
+
- begin_continuous_improvement
|
|
310
|
+
|
|
311
|
+
---
|
|
312
|
+
|
|
313
|
+
# RESOURCE MANAGEMENT
|
|
314
|
+
|
|
315
|
+
resources:
|
|
316
|
+
token_budgeting:
|
|
317
|
+
per_skill:
|
|
318
|
+
base_budget: 2000
|
|
319
|
+
dynamic_adjustment: true
|
|
320
|
+
efficiency_tracking: true
|
|
321
|
+
|
|
322
|
+
per_workflow:
|
|
323
|
+
base_budget: 8000
|
|
324
|
+
skill_overhead: 500 (per skill in workflow)
|
|
325
|
+
|
|
326
|
+
memory_storage:
|
|
327
|
+
max_memory_size: "unlimited" # Compress, don't delete
|
|
328
|
+
compression:
|
|
329
|
+
enabled: true
|
|
330
|
+
trigger: "1000_episodes"
|
|
331
|
+
archive_location: "./memory/archives"
|
|
332
|
+
|
|
333
|
+
performance:
|
|
334
|
+
episode_processing: "synchronous"
|
|
335
|
+
pattern_extraction: "async"
|
|
336
|
+
reporting: "on_demand"
|
|
337
|
+
|
|
338
|
+
---
|
|
339
|
+
|
|
340
|
+
# INTEGRATION POINTS
|
|
341
|
+
|
|
342
|
+
integrations:
|
|
343
|
+
|
|
344
|
+
with_skills:
|
|
345
|
+
- Load skill atoms
|
|
346
|
+
- Execute with enrichment
|
|
347
|
+
- Improve mastery over time
|
|
348
|
+
- Share patterns across similar skills
|
|
349
|
+
|
|
350
|
+
with_workflows:
|
|
351
|
+
- Load workflow templates
|
|
352
|
+
- Orchestrate skill sequences
|
|
353
|
+
- Learn optimal orderings
|
|
354
|
+
- Improve workflow efficiency
|
|
355
|
+
|
|
356
|
+
with_mcp:
|
|
357
|
+
- Expose skills as MCP tools
|
|
358
|
+
- Expose workflows as MCP tools
|
|
359
|
+
- Learning metadata available to other agents
|
|
360
|
+
|
|
361
|
+
with_leeway_standards:
|
|
362
|
+
- All memory tagged with REGION/TAG
|
|
363
|
+
- Compliance monitoring enabled
|
|
364
|
+
- Headers present on all files
|
|
365
|
+
- Secrets scanning on every update
|
|
366
|
+
|
|
367
|
+
---
|
|
368
|
+
|
|
369
|
+
# SUCCESS CRITERIA (Agent Performance)
|
|
370
|
+
|
|
371
|
+
development_targets:
|
|
372
|
+
skill_mastery:
|
|
373
|
+
initial_success_rate: 0.40
|
|
374
|
+
target_success_rate: 0.90
|
|
375
|
+
timeline_to_target: "20_executions"
|
|
376
|
+
|
|
377
|
+
workflow_efficiency:
|
|
378
|
+
initial_tokens_per_execution: 8000
|
|
379
|
+
target_tokens_per_execution: 5000
|
|
380
|
+
timeline_to_target: "15_executions"
|
|
381
|
+
|
|
382
|
+
learning_effectiveness:
|
|
383
|
+
semantic_patterns_found: "10+ patterns"
|
|
384
|
+
procedural_automations_saved: "5+ procedures"
|
|
385
|
+
reuse_rate: "80%+ of learned skills/workflows reused"
|
|
386
|
+
|
|
387
|
+
knowledge_accumulation:
|
|
388
|
+
month_1: "episodic memory growth"
|
|
389
|
+
month_2: "semantic patterns solidify"
|
|
390
|
+
month_3: "procedural library established"
|
|
391
|
+
month_4: "expert-level performance"
|
|
392
|
+
|
|
393
|
+
---
|
|
394
|
+
|
|
395
|
+
# OPERATIONAL COMMANDS (For Agent Runtime)
|
|
396
|
+
|
|
397
|
+
commands:
|
|
398
|
+
|
|
399
|
+
execute_skill: |
|
|
400
|
+
agent.executeSkill(skillId, {goal, context})
|
|
401
|
+
# Auto-enriched with mastery, patterns, optimal parameters
|
|
402
|
+
|
|
403
|
+
run_workflow: |
|
|
404
|
+
agent.executeWorkflow(workflowId, {goal, context})
|
|
405
|
+
# Auto-enriched with learning intelligence
|
|
406
|
+
|
|
407
|
+
check_learning_status: |
|
|
408
|
+
agent.getMetrics()
|
|
409
|
+
# Returns mastery scores, patterns, procedures
|
|
410
|
+
|
|
411
|
+
evaluate_agent_improvement: |
|
|
412
|
+
agent.getTrend()
|
|
413
|
+
# Shows performance improvement curve
|
|
414
|
+
|
|
415
|
+
query_memory: |
|
|
416
|
+
agent.memory.search(query)
|
|
417
|
+
# Episodic, semantic, procedural
|
|
418
|
+
|
|
419
|
+
reset_learning: |
|
|
420
|
+
agent.resetLearning()
|
|
421
|
+
# Start fresh (rarely needed)
|
|
422
|
+
|
|
423
|
+
---
|
|
424
|
+
|
|
425
|
+
# STATUS & DEPLOYMENT
|
|
426
|
+
|
|
427
|
+
status:
|
|
428
|
+
implementation: "✅ COMPLETE"
|
|
429
|
+
integration: "✅ COMPLETE"
|
|
430
|
+
testing: "⏳ CONTINUOUS"
|
|
431
|
+
deployment: "✅ READY"
|
|
432
|
+
learning_enabled: "✅ YES"
|
|
433
|
+
|
|
434
|
+
deployment:
|
|
435
|
+
target_agents: "all"
|
|
436
|
+
rollout: "immediate"
|
|
437
|
+
feedback: "automatic"
|
|
438
|
+
monitoring: "continuous"
|
|
439
|
+
|
|
440
|
+
---
|
|
441
|
+
|
|
442
|
+
# FRAMEWORK PHILOSOPHY
|
|
443
|
+
|
|
444
|
+
core_beliefs:
|
|
445
|
+
- "LLMs improve with structured experience"
|
|
446
|
+
- "Agents should learn from every task"
|
|
447
|
+
- "Memory is the foundation of improvement"
|
|
448
|
+
- "Patterns emerge from experience"
|
|
449
|
+
- "Small models + lifelong learning > Big models + no context"
|
|
450
|
+
- "This is machine learning, not human training"
|
|
451
|
+
|
|
452
|
+
---
|
|
453
|
+
|
|
454
|
+
**END CONFIGURATION**
|
|
455
|
+
**For agent runtime consumption only**
|
|
456
|
+
**No human interpretation needed**
|
|
Binary file
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
LEEWAY HEADER — DO NOT REMOVE
|
|
5
|
+
|
|
6
|
+
REGION: LEEWAY.SKILLS.SDK
|
|
7
|
+
TAG: LEEWAY.SKILLS.SDK.BADGE_CLI
|
|
8
|
+
|
|
9
|
+
COLOR_ONION_HEX:
|
|
10
|
+
NEON=#39FF14
|
|
11
|
+
FLUO=#0DFF94
|
|
12
|
+
PASTEL=#C7FFD8
|
|
13
|
+
|
|
14
|
+
ICON_ASCII:
|
|
15
|
+
family=lucide
|
|
16
|
+
glyph=badge-check
|
|
17
|
+
|
|
18
|
+
5WH:
|
|
19
|
+
WHAT = Thin CLI wrapper for the packaged Leeway Agent Skills badge installer
|
|
20
|
+
WHY = Lets npm consumers generate the proof-backed badge bundle from the installed package
|
|
21
|
+
WHO = Leeway Industries (By Leonard Jerome Lee)
|
|
22
|
+
WHERE = bin/leeway-skills-badge.js
|
|
23
|
+
WHEN = 2026
|
|
24
|
+
HOW = Spawns the packaged badge installer entrypoint with inherited stdio
|
|
25
|
+
|
|
26
|
+
AGENTS:
|
|
27
|
+
INSTALL
|
|
28
|
+
|
|
29
|
+
LICENSE:
|
|
30
|
+
MIT
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
import { spawn } from "node:child_process";
|
|
34
|
+
import { getMcpBadgeInstallerPath } from "../sdk/paths.js";
|
|
35
|
+
|
|
36
|
+
const child = spawn(
|
|
37
|
+
process.execPath,
|
|
38
|
+
[getMcpBadgeInstallerPath(), ...process.argv.slice(2)],
|
|
39
|
+
{
|
|
40
|
+
cwd: process.cwd(),
|
|
41
|
+
stdio: "inherit",
|
|
42
|
+
},
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
child.on("exit", (code) => {
|
|
46
|
+
process.exit(code ?? 0);
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
child.on("error", (error) => {
|
|
50
|
+
console.error("[Leeway Agent Skills] Unable to install badge bundle:", error);
|
|
51
|
+
process.exit(1);
|
|
52
|
+
});
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
LEEWAY HEADER — DO NOT REMOVE
|
|
5
|
+
|
|
6
|
+
REGION: LEEWAY.SKILLS.SDK
|
|
7
|
+
TAG: LEEWAY.SKILLS.SDK.MCP_CLI
|
|
8
|
+
|
|
9
|
+
COLOR_ONION_HEX:
|
|
10
|
+
NEON=#39FF14
|
|
11
|
+
FLUO=#0DFF94
|
|
12
|
+
PASTEL=#C7FFD8
|
|
13
|
+
|
|
14
|
+
ICON_ASCII:
|
|
15
|
+
family=lucide
|
|
16
|
+
glyph=server
|
|
17
|
+
|
|
18
|
+
5WH:
|
|
19
|
+
WHAT = Thin CLI wrapper for launching the packaged Leeway Agent Skills MCP server
|
|
20
|
+
WHY = Lets npm consumers start the MCP server directly after installation
|
|
21
|
+
WHO = Leeway Industries (By Leonard Jerome Lee)
|
|
22
|
+
WHERE = bin/leeway-skills-mcp.js
|
|
23
|
+
WHEN = 2026
|
|
24
|
+
HOW = Spawns the packaged MCP server entrypoint with inherited stdio
|
|
25
|
+
|
|
26
|
+
AGENTS:
|
|
27
|
+
SERVE
|
|
28
|
+
|
|
29
|
+
LICENSE:
|
|
30
|
+
MIT
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
import { spawn } from "node:child_process";
|
|
34
|
+
import { getMcpServerEntryPath } from "../sdk/paths.js";
|
|
35
|
+
|
|
36
|
+
const child = spawn(process.execPath, [getMcpServerEntryPath(), ...process.argv.slice(2)], {
|
|
37
|
+
cwd: process.cwd(),
|
|
38
|
+
stdio: "inherit",
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
child.on("exit", (code) => {
|
|
42
|
+
process.exit(code ?? 0);
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
child.on("error", (error) => {
|
|
46
|
+
console.error("[Leeway Agent Skills] Unable to start MCP server:", error);
|
|
47
|
+
process.exit(1);
|
|
48
|
+
});
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
LEEWAY HEADER — DO NOT REMOVE
|
|
5
|
+
|
|
6
|
+
REGION: LEEWAY.SKILLS.SDK
|
|
7
|
+
TAG: LEEWAY.SKILLS.SDK.CLI
|
|
8
|
+
|
|
9
|
+
COLOR_ONION_HEX:
|
|
10
|
+
NEON=#39FF14
|
|
11
|
+
FLUO=#0DFF94
|
|
12
|
+
PASTEL=#C7FFD8
|
|
13
|
+
|
|
14
|
+
ICON_ASCII:
|
|
15
|
+
family=lucide
|
|
16
|
+
glyph=terminal-square
|
|
17
|
+
|
|
18
|
+
5WH:
|
|
19
|
+
WHAT = Root CLI for the npm-distributed Leeway Agent Skills application bundle
|
|
20
|
+
WHY = Gives installed consumers one command to inspect, extract, and launch packaged Leeway capabilities
|
|
21
|
+
WHO = Leeway Industries (By Leonard Jerome Lee)
|
|
22
|
+
WHERE = bin/leeway-skills.js
|
|
23
|
+
WHEN = 2026
|
|
24
|
+
HOW = Provides package-aware commands and delegates runtime execution to bundled MCP and standards tools
|
|
25
|
+
|
|
26
|
+
AGENTS:
|
|
27
|
+
EXECUTE
|
|
28
|
+
DISCOVER
|
|
29
|
+
|
|
30
|
+
LICENSE:
|
|
31
|
+
MIT
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
import { spawn } from "node:child_process";
|
|
35
|
+
import {
|
|
36
|
+
extractLeewayApplication,
|
|
37
|
+
getPackagedPaths,
|
|
38
|
+
getPackageSummary,
|
|
39
|
+
} from "../sdk/index.js";
|
|
40
|
+
|
|
41
|
+
const args = process.argv.slice(2);
|
|
42
|
+
const command = args[0] ?? "help";
|
|
43
|
+
|
|
44
|
+
const COMMANDS = {
|
|
45
|
+
info: "Show package summary, skill counts, and key paths",
|
|
46
|
+
paths: "Print packaged asset paths (use --json for JSON output)",
|
|
47
|
+
extract: "Copy the full application bundle into a target directory",
|
|
48
|
+
badge: "Run the packaged badge installer",
|
|
49
|
+
mcp: "Start the packaged MCP server",
|
|
50
|
+
standards: "Run the packaged Leeway Standards CLI",
|
|
51
|
+
help: "Show this help output",
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
function showHelp() {
|
|
55
|
+
console.log("Leeway Agent Skills");
|
|
56
|
+
console.log("");
|
|
57
|
+
console.log("Usage:");
|
|
58
|
+
console.log(" leeway-agent-skills <command> [options]");
|
|
59
|
+
console.log("");
|
|
60
|
+
console.log("Commands:");
|
|
61
|
+
for (const [name, description] of Object.entries(COMMANDS)) {
|
|
62
|
+
console.log(` ${name.padEnd(10)} ${description}`);
|
|
63
|
+
}
|
|
64
|
+
console.log("");
|
|
65
|
+
console.log("Examples:");
|
|
66
|
+
console.log(" leeway-agent-skills info");
|
|
67
|
+
console.log(" leeway-agent-skills paths --json");
|
|
68
|
+
console.log(" leeway-agent-skills extract ./leeway-agent-skills-app");
|
|
69
|
+
console.log(' leeway-agent-skills badge ./public "My App" mcp-server');
|
|
70
|
+
console.log(" leeway-agent-skills mcp");
|
|
71
|
+
console.log(" leeway-agent-skills standards doctor");
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
async function runInfo() {
|
|
75
|
+
const summary = await getPackageSummary();
|
|
76
|
+
console.log("Leeway Agent Skills");
|
|
77
|
+
console.log(`Package: ${summary.name}@${summary.version}`);
|
|
78
|
+
console.log(
|
|
79
|
+
`Registry: ${summary.activeSkills} active skills across ${summary.activeCategories} categories`,
|
|
80
|
+
);
|
|
81
|
+
console.log(
|
|
82
|
+
`Installed: ${summary.installedSkills} packaged skills across ${summary.installedCategories} categories`,
|
|
83
|
+
);
|
|
84
|
+
console.log(`Root: ${summary.paths.packageRoot}`);
|
|
85
|
+
console.log(`MCP: ${summary.paths.mcpServerEntryPath}`);
|
|
86
|
+
console.log(`Badge: ${summary.paths.badgePath}`);
|
|
87
|
+
console.log(`Registry File: ${summary.paths.registryPath}`);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
async function runPaths() {
|
|
91
|
+
const paths = getPackagedPaths();
|
|
92
|
+
if (args.includes("--json")) {
|
|
93
|
+
console.log(JSON.stringify(paths, null, 2));
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
for (const [key, value] of Object.entries(paths)) {
|
|
98
|
+
console.log(`${key}: ${value}`);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
async function runExtract() {
|
|
103
|
+
const targetDir = args[1] ?? "leeway-agent-skills-app";
|
|
104
|
+
const overwrite = args.includes("--overwrite");
|
|
105
|
+
const result = await extractLeewayApplication({ targetDir, overwrite });
|
|
106
|
+
console.log("[Leeway Agent Skills] Full application extracted");
|
|
107
|
+
console.log(` Target: ${result.targetDir}`);
|
|
108
|
+
console.log(` Copied items: ${result.copied.length}`);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
function runNodeScript(scriptPath, scriptArgs) {
|
|
112
|
+
return new Promise((resolve, reject) => {
|
|
113
|
+
const child = spawn(process.execPath, [scriptPath, ...scriptArgs], {
|
|
114
|
+
cwd: process.cwd(),
|
|
115
|
+
stdio: "inherit",
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
child.on("exit", (code) => {
|
|
119
|
+
process.exitCode = code ?? 0;
|
|
120
|
+
resolve(code ?? 0);
|
|
121
|
+
});
|
|
122
|
+
child.on("error", reject);
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
async function main() {
|
|
127
|
+
const paths = getPackagedPaths();
|
|
128
|
+
|
|
129
|
+
switch (command) {
|
|
130
|
+
case "info":
|
|
131
|
+
await runInfo();
|
|
132
|
+
break;
|
|
133
|
+
case "paths":
|
|
134
|
+
await runPaths();
|
|
135
|
+
break;
|
|
136
|
+
case "extract":
|
|
137
|
+
await runExtract();
|
|
138
|
+
break;
|
|
139
|
+
case "badge":
|
|
140
|
+
await runNodeScript(paths.mcpBadgeInstallerPath, args.slice(1));
|
|
141
|
+
break;
|
|
142
|
+
case "mcp":
|
|
143
|
+
await runNodeScript(paths.mcpServerEntryPath, args.slice(1));
|
|
144
|
+
break;
|
|
145
|
+
case "standards":
|
|
146
|
+
await runNodeScript(paths.standardsCliPath, args.slice(1));
|
|
147
|
+
break;
|
|
148
|
+
case "help":
|
|
149
|
+
case "--help":
|
|
150
|
+
default:
|
|
151
|
+
showHelp();
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
main().catch((error) => {
|
|
157
|
+
console.error("[Leeway Agent Skills] Fatal error:", error);
|
|
158
|
+
process.exit(1);
|
|
159
|
+
});
|
|
160
|
+
|