@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,414 @@
|
|
|
1
|
+
# Leeway Standards Integration Guide
|
|
2
|
+
|
|
3
|
+
**Leeway Skills is now a Leeway-governed application** with continuous compliance monitoring.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 🚀 Quick Start – Leeway Integration
|
|
8
|
+
|
|
9
|
+
### 1. Initialize Leeway Monitoring (First Time)
|
|
10
|
+
|
|
11
|
+
```powershell
|
|
12
|
+
# Run the bootstrap script to initialize Leeway
|
|
13
|
+
node scripts/init-leeway.js
|
|
14
|
+
|
|
15
|
+
# Output will show:
|
|
16
|
+
# ✓ Leeway configuration loaded
|
|
17
|
+
# ✓ Skills directory scanned
|
|
18
|
+
# ✓ Compliance monitoring active
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### 2. Run Compliance Audit
|
|
22
|
+
|
|
23
|
+
```powershell
|
|
24
|
+
# Check current compliance score
|
|
25
|
+
node scripts/leeway-agents/compliance-monitor.js
|
|
26
|
+
|
|
27
|
+
# Returns:
|
|
28
|
+
# - Compliance Score (0-100)
|
|
29
|
+
# - Per-skill validation results
|
|
30
|
+
# - Policy violations (if any)
|
|
31
|
+
# - Remediation recommendations
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### 3. Fix Any Compliance Issues
|
|
35
|
+
|
|
36
|
+
```powershell
|
|
37
|
+
# Auto-inject Leeway headers to all skills (validate first)
|
|
38
|
+
$env:DRY_RUN = 'true'
|
|
39
|
+
node scripts/leeway-agents/header-injector.js
|
|
40
|
+
|
|
41
|
+
# If happy with changes, apply them:
|
|
42
|
+
node scripts/leeway-agents/header-injector.js
|
|
43
|
+
|
|
44
|
+
# Output shows which skills were updated
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### 4. Verify Compliance (Optional)
|
|
48
|
+
|
|
49
|
+
```powershell
|
|
50
|
+
# Run full audit again to confirm
|
|
51
|
+
node scripts/leeway-agents/compliance-monitor.js
|
|
52
|
+
|
|
53
|
+
# Should see Compliance Score >= 85
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## 🔧 Configuration
|
|
59
|
+
|
|
60
|
+
### .leeway/config.json
|
|
61
|
+
|
|
62
|
+
Controls all Leeway compliance behavior:
|
|
63
|
+
|
|
64
|
+
```json
|
|
65
|
+
{
|
|
66
|
+
"version": "2.0.0",
|
|
67
|
+
"compliance": {
|
|
68
|
+
"minimumScore": 85,
|
|
69
|
+
"blockOnFail": false,
|
|
70
|
+
"enforcedPolicies": [
|
|
71
|
+
"NO_SECRETS_IN_CODE",
|
|
72
|
+
"HEADERS_REQUIRED",
|
|
73
|
+
"TAGS_REQUIRED",
|
|
74
|
+
"NO_CIRCULAR_DEPS"
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
"agents": {
|
|
78
|
+
"compliance-monitor": {
|
|
79
|
+
"enabled": true,
|
|
80
|
+
"interval": 3600000
|
|
81
|
+
},
|
|
82
|
+
"skill-validator": {
|
|
83
|
+
"enabled": true,
|
|
84
|
+
"checkHeaders": true,
|
|
85
|
+
"checkTags": true
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
**Key Settings**:
|
|
92
|
+
|
|
93
|
+
- `minimumScore`: Target compliance (default: 85/100)
|
|
94
|
+
- `blockOnFail`: Stop on violations (default: false = warn only)
|
|
95
|
+
- `interval`: Monitoring frequency in ms (default: 1 hour)
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## 📝 Adding New Skills with Leeway Compliance
|
|
100
|
+
|
|
101
|
+
### Manual Process
|
|
102
|
+
|
|
103
|
+
1. **Create skill directory**:
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
skills/{category}/{skill-name}/
|
|
107
|
+
└── SKILL.md
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
2. **Add Leeway header to SKILL.md**:
|
|
111
|
+
|
|
112
|
+
```markdown
|
|
113
|
+
/\*
|
|
114
|
+
LEEWAY HEADER — DO NOT REMOVE
|
|
115
|
+
|
|
116
|
+
REGION: AI.AGENT.CATEGORY
|
|
117
|
+
TAG: AI.AGENT.CATEGORY.SKILL_NAME
|
|
118
|
+
|
|
119
|
+
COLOR_ONION_HEX:
|
|
120
|
+
NEON=#39FF14
|
|
121
|
+
FLUO=#0DFF94
|
|
122
|
+
PASTEL=#C7FFD8
|
|
123
|
+
|
|
124
|
+
ICON_ASCII:
|
|
125
|
+
family=lucide
|
|
126
|
+
glyph=zap
|
|
127
|
+
|
|
128
|
+
5WH:
|
|
129
|
+
WHAT = Brief description
|
|
130
|
+
WHY = Why this matters
|
|
131
|
+
WHO = Creator/maintainer
|
|
132
|
+
WHERE = skills/{category}/{skill-name}/SKILL.md
|
|
133
|
+
WHEN = 2026
|
|
134
|
+
HOW = How it works
|
|
135
|
+
|
|
136
|
+
AGENTS:
|
|
137
|
+
ASSESS
|
|
138
|
+
AUDIT
|
|
139
|
+
|
|
140
|
+
LICENSE:
|
|
141
|
+
MIT
|
|
142
|
+
\*/
|
|
143
|
+
|
|
144
|
+
# Your Skill Name
|
|
145
|
+
|
|
146
|
+
...
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
3. **Verify compliance**:
|
|
150
|
+
```powershell
|
|
151
|
+
node scripts/leeway-agents/compliance-monitor.js
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### Automated Process
|
|
155
|
+
|
|
156
|
+
Use the header injector to add headers to all new skills at once:
|
|
157
|
+
|
|
158
|
+
```powershell
|
|
159
|
+
# Dry run (preview changes)
|
|
160
|
+
$env:DRY_RUN = 'true'
|
|
161
|
+
node scripts/leeway-agents/header-injector.js
|
|
162
|
+
|
|
163
|
+
# Apply changes
|
|
164
|
+
node scripts/leeway-agents/header-injector.js
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
## 🎨 Leeway Header Reference
|
|
170
|
+
|
|
171
|
+
### REGION Mapping (Leeway Skills)
|
|
172
|
+
|
|
173
|
+
```
|
|
174
|
+
AI.AGENT.AUTONOMY → Agent autonomy & self-optimization
|
|
175
|
+
AI.AGENT.ORCHESTRATION → Multi-agent coordination
|
|
176
|
+
AI.AGENT.PATTERNS → Agent design patterns
|
|
177
|
+
AI.OPTIMIZATION → Performance & self-profiling
|
|
178
|
+
AI.QA → Quality assurance & validation
|
|
179
|
+
AI.WORKFLOW → Workflow composition & orchestration
|
|
180
|
+
AI.TOOLS → Tool integration & creation
|
|
181
|
+
AI.RAG → Knowledge retrieval & synthesis
|
|
182
|
+
AI.PROMPTS → Prompt engineering & optimization
|
|
183
|
+
DEV.CODEGEN → Code generation
|
|
184
|
+
DEV.ANALYSIS → Code analysis & refactoring
|
|
185
|
+
DEV.QA → Testing & quality assurance
|
|
186
|
+
DEV.SECURITY → Security & vulnerability handling
|
|
187
|
+
DEV.DEVOPS → DevOps & infrastructure
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
### COLOR_ONION_HEX (Neon/Fluo Pairs)
|
|
191
|
+
|
|
192
|
+
```
|
|
193
|
+
Agent autonomy: NEON=#39FF14 FLUO=#0DFF94 (Green)
|
|
194
|
+
Orchestration: NEON=#FF00FF FLUO=#FF1493 (Magenta)
|
|
195
|
+
Patterns: NEON=#00FFFF FLUO=#00CED1 (Cyan)
|
|
196
|
+
Optimization: NEON=#FFD700 FLUO=#FFA500 (Gold)
|
|
197
|
+
QA: NEON=#32CD32 FLUO=#00FF00 (Lime)
|
|
198
|
+
Workflow: NEON=#FF6347 FLUO=#FF7F50 (Orange-Red)
|
|
199
|
+
Tools: NEON=#9370DB FLUO=#9932CC (Purple)
|
|
200
|
+
RAG: NEON=#20B2AA FLUO=#23D8D8 (Teal)
|
|
201
|
+
Prompts: NEON=#FF69B4 FLUO=#FFB6C1 (Pink)
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### Valid ICON_ASCII Glyphs
|
|
205
|
+
|
|
206
|
+
```
|
|
207
|
+
family=lucide (all Leeway Skills)
|
|
208
|
+
|
|
209
|
+
Common glyphs:
|
|
210
|
+
glyph=bot → Agent
|
|
211
|
+
glyph=zap → Energy/executability
|
|
212
|
+
glyph=check-circle → Validation
|
|
213
|
+
glyph=settings → Configuration
|
|
214
|
+
glyph=book-open → Documentation
|
|
215
|
+
glyph=code → Code skills
|
|
216
|
+
glyph=shield → Security
|
|
217
|
+
glyph=database → Data/Storage
|
|
218
|
+
glyph=brain → Intelligence/Learning
|
|
219
|
+
glyph=workflow → Orchestration
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
---
|
|
223
|
+
|
|
224
|
+
## 🔐 Compliance Policies
|
|
225
|
+
|
|
226
|
+
### Enforced (Block)
|
|
227
|
+
|
|
228
|
+
| Policy | Detection | Fix |
|
|
229
|
+
| ---------------------- | -------------------------------------- | --------------------- |
|
|
230
|
+
| **NO_SECRETS_IN_CODE** | `password`, `secret`, `apikey`, tokens | Use env vars |
|
|
231
|
+
| **HEADERS_REQUIRED** | Missing LEEWAY HEADER block | Run header-injector |
|
|
232
|
+
| **TAGS_REQUIRED** | Missing REGION or TAG | Add to header |
|
|
233
|
+
| **NO_CIRCULAR_DEPS** | Circular skill imports | Refactor dependencies |
|
|
234
|
+
|
|
235
|
+
### Warnings (Don't Block)
|
|
236
|
+
|
|
237
|
+
| Policy | Check | Guidance |
|
|
238
|
+
| -------------------------- | -------------------- | ---------------- |
|
|
239
|
+
| **NAMING_CONVENTIONS** | Skills in kebab-case | Rename if needed |
|
|
240
|
+
| **DOCUMENTATION_COVERAGE** | Min 80% doc coverage | Add descriptions |
|
|
241
|
+
|
|
242
|
+
---
|
|
243
|
+
|
|
244
|
+
## 📊 Monitoring & Reporting
|
|
245
|
+
|
|
246
|
+
### Automatic Monitoring
|
|
247
|
+
|
|
248
|
+
Compliance is monitored continuously:
|
|
249
|
+
|
|
250
|
+
- **Hourly**: `ComplianceMonitor` scans all skills
|
|
251
|
+
- **Per-skill**: `SkillValidator` on updates
|
|
252
|
+
- **Weekly**: `AutonomyAuditor` checks agent patterns
|
|
253
|
+
- **On-demand**: Run any agent manually
|
|
254
|
+
|
|
255
|
+
### Reports Location
|
|
256
|
+
|
|
257
|
+
```
|
|
258
|
+
.leeway/
|
|
259
|
+
├── reports/
|
|
260
|
+
│ ├── audit-{timestamp}.json
|
|
261
|
+
│ ├── compliance-{timestamp}.json
|
|
262
|
+
│ └── metrics-{timestamp}.json
|
|
263
|
+
├── metrics/
|
|
264
|
+
│ └── compliance-score-history.json
|
|
265
|
+
└── config.json
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
### Reading Reports
|
|
269
|
+
|
|
270
|
+
**Compliance Report Format**:
|
|
271
|
+
|
|
272
|
+
```json
|
|
273
|
+
{
|
|
274
|
+
"timestamp": "2026-03-15T12:00:00Z",
|
|
275
|
+
"status": "COMPLIANT",
|
|
276
|
+
"score": 92,
|
|
277
|
+
"summary": {
|
|
278
|
+
"totalSkills": 45,
|
|
279
|
+
"compliant": 44,
|
|
280
|
+
"nonCompliant": 1,
|
|
281
|
+
"warnings": 0
|
|
282
|
+
},
|
|
283
|
+
"failedSkills": [...],
|
|
284
|
+
"recommendations": [...]
|
|
285
|
+
}
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
---
|
|
289
|
+
|
|
290
|
+
## 🛠️ Common Tasks
|
|
291
|
+
|
|
292
|
+
### Check if Skill is Compliant
|
|
293
|
+
|
|
294
|
+
```powershell
|
|
295
|
+
node scripts/leeway-agents/compliance-monitor.js | grep "skill-name"
|
|
296
|
+
|
|
297
|
+
# Look for skill in "passed" section (good)
|
|
298
|
+
# or "failed" section (needs fixing)
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
### Add Header to Single Skill
|
|
302
|
+
|
|
303
|
+
```powershell
|
|
304
|
+
# Manually edit the SKILL.md file, or
|
|
305
|
+
# Use header-injector which does all at once
|
|
306
|
+
node scripts/leeway-agents/header-injector.js
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
### Update Leeway Configuration
|
|
310
|
+
|
|
311
|
+
```powershell
|
|
312
|
+
# Edit .leeway/config.json
|
|
313
|
+
# Then validate:
|
|
314
|
+
node scripts/init-leeway.js
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
### Schedule Automatic Monitoring
|
|
318
|
+
|
|
319
|
+
#### Windows Task Scheduler
|
|
320
|
+
|
|
321
|
+
```powershell
|
|
322
|
+
# Create scheduled task for hourly compliance checks
|
|
323
|
+
$trigger = New-ScheduledTaskTrigger -RepetitionInterval (New-TimeSpan -Hours 1) -At "00:00"
|
|
324
|
+
$action = New-ScheduledTaskAction -Execute "node" -Argument "scripts/leeway-agents/compliance-monitor.js" -WorkingDirectory "c:\Tools\Leeway-Skills"
|
|
325
|
+
Register-ScheduledTask -TaskName "Leeway-Skills-Compliance" -Trigger $trigger -Action $action
|
|
326
|
+
```
|
|
327
|
+
|
|
328
|
+
#### Cron (Linux/Mac)
|
|
329
|
+
|
|
330
|
+
```bash
|
|
331
|
+
# Run compliance check hourly
|
|
332
|
+
0 * * * * cd /path/to/Leeway-Skills && node scripts/leeway-agents/compliance-monitor.js
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
---
|
|
336
|
+
|
|
337
|
+
## 🚨 Troubleshooting
|
|
338
|
+
|
|
339
|
+
### "Compliance Score Below 85"
|
|
340
|
+
|
|
341
|
+
```powershell
|
|
342
|
+
# See what's failing
|
|
343
|
+
node scripts/leeway-agents/compliance-monitor.js
|
|
344
|
+
|
|
345
|
+
# Usually: missing headers
|
|
346
|
+
# Fix:
|
|
347
|
+
node scripts/leeway-agents/header-injector.js
|
|
348
|
+
|
|
349
|
+
# Verify
|
|
350
|
+
node scripts/leeway-agents/compliance-monitor.js
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
### "Cannot Find .leeway/config.json"
|
|
354
|
+
|
|
355
|
+
```powershell
|
|
356
|
+
# Re-initialize:
|
|
357
|
+
node scripts/init-leeway.js
|
|
358
|
+
|
|
359
|
+
# This creates .leeway/config.json
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
### "Secret Detected in SKILL.md"
|
|
363
|
+
|
|
364
|
+
```powershell
|
|
365
|
+
# Find the issue:
|
|
366
|
+
grep -i "password\|secret\|apikey\|token" skills/**/*.md
|
|
367
|
+
|
|
368
|
+
# Remove hardcoded secrets
|
|
369
|
+
# Use environment variables instead
|
|
370
|
+
# Example: ${env.API_KEY} or process.env.API_KEY
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
### "Circular Dependency Warning"
|
|
374
|
+
|
|
375
|
+
- Check if Skill A imports Skill B and Skill B imports Skill A
|
|
376
|
+
- Refactor to remove the circle
|
|
377
|
+
- Verify with: `compliance-monitor.js`
|
|
378
|
+
|
|
379
|
+
---
|
|
380
|
+
|
|
381
|
+
## 📚 Full Documentation
|
|
382
|
+
|
|
383
|
+
For more details, see:
|
|
384
|
+
|
|
385
|
+
- `documents/LEEWAY_STANDARDS_COMPLIANCE.md` — Complete compliance guide
|
|
386
|
+
- `.leeway/config.json` — All configuration options
|
|
387
|
+
- `LeeWay-Standards/README.md` — Leeway framework documentation
|
|
388
|
+
|
|
389
|
+
---
|
|
390
|
+
|
|
391
|
+
## ✅ Compliance Checklist
|
|
392
|
+
|
|
393
|
+
Before deploying changes:
|
|
394
|
+
|
|
395
|
+
- [ ] Run `init-leeway.js` to verify setup
|
|
396
|
+
- [ ] Run `compliance-monitor.js` to check score
|
|
397
|
+
- [ ] All SKILL.md files have Leeway headers
|
|
398
|
+
- [ ] Score is 85+ (or blockOnFail = false)
|
|
399
|
+
- [ ] No secrets detected
|
|
400
|
+
- [ ] No circular dependencies
|
|
401
|
+
- [ ] Tags follow REGION.TAG format
|
|
402
|
+
- [ ] Documentation is complete
|
|
403
|
+
|
|
404
|
+
---
|
|
405
|
+
|
|
406
|
+
## 📞 Need Help?
|
|
407
|
+
|
|
408
|
+
1. **Check compliance report**: `.leeway/reports/`
|
|
409
|
+
2. **Run diagnostic**: `node scripts/init-leeway.js`
|
|
410
|
+
3. **Fix headers**: `node scripts/leeway-agents/header-injector.js`
|
|
411
|
+
4. **Read docs**: `documents/LEEWAY_STANDARDS_COMPLIANCE.md`
|
|
412
|
+
|
|
413
|
+
**Status**: ✅ Leeway Standards integrated and monitoring
|
|
414
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# Leeway Agent Skills NPM SDK
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
The root package now ships the **full Leeway Agent Skills application** as an installable npm SDK.
|
|
6
|
+
|
|
7
|
+
Package name:
|
|
8
|
+
|
|
9
|
+
```text
|
|
10
|
+
@leeway/agent-skills
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
That package includes:
|
|
14
|
+
|
|
15
|
+
- The packaged skill library in `skills/`
|
|
16
|
+
- The workflows and supporting docs in `documents/`
|
|
17
|
+
- The governance and compliance scripts in `scripts/`
|
|
18
|
+
- The Leeway Standards toolkit in `LeeWay-Standards/`
|
|
19
|
+
- The prebuilt MCP server in `mcp-server/dist/`
|
|
20
|
+
- The source files for the MCP server in `mcp-server/src/`
|
|
21
|
+
- The badge asset `agentbage.png.png`
|
|
22
|
+
- The Leeway runtime config in `.leeway/config.json`
|
|
23
|
+
|
|
24
|
+
## Install
|
|
25
|
+
|
|
26
|
+
```powershell
|
|
27
|
+
npm install @leeway/agent-skills
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## CLI Commands
|
|
31
|
+
|
|
32
|
+
```powershell
|
|
33
|
+
leeway-agent-skills info
|
|
34
|
+
leeway-agent-skills paths --json
|
|
35
|
+
leeway-agent-skills extract .\leeway-agent-skills-app
|
|
36
|
+
leeway-agent-skills-mcp
|
|
37
|
+
leeway-agent-skills-badge .\public "My App" mcp-server
|
|
38
|
+
leeway-standards doctor
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## JavaScript Usage
|
|
42
|
+
|
|
43
|
+
```js
|
|
44
|
+
import {
|
|
45
|
+
getPackageSummary,
|
|
46
|
+
getPackagedPaths,
|
|
47
|
+
installLeewaySkillsBadgeBundle,
|
|
48
|
+
startLeewaySkillsMCPServer,
|
|
49
|
+
extractLeewayApplication,
|
|
50
|
+
} from "@leeway/agent-skills";
|
|
51
|
+
|
|
52
|
+
const summary = await getPackageSummary();
|
|
53
|
+
console.log(summary.activeSkills);
|
|
54
|
+
|
|
55
|
+
await installLeewaySkillsBadgeBundle({
|
|
56
|
+
targetDir: "./public/leeway",
|
|
57
|
+
appName: "My App",
|
|
58
|
+
integrationMethod: "mcp-server",
|
|
59
|
+
});
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Notes
|
|
63
|
+
|
|
64
|
+
- `npm install` now brings down the full packaged application bundle.
|
|
65
|
+
- `leeway-agent-skills extract` can materialize that bundle into a standalone directory if you want a writable local copy outside `node_modules`.
|
|
66
|
+
- The MCP server and badge tooling are ready immediately after install because the package ships the built `mcp-server/dist/` output.
|