Skip to content
Back to skills

055 Architecture 8ca6b514

ASecurity

> This document records the core architecture, design philosophy, and key implementation details of the SkillLite project.

  • 11 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 11, 2026
developmentjavascriptpythonrustjavashellbashnodeapisecurityperformance

Works with

  • cli
  • api

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 055-architecture_8ca6b514 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 055 Architecture 8ca6b514?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 055 Architecture 8ca6b514
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-055-architecture-8ca6b514/badge)](https://www.skillsdirectory.com/skills/tools-only-055-architecture-8ca6b514)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# 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

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.