@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,133 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "2.0.0",
|
|
3
|
+
"project": {
|
|
4
|
+
"name": "leeway-skills-enterprise",
|
|
5
|
+
"description": "Enterprise AI Agent and Full-Stack Development Skills Library with Leeway Standards Governance",
|
|
6
|
+
"author": "Leeway Industries (By Leonard Jerome Lee)",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"repository": "local",
|
|
9
|
+
"leewayVersion": "1.0.0"
|
|
10
|
+
},
|
|
11
|
+
"rootDir": "skills",
|
|
12
|
+
"agents": {
|
|
13
|
+
"compliance-monitor": {
|
|
14
|
+
"enabled": true,
|
|
15
|
+
"interval": 3600000,
|
|
16
|
+
"reportDir": ".leeway/reports"
|
|
17
|
+
},
|
|
18
|
+
"skill-validator": {
|
|
19
|
+
"enabled": true,
|
|
20
|
+
"checkHeaders": true,
|
|
21
|
+
"checkTags": true,
|
|
22
|
+
"checkMetadata": true
|
|
23
|
+
},
|
|
24
|
+
"autonomy-auditor": {
|
|
25
|
+
"enabled": true,
|
|
26
|
+
"validateAgentPatterns": true,
|
|
27
|
+
"checkMemoryIntegration": true
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"compliance": {
|
|
31
|
+
"minimumScore": 85,
|
|
32
|
+
"blockOnFail": false,
|
|
33
|
+
"enforcedPolicies": [
|
|
34
|
+
"NO_SECRETS_IN_CODE",
|
|
35
|
+
"HEADERS_REQUIRED",
|
|
36
|
+
"TAGS_REQUIRED",
|
|
37
|
+
"NO_CIRCULAR_DEPS"
|
|
38
|
+
],
|
|
39
|
+
"warningPolicies": ["NAMING_CONVENTIONS", "DOCUMENTATION_COVERAGE"]
|
|
40
|
+
},
|
|
41
|
+
"policies": {
|
|
42
|
+
"NO_SECRETS_IN_CODE": {
|
|
43
|
+
"enforced": true,
|
|
44
|
+
"patterns": [
|
|
45
|
+
"(password|secret|apikey|api_key|private_key|token)\\s*[=:]",
|
|
46
|
+
"-----BEGIN",
|
|
47
|
+
"-----END"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"HEADERS_REQUIRED": {
|
|
51
|
+
"enforced": true,
|
|
52
|
+
"fileTypes": ["SKILL.md", "*.js", "*.ts", "*.py"],
|
|
53
|
+
"headerFormat": "leeway"
|
|
54
|
+
},
|
|
55
|
+
"TAGS_REQUIRED": {
|
|
56
|
+
"enforced": true,
|
|
57
|
+
"minTags": 3,
|
|
58
|
+
"format": "REGION/TAG"
|
|
59
|
+
},
|
|
60
|
+
"NO_CIRCULAR_DEPS": {
|
|
61
|
+
"enforced": true
|
|
62
|
+
},
|
|
63
|
+
"NAMING_CONVENTIONS": {
|
|
64
|
+
"enforced": false,
|
|
65
|
+
"skillFormat": "kebab-case",
|
|
66
|
+
"categoryFormat": "kebab-case"
|
|
67
|
+
},
|
|
68
|
+
"DOCUMENTATION_COVERAGE": {
|
|
69
|
+
"enforced": false,
|
|
70
|
+
"minCoverage": 80
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"skillMetadata": {
|
|
74
|
+
"requiredFields": [
|
|
75
|
+
"name",
|
|
76
|
+
"category",
|
|
77
|
+
"version",
|
|
78
|
+
"tags",
|
|
79
|
+
"description",
|
|
80
|
+
"capabilities"
|
|
81
|
+
],
|
|
82
|
+
"categories": [
|
|
83
|
+
"agent-autonomy",
|
|
84
|
+
"self-optimization",
|
|
85
|
+
"quality-assurance",
|
|
86
|
+
"code-generation",
|
|
87
|
+
"code-analysis",
|
|
88
|
+
"data-analysis",
|
|
89
|
+
"devops",
|
|
90
|
+
"infrastructure",
|
|
91
|
+
"debugging",
|
|
92
|
+
"testing",
|
|
93
|
+
"web-development",
|
|
94
|
+
"ai-ml",
|
|
95
|
+
"security",
|
|
96
|
+
"documentation",
|
|
97
|
+
"architecture",
|
|
98
|
+
"database-design",
|
|
99
|
+
"git-workflow",
|
|
100
|
+
"error-handling",
|
|
101
|
+
"performance-optimization",
|
|
102
|
+
"observability",
|
|
103
|
+
"agent-orchestration",
|
|
104
|
+
"agent-patterns",
|
|
105
|
+
"workflow-composition",
|
|
106
|
+
"tool-integration",
|
|
107
|
+
"rag-knowledge",
|
|
108
|
+
"prompt-optimization",
|
|
109
|
+
"research"
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
"monitoring": {
|
|
113
|
+
"enabled": true,
|
|
114
|
+
"metricsDir": ".leeway/metrics",
|
|
115
|
+
"tracking": {
|
|
116
|
+
"skillUpdates": true,
|
|
117
|
+
"complianceScore": true,
|
|
118
|
+
"agentExecution": true,
|
|
119
|
+
"performanceMetrics": true
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"ignore": [
|
|
123
|
+
"node_modules/**",
|
|
124
|
+
"dist/**",
|
|
125
|
+
"build/**",
|
|
126
|
+
".next/**",
|
|
127
|
+
"coverage/**",
|
|
128
|
+
"*.min.js",
|
|
129
|
+
".git/**",
|
|
130
|
+
".leeway/reports/**",
|
|
131
|
+
".leeway/metrics/**"
|
|
132
|
+
]
|
|
133
|
+
}
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Leeway Industries
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Rapid Web Development
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
# LEEWAY™ STANDARDS
|
|
2
|
+
|
|
3
|
+
## The Autonomous Code Governance Framework
|
|
4
|
+
|
|
5
|
+
**LEEWAY™ (Logically Enhanced Engineering Web Architecture Yield)** is a software development standard that transforms codebases into **self-describing, auditable, AI-readable systems**.
|
|
6
|
+
|
|
7
|
+
The **LEEWAY SDK** is a lightweight agent platform that embeds governance, safety, readability, and repair assistance directly into the developer workflow — without requiring a heavy LLM runtime.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Quick Start
|
|
12
|
+
|
|
13
|
+
### Install (npm)
|
|
14
|
+
```bash
|
|
15
|
+
npm install leeway-sdk
|
|
16
|
+
npx leeway doctor
|
|
17
|
+
```
|
|
18
|
+
### Install (GitHub)
|
|
19
|
+
```bash
|
|
20
|
+
npm install github:4citeB4U/LeeWay-Standards#main
|
|
21
|
+
npx leeway doctor
|
|
22
|
+
npx leeway audit
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## The Core Philosophy
|
|
28
|
+
|
|
29
|
+
Traditional codebases become chaotic over time.
|
|
30
|
+
|
|
31
|
+
Files lose context. Developers leave. Documentation becomes outdated.
|
|
32
|
+
|
|
33
|
+
LEEWAY solves this by embedding **identity and intent directly into the code itself**.
|
|
34
|
+
|
|
35
|
+
Every file must answer five fundamental questions:
|
|
36
|
+
|
|
37
|
+
- **WHAT** does this file do?
|
|
38
|
+
- **WHY** does it exist?
|
|
39
|
+
- **WHO** created or owns it?
|
|
40
|
+
- **WHERE** does it belong in the system?
|
|
41
|
+
- **HOW** does it operate?
|
|
42
|
+
|
|
43
|
+
This concept is known as the **5WH Identity Model**.
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## The Three Pillars of LEEWAY
|
|
48
|
+
|
|
49
|
+
### 1. Identity
|
|
50
|
+
|
|
51
|
+
Every file must clearly identify itself via a **LEEWAY header** at the top that defines:
|
|
52
|
+
|
|
53
|
+
- system region
|
|
54
|
+
- component tag
|
|
55
|
+
- color classification
|
|
56
|
+
- icon reference
|
|
57
|
+
- 5WH identity block
|
|
58
|
+
- allowed AI agents
|
|
59
|
+
|
|
60
|
+
### 2. Structure
|
|
61
|
+
|
|
62
|
+
LEEWAY enforces a **structured architecture**. Files must be placed in directories that match their function.
|
|
63
|
+
|
|
64
|
+
| Directory | Region | Purpose |
|
|
65
|
+
|-----------|--------|---------|
|
|
66
|
+
| `src/components/` | UI | User interface components |
|
|
67
|
+
| `src/core/` | CORE | Core system logic |
|
|
68
|
+
| `src/data/` | DATA | Storage and database access |
|
|
69
|
+
| `src/ai/` | AI | AI orchestration and models |
|
|
70
|
+
| `src/seo/` | SEO | Search and discovery logic |
|
|
71
|
+
| `src/utils/` | UTIL | Utilities and helpers |
|
|
72
|
+
| `src/mcp/` | MCP | Multi-Component Processing |
|
|
73
|
+
| `src/security/` | SECURITY | Security and policies |
|
|
74
|
+
|
|
75
|
+
### 3. Governance
|
|
76
|
+
|
|
77
|
+
A LEEWAY system constantly validates itself:
|
|
78
|
+
|
|
79
|
+
- Is every file documented?
|
|
80
|
+
- Are files in the correct location?
|
|
81
|
+
- Are security rules followed?
|
|
82
|
+
- Is there duplicate logic?
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## The LEEWAY Header
|
|
87
|
+
|
|
88
|
+
Every file must begin with a **LEEWAY identity header**:
|
|
89
|
+
|
|
90
|
+
```javascript
|
|
91
|
+
/*
|
|
92
|
+
LEEWAY HEADER — DO NOT REMOVE
|
|
93
|
+
|
|
94
|
+
REGION: UI.APP.SURFACE
|
|
95
|
+
TAG: UI.COMPONENT.NEXUS.BUTTON
|
|
96
|
+
|
|
97
|
+
COLOR_ONION_HEX:
|
|
98
|
+
NEON=#39FF14
|
|
99
|
+
FLUO=#0DFF94
|
|
100
|
+
PASTEL=#C7FFD8
|
|
101
|
+
|
|
102
|
+
ICON_ASCII:
|
|
103
|
+
family=lucide
|
|
104
|
+
glyph=layout-dashboard
|
|
105
|
+
|
|
106
|
+
5WH:
|
|
107
|
+
WHAT = Nexus voice control button
|
|
108
|
+
WHY = Primary interface for voice commands
|
|
109
|
+
WHO = Rapid Web Development
|
|
110
|
+
WHERE = src/components/NexusButton.tsx
|
|
111
|
+
WHEN = 2026
|
|
112
|
+
HOW = React + Tailwind component
|
|
113
|
+
|
|
114
|
+
AGENTS:
|
|
115
|
+
AZR
|
|
116
|
+
PHI3
|
|
117
|
+
GEMINI
|
|
118
|
+
QWEN
|
|
119
|
+
LLAMA
|
|
120
|
+
ECHO
|
|
121
|
+
|
|
122
|
+
LICENSE:
|
|
123
|
+
MIT
|
|
124
|
+
*/
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## Tagging System
|
|
130
|
+
|
|
131
|
+
Every file must include a **TAG** that describes its role.
|
|
132
|
+
|
|
133
|
+
**Tag format:** `DOMAIN.SUBDOMAIN.ASSET.PURPOSE`
|
|
134
|
+
|
|
135
|
+
```
|
|
136
|
+
UI.COMPONENT.NEXUS.BUTTON
|
|
137
|
+
AI.ORCHESTRATION.MODEL.LOADER
|
|
138
|
+
DATA.LOCAL.STORE.MAIN
|
|
139
|
+
SEO.SCHEMA.GENERATOR.JSONLD
|
|
140
|
+
UTIL.FORMAT.DATE.HELPER
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
## File Naming Rules
|
|
146
|
+
|
|
147
|
+
| Context | Convention | Example |
|
|
148
|
+
|---------|-----------|---------|
|
|
149
|
+
| Folders | kebab-case | `voice-engine/` |
|
|
150
|
+
| React Components | PascalCase | `VoiceControlPanel.tsx` |
|
|
151
|
+
| Functions/Variables | camelCase | `generateSchemaMarkup()` |
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
## SDK Agent Roster (40 Agents)
|
|
156
|
+
|
|
157
|
+
### Group A — AAA Governance
|
|
158
|
+
| Agent | Purpose |
|
|
159
|
+
|-------|---------|
|
|
160
|
+
| `assess-agent` | Surveys what already exists before anything is created |
|
|
161
|
+
| `align-agent` | Normalizes files, settings, and structure |
|
|
162
|
+
| `audit-agent` | Scores compliance and generates reports |
|
|
163
|
+
|
|
164
|
+
### Group B — Code Readability & Standards
|
|
165
|
+
| Agent | Purpose |
|
|
166
|
+
|-------|---------|
|
|
167
|
+
| `header-agent` | Inserts and repairs LEEWAY headers |
|
|
168
|
+
| `tag-agent` | Infers TAG values from file path and role |
|
|
169
|
+
| `region-agent` | Assigns REGION correctly |
|
|
170
|
+
| `discovery-pipeline-agent` | Ensures every artifact has discovery metadata |
|
|
171
|
+
| `authority-agent` | Declares allowed actions and execution scope |
|
|
172
|
+
| `placement-agent` | Checks file placement against structure rules |
|
|
173
|
+
| `registry-agent` | Updates tag registry and system map |
|
|
174
|
+
|
|
175
|
+
### Group C — MCP & Agent Safety
|
|
176
|
+
| Agent | Purpose |
|
|
177
|
+
|-------|---------|
|
|
178
|
+
| `endpoint-agent` | Detects existing health and HTTP endpoints |
|
|
179
|
+
| `transport-agent` | Verifies approved MCP transport usage |
|
|
180
|
+
| `port-agent` | Assigns and validates ports from a registry |
|
|
181
|
+
| `process-agent` | Handles process ownership and zombie cleanup |
|
|
182
|
+
| `env-agent` | Validates required vs optional env vars |
|
|
183
|
+
| `runtime-agent` | Checks module/runtime compatibility |
|
|
184
|
+
| `manifest-agent` | Validates manifest completeness and tool definitions |
|
|
185
|
+
| `health-agent-lite` | Runs lightweight startup and readiness checks |
|
|
186
|
+
|
|
187
|
+
### Group D — Code Integrity
|
|
188
|
+
| Agent | Purpose |
|
|
189
|
+
|-------|---------|
|
|
190
|
+
| `syntax-agent` | Guards against malformed code |
|
|
191
|
+
| `import-agent` | Normalizes import style and local import rules |
|
|
192
|
+
| `module-policy-agent` | Prevents CommonJS/ESM drift |
|
|
193
|
+
| `duplicate-logic-agent` | Detects repeated logic and duplicate blocks |
|
|
194
|
+
| `dependency-graph-agent` | Builds lightweight dependency maps |
|
|
195
|
+
| `circular-dependency-agent` | Detects circular imports |
|
|
196
|
+
| `refactor-scan-agent` | Suggests safe structural improvements |
|
|
197
|
+
|
|
198
|
+
### Group E — Security & Trust
|
|
199
|
+
| Agent | Purpose |
|
|
200
|
+
|-------|---------|
|
|
201
|
+
| `secret-scan-agent` | Looks for secrets and unsafe credential handling |
|
|
202
|
+
| `permission-agent` | Checks action permissions and runtime boundaries |
|
|
203
|
+
| `prompt-security-agent` | Scans prompts for unsafe patterns |
|
|
204
|
+
| `tool-access-agent` | Ensures tools are called through approved paths |
|
|
205
|
+
| `policy-agent` | Enforces LEEWAY policy bundles |
|
|
206
|
+
| `privacy-agent` | Checks privacy and data handling declarations |
|
|
207
|
+
|
|
208
|
+
### Group F — Discovery & Documentation
|
|
209
|
+
| Agent | Purpose |
|
|
210
|
+
|-------|---------|
|
|
211
|
+
| `schema-agent` | Generates machine-readable schemas |
|
|
212
|
+
| `sitemap-agent` | Builds site/discovery maps |
|
|
213
|
+
| `intent-registry-agent` | Tracks supported intents and routes |
|
|
214
|
+
| `docs-agent` | Generates structured docs from headers |
|
|
215
|
+
| `explain-agent` | Explains a file or module in plain English |
|
|
216
|
+
| `architecture-map-agent` | Produces a JSON/ASCII architecture map |
|
|
217
|
+
|
|
218
|
+
### Group G — Orchestration
|
|
219
|
+
| Agent | Purpose |
|
|
220
|
+
|-------|---------|
|
|
221
|
+
| `router-agent` | Chooses which agents to invoke for a task |
|
|
222
|
+
| `memory-agent-lite` | Stores SDK-local state and audit receipts |
|
|
223
|
+
| `doctor-agent` | Runs full system health and compliance diagnosis |
|
|
224
|
+
|
|
225
|
+
---
|
|
226
|
+
|
|
227
|
+
## Using the SDK Programmatically
|
|
228
|
+
|
|
229
|
+
```javascript
|
|
230
|
+
import { AssessAgent, AuditAgent, DoctorAgent } from 'leeway-sdk';
|
|
231
|
+
|
|
232
|
+
// Assess the codebase
|
|
233
|
+
const assess = new AssessAgent({ rootDir: process.cwd() });
|
|
234
|
+
const inventory = await assess.run();
|
|
235
|
+
console.log(inventory.summary);
|
|
236
|
+
|
|
237
|
+
// Run a compliance audit
|
|
238
|
+
const audit = new AuditAgent({ rootDir: process.cwd() });
|
|
239
|
+
const report = await audit.runAndSave();
|
|
240
|
+
console.log(`Average compliance: ${report.summary.averageScore}/100`);
|
|
241
|
+
|
|
242
|
+
// Full system diagnosis
|
|
243
|
+
const doctor = new DoctorAgent({ rootDir: process.cwd() });
|
|
244
|
+
const diagnosis = await doctor.run();
|
|
245
|
+
console.log(doctor.formatReport(diagnosis));
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
---
|
|
249
|
+
|
|
250
|
+
## Security Rules
|
|
251
|
+
|
|
252
|
+
The following rules must always be followed:
|
|
253
|
+
|
|
254
|
+
- **Never** include private API keys, database credentials, or secret tokens in code
|
|
255
|
+
- All user input must be sanitized
|
|
256
|
+
- AI prompts must be protected against malicious injection
|
|
257
|
+
- Dependencies must be verified before installation
|
|
258
|
+
- Use `leeway scan` to detect any accidental secrets before committing
|
|
259
|
+
|
|
260
|
+
---
|
|
261
|
+
|
|
262
|
+
## Compliance Levels
|
|
263
|
+
|
|
264
|
+
| Level | Score | Description |
|
|
265
|
+
|-------|-------|-------------|
|
|
266
|
+
| 🥇 Platinum | 95–100 | Fully LEEWAY-compliant |
|
|
267
|
+
| 🥈 Gold | 80–94 | Mostly compliant, minor gaps |
|
|
268
|
+
| 🥉 Silver | 60–79 | Partially compliant |
|
|
269
|
+
| 🔶 Bronze | 40–59 | Minimal compliance |
|
|
270
|
+
| ❌ None | 0–39 | Not LEEWAY-compliant |
|
|
271
|
+
|
|
272
|
+
---
|
|
273
|
+
|
|
274
|
+
## Quick Start Rules (For Humans or AI)
|
|
275
|
+
|
|
276
|
+
1. Always include a LEEWAY header.
|
|
277
|
+
2. Assign a correct TAG.
|
|
278
|
+
3. Place the file in the correct directory.
|
|
279
|
+
4. Follow naming conventions.
|
|
280
|
+
5. Avoid duplicate logic.
|
|
281
|
+
6. Ensure security rules are followed.
|
|
282
|
+
7. Document purpose using the 5WH model.
|
|
283
|
+
|
|
284
|
+
If these rules are followed, the system will remain **stable, understandable, and scalable**.
|
|
285
|
+
|
|
286
|
+
---
|
|
287
|
+
|
|
288
|
+
## Repository Structure
|
|
289
|
+
|
|
290
|
+
```
|
|
291
|
+
LeeWay-Standards/
|
|
292
|
+
├── src/
|
|
293
|
+
│ ├── index.js # SDK main entry
|
|
294
|
+
│ ├── core/ # Core parsing and validation
|
|
295
|
+
│ │ ├── header-parser.js
|
|
296
|
+
│ │ ├── tag-validator.js
|
|
297
|
+
│ │ ├── region-classifier.js
|
|
298
|
+
│ │ └── compliance-scorer.js
|
|
299
|
+
│ ├── agents/
|
|
300
|
+
│ │ ├── governance/ # Group A: AAA Governance
|
|
301
|
+
│ │ ├── standards/ # Group B: Standards agents
|
|
302
|
+
│ │ ├── mcp/ # Group C: MCP & Safety agents
|
|
303
|
+
│ │ ├── integrity/ # Group D: Code integrity agents
|
|
304
|
+
│ │ ├── security/ # Group E: Security agents
|
|
305
|
+
│ │ ├── discovery/ # Group F: Discovery agents
|
|
306
|
+
│ │ └── orchestration/ # Group G: Orchestration agents
|
|
307
|
+
│ └── cli/
|
|
308
|
+
│ └── leeway.js # CLI entry point
|
|
309
|
+
├── docs/ # Standards documentation
|
|
310
|
+
├── schemas/ # JSON schemas
|
|
311
|
+
│ ├── leeway-header.schema.json
|
|
312
|
+
│ └── leeway-config.schema.json
|
|
313
|
+
├── examples/ # Example LEEWAY-compliant files
|
|
314
|
+
│ ├── NexusButton.tsx
|
|
315
|
+
│ └── example-agent.js
|
|
316
|
+
└── .leeway/
|
|
317
|
+
└── config.json # Project governance config
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
---
|
|
321
|
+
|
|
322
|
+
## License
|
|
323
|
+
|
|
324
|
+
MIT © Rapid Web Development
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/*
|
|
2
|
+
LEEWAY HEADER — DO NOT REMOVE
|
|
3
|
+
|
|
4
|
+
REGION: UI.COMPONENT.NEXUS
|
|
5
|
+
TAG: UI.COMPONENT.NEXUS.BUTTON
|
|
6
|
+
|
|
7
|
+
COLOR_ONION_HEX:
|
|
8
|
+
NEON=#39FF14
|
|
9
|
+
FLUO=#0DFF94
|
|
10
|
+
PASTEL=#C7FFD8
|
|
11
|
+
|
|
12
|
+
ICON_ASCII:
|
|
13
|
+
family=lucide
|
|
14
|
+
glyph=layout-dashboard
|
|
15
|
+
|
|
16
|
+
5WH:
|
|
17
|
+
WHAT = Nexus voice control button — the primary interface for voice commands
|
|
18
|
+
WHY = Provides users with a single clearly-identified entry point for voice interactions
|
|
19
|
+
WHO = Rapid Web Development
|
|
20
|
+
WHERE = examples/NexusButton.tsx
|
|
21
|
+
WHEN = 2026
|
|
22
|
+
HOW = React functional component with Tailwind CSS styling and accessibility support
|
|
23
|
+
|
|
24
|
+
AGENTS:
|
|
25
|
+
AZR
|
|
26
|
+
PHI3
|
|
27
|
+
GEMINI
|
|
28
|
+
QWEN
|
|
29
|
+
LLAMA
|
|
30
|
+
ECHO
|
|
31
|
+
|
|
32
|
+
LICENSE:
|
|
33
|
+
MIT
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
import React, { useState, useCallback } from 'react';
|
|
37
|
+
|
|
38
|
+
interface NexusButtonProps {
|
|
39
|
+
onActivate?: () => void;
|
|
40
|
+
onDeactivate?: () => void;
|
|
41
|
+
label?: string;
|
|
42
|
+
disabled?: boolean;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* NexusButton — the primary voice command activation control.
|
|
47
|
+
* Follows LEEWAY UI.COMPONENT standards.
|
|
48
|
+
*/
|
|
49
|
+
export function NexusButton({
|
|
50
|
+
onActivate,
|
|
51
|
+
onDeactivate,
|
|
52
|
+
label = 'Activate Voice',
|
|
53
|
+
disabled = false,
|
|
54
|
+
}: NexusButtonProps) {
|
|
55
|
+
const [isActive, setIsActive] = useState(false);
|
|
56
|
+
|
|
57
|
+
const handleClick = useCallback(() => {
|
|
58
|
+
const nextState = !isActive;
|
|
59
|
+
setIsActive(nextState);
|
|
60
|
+
|
|
61
|
+
if (nextState) {
|
|
62
|
+
onActivate?.();
|
|
63
|
+
} else {
|
|
64
|
+
onDeactivate?.();
|
|
65
|
+
}
|
|
66
|
+
}, [isActive, onActivate, onDeactivate]);
|
|
67
|
+
|
|
68
|
+
return (
|
|
69
|
+
<button
|
|
70
|
+
type="button"
|
|
71
|
+
aria-pressed={isActive}
|
|
72
|
+
aria-label={isActive ? 'Deactivate voice control' : label}
|
|
73
|
+
disabled={disabled}
|
|
74
|
+
onClick={handleClick}
|
|
75
|
+
className={[
|
|
76
|
+
'px-6 py-3 rounded-xl font-semibold text-sm transition-all duration-200',
|
|
77
|
+
'focus:outline-none focus:ring-4 focus:ring-offset-2',
|
|
78
|
+
isActive
|
|
79
|
+
? 'bg-green-400 text-black shadow-neon focus:ring-green-400'
|
|
80
|
+
: 'bg-gray-800 text-white hover:bg-gray-700 focus:ring-gray-400',
|
|
81
|
+
disabled ? 'opacity-50 cursor-not-allowed' : 'cursor-pointer',
|
|
82
|
+
].join(' ')}
|
|
83
|
+
>
|
|
84
|
+
<span className="flex items-center gap-2">
|
|
85
|
+
<span aria-hidden="true">{isActive ? '🎙️' : '🔇'}</span>
|
|
86
|
+
{isActive ? 'Voice Active' : label}
|
|
87
|
+
</span>
|
|
88
|
+
</button>
|
|
89
|
+
);
|
|
90
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/*
|
|
2
|
+
LEEWAY HEADER — DO NOT REMOVE
|
|
3
|
+
|
|
4
|
+
REGION: AI.AGENT.EXAMPLE
|
|
5
|
+
TAG: AI.AGENT.EXAMPLE.BASIC
|
|
6
|
+
|
|
7
|
+
COLOR_ONION_HEX:
|
|
8
|
+
NEON=#39FF14
|
|
9
|
+
FLUO=#0DFF94
|
|
10
|
+
PASTEL=#C7FFD8
|
|
11
|
+
|
|
12
|
+
ICON_ASCII:
|
|
13
|
+
family=lucide
|
|
14
|
+
glyph=bot
|
|
15
|
+
|
|
16
|
+
5WH:
|
|
17
|
+
WHAT = Example of a LEEWAY-compliant custom agent implementation
|
|
18
|
+
WHY = Demonstrates how third-party agents integrate with the LEEWAY SDK governance model
|
|
19
|
+
WHO = Rapid Web Development
|
|
20
|
+
WHERE = examples/example-agent.js
|
|
21
|
+
WHEN = 2026
|
|
22
|
+
HOW = ESM module implementing a simple LEEWAY agent contract with run() and describe() methods
|
|
23
|
+
|
|
24
|
+
AGENTS:
|
|
25
|
+
ASSESS
|
|
26
|
+
AUDIT
|
|
27
|
+
|
|
28
|
+
LICENSE:
|
|
29
|
+
MIT
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* ExampleAgent — a minimal LEEWAY-compliant agent template.
|
|
34
|
+
*
|
|
35
|
+
* All custom LEEWAY agents should:
|
|
36
|
+
* 1. Begin with a LEEWAY header
|
|
37
|
+
* 2. Export a named class ending in "Agent"
|
|
38
|
+
* 3. Implement run() and describe() methods
|
|
39
|
+
* 4. Accept options.rootDir for file system operations
|
|
40
|
+
* 5. Return structured result objects (never throw silently)
|
|
41
|
+
*/
|
|
42
|
+
export class ExampleAgent {
|
|
43
|
+
constructor(options = {}) {
|
|
44
|
+
this.rootDir = options.rootDir || process.cwd();
|
|
45
|
+
this.name = 'example-agent';
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Describe what this agent does.
|
|
50
|
+
* @returns {object}
|
|
51
|
+
*/
|
|
52
|
+
describe() {
|
|
53
|
+
return {
|
|
54
|
+
name: this.name,
|
|
55
|
+
tag: 'AI.AGENT.EXAMPLE.BASIC',
|
|
56
|
+
region: 'AI.AGENT.EXAMPLE',
|
|
57
|
+
what: 'Example LEEWAY agent showing the standard agent contract',
|
|
58
|
+
capabilities: ['run', 'describe'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Execute the agent's primary task.
|
|
64
|
+
*
|
|
65
|
+
* @param {object} [context] - Optional execution context
|
|
66
|
+
* @returns {Promise<AgentResult>}
|
|
67
|
+
*/
|
|
68
|
+
async run(context = {}) {
|
|
69
|
+
const startTime = Date.now();
|
|
70
|
+
|
|
71
|
+
// Always return a structured result
|
|
72
|
+
return {
|
|
73
|
+
agent: this.name,
|
|
74
|
+
status: 'success',
|
|
75
|
+
timestamp: new Date().toISOString(),
|
|
76
|
+
durationMs: Date.now() - startTime,
|
|
77
|
+
result: {
|
|
78
|
+
message: 'Example agent ran successfully',
|
|
79
|
+
context,
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// Usage example:
|
|
86
|
+
// import { ExampleAgent } from './examples/example-agent.js';
|
|
87
|
+
// const agent = new ExampleAgent({ rootDir: process.cwd() });
|
|
88
|
+
// const result = await agent.run();
|
|
89
|
+
// console.log(result);
|