@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,70 @@
|
|
|
1
|
+
/*
|
|
2
|
+
LEEWAY HEADER — DO NOT REMOVE
|
|
3
|
+
|
|
4
|
+
REGION: AI.RAG
|
|
5
|
+
TAG: AI.RAG.RAG_SYSTEMS
|
|
6
|
+
|
|
7
|
+
COLOR_ONION_HEX:
|
|
8
|
+
NEON=#20B2AA
|
|
9
|
+
FLUO=#23D8D8
|
|
10
|
+
PASTEL=#E8F5E9
|
|
11
|
+
|
|
12
|
+
ICON_ASCII:
|
|
13
|
+
family=lucide
|
|
14
|
+
glyph=zap
|
|
15
|
+
|
|
16
|
+
5WH:
|
|
17
|
+
WHAT = rag systems skill for Leeway-compliant AI systems
|
|
18
|
+
WHY = Provides capabilities for rag-knowledge within the AIskills ecosystem
|
|
19
|
+
WHO = Leeway Industries (By Leonard Jerome Lee)
|
|
20
|
+
WHERE = skills/rag-knowledge/rag-systems/SKILL.md
|
|
21
|
+
WHEN = 2026
|
|
22
|
+
HOW = Leeway-governed skill.md definition with structured capabilities and tags
|
|
23
|
+
|
|
24
|
+
AGENTS:
|
|
25
|
+
ASSESS
|
|
26
|
+
AUDIT
|
|
27
|
+
|
|
28
|
+
LICENSE:
|
|
29
|
+
MIT
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
# RAG (Retrieval-Augmented Generation)
|
|
33
|
+
|
|
34
|
+
**Expert in**: Building knowledge-grounded AI systems that retrieve and synthesize information from external sources.
|
|
35
|
+
|
|
36
|
+
## Capabilities
|
|
37
|
+
|
|
38
|
+
- Design and implement RAG architectures
|
|
39
|
+
- Build document indexing and chunking strategies
|
|
40
|
+
- Implement semantic search and retrieval
|
|
41
|
+
- Create knowledge graph construction and querying
|
|
42
|
+
- Handle multi-source document fusion
|
|
43
|
+
- Implement retrieval evaluation and optimization
|
|
44
|
+
- Create feedback loops for RAG quality improvement
|
|
45
|
+
- Handle hallucination mitigation through grounding
|
|
46
|
+
|
|
47
|
+
## Use this skill when:
|
|
48
|
+
|
|
49
|
+
- Building AI systems grounded in your data
|
|
50
|
+
- Creating knowledge question-answering systems
|
|
51
|
+
- Implementing document analysis and synthesis
|
|
52
|
+
- Building research assistants
|
|
53
|
+
- Creating domain-specific AI systems
|
|
54
|
+
- Reducing model hallucinations
|
|
55
|
+
- Handling context length limitations
|
|
56
|
+
|
|
57
|
+
## Key techniques
|
|
58
|
+
|
|
59
|
+
- Vector embeddings and similarity search
|
|
60
|
+
- BM25 and sparse retrieval
|
|
61
|
+
- Hybrid search strategies
|
|
62
|
+
- Knowledge graph construction
|
|
63
|
+
- Entity extraction and linking
|
|
64
|
+
- Document chunking strategies (recursive, semantic)
|
|
65
|
+
- BLIP-2 and multi-modal retrieval
|
|
66
|
+
- ColBERT and learned ranking
|
|
67
|
+
|
|
68
|
+
## Tags
|
|
69
|
+
|
|
70
|
+
`rag` `retrieval` `knowledge-management` `embedding` `semantic-search` `grounding`
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/*
|
|
2
|
+
LEEWAY HEADER — DO NOT REMOVE
|
|
3
|
+
|
|
4
|
+
REGION: AI.SKILL.RESEARCH
|
|
5
|
+
TAG: AI.SKILL.RESEARCH.KNOWLEDGE_SYNTHESIS
|
|
6
|
+
|
|
7
|
+
COLOR_ONION_HEX:
|
|
8
|
+
NEON=#39FF14
|
|
9
|
+
FLUO=#0DFF94
|
|
10
|
+
PASTEL=#E8F5E9
|
|
11
|
+
|
|
12
|
+
ICON_ASCII:
|
|
13
|
+
family=lucide
|
|
14
|
+
glyph=zap
|
|
15
|
+
|
|
16
|
+
5WH:
|
|
17
|
+
WHAT = knowledge synthesis skill for Leeway-compliant AI systems
|
|
18
|
+
WHY = Provides capabilities for research within the AIskills ecosystem
|
|
19
|
+
WHO = Leeway Industries (By Leonard Jerome Lee)
|
|
20
|
+
WHERE = skills/research/knowledge-synthesis/SKILL.md
|
|
21
|
+
WHEN = 2026
|
|
22
|
+
HOW = Leeway-governed skill.md definition with structured capabilities and tags
|
|
23
|
+
|
|
24
|
+
AGENTS:
|
|
25
|
+
ASSESS
|
|
26
|
+
AUDIT
|
|
27
|
+
|
|
28
|
+
LICENSE:
|
|
29
|
+
MIT
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
# Knowledge Synthesis and Research
|
|
33
|
+
|
|
34
|
+
**Expert in**: Synthesizing information from multiple sources into coherent, actionable insights through agent-driven research.
|
|
35
|
+
|
|
36
|
+
## Capabilities
|
|
37
|
+
|
|
38
|
+
- Design multi-source research workflows
|
|
39
|
+
- Implement fact-checking and verification
|
|
40
|
+
- Create knowledge synthesis pipelines
|
|
41
|
+
- Build comparative analysis systems
|
|
42
|
+
- Design literature review automation
|
|
43
|
+
- Implement citation and source tracking
|
|
44
|
+
- Create contradiction detection
|
|
45
|
+
- Build consensus-finding mechanisms
|
|
46
|
+
|
|
47
|
+
## Use this skill when:
|
|
48
|
+
|
|
49
|
+
- Building research-focused agents
|
|
50
|
+
- Synthesizing information from multiple sources
|
|
51
|
+
- Creating comprehensive analyses
|
|
52
|
+
- Fact-checking and verification
|
|
53
|
+
- Literature reviews and surveys
|
|
54
|
+
- Comparing multiple solutions
|
|
55
|
+
- Creating knowledge summaries
|
|
56
|
+
- Building trustworthy information systems
|
|
57
|
+
|
|
58
|
+
## Key techniques
|
|
59
|
+
|
|
60
|
+
- Multi-hop reasoning and information retrieval
|
|
61
|
+
- Source credibility evaluation
|
|
62
|
+
- Stance detection and bias analysis
|
|
63
|
+
- Contradiction identification
|
|
64
|
+
- Knowledge graph construction
|
|
65
|
+
- Citation networks and influence maps
|
|
66
|
+
- Summary generation from multiple sources
|
|
67
|
+
- Consensus detection and aggregation
|
|
68
|
+
|
|
69
|
+
## Tags
|
|
70
|
+
|
|
71
|
+
`research` `synthesis` `knowledge` `fact-checking` `multi-source` `analysis`
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/*
|
|
2
|
+
LEEWAY HEADER — DO NOT REMOVE
|
|
3
|
+
|
|
4
|
+
REGION: DEV.SECURITY
|
|
5
|
+
TAG: DEV.SECURITY.AUTHENTICATION_AUTHORIZATION
|
|
6
|
+
|
|
7
|
+
COLOR_ONION_HEX:
|
|
8
|
+
NEON=#FF0000
|
|
9
|
+
FLUO=#DC143C
|
|
10
|
+
PASTEL=#E8F5E9
|
|
11
|
+
|
|
12
|
+
ICON_ASCII:
|
|
13
|
+
family=lucide
|
|
14
|
+
glyph=zap
|
|
15
|
+
|
|
16
|
+
5WH:
|
|
17
|
+
WHAT = authentication authorization skill for Leeway-compliant AI systems
|
|
18
|
+
WHY = Provides capabilities for security within the AIskills ecosystem
|
|
19
|
+
WHO = Leeway Industries (By Leonard Jerome Lee)
|
|
20
|
+
WHERE = skills/security/authentication-authorization/SKILL.md
|
|
21
|
+
WHEN = 2026
|
|
22
|
+
HOW = Leeway-governed skill.md definition with structured capabilities and tags
|
|
23
|
+
|
|
24
|
+
AGENTS:
|
|
25
|
+
ASSESS
|
|
26
|
+
AUDIT
|
|
27
|
+
|
|
28
|
+
LICENSE:
|
|
29
|
+
MIT
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
# Authentication and Authorization
|
|
33
|
+
|
|
34
|
+
**Expert in**: Implementing robust authentication and authorization systems that are both secure and user-friendly.
|
|
35
|
+
|
|
36
|
+
## Capabilities
|
|
37
|
+
|
|
38
|
+
- Design authentication flows (password, 2FA, MFA)
|
|
39
|
+
- Implement OAuth2 and OIDC
|
|
40
|
+
- Create RBAC and ABAC systems
|
|
41
|
+
- Build JWT and session token systems
|
|
42
|
+
- Implement single sign-on (SSO)
|
|
43
|
+
- Design API authentication
|
|
44
|
+
- Create permission models
|
|
45
|
+
- Implement audit trails for auth events
|
|
46
|
+
|
|
47
|
+
## Use this skill when:
|
|
48
|
+
|
|
49
|
+
- Building user authentication
|
|
50
|
+
- Implementing access control
|
|
51
|
+
- Integrating with identity providers
|
|
52
|
+
- Meeting compliance requirements
|
|
53
|
+
- Designing multi-tenant systems
|
|
54
|
+
- Implementing API security
|
|
55
|
+
- Managing user sessions
|
|
56
|
+
- Audit and compliance needs
|
|
57
|
+
|
|
58
|
+
## Key techniques
|
|
59
|
+
|
|
60
|
+
- OAuth2 flows (authorization code, client credentials)
|
|
61
|
+
- OIDC for authentication
|
|
62
|
+
- JWT tokens and refresh tokens
|
|
63
|
+
- PBKDF2, bcrypt, scrypt password hashing
|
|
64
|
+
- TOTP and FIDO2 for MFA
|
|
65
|
+
- RBAC and capability-based access
|
|
66
|
+
- Attribute-based access control
|
|
67
|
+
- API key and token strategies
|
|
68
|
+
|
|
69
|
+
## Tags
|
|
70
|
+
|
|
71
|
+
`security` `authentication` `authorization` `oauth2` `oidc` `access-control`
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/*
|
|
2
|
+
LEEWAY HEADER — DO NOT REMOVE
|
|
3
|
+
|
|
4
|
+
REGION: DEV.SECURITY
|
|
5
|
+
TAG: DEV.SECURITY.CODE_SECURITY
|
|
6
|
+
|
|
7
|
+
COLOR_ONION_HEX:
|
|
8
|
+
NEON=#FF0000
|
|
9
|
+
FLUO=#DC143C
|
|
10
|
+
PASTEL=#E8F5E9
|
|
11
|
+
|
|
12
|
+
ICON_ASCII:
|
|
13
|
+
family=lucide
|
|
14
|
+
glyph=zap
|
|
15
|
+
|
|
16
|
+
5WH:
|
|
17
|
+
WHAT = code security skill for Leeway-compliant AI systems
|
|
18
|
+
WHY = Provides capabilities for security within the AIskills ecosystem
|
|
19
|
+
WHO = Leeway Industries (By Leonard Jerome Lee)
|
|
20
|
+
WHERE = skills/security/code-security/SKILL.md
|
|
21
|
+
WHEN = 2026
|
|
22
|
+
HOW = Leeway-governed skill.md definition with structured capabilities and tags
|
|
23
|
+
|
|
24
|
+
AGENTS:
|
|
25
|
+
ASSESS
|
|
26
|
+
AUDIT
|
|
27
|
+
|
|
28
|
+
LICENSE:
|
|
29
|
+
MIT
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
# Code Security Analysis
|
|
33
|
+
|
|
34
|
+
**Expert in**: Identifying and remediating security vulnerabilities in code.
|
|
35
|
+
|
|
36
|
+
## Capabilities
|
|
37
|
+
|
|
38
|
+
- Identify injection vulnerabilities (SQL, command, XSS)
|
|
39
|
+
- Find authentication and authorization flaws
|
|
40
|
+
- Detect cryptography misuse
|
|
41
|
+
- Identify sensitive data exposure
|
|
42
|
+
- Find dependency vulnerabilities
|
|
43
|
+
- Analyze access control issues
|
|
44
|
+
- Review API security
|
|
45
|
+
|
|
46
|
+
## Use this skill when:
|
|
47
|
+
|
|
48
|
+
- Code security reviews
|
|
49
|
+
- Vulnerability assessment
|
|
50
|
+
- Secure code generation
|
|
51
|
+
- Dependency analysis
|
|
52
|
+
- Preparing for security audits
|
|
53
|
+
- Implementing security fixes
|
|
54
|
+
|
|
55
|
+
## Key techniques
|
|
56
|
+
|
|
57
|
+
- OWASP Top 10 knowledge
|
|
58
|
+
- Secure coding practices
|
|
59
|
+
- Cryptographic implementations
|
|
60
|
+
- Authentication patterns
|
|
61
|
+
- Authorization and access control
|
|
62
|
+
- Input validation and sanitization
|
|
63
|
+
|
|
64
|
+
## Tags
|
|
65
|
+
|
|
66
|
+
`security` `vulnerabilities` `owasp` `cryptography` `api-security`
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/*
|
|
2
|
+
LEEWAY HEADER — DO NOT REMOVE
|
|
3
|
+
|
|
4
|
+
REGION: DEV.SECURITY
|
|
5
|
+
TAG: DEV.SECURITY.SECURE_ARCHITECTURE
|
|
6
|
+
|
|
7
|
+
COLOR_ONION_HEX:
|
|
8
|
+
NEON=#FF0000
|
|
9
|
+
FLUO=#DC143C
|
|
10
|
+
PASTEL=#E8F5E9
|
|
11
|
+
|
|
12
|
+
ICON_ASCII:
|
|
13
|
+
family=lucide
|
|
14
|
+
glyph=zap
|
|
15
|
+
|
|
16
|
+
5WH:
|
|
17
|
+
WHAT = secure architecture skill for Leeway-compliant AI systems
|
|
18
|
+
WHY = Provides capabilities for security within the AIskills ecosystem
|
|
19
|
+
WHO = Leeway Industries (By Leonard Jerome Lee)
|
|
20
|
+
WHERE = skills/security/secure-architecture/SKILL.md
|
|
21
|
+
WHEN = 2026
|
|
22
|
+
HOW = Leeway-governed skill.md definition with structured capabilities and tags
|
|
23
|
+
|
|
24
|
+
AGENTS:
|
|
25
|
+
ASSESS
|
|
26
|
+
AUDIT
|
|
27
|
+
|
|
28
|
+
LICENSE:
|
|
29
|
+
MIT
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
# Secure Architecture Design
|
|
33
|
+
|
|
34
|
+
**Expert in**: Designing systems with security built-in from the ground up using security principles and patterns.
|
|
35
|
+
|
|
36
|
+
## Capabilities
|
|
37
|
+
|
|
38
|
+
- Design defense-in-depth strategies
|
|
39
|
+
- Implement zero-trust architecture
|
|
40
|
+
- Create identity and access frameworks
|
|
41
|
+
- Design secure data flows
|
|
42
|
+
- Implement encryption strategies (at-rest, in-transit)
|
|
43
|
+
- Create network security architecture
|
|
44
|
+
- Design compliance frameworks
|
|
45
|
+
- Implement audit and forensics capabilities
|
|
46
|
+
|
|
47
|
+
## Use this skill when:
|
|
48
|
+
|
|
49
|
+
- Building security-critical systems
|
|
50
|
+
- Handling sensitive data
|
|
51
|
+
- Meeting compliance requirements
|
|
52
|
+
- Designing for threat models
|
|
53
|
+
- Planning security improvements
|
|
54
|
+
- Creating architecture reviews
|
|
55
|
+
- Building regulated systems
|
|
56
|
+
- Incident response planning
|
|
57
|
+
|
|
58
|
+
## Key techniques
|
|
59
|
+
|
|
60
|
+
- Threat modeling (STRIDE, kill chains)
|
|
61
|
+
- Defense-in-depth layers
|
|
62
|
+
- Least privilege and role-based access
|
|
63
|
+
- Network segmentation (VPC, subnets)
|
|
64
|
+
- Encryption key management
|
|
65
|
+
- Secrets management
|
|
66
|
+
- Compliance frameworks (NIST, CIS, SOC2)
|
|
67
|
+
- Security documentation
|
|
68
|
+
|
|
69
|
+
## Tags
|
|
70
|
+
|
|
71
|
+
`security` `architecture` `design` `compliance` `zero-trust` `defense-in-depth`
|
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
/*
|
|
2
|
+
LEEWAY HEADER — DO NOT REMOVE
|
|
3
|
+
|
|
4
|
+
REGION: AI.OPTIMIZATION
|
|
5
|
+
TAG: AI.OPTIMIZATION.DEV_LOOP_OPTIMIZER
|
|
6
|
+
|
|
7
|
+
COLOR_ONION_HEX:
|
|
8
|
+
NEON=#FFD700
|
|
9
|
+
FLUO=#FFA500
|
|
10
|
+
PASTEL=#E8F5E9
|
|
11
|
+
|
|
12
|
+
ICON_ASCII:
|
|
13
|
+
family=lucide
|
|
14
|
+
glyph=zap
|
|
15
|
+
|
|
16
|
+
5WH:
|
|
17
|
+
WHAT = dev loop optimizer skill for Leeway-compliant AI systems
|
|
18
|
+
WHY = Provides capabilities for self-optimization within the AIskills ecosystem
|
|
19
|
+
WHO = Leeway Industries (By Leonard Jerome Lee)
|
|
20
|
+
WHERE = skills/self-optimization/dev-loop-optimizer/SKILL.md
|
|
21
|
+
WHEN = 2026
|
|
22
|
+
HOW = Leeway-governed skill.md definition with structured capabilities and tags
|
|
23
|
+
|
|
24
|
+
AGENTS:
|
|
25
|
+
ASSESS
|
|
26
|
+
AUDIT
|
|
27
|
+
|
|
28
|
+
LICENSE:
|
|
29
|
+
MIT
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
# Dev Loop Optimizer
|
|
33
|
+
|
|
34
|
+
**Expert in**: Accelerating development feedback cycles by identifying bottlenecks in build, test, and deployment loops. Makes development faster and less wasteful without sacrificing quality.
|
|
35
|
+
|
|
36
|
+
**Role**: Developer Experience Engineer
|
|
37
|
+
|
|
38
|
+
## Mission
|
|
39
|
+
|
|
40
|
+
You analyze how developers (or agents) work—how fast they iterate, how often they run tests, and what slows them down—and systematically remove friction. Faster loops mean more experiments, faster learning, and quicker delivery.
|
|
41
|
+
|
|
42
|
+
## Operating Principles
|
|
43
|
+
|
|
44
|
+
1. **Measure iteration cycles**: from code change to feedback (test result, server response, etc.).
|
|
45
|
+
2. **Find bottlenecks**: 80% of slowness usually comes from 1–2 things (slow tests, heavy compile, etc.).
|
|
46
|
+
3. **Optimize ruthlessly**: eliminate wasteful practices, parallelize independent work, cache aggressively.
|
|
47
|
+
4. **Trade quality for speed cautiously**: prioritize fast iteration early (dev), full coverage at boundaries (commits, launches).
|
|
48
|
+
5. **Establish norms**: make fast loops the default so developers don't have to think about it.
|
|
49
|
+
|
|
50
|
+
## Key Metrics
|
|
51
|
+
|
|
52
|
+
Track and optimize:
|
|
53
|
+
|
|
54
|
+
| Metric | Target | How to Measure |
|
|
55
|
+
| ----------------------- | ------------ | --------------------------------------------- |
|
|
56
|
+
| **Build time** | < 10 seconds | Time to transpile, bundle, or compile |
|
|
57
|
+
| **Unit test run time** | < 30 seconds | Time to run focused test suite (not all) |
|
|
58
|
+
| **Full test run time** | < 5 minutes | Time to run all tests (CI-like) |
|
|
59
|
+
| **Server startup time** | < 3 seconds | Time from process start to "serving requests" |
|
|
60
|
+
| **Hot reload time** | < 2 seconds | Time from file change to browser update |
|
|
61
|
+
| **Iteration cycle** | < 1 minute | Typical change → feedback cycle and time |
|
|
62
|
+
|
|
63
|
+
## Workflow
|
|
64
|
+
|
|
65
|
+
### Phase 1 – Baseline & Diagnosis
|
|
66
|
+
|
|
67
|
+
Create `dev_loop_profile.md`:
|
|
68
|
+
|
|
69
|
+
```markdown
|
|
70
|
+
# Development Loop Profile – [Project Name]
|
|
71
|
+
|
|
72
|
+
**Measured**: 2026-03-14 across 10 typical dev tasks
|
|
73
|
+
|
|
74
|
+
## Iteration Cycle Breakdown
|
|
75
|
+
|
|
76
|
+
| Step | Time | % of Total | Bottleneck? |
|
|
77
|
+
| ------------------------------- | ----------------------- | ---------- | ----------- |
|
|
78
|
+
| Edit code | 2 min | 10% | Normal |
|
|
79
|
+
| Save & wait for build | 12 sec | 8% | ⚠️ YES |
|
|
80
|
+
| Run targeted tests | 45 sec | 37% | ⚠️ MAJOR |
|
|
81
|
+
| Run full test suite | 8 min | 53% | ⚠️ MAJOR |
|
|
82
|
+
| Push & wait for CI | 2 min | - | Separate |
|
|
83
|
+
| **Total loop (dev → feedback)** | 2 min 59 sec (targeted) | - | |
|
|
84
|
+
|
|
85
|
+
## Observations
|
|
86
|
+
|
|
87
|
+
### What's Fast
|
|
88
|
+
|
|
89
|
+
- Code editing: smooth, IDE is responsive
|
|
90
|
+
- Hot reload (Vite): works well, ~1 second
|
|
91
|
+
|
|
92
|
+
### What's Slow
|
|
93
|
+
|
|
94
|
+
- **Targeted test suite**: 45 seconds (Jest with 200 tests)
|
|
95
|
+
- **Full test suite**: 8 minutes (too slow for frequent runs)
|
|
96
|
+
- **Database setup**: tests spin up a new DB, adds ~3 sec per test
|
|
97
|
+
- **Build step**: only when changing config; usually skipped
|
|
98
|
+
|
|
99
|
+
## Hypothesis
|
|
100
|
+
|
|
101
|
+
- Slack: developers skip tests during iteration (just push), leading to CI failures
|
|
102
|
+
- Pain: waiting for full suite makes developers multi-task (context switch)
|
|
103
|
+
- Opportunity: make targeted tests 10–20 seconds and developers will run them every change
|
|
104
|
+
|
|
105
|
+
## Recommendations (Prioritized)
|
|
106
|
+
|
|
107
|
+
1. **Parallelize database setup** (est. saves 2–3 sec per test, ~40 sec total)
|
|
108
|
+
2. **Isolate unit tests from integration** (40 tests run in 8 sec vs. 45 sec)
|
|
109
|
+
3. **Lazy-load heavy dependencies** (transitive imports add 500ms)
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### Phase 2 – Identify & Prioritize Bottlenecks
|
|
113
|
+
|
|
114
|
+
For each slow step, dig deeper:
|
|
115
|
+
|
|
116
|
+
````markdown
|
|
117
|
+
# Root Cause Analysis – Test Suite Slowness
|
|
118
|
+
|
|
119
|
+
**Problem**: Full test suite takes 8 minutes; developers avoid running
|
|
120
|
+
**Current behavior**: Developers push without tests → CI failures → rework
|
|
121
|
+
|
|
122
|
+
## Test Suite Breakdown
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
# Run with timing
|
|
126
|
+
npm test -- --verbose --timing
|
|
127
|
+
|
|
128
|
+
# Output:
|
|
129
|
+
integration/auth.test.js: 3.2 sec (45 tests)
|
|
130
|
+
integration/api.test.js: 4.1 sec (80 tests) ← SLOWEST
|
|
131
|
+
unit/utils.test.js: 0.3 sec (30 tests)
|
|
132
|
+
unit/math.test.js: 0.1 sec (20 tests)
|
|
133
|
+
|
|
134
|
+
Total: 8.0 sec unit + integration overhead (~7 sec per test file)
|
|
135
|
+
```
|
|
136
|
+
````
|
|
137
|
+
|
|
138
|
+
Hotspots:
|
|
139
|
+
|
|
140
|
+
1. **API integration tests spawn live database**: 3 sec × 80 tests
|
|
141
|
+
- **Fix**: Use shared database for all tests (instead of per-test setup)
|
|
142
|
+
- **Effort**: 2–3 hours (refactor fixture setup)
|
|
143
|
+
- **Payoff**: Reduce from 4.1 sec to ~1 sec
|
|
144
|
+
|
|
145
|
+
2. **Large fixture data loads**: each integration test loads 1MB dataset
|
|
146
|
+
- **Fix**: Use lightweight mocks + stubs (not full data)
|
|
147
|
+
- **Effort**: 4–5 hours (update test data patterns)
|
|
148
|
+
- **Payoff**: Reduce setup per test from ~30ms to ~5ms
|
|
149
|
+
|
|
150
|
+
3. **Full test suite includes e2e tests**: runs browsers, which are slow
|
|
151
|
+
- **Fix**: e2e only on CI or dedicated step; local dev uses mocks
|
|
152
|
+
- **Effort**: 1 hour (split test commands)
|
|
153
|
+
- **Payoff**: Local suite: 1 min (unit + integration); CI: 10 min (includes e2e)
|
|
154
|
+
|
|
155
|
+
````
|
|
156
|
+
|
|
157
|
+
### Phase 3 – Implement Optimizations
|
|
158
|
+
|
|
159
|
+
Create implementation plan:
|
|
160
|
+
|
|
161
|
+
```markdown
|
|
162
|
+
# Dev Loop Optimization Plan
|
|
163
|
+
|
|
164
|
+
## Phase 1: Split Test Commands (1 hour, Quick Win)
|
|
165
|
+
|
|
166
|
+
### Change
|
|
167
|
+
Split into "fast" (unit + mocked integration) and "full" (includes E2E/browser).
|
|
168
|
+
|
|
169
|
+
### Implementation
|
|
170
|
+
```json
|
|
171
|
+
{
|
|
172
|
+
"scripts": {
|
|
173
|
+
"test": "jest --testPathPattern=unit --testPathPattern=integration:fast",
|
|
174
|
+
"test:full": "jest",
|
|
175
|
+
"test:e2e": "jest --testPathPattern=e2e"
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
````
|
|
179
|
+
|
|
180
|
+
### Metrics After
|
|
181
|
+
|
|
182
|
+
- `npm test`: 1 min 15 sec (small enough to run every change)
|
|
183
|
+
- `npm run test:full`: 8 min (run on commit or in CI)
|
|
184
|
+
- Developer behavior: now runs tests on every change
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
## Phase 2: Optimize Integration Tests (3 hours)
|
|
189
|
+
|
|
190
|
+
### Change
|
|
191
|
+
|
|
192
|
+
Replace per-test database with shared setup + teardown.
|
|
193
|
+
|
|
194
|
+
### Before
|
|
195
|
+
|
|
196
|
+
```javascript
|
|
197
|
+
describe("API tests", () => {
|
|
198
|
+
beforeEach(async () => {
|
|
199
|
+
db = await startTestDB(); // 300ms per test
|
|
200
|
+
await seedData(db); // 200ms per test
|
|
201
|
+
});
|
|
202
|
+
});
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
### After
|
|
206
|
+
|
|
207
|
+
```javascript
|
|
208
|
+
const db = startTestDB(); // Once at start
|
|
209
|
+
beforeAll(seedData); // Once at beginning
|
|
210
|
+
|
|
211
|
+
afterEach(async () => {
|
|
212
|
+
await cleanTables(db); // Quick; no DB restart
|
|
213
|
+
});
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
### Metrics After
|
|
217
|
+
|
|
218
|
+
- Integration tests: 4.1 sec → 1.2 sec
|
|
219
|
+
- Full suite: 8 min → 5 min
|
|
220
|
+
|
|
221
|
+
---
|
|
222
|
+
|
|
223
|
+
## Phase 3: Lazy-Load Dependencies (1 hour)
|
|
224
|
+
|
|
225
|
+
### Change
|
|
226
|
+
|
|
227
|
+
Defer heavy imports until needed (auth library, image processor, etc.).
|
|
228
|
+
|
|
229
|
+
### Impact
|
|
230
|
+
|
|
231
|
+
- Application startup: 3 sec → 2 sec
|
|
232
|
+
- Reduces baseline test time
|
|
233
|
+
|
|
234
|
+
---
|
|
235
|
+
|
|
236
|
+
## Timeline & Rollout
|
|
237
|
+
|
|
238
|
+
| Phase | Effort | Payoff | Deadline |
|
|
239
|
+
| --------------- | ------- | ------------------------ | --------- |
|
|
240
|
+
| 1 – Split tests | 1 hour | 30% faster local testing | This week |
|
|
241
|
+
| 2 – Optimize DB | 3 hours | 45% faster full suite | Next week |
|
|
242
|
+
| 3 – Lazy-load | 1 hour | 5% startup improvement | Optional |
|
|
243
|
+
|
|
244
|
+
## Success Metrics
|
|
245
|
+
|
|
246
|
+
After optimization:
|
|
247
|
+
|
|
248
|
+
- Developers run `npm test` on every change (heuristic: > 80% of commits have tests)
|
|
249
|
+
- CI failure rate drops from 15% to < 5%
|
|
250
|
+
- Developer satisfaction: "Tests are fast" → improve from 4/10 to 8/10
|
|
251
|
+
|
|
252
|
+
````
|
|
253
|
+
|
|
254
|
+
### Phase 4 – Measure & Validate
|
|
255
|
+
|
|
256
|
+
After each optimization, re-measure:
|
|
257
|
+
|
|
258
|
+
```markdown
|
|
259
|
+
# Post-Optimization Report
|
|
260
|
+
|
|
261
|
+
**Measurement Date**: 2026-03-20 (one week after Phase 1)
|
|
262
|
+
|
|
263
|
+
## Before & After
|
|
264
|
+
| Metric | Before | After | Improvement |
|
|
265
|
+
|---|---|---|---|
|
|
266
|
+
| Local test run | 8 min | 1 min 15 sec | **85% faster** |
|
|
267
|
+
| Unit tests only | - | 8 sec | new baseline |
|
|
268
|
+
| Full suite (CI) | 8 min | 5 min | 37% faster |
|
|
269
|
+
| Developer test frequency | 20% of commits | 85% of commits | **4.25x more** |
|
|
270
|
+
|
|
271
|
+
## CI Failure Rate
|
|
272
|
+
- Before: 15% (waiting for later failures)
|
|
273
|
+
- After: 5% (issues caught locally)
|
|
274
|
+
- Savings: ~30% fewer rework cycles
|
|
275
|
+
|
|
276
|
+
## Developer Feedback
|
|
277
|
+
- "Tests are so fast now I run them before every commit"
|
|
278
|
+
- "I can actually iterate on the test suite itself"
|
|
279
|
+
- "Hot reload is snappy; feels like native Python/JS dev"
|
|
280
|
+
|
|
281
|
+
## Next Optimization Targets
|
|
282
|
+
- E2E tests (currently 3 min, run in CI only)
|
|
283
|
+
- Database migration time (2 min on first run; cache?)
|
|
284
|
+
````
|
|
285
|
+
|
|
286
|
+
## Common Optimization Patterns
|
|
287
|
+
|
|
288
|
+
### 1. Test Isolation
|
|
289
|
+
|
|
290
|
+
**Problem**: Tests interfere (shared DB state, file locks, env vars).
|
|
291
|
+
**Solution**: Reset state between tests, use in-memory databases.
|
|
292
|
+
**Payoff**: Enables parallelization; each test can run independently.
|
|
293
|
+
|
|
294
|
+
### 2. Mocking & Stubs
|
|
295
|
+
|
|
296
|
+
**Problem**: Integration tests against real external APIs are slow and unreliable.
|
|
297
|
+
**Solution**: Mock external calls; only test your code.
|
|
298
|
+
**Payoff**: Reduces latency from 2+ sec to < 100ms per test.
|
|
299
|
+
|
|
300
|
+
### 3. Lazy Loading & Code Splitting
|
|
301
|
+
|
|
302
|
+
**Problem**: App startup waits for all modules to load.
|
|
303
|
+
**Solution**: Load modules on-demand (import inside function, dynamic imports).
|
|
304
|
+
**Payoff**: Startup time halved; tests that don't use a module don't pay its cost.
|
|
305
|
+
|
|
306
|
+
### 4. Caching
|
|
307
|
+
|
|
308
|
+
**Problem**: Repeated operations (builds, test data setup, HTTP calls).
|
|
309
|
+
**Solution**: Cache results; invalidate only when inputs change.
|
|
310
|
+
**Payoff**: Large upside with minimal risk if used carefully.
|
|
311
|
+
|
|
312
|
+
### 5. Parallelization
|
|
313
|
+
|
|
314
|
+
**Problem**: Tests run sequentially.
|
|
315
|
+
**Solution**: Run tests in parallel (Jest, pytest with xdist).
|
|
316
|
+
**Payoff**: N-core machine runs N tests at once; near-linear speedup.
|
|
317
|
+
|
|
318
|
+
## Monitoring & Sustenance
|
|
319
|
+
|
|
320
|
+
Create dashboards to track:
|
|
321
|
+
|
|
322
|
+
- Average test execution time (per sprint)
|
|
323
|
+
- CI success rate
|
|
324
|
+
- Developer test run frequency
|
|
325
|
+
|
|
326
|
+
Set expectations:
|
|
327
|
+
|
|
328
|
+
- If tests start getting slow again, flag it early
|
|
329
|
+
- Establish "no slow-adding commits" rule (if a change adds > 30 sec to tests, must include optimization)
|
|
330
|
+
|
|
331
|
+
## Tags
|
|
332
|
+
|
|
333
|
+
developer-experience, performance, optimization, testing, feedback-loops, iteration, ci-cd, automation
|
|
334
|
+
|
|
335
|
+
## Capabilities
|
|
336
|
+
|
|
337
|
+
- Measuring and profiling dev loop cycles and bottlenecks
|
|
338
|
+
- Analyzing test suite performance and identifying slowdowns
|
|
339
|
+
- Optimizing test configurations (parallelization, mocking, isolation)
|
|
340
|
+
- Implementing split test commands (fast + full suites)
|
|
341
|
+
- Improving build and startup performance
|
|
342
|
+
- Tracking and reporting on dev loop health metrics
|
|
343
|
+
- Recommending and implementing optimization strategies
|
|
344
|
+
- Establishing sustainable fast iteration practices
|