Back to skills
SKILL.md
055 Architecture 8ca6b514
ASecurity> This document records the core architecture, design philosophy, and key implementation details of the SkillLite project.
- 9 stars
- 0 votes
- 0 copies
- 1 view
- Added October 11, 2026
Works with
Security analysis
100/100npx -y skills add tools-only/X-Skills --skill 055-architecture_8ca6b514 --agent claude-codeAre you the author of 055 Architecture 8ca6b514?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tools-only-055-architecture-8ca6b514)# SkillLite Project Architecture
> This document records the core architecture, design philosophy, and key implementation details of the SkillLite project.
## Overview
**SkillLite** is a lightweight AI Agent Skills execution engine with the following core features:
- **Built-in Native System-Level Sandbox**: Rust-implemented native system-level security isolation
- **Zero Dependencies**: Single binary, millisecond cold start
- **Local Execution**: Code and data never leave your machine
- **LLM Agnostic**: Compatible with all OpenAI API format LLM providers
### Tech Stack
| Component | Technology |
|-----------|------------|
| Sandbox Executor | Rust (skillbox) |
| Python SDK | Python 3.x (skilllite-sdk) |
| macOS Sandbox | Seatbelt (sandbox-exec) |
| Linux Sandbox | Namespace + Seccomp |
## Project Structure
```
skillLite/
├── skillbox/ # Rust sandbox executor (core)
│ └── src/
│ ├── main.rs # CLI entry
│ ├── sandbox/ # Sandbox implementation
│ │ ├── executor.rs # Sandbox executor and security levels
│ │ ├── macos.rs # macOS Seatbelt sandbox
│ │ ├── linux.rs # Linux Namespace sandbox
│ │ └── security/ # Security scanning module
│ └── skill/ # Skill metadata parsing
│
├── skilllite-sdk/ # Python SDK
│ └── skilllite/
│ ├── core/ # Core modules
│ │ ├── manager.py # SkillManager main interface
│ │ ├── executor.py # Skill executor
│ │ ├── loops.py # Agentic Loop implementation
│ │ └── tools.py # Tool definitions
│ └── sandbox/ # Sandbox interface
│
├── benchmark/ # Performance tests
└── .skills/ # Skills directory (examples)
```
## Core Modules
### 1. Sandbox Security Levels
```rust
pub enum SandboxLevel {
Level1, // No sandbox - direct execution
Level2, // Sandbox isolation only (macOS Seatbelt / Linux namespace + seccomp)
Level3, // Sandbox isolation + static code scanning (default)
}
```
### 2. Resource Limits
```rust
pub struct ResourceLimits {
pub max_memory_mb: u64, // Default 512MB
pub timeout_secs: u64, // Default 30 seconds
}
```
**Environment Variables:**
- `SKILLBOX_SANDBOX_LEVEL`: Sandbox level (1/2/3)
- `SKILLBOX_MAX_MEMORY_MB`: Maximum memory limit
- `SKILLBOX_TIMEOUT_SECS`: Execution timeout
- `SKILLBOX_AUTO_APPROVE`: Auto-approve dangerous operations
### 3. Security Features
| Capability | Description |
|------------|-------------|
| Process Isolation | Each Skill runs in independent process |
| Filesystem Isolation | Only Skill directory and temp directory accessible |
| Network Isolation | Disabled by default, can be enabled on demand |
| Resource Limits | CPU, memory, execution time limits |
### 4. SKILL.md Metadata
```yaml
---
name: my-skill
description: A skill that does something useful.
compatibility: Requires Python 3.x with requests library, network access
license: MIT
metadata:
author: example-org
version: "1.0"
---
```
**Auto-detection from `compatibility` field:**
- Network access: keywords like "network", "internet", "http", "api", "web"
- Language: "Python", "Node", "JavaScript", "bash", "shell"
- Dependencies: Known packages like requests, pandas, axios, etc.
## Execution Flow
```
User Input
↓
SkillRunner.run()
↓
AgenticLoop.run()
↓
┌─────────────────────────────────────┐
│ 1. Generate system prompt │
│ 2. Call LLM │
│ 3. Parse tool calls │
│ 4. Execute tools (SkillExecutor) │
│ 5. Return results to LLM │
│ 6. Repeat until complete │
└─────────────────────────────────────┘
↓
SkillExecutor.execute()
↓
Call skillbox binary
↓
┌─────────────────────────────────────┐
│ Rust Sandbox: │
│ 1. Parse SKILL.md metadata │
│ 2. Setup virtual environment │
│ 3. Level 3: Static code scanning │
│ 4. Level 2+: Start sandbox │
│ 5. Execute script │
│ 6. Monitor resource usage │
│ 7. Return result │
└─────────────────────────────────────┘
```
## CLI Commands
```bash
skillbox run <skill_dir> '<input_json>' # Run Skill
skillbox exec <skill_dir> <script> '<json>' # Execute script directly
skillbox scan <skill_dir> # Scan Skill
skillbox validate <skill_dir> # Validate Skill
skillbox security-scan <script_path> # Security scan
```
---
*For detailed Chinese documentation, see [中文版](../zh/ARCHITECTURE.md)*
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.