@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,361 @@
|
|
|
1
|
+
# Leeway Standards Compliance for Leeway Skills
|
|
2
|
+
|
|
3
|
+
**A Leeway Industries Initiative**
|
|
4
|
+
_By Leonard Jerome Lee_
|
|
5
|
+
|
|
6
|
+
**Status**: ✅ **ACTIVE COMPLIANCE MONITORING**
|
|
7
|
+
**Latest Audit**: March 15, 2026
|
|
8
|
+
**Compliance Score**: 85+
|
|
9
|
+
**Framework Version**: Leeway SDK 1.0.0
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## 📋 Overview
|
|
14
|
+
|
|
15
|
+
Leeway Skills is fully integrated with the **Leeway Standards** compliance and governance framework. All skills, agents, and project files conform to Leeway's requirements for:
|
|
16
|
+
|
|
17
|
+
- **Mandatory Code Governance** (enforced)
|
|
18
|
+
- No secrets in code
|
|
19
|
+
- Leeway headers on all tracked files
|
|
20
|
+
- Valid tags and regions
|
|
21
|
+
- No circular dependencies
|
|
22
|
+
|
|
23
|
+
- **Quality Standards** (monitored)
|
|
24
|
+
- Naming conventions
|
|
25
|
+
- Documentation coverage
|
|
26
|
+
- Metadata completeness
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## 🔍 Leeway Compliance Structure
|
|
31
|
+
|
|
32
|
+
### Configuration
|
|
33
|
+
|
|
34
|
+
**Location**: `.leeway/config.json`
|
|
35
|
+
|
|
36
|
+
Key settings:
|
|
37
|
+
|
|
38
|
+
- **Minimum Compliance Score**: 85/100
|
|
39
|
+
- **Enforced Policies**: NO_SECRETS_IN_CODE, HEADERS_REQUIRED, TAGS_REQUIRED, NO_CIRCULAR_DEPS
|
|
40
|
+
- **Root Directory**: `skills/` (all SKILL.md files)
|
|
41
|
+
- **Monitoring**: Enabled (continuous)
|
|
42
|
+
|
|
43
|
+
### Active Compliance Agents
|
|
44
|
+
|
|
45
|
+
| Agent | Purpose | Schedule | Status |
|
|
46
|
+
| --------------------- | -------------------------------------------- | ---------- | ------------ |
|
|
47
|
+
| **ComplianceMonitor** | Scans all skills for Leeway compliance | Hourly | ✅ Active |
|
|
48
|
+
| **HeaderInjector** | Adds/updates Leeway headers | On-demand | ✅ Available |
|
|
49
|
+
| **SkillValidator** | Validates metadata and tags | Per-commit | ✅ Active |
|
|
50
|
+
| **AutonomyAuditor** | Checks agent patterns and memory integration | Weekly | ✅ Active |
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## 🎯 Leeway Header Format
|
|
55
|
+
|
|
56
|
+
Every SKILL.md file must start with a **Leeway Header**:
|
|
57
|
+
|
|
58
|
+
```markdown
|
|
59
|
+
/\*
|
|
60
|
+
LEEWAY HEADER — DO NOT REMOVE
|
|
61
|
+
|
|
62
|
+
REGION: AI.AGENT.CATEGORY
|
|
63
|
+
TAG: AI.AGENT.CATEGORY.SKILL_NAME
|
|
64
|
+
|
|
65
|
+
COLOR_ONION_HEX:
|
|
66
|
+
NEON=#39FF14
|
|
67
|
+
FLUO=#0DFF94
|
|
68
|
+
PASTEL=#C7FFD8
|
|
69
|
+
|
|
70
|
+
ICON_ASCII:
|
|
71
|
+
family=lucide
|
|
72
|
+
glyph=zap
|
|
73
|
+
|
|
74
|
+
5WH:
|
|
75
|
+
WHAT = One-line description
|
|
76
|
+
WHY = Why this skill exists
|
|
77
|
+
WHO = Who created/maintains it
|
|
78
|
+
WHERE = File location
|
|
79
|
+
WHEN = Year/version
|
|
80
|
+
HOW = How it works in brief
|
|
81
|
+
|
|
82
|
+
AGENTS:
|
|
83
|
+
ASSESS
|
|
84
|
+
AUDIT
|
|
85
|
+
|
|
86
|
+
LICENSE:
|
|
87
|
+
MIT
|
|
88
|
+
\*/
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Header Components Explained
|
|
92
|
+
|
|
93
|
+
**REGION**: Hierarchical namespace
|
|
94
|
+
|
|
95
|
+
- Format: `AI.CATEGORY.SUBCATEGORY` or `DEV.CATEGORY`
|
|
96
|
+
- Examples: `AI.AGENT.AUTONOMY`, `DEV.CODEGEN`
|
|
97
|
+
|
|
98
|
+
**TAG**: Unique identifier for this specific skill
|
|
99
|
+
|
|
100
|
+
- Format: `REGION.SKILL_NAME_UPPERCASE`
|
|
101
|
+
- Example: `AI.AGENT.AUTONOMY.FULL_STACK_DELIVERY`
|
|
102
|
+
|
|
103
|
+
**COLOR_ONION_HEX**: Visual identity in Leeway UI
|
|
104
|
+
|
|
105
|
+
- NEON: Bright accent color (primary)
|
|
106
|
+
- FLUO: Fluorescent accent (secondary)
|
|
107
|
+
- PASTEL: Soft background (optional)
|
|
108
|
+
|
|
109
|
+
**ICON_ASCII**: Lucide icon reference
|
|
110
|
+
|
|
111
|
+
- `family=lucide` (all Leeway Skills use this)
|
|
112
|
+
- `glyph=zap`, `glyph=bot`, `glyph=check-circle`, etc.
|
|
113
|
+
|
|
114
|
+
**5WH**: Concise documentation
|
|
115
|
+
|
|
116
|
+
- **WHAT**: What does this do?
|
|
117
|
+
- **WHY**: Why does it matter?
|
|
118
|
+
- **WHO**: Who made/maintains it?
|
|
119
|
+
- **WHERE**: File path
|
|
120
|
+
- **WHEN**: Year/season
|
|
121
|
+
- **HOW**: Implementation approach
|
|
122
|
+
|
|
123
|
+
**AGENTS**: Which Leeway agents govern this
|
|
124
|
+
|
|
125
|
+
- `ASSESS` (validates correctness)
|
|
126
|
+
- `AUDIT` (checks compliance)
|
|
127
|
+
- `ENFORCE` (prevents violations)
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## 📊 Compliance Policies
|
|
132
|
+
|
|
133
|
+
### Enforced (Violations → Non-Compliant)
|
|
134
|
+
|
|
135
|
+
#### NO_SECRETS_IN_CODE
|
|
136
|
+
|
|
137
|
+
**Blocks**: Passwords, API keys, private keys, tokens hardcoded in files
|
|
138
|
+
|
|
139
|
+
Detection patterns:
|
|
140
|
+
|
|
141
|
+
```
|
|
142
|
+
password\s*[=:]
|
|
143
|
+
secret\s*[=:]
|
|
144
|
+
apikey|api_key|private_key\s*[=:]
|
|
145
|
+
token\s*[=:]
|
|
146
|
+
-----BEGIN ... -----END (certificate blocks)
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
**Fix**: Use environment variables, config files, or secure vaults.
|
|
150
|
+
|
|
151
|
+
#### HEADERS_REQUIRED
|
|
152
|
+
|
|
153
|
+
**Blocks**: SKILL.md files without valid Leeway headers
|
|
154
|
+
|
|
155
|
+
**Fix**: Run `node scripts/leeway-agents/header-injector.js` to auto-inject
|
|
156
|
+
|
|
157
|
+
#### TAGS_REQUIRED
|
|
158
|
+
|
|
159
|
+
**Blocks**: Files without REGION and TAG in Leeway header
|
|
160
|
+
|
|
161
|
+
**Fix**: Ensure header includes both REGION and TAG fields
|
|
162
|
+
|
|
163
|
+
#### NO_CIRCULAR_DEPS
|
|
164
|
+
|
|
165
|
+
**Blocks**: Circular dependencies between skills
|
|
166
|
+
|
|
167
|
+
**Fix**: Refactor skill dependencies to form a DAG
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
### Warnings (Does Not Block)
|
|
172
|
+
|
|
173
|
+
#### NAMING_CONVENTIONS
|
|
174
|
+
|
|
175
|
+
- Skills: kebab-case (e.g., `full-stack-delivery`)
|
|
176
|
+
- Categories: kebab-case (e.g., `agent-autonomy`)
|
|
177
|
+
- Regions: UPPER_SNAKE_CASE (e.g., `AI_AGENT_AUTONOMY`)
|
|
178
|
+
|
|
179
|
+
#### DOCUMENTATION_COVERAGE
|
|
180
|
+
|
|
181
|
+
- Minimum 80% documentation coverage expected
|
|
182
|
+
- All capabilities must be described
|
|
183
|
+
- Error paths should be documented
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
## ✅ Running Compliance Checks
|
|
188
|
+
|
|
189
|
+
### Check Compliance Score
|
|
190
|
+
|
|
191
|
+
```powershell
|
|
192
|
+
# Run compliance monitor (detailed report)
|
|
193
|
+
node scripts/leeway-agents/compliance-monitor.js
|
|
194
|
+
|
|
195
|
+
# Output includes:
|
|
196
|
+
# - Compliance Score (0-100)
|
|
197
|
+
# - Per-skill validation results
|
|
198
|
+
# - Policy violations
|
|
199
|
+
# - Remediation recommendations
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### Auto-Inject Headers (Dry Run)
|
|
203
|
+
|
|
204
|
+
```powershell
|
|
205
|
+
# Preview what would be changed
|
|
206
|
+
$env:DRY_RUN = 'true'
|
|
207
|
+
node scripts/leeway-agents/header-injector.js
|
|
208
|
+
|
|
209
|
+
# Output shows which skills would get headers
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
### Auto-Inject Headers (Apply)
|
|
213
|
+
|
|
214
|
+
```powershell
|
|
215
|
+
# Actually inject headers into SKILL.md files
|
|
216
|
+
node scripts/leeway-agents/header-injector.js
|
|
217
|
+
|
|
218
|
+
# Output shows which skills were updated
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
### Continuous Monitoring
|
|
222
|
+
|
|
223
|
+
Compliance is monitored automatically:
|
|
224
|
+
|
|
225
|
+
- **Hourly**: ComplianceMonitor scans all skills
|
|
226
|
+
- **Per-skill-update**: SkillValidator checks metadata
|
|
227
|
+
- **Weekly**: AutonomyAuditor validates agent patterns
|
|
228
|
+
- **Reports**: Saved to `.leeway/reports/`
|
|
229
|
+
|
|
230
|
+
---
|
|
231
|
+
|
|
232
|
+
## 🗂️ Category-to-REGION Mapping
|
|
233
|
+
|
|
234
|
+
Leeway Skills categories map to Leeway REGION hierarchy:
|
|
235
|
+
|
|
236
|
+
| Category | REGION | Neon | Fluo |
|
|
237
|
+
| -------------------- | ---------------------- | ------- | ------- |
|
|
238
|
+
| agent-autonomy | AI.AGENT.AUTONOMY | #39FF14 | #0DFF94 |
|
|
239
|
+
| agent-orchestration | AI.AGENT.ORCHESTRATION | #FF00FF | #FF1493 |
|
|
240
|
+
| agent-patterns | AI.AGENT.PATTERNS | #00FFFF | #00CED1 |
|
|
241
|
+
| self-optimization | AI.OPTIMIZATION | #FFD700 | #FFA500 |
|
|
242
|
+
| quality-assurance | AI.QA | #32CD32 | #00FF00 |
|
|
243
|
+
| workflow-composition | AI.WORKFLOW | #FF6347 | #FF7F50 |
|
|
244
|
+
| tool-integration | AI.TOOLS | #9370DB | #9932CC |
|
|
245
|
+
| rag-knowledge | AI.RAG | #20B2AA | #23D8D8 |
|
|
246
|
+
| prompt-optimization | AI.PROMPTS | #FF69B4 | #FFB6C1 |
|
|
247
|
+
| code-generation | DEV.CODEGEN | #39FF14 | #0DFF94 |
|
|
248
|
+
| code-analysis | DEV.ANALYSIS | #FF1493 | #FF69B4 |
|
|
249
|
+
| testing | DEV.QA | #00FF00 | #32CD32 |
|
|
250
|
+
| security | DEV.SECURITY | #FF0000 | #DC143C |
|
|
251
|
+
| devops | DEV.DEVOPS | #FF8C00 | #FFA500 |
|
|
252
|
+
|
|
253
|
+
---
|
|
254
|
+
|
|
255
|
+
## 🚀 Maintaining Compliance
|
|
256
|
+
|
|
257
|
+
### When Adding a New Skill
|
|
258
|
+
|
|
259
|
+
1. **Create skill directory** with SKILL.md
|
|
260
|
+
2. **Add Leeway header** (use header-injector or manual)
|
|
261
|
+
3. **Map category** to correct REGION
|
|
262
|
+
4. **Add metadata**: name, version, tags, description
|
|
263
|
+
5. **Run compliance check**: `node scripts/leeway-agents/compliance-monitor.js`
|
|
264
|
+
6. **Verify** score is 85+
|
|
265
|
+
|
|
266
|
+
### When Updating Skills
|
|
267
|
+
|
|
268
|
+
1. **Keep header intact** (required by Leeway)
|
|
269
|
+
2. **Update TAG** if renaming skill
|
|
270
|
+
3. **Update year** in WHEN field
|
|
271
|
+
4. **Run validation** before committing
|
|
272
|
+
5. **Check** no secrets were accidentally added
|
|
273
|
+
|
|
274
|
+
### When Working with Agent Patterns
|
|
275
|
+
|
|
276
|
+
All autonomy agents must:
|
|
277
|
+
|
|
278
|
+
- Implement `describe()` method
|
|
279
|
+
- Return structured `{ agent, status, timestamp, durationMs, result }`
|
|
280
|
+
- Respect rootDir and options
|
|
281
|
+
- Never throw silently (always return error status)
|
|
282
|
+
- Update compliance logs
|
|
283
|
+
|
|
284
|
+
---
|
|
285
|
+
|
|
286
|
+
## 📈 Compliance Metrics
|
|
287
|
+
|
|
288
|
+
Tracked metrics (in `.leeway/metrics/`):
|
|
289
|
+
|
|
290
|
+
- **Compliance Score Over Time**: trend graph
|
|
291
|
+
- **Policy Violations**: by type and severity
|
|
292
|
+
- **Header Coverage**: % of skills with valid headers
|
|
293
|
+
- **Documentation Coverage**: % of capabilities documented
|
|
294
|
+
- **Agent Execution**: timing and success rates
|
|
295
|
+
- **Audit Trail**: all compliance events
|
|
296
|
+
|
|
297
|
+
---
|
|
298
|
+
|
|
299
|
+
## 🔗 Leeway Standards Reference
|
|
300
|
+
|
|
301
|
+
- **Leeway SDK Documentation**: [docs.leeway.io](https://docs.leeway.io)
|
|
302
|
+
- **Header Specification**: `.leeway/config.json` (this project)
|
|
303
|
+
- **Example Agent**: `LeeWay-Standards/examples/example-agent.js`
|
|
304
|
+
- **Policy Definitions**: `.leeway/config.json` > `policies.*`
|
|
305
|
+
|
|
306
|
+
---
|
|
307
|
+
|
|
308
|
+
## 📝 Compliance Checklist
|
|
309
|
+
|
|
310
|
+
Before marking a skill as "complete":
|
|
311
|
+
|
|
312
|
+
- [ ] SKILL.md has valid Leeway header
|
|
313
|
+
- [ ] REGION and TAG are correct for category
|
|
314
|
+
- [ ] No secrets in code or examples
|
|
315
|
+
- [ ] All capabilities have descriptions
|
|
316
|
+
- [ ] Use cases and techniques documented
|
|
317
|
+
- [ ] Error handling explained
|
|
318
|
+
- [ ] No circular dependencies
|
|
319
|
+
- [ ] Naming follows conventions
|
|
320
|
+
- [ ] ComplianceMonitor reports GREEN
|
|
321
|
+
- [ ] No warnings flagged
|
|
322
|
+
|
|
323
|
+
---
|
|
324
|
+
|
|
325
|
+
## 🛠️ Troubleshooting
|
|
326
|
+
|
|
327
|
+
### "Compliance Score Too Low"
|
|
328
|
+
|
|
329
|
+
→ Run `node scripts/leeway-agents/header-injector.js` to add missing headers
|
|
330
|
+
|
|
331
|
+
### "Missing SKILL.md in Directory"
|
|
332
|
+
|
|
333
|
+
→ Check skill path matches: `skills/{category}/{skillname}/SKILL.md`
|
|
334
|
+
|
|
335
|
+
### "Secrets Detected"
|
|
336
|
+
|
|
337
|
+
→ Review content for hardcoded passwords/keys; move to environment variables
|
|
338
|
+
|
|
339
|
+
### "No TAG or REGION in Header"
|
|
340
|
+
|
|
341
|
+
→ Ensure 5WH section exists in header comment block
|
|
342
|
+
|
|
343
|
+
### "Circular Dependency Warning"
|
|
344
|
+
|
|
345
|
+
→ Check skill requirements; refactor to remove circular imports
|
|
346
|
+
|
|
347
|
+
---
|
|
348
|
+
|
|
349
|
+
## 📞 Support
|
|
350
|
+
|
|
351
|
+
For compliance issues:
|
|
352
|
+
|
|
353
|
+
1. Check `.leeway/reports/` for last audit
|
|
354
|
+
2. Run `compliance-monitor.js` for detailed findings
|
|
355
|
+
3. Review this documentation for remediation
|
|
356
|
+
4. Use `header-injector.js` for automated fixes
|
|
357
|
+
|
|
358
|
+
**Status Dashboard**: All compliance agents running ✅
|
|
359
|
+
|
|
360
|
+
Last Updated: March 15, 2026
|
|
361
|
+
|