[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6K2S9KP5PPJKNF1CFTW1MG0":3,"skill-same:01M6K2S9KP5PPJKNF1CFTW1MG0":98},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":41,"linkOnly":42,"markdownContent":43,"markdownBody":44,"frontMatter":45,"refName":57,"commitSha":58,"skillDirectory":59,"forksCount":60,"repositoryHtmlUrl":61,"repositoryHomepageUrl":62,"ownerHtmlUrl":63,"ownerBlogUrl":62,"ownerDescription":6,"updatedAt":64,"install":65,"resources":77},"01M6K2S9KP5PPJKNF1CFTW1MG0","add-backend",null,"Guide for adding a backend (Rust or Python) to the agent-sec-core security middleware. Use when creating new backends, integrating Rust or Python code into the security middleware, or extending with new backend actions.","agentic-os-org\u002FANOLISA","agentic-os-org","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F326861446?v=4","01M6K2QGJPXKNJFSPNB3FYW1R3","Agentic OS","01M6K2QGQ6W3S1A9J9DR1G88NZ",665,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fagentic-os-org\u002FANOLISA\u002Fblob\u002Fmain\u002Fsrc\u002Fagent-sec-core\u002Fagent-sec-cli\u002Fdev-tools\u002Fbackend-skill\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40],"add backend","backend","add","type","new","when","for","python code","spaces","middleware","name","verifier","false","python","module","implementation","use","guide","actions","code","rust","security","2026-11-10 10:12:30",false,"---\nname: add-backend\ndescription: Guide for adding a backend (Rust or Python) to the agent-sec-core security middleware. Use when creating new backends, integrating Rust or Python code into the security middleware, or extending with new backend actions.\narguments:\n  - name: backend_name\n    description: \"Name of the new backend (e.g. 'code_verify'). Spaces are converted to underscores for code identifiers.\"\n    required: true\n  - name: backend_type\n    description: \"Backend implementation type: 'rust' or 'python'\"\n    required: true\n  - name: module_path\n    description: \"For python type: module path (e.g. 'agent_sec_cli.code_verify.verifier'). Required when backend_type=python.\"\n    required: false\n---\n\n# Adding a Backend to Security Middleware\n\nThis skill walks through the **complete, end-to-end** process of adding a backend\n(Rust or Python) to the security middleware, wiring it into the router, and\nexposing it through the CLI.\n\n> **Unified interface**: Both Rust and Python backends implement the same\n> `execute(ctx, **kwargs) → ActionResult` contract. The middleware doesn't care\n> about the implementation language.\n\n## Backend Type Selection\n\n| Type | Use Case | Pros | Cons |\n|------|----------|------|------|\n| **rust** | Performance-critical, CPU-intensive tasks | High performance, memory safety | Requires Rust toolchain, compilation |\n| **python** | Rapid development, glue code, existing libraries | Fast iteration, rich ecosystem | Slower execution, GIL limitations |\n\n## Naming Convention\n\nDerive all identifiers from the `backend_name` argument:\n\n| Concept | Rule | Example (`backend_name` = \"code verify\") |\n|---------|------|------------------------------------------|\n| action_name | lowercase, underscores | `code_verify` |\n| Backend class | PascalCase + `Backend` | `CodeVerifyBackend` |\n| Python module | `{action_name}.py` | `code_verify.py` |\n| lifecycle category | same as action_name | `code_verify` |\n\n**Rust-specific** (only when `backend_type=rust`):\n\n| Concept | Rule | Example |\n|---------|------|----------|\n| Rust function | same as action_name | `code_verify` |\n| Request struct | PascalCase + `Request` | `CodeVerifyRequest` |\n| Response struct | PascalCase + `Response` | `CodeVerifyResponse` |\n\n---\n\n## 1. Architecture Overview\n\nBoth backend types follow the same execution flow:\n\n```\nagent-sec-cli  ──→  security_middleware.invoke(\"{action_name}\", **kwargs)\n                            │\n                            ├─ router.get_backend(\"{action_name}\")\n                            │      └─ _REGISTRY[\"{action_name}\"] → \"security_middleware.backends.{action_name}\"\n                            │      └─ lazy import → {ActionName}Backend()\n                            │\n                            ├─ backend.execute(ctx, **kwargs) → ActionResult\n                            │      │\n                            │      ├─ [Rust]  from agent_sec_cli._native import {action_name}\n                            │      │          {action_name}(json_in) → json_out\n                            │      │\n                            │      └─ [Python] import {module_path}\n                            │                  module.function(**kwargs) → result\n                            │\n                            └─ lifecycle.post_action() → SecurityEvent → JSONL\n```\n\n**Key contract**: Every backend is a Python class with an `execute(ctx, **kwargs) → ActionResult`\nmethod. The implementation language (Rust\u002FPython) is an **implementation detail** — the middleware\nnever calls Rust or module functions directly.\n\n---\n\n## 2. Create the Python Backend Wrapper\n\nThe Python backend wrapper is the **unified interface** that the middleware calls. It delegates\nto either Rust or Python implementation based on `backend_type`.\n\n### 2.1 Choose Template\n\n- **For `backend_type=rust`**: Use `templates\u002Frust_backend.py`\n- **For `backend_type=python`**: Use `templates\u002Fpython_backend.py`\n\n### 2.2 Create Backend File\n\nCreate `agent-sec-cli\u002Fsrc\u002Fagent_sec_cli\u002Fsecurity_middleware\u002Fbackends\u002F{action_name}.py`\n\nCopy the appropriate template and replace placeholders:\n- `{backend_name}` → actual backend name (e.g., \"code_verify\")\n- `{BackendName}` → PascalCase class name (e.g., \"CodeVerify\")\n- `{action_name}` → action name for Rust calls (e.g., \"code_verify\")\n- `{module_path}` → Python module path (only for python type, e.g., \"agent_sec_cli.code_verify.verifier\")\n\n**Convention**: Class name = PascalCase of module name + `Backend`.\n\n> **IMPORTANT — `stdout` \u002F `error` contract**: The CLI (`agent-sec-cli`) only\n> prints `result.stdout` and `result.error`. If a backend returns an `ActionResult`\n> with both `stdout` and `error` empty, the CLI produces **no output at all**.\n> Every `ActionResult` **must** populate at least one of:\n>\n> | Field | When to set |\n> |-------|-------------|\n> | `stdout` | Always on success — human-readable text for the terminal |\n> | `error` | Always on failure — written to stderr by the CLI |\n>\n> A helper like `_format_stdout()` keeps formatting in one place and makes it\n> easy to test independently.\n\n---\n\n## 3. Register Backend in Router and Lifecycle\n\n### 3.1 Register in Router\n\nEdit `agent-sec-cli\u002Fsrc\u002Fagent_sec_cli\u002Fsecurity_middleware\u002Frouter.py` — add to `_REGISTRY`:\n\n```python\n_REGISTRY: Dict[str, str] = {\n    # ... existing entries ...\n    \"{action_name}\":   \"agent_sec_cli.security_middleware.backends.{action_name}\",\n}\n```\n\n### 3.2 Add Lifecycle Category Mapping\n\nEdit `agent-sec-cli\u002Fsrc\u002Fagent_sec_cli\u002Fsecurity_middleware\u002Flifecycle.py` — add to `_ACTION_CATEGORY`:\n\n```python\n_ACTION_CATEGORY: Dict[str, str] = {\n    # ... existing entries ...\n    \"{action_name}\":   \"{action_name}\",\n}\n```\n\n### 3.3 Add CLI Entry Point\n\nEdit `src\u002Fagent_sec_cli\u002Fcli.py` — add a new `@app.command()` function:\n\n```python\n# {action_name} subcommand\n@app.command()\ndef {action_name}(\n    param1: str = typer.Option(\"\", \"--param1\", help=\"Parameter 1\"),\n    # Add more arguments as needed for the backend\n):\n    \"\"\"{ActionName} description.\"\"\"\n    result = invoke(\"{action_name}\", param1=param1)\n    if result.stdout:\n        typer.echo(result.stdout)\n    if result.error:\n        typer.echo(result.error, err=True)\n    raise typer.Exit(code=result.exit_code)\n```\n\nNow callable as:\n\n```bash\nagent-sec-cli {action_name} --param1 value\n```\n\n---\n\n## 4. Rust-Specific Steps (backend_type=rust)\n\n> Skip this section if `backend_type=python`.\n\n> **Sub-skill available**: For complex Rust modules (multiple files, shared types,\n> or workspace-scale projects), use the **`add-rust-module`** sub-skill at\n> `sub-skills\u002Fadd-rust-module.md`. It covers single-file modules, directory modules,\n> and Cargo workspace layouts.\n>\n> The steps below cover the **simple inline case** (adding a function directly to\n> `src\u002Flib.rs`). For anything beyond a single function, delegate to the sub-skill:\n>\n> ```\n> add-rust-module module_name=\"{action_name}\" functions=\"{action_name}\"\n> ```\n\n### 4.1 Add Rust Function to lib.rs\n\nEdit `agent-sec-cli\u002Fsrc\u002Flib.rs` — add your Rust function above the `#[pymodule]` block:\n\n```rust\n\u002F\u002F ---------------------------------------------------------------------------\n\u002F\u002F {action_name}\n\u002F\u002F ---------------------------------------------------------------------------\n\n#[derive(Deserialize)]\nstruct {ActionName}Request {\n    \u002F\u002F Add domain-specific fields here\n}\n\n#[derive(Serialize)]\nstruct {ActionName}Response {\n    \u002F\u002F Add domain-specific output fields here\n}\n\n\u002F\u002F\u002F Pure Rust logic — no Python API calls.\nfn do_{action_name}(req: &{ActionName}Request) -> Result\u003C{ActionName}Response, String> {\n    \u002F\u002F Implement domain logic here\n    todo!(\"implement {action_name} logic\")\n}\n\n#[pyfunction]\nfn {action_name}(py: Python\u003C'_>, request_json: &str) -> PyResult\u003CString> {\n    let req: {ActionName}Request = serde_json::from_str(request_json)\n        .map_err(|e| PyErr::new::\u003Cpyo3::exceptions::PyValueError, _>(\n            format!(\"Invalid JSON: {e}\")\n        ))?;\n\n    py.allow_threads(|| {\n        let resp = do_{action_name}(&req)\n            .map_err(|e| PyErr::new::\u003Cpyo3::exceptions::PyValueError, _>(e))?;\n        serde_json::to_string(&resp)\n            .map_err(|e| PyErr::new::\u003Cpyo3::exceptions::PyRuntimeError, _>(\n                format!(\"Serialization failed: {e}\")\n            ))\n    })\n}\n```\n\n### 4.2 Register in #[pymodule]\n\nAdd this line inside the `_native` pymodule function in `src\u002Flib.rs`:\n\n```rust\nm.add_function(wrap_pyfunction!({action_name}, m)?)?;\n```\n\n### 4.3 Update Python Backend Wrapper\n\nEdit `agent-sec-cli\u002Fsrc\u002Fagent_sec_cli\u002Fsecurity_middleware\u002Fbackends\u002F{action_name}.py`:\n\n```python\nfrom agent_sec_cli._native import {action_name} as rust_{action_name}\n\nclass {BackendName}Backend:\n    def execute(self, ctx, **kwargs) -> ActionResult:\n        try:\n            req = json.dumps(kwargs)\n            resp_json = rust_{action_name}(req)\n            resp = json.loads(resp_json)\n            return ActionResult(\n                success=True,\n                data=resp,\n                stdout=self._format_stdout(resp),\n            )\n        except Exception as exc:\n            return ActionResult(success=False, error=f\"Rust error: {exc}\", exit_code=1)\n```\n\n**Key changes**:\n- No `RUST_AVAILABLE` check needed (Rust code is always available)\n- Import directly from `agent_sec_cli._native`\n- No Python fallback (unless you intentionally keep it)\n\n### 4.4 Build and Test\n\n#### 4.4.1 Rebuild with maturin\n\n```bash\ncd agent-sec-cli\nuv run maturin develop --release\n```\n\n#### 4.4.2 Test from Python\n\n```python\nfrom agent_sec_cli._native import {action_name}\nimport json\n\nreq = json.dumps({\"param\": \"value\"})\nresp = {action_name}(req)\nprint(json.loads(resp))\n```\n\n#### 4.4.3 Run Rust Tests\n\n```bash\ncd agent-sec-cli\ncargo test\n```\n\n### 4.5 Add Dependencies (if needed)\n\nIf your Rust function needs additional crates (e.g., `serde`, `serde_json`),\nedit `agent-sec-cli\u002FCargo.toml`:\n\n```toml\n[dependencies]\npyo3 = { version = \"0.20\", features = [\"extension-module\"] }\nserde = { version = \"1.0\", features = [\"derive\"] }\nserde_json = \"1.0\"\n```\n\n### 4.6 Complex Rust Modules\n\nIf the Rust logic is too large for a single function in `lib.rs`, use the\n**`add-rust-module`** sub-skill to create a dedicated module:\n\n```\nadd-rust-module module_name=\"{action_name}\" functions=\"{action_name}\" complex=\"true\"\n```\n\nThis will:\n1. Create `src\u002F{action_name}\u002Fmod.rs` with proper sub-module layout\n2. Wire `mod {action_name};` into `src\u002Flib.rs`\n3. Register all `#[pyfunction]`s in the `#[pymodule]` block\n4. Add required dependencies to `Cargo.toml`\n\nSee `sub-skills\u002Fadd-rust-module.md` for full details including the Cargo\nworkspace pattern for very large projects.\n\n---\n\n## 5. Python-Specific Steps (backend_type=python)\n\n> Skip this section if `backend_type=rust`.\n\n### 5.1 Create Python Module\n\nCreate the Python module at `{module_path}` (e.g., `agent_sec_cli\u002Fcode_verify\u002Fverifier.py`).\n\n**Example Structure:**\n\n```\nagent_sec_cli\u002F{backend_name}\u002F\n├── __init__.py\n├── verifier.py      # Core logic\n├── config.py        # Configuration (optional)\n└── tests\u002F\n    └── test_verifier.py\n```\n\n### 5.2 Implement Core Logic\n\nImplement the main function in your module (e.g., `verifier.py`):\n\n```python\n\"\"\"{backend_name} — core logic.\"\"\"\n\ndef verify(**kwargs):\n    \"\"\"Main verification logic.\n    \n    Args:\n        **kwargs: Parameters passed from CLI\u002Fbackend.\n    \n    Returns:\n        dict with 'success', 'output', 'data' keys.\n    \"\"\"\n    # Implement domain logic here\n    return {\n        \"success\": True,\n        \"output\": \"Verification passed\",\n        \"data\": {\"checked\": 10, \"passed\": 10},\n    }\n```\n\n### 5.3 Update Backend Wrapper\n\nIn `security_middleware\u002Fbackends\u002F{action_name}.py`, update the `_run` method\nto call your module's function:\n\n```python\n@staticmethod\ndef _run(module, **kwargs) -> ActionResult:\n    \"\"\"Execute the module logic.\"\"\"\n    result = module.verify(**kwargs)\n    return ActionResult(\n        success=result[\"success\"],\n        stdout=result[\"output\"],\n        data=result[\"data\"],\n        exit_code=0 if result[\"success\"] else 1,\n    )\n```\n\n### 5.4 Python Unit Tests\n\nCreate tests in `{module_path}\u002Ftests\u002F`:\n\n```python\nimport pytest\nfrom agent_sec_cli.{backend_name}.verifier import verify\n\ndef test_verify_basic():\n    result = verify(param1=\"value\")\n    assert result[\"success\"] is True\n    assert result[\"data\"][\"checked\"] > 0\n```\n\nRun tests:\n\n```bash\npytest agent_sec_cli\u002F{backend_name}\u002Ftests\u002F\n```\n\n---\n\n## 6. Testing (Both Types)\n\n### 6.1 Integration Tests\n\n**For Rust backends**, create a test script (e.g., `tests\u002Ftest_{action_name}_integration.py`):\n\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n\"\"\"Integration test for {action_name} native function.\n\nRun after ``maturin develop``::\n    python3 tests\u002Ftest_{action_name}_integration.py\n\"\"\"\nimport json\nimport sys\n\n\ndef main() -> int:\n    try:\n        from agent_sec_cli._native import {action_name}\n    except ImportError:\n        print(\"SKIP: _native not importable (run `maturin develop` first)\")\n        return 0\n\n    errors = 0\n\n    # 1. Basic test\n    req = json.dumps({\"param\": \"value\"})\n    resp = json.loads({action_name}(req))\n    # Add assertions\n    print(f\"PASS: basic test (resp={{resp}})\")\n\n    # 2. Invalid JSON\n    try:\n        {action_name}(\"{{bad json\")\n        print(\"FAIL: expected ValueError for invalid JSON\")\n        errors += 1\n    except ValueError:\n        print(\"PASS: invalid JSON raises ValueError\")\n\n    if errors:\n        print(f\"\\n{{errors}} test(s) FAILED\")\n        return 1\n    print(\"\\nAll tests passed!\")\n    return 0\n\n\nif __name__ == \"__main__\":\n    sys.exit(main())\n```\n\n**For Python backends**, create tests in `{module_path}\u002Ftests\u002F` (see Section 5.4).\n\n### 6.2 E2E CLI Tests\n\nThis verifies the **full call chain**: CLI → `invoke()` → router → backend → result → CLI output.\n\n#### 6.2.1 CLI Smoke Test\n\n```bash\nagent-sec-cli {action_name} --param1 test\n```\n\nExpected behaviour:\n- Exit code `0` on success.\n- Output contains expected result (no errors).\n\n#### 6.2.2 Verify Rust Path (Rust backends only)\n\n```bash\n# From agent-sec-core\u002F\nagent-sec-cli {action_name} --param1 value\n```\n\nExpected behaviour:\n- Exit code `0` on success.\n- `result.data` contains the Rust backend's JSON response fields.\n- No `\"python fallback\"` note in the output (confirms the Rust path was used).\n\n#### 6.2.3 Negative \u002F Error-Path Test\n\nPass invalid or adversarial input to confirm the backend returns a non-zero exit\ncode and a meaningful error message:\n\n```bash\n# Example: omit required fields or pass unexpected values\nagent-sec-cli {action_name}\n```\n\nExpected behaviour:\n- The CLI exits with a non-zero code **or** returns an error message on stderr\n  if the backend rejects the input.\n\n---\n\n## 7. Checklist\n\n### Common (Both Types)\n\n```\n- [ ] Python backend wrapper created in security_middleware\u002Fbackends\u002F{action_name}.py\n- [ ] Class name follows PascalCase + Backend convention\n- [ ] Action registered in router._REGISTRY\n- [ ] Category mapped in lifecycle._ACTION_CATEGORY\n- [ ] CLI command added to `src\u002Fagent_sec_cli\u002Fcli.py`\n- [ ] stdout\u002Ferror contract satisfied (ActionResult always has output)\n- [ ] Unit tests created and pass\n- [ ] E2E CLI test passes\n```\n\n### Rust-Specific (backend_type=rust)\n\n```\n- [ ] Rust function added to src\u002Flib.rs or separate module (see sub-skills\u002Fadd-rust-module.md)\n- [ ] Rust function uses JSON-in\u002FJSON-out boundary\n- [ ] GIL released with py.allow_threads()\n- [ ] No Python API calls inside allow_threads block\n- [ ] PyO3 0.20 API (Python + &PyModule)\n- [ ] Function registered in #[pymodule] via m.add_function()\n- [ ] Required crate dependencies added to Cargo.toml\n- [ ] maturin develop --release succeeds\n- [ ] Rust unit tests added and pass (cargo test)\n- [ ] Function importable: from agent_sec_cli._native import {action_name}\n- [ ] E2E: CLI returns Rust result with correct data\n```\n\n### Python-Specific (backend_type=python)\n\n```\n- [ ] Python module created at {module_path}\n- [ ] Core logic implemented (e.g., verify(), scan(), etc.)\n- [ ] Backend wrapper _run() method calls module function\n- [ ] Python unit tests pass (pytest)\n- [ ] Module structure follows asset_verify pattern\n```\n","# Adding a Backend to Security Middleware\n\nThis skill walks through the **complete, end-to-end** process of adding a backend\n(Rust or Python) to the security middleware, wiring it into the router, and\nexposing it through the CLI.\n\n> **Unified interface**: Both Rust and Python backends implement the same\n> `execute(ctx, **kwargs) → ActionResult` contract. The middleware doesn't care\n> about the implementation language.\n\n## Backend Type Selection\n\n| Type | Use Case | Pros | Cons |\n|------|----------|------|------|\n| **rust** | Performance-critical, CPU-intensive tasks | High performance, memory safety | Requires Rust toolchain, compilation |\n| **python** | Rapid development, glue code, existing libraries | Fast iteration, rich ecosystem | Slower execution, GIL limitations |\n\n## Naming Convention\n\nDerive all identifiers from the `backend_name` argument:\n\n| Concept | Rule | Example (`backend_name` = \"code verify\") |\n|---------|------|------------------------------------------|\n| action_name | lowercase, underscores | `code_verify` |\n| Backend class | PascalCase + `Backend` | `CodeVerifyBackend` |\n| Python module | `{action_name}.py` | `code_verify.py` |\n| lifecycle category | same as action_name | `code_verify` |\n\n**Rust-specific** (only when `backend_type=rust`):\n\n| Concept | Rule | Example |\n|---------|------|----------|\n| Rust function | same as action_name | `code_verify` |\n| Request struct | PascalCase + `Request` | `CodeVerifyRequest` |\n| Response struct | PascalCase + `Response` | `CodeVerifyResponse` |\n\n---\n\n## 1. Architecture Overview\n\nBoth backend types follow the same execution flow:\n\n```\nagent-sec-cli  ──→  security_middleware.invoke(\"{action_name}\", **kwargs)\n                            │\n                            ├─ router.get_backend(\"{action_name}\")\n                            │      └─ _REGISTRY[\"{action_name}\"] → \"security_middleware.backends.{action_name}\"\n                            │      └─ lazy import → {ActionName}Backend()\n                            │\n                            ├─ backend.execute(ctx, **kwargs) → ActionResult\n                            │      │\n                            │      ├─ [Rust]  from agent_sec_cli._native import {action_name}\n                            │      │          {action_name}(json_in) → json_out\n                            │      │\n                            │      └─ [Python] import {module_path}\n                            │                  module.function(**kwargs) → result\n                            │\n                            └─ lifecycle.post_action() → SecurityEvent → JSONL\n```\n\n**Key contract**: Every backend is a Python class with an `execute(ctx, **kwargs) → ActionResult`\nmethod. The implementation language (Rust\u002FPython) is an **implementation detail** — the middleware\nnever calls Rust or module functions directly.\n\n---\n\n## 2. Create the Python Backend Wrapper\n\nThe Python backend wrapper is the **unified interface** that the middleware calls. It delegates\nto either Rust or Python implementation based on `backend_type`.\n\n### 2.1 Choose Template\n\n- **For `backend_type=rust`**: Use `templates\u002Frust_backend.py`\n- **For `backend_type=python`**: Use `templates\u002Fpython_backend.py`\n\n### 2.2 Create Backend File\n\nCreate `agent-sec-cli\u002Fsrc\u002Fagent_sec_cli\u002Fsecurity_middleware\u002Fbackends\u002F{action_name}.py`\n\nCopy the appropriate template and replace placeholders:\n- `{backend_name}` → actual backend name (e.g., \"code_verify\")\n- `{BackendName}` → PascalCase class name (e.g., \"CodeVerify\")\n- `{action_name}` → action name for Rust calls (e.g., \"code_verify\")\n- `{module_path}` → Python module path (only for python type, e.g., \"agent_sec_cli.code_verify.verifier\")\n\n**Convention**: Class name = PascalCase of module name + `Backend`.\n\n> **IMPORTANT — `stdout` \u002F `error` contract**: The CLI (`agent-sec-cli`) only\n> prints `result.stdout` and `result.error`. If a backend returns an `ActionResult`\n> with both `stdout` and `error` empty, the CLI produces **no output at all**.\n> Every `ActionResult` **must** populate at least one of:\n>\n> | Field | When to set |\n> |-------|-------------|\n> | `stdout` | Always on success — human-readable text for the terminal |\n> | `error` | Always on failure — written to stderr by the CLI |\n>\n> A helper like `_format_stdout()` keeps formatting in one place and makes it\n> easy to test independently.\n\n---\n\n## 3. Register Backend in Router and Lifecycle\n\n### 3.1 Register in Router\n\nEdit `agent-sec-cli\u002Fsrc\u002Fagent_sec_cli\u002Fsecurity_middleware\u002Frouter.py` — add to `_REGISTRY`:\n\n```python\n_REGISTRY: Dict[str, str] = {\n    # ... existing entries ...\n    \"{action_name}\":   \"agent_sec_cli.security_middleware.backends.{action_name}\",\n}\n```\n\n### 3.2 Add Lifecycle Category Mapping\n\nEdit `agent-sec-cli\u002Fsrc\u002Fagent_sec_cli\u002Fsecurity_middleware\u002Flifecycle.py` — add to `_ACTION_CATEGORY`:\n\n```python\n_ACTION_CATEGORY: Dict[str, str] = {\n    # ... existing entries ...\n    \"{action_name}\":   \"{action_name}\",\n}\n```\n\n### 3.3 Add CLI Entry Point\n\nEdit `src\u002Fagent_sec_cli\u002Fcli.py` — add a new `@app.command()` function:\n\n```python\n# {action_name} subcommand\n@app.command()\ndef {action_name}(\n    param1: str = typer.Option(\"\", \"--param1\", help=\"Parameter 1\"),\n    # Add more arguments as needed for the backend\n):\n    \"\"\"{ActionName} description.\"\"\"\n    result = invoke(\"{action_name}\", param1=param1)\n    if result.stdout:\n        typer.echo(result.stdout)\n    if result.error:\n        typer.echo(result.error, err=True)\n    raise typer.Exit(code=result.exit_code)\n```\n\nNow callable as:\n\n```bash\nagent-sec-cli {action_name} --param1 value\n```\n\n---\n\n## 4. Rust-Specific Steps (backend_type=rust)\n\n> Skip this section if `backend_type=python`.\n\n> **Sub-skill available**: For complex Rust modules (multiple files, shared types,\n> or workspace-scale projects), use the **`add-rust-module`** sub-skill at\n> `sub-skills\u002Fadd-rust-module.md`. It covers single-file modules, directory modules,\n> and Cargo workspace layouts.\n>\n> The steps below cover the **simple inline case** (adding a function directly to\n> `src\u002Flib.rs`). For anything beyond a single function, delegate to the sub-skill:\n>\n> ```\n> add-rust-module module_name=\"{action_name}\" functions=\"{action_name}\"\n> ```\n\n### 4.1 Add Rust Function to lib.rs\n\nEdit `agent-sec-cli\u002Fsrc\u002Flib.rs` — add your Rust function above the `#[pymodule]` block:\n\n```rust\n\u002F\u002F ---------------------------------------------------------------------------\n\u002F\u002F {action_name}\n\u002F\u002F ---------------------------------------------------------------------------\n\n#[derive(Deserialize)]\nstruct {ActionName}Request {\n    \u002F\u002F Add domain-specific fields here\n}\n\n#[derive(Serialize)]\nstruct {ActionName}Response {\n    \u002F\u002F Add domain-specific output fields here\n}\n\n\u002F\u002F\u002F Pure Rust logic — no Python API calls.\nfn do_{action_name}(req: &{ActionName}Request) -> Result\u003C{ActionName}Response, String> {\n    \u002F\u002F Implement domain logic here\n    todo!(\"implement {action_name} logic\")\n}\n\n#[pyfunction]\nfn {action_name}(py: Python\u003C'_>, request_json: &str) -> PyResult\u003CString> {\n    let req: {ActionName}Request = serde_json::from_str(request_json)\n        .map_err(|e| PyErr::new::\u003Cpyo3::exceptions::PyValueError, _>(\n            format!(\"Invalid JSON: {e}\")\n        ))?;\n\n    py.allow_threads(|| {\n        let resp = do_{action_name}(&req)\n            .map_err(|e| PyErr::new::\u003Cpyo3::exceptions::PyValueError, _>(e))?;\n        serde_json::to_string(&resp)\n            .map_err(|e| PyErr::new::\u003Cpyo3::exceptions::PyRuntimeError, _>(\n                format!(\"Serialization failed: {e}\")\n            ))\n    })\n}\n```\n\n### 4.2 Register in #[pymodule]\n\nAdd this line inside the `_native` pymodule function in `src\u002Flib.rs`:\n\n```rust\nm.add_function(wrap_pyfunction!({action_name}, m)?)?;\n```\n\n### 4.3 Update Python Backend Wrapper\n\nEdit `agent-sec-cli\u002Fsrc\u002Fagent_sec_cli\u002Fsecurity_middleware\u002Fbackends\u002F{action_name}.py`:\n\n```python\nfrom agent_sec_cli._native import {action_name} as rust_{action_name}\n\nclass {BackendName}Backend:\n    def execute(self, ctx, **kwargs) -> ActionResult:\n        try:\n            req = json.dumps(kwargs)\n            resp_json = rust_{action_name}(req)\n            resp = json.loads(resp_json)\n            return ActionResult(\n                success=True,\n                data=resp,\n                stdout=self._format_stdout(resp),\n            )\n        except Exception as exc:\n            return ActionResult(success=False, error=f\"Rust error: {exc}\", exit_code=1)\n```\n\n**Key changes**:\n- No `RUST_AVAILABLE` check needed (Rust code is always available)\n- Import directly from `agent_sec_cli._native`\n- No Python fallback (unless you intentionally keep it)\n\n### 4.4 Build and Test\n\n#### 4.4.1 Rebuild with maturin\n\n```bash\ncd agent-sec-cli\nuv run maturin develop --release\n```\n\n#### 4.4.2 Test from Python\n\n```python\nfrom agent_sec_cli._native import {action_name}\nimport json\n\nreq = json.dumps({\"param\": \"value\"})\nresp = {action_name}(req)\nprint(json.loads(resp))\n```\n\n#### 4.4.3 Run Rust Tests\n\n```bash\ncd agent-sec-cli\ncargo test\n```\n\n### 4.5 Add Dependencies (if needed)\n\nIf your Rust function needs additional crates (e.g., `serde`, `serde_json`),\nedit `agent-sec-cli\u002FCargo.toml`:\n\n```toml\n[dependencies]\npyo3 = { version = \"0.20\", features = [\"extension-module\"] }\nserde = { version = \"1.0\", features = [\"derive\"] }\nserde_json = \"1.0\"\n```\n\n### 4.6 Complex Rust Modules\n\nIf the Rust logic is too large for a single function in `lib.rs`, use the\n**`add-rust-module`** sub-skill to create a dedicated module:\n\n```\nadd-rust-module module_name=\"{action_name}\" functions=\"{action_name}\" complex=\"true\"\n```\n\nThis will:\n1. Create `src\u002F{action_name}\u002Fmod.rs` with proper sub-module layout\n2. Wire `mod {action_name};` into `src\u002Flib.rs`\n3. Register all `#[pyfunction]`s in the `#[pymodule]` block\n4. Add required dependencies to `Cargo.toml`\n\nSee `sub-skills\u002Fadd-rust-module.md` for full details including the Cargo\nworkspace pattern for very large projects.\n\n---\n\n## 5. Python-Specific Steps (backend_type=python)\n\n> Skip this section if `backend_type=rust`.\n\n### 5.1 Create Python Module\n\nCreate the Python module at `{module_path}` (e.g., `agent_sec_cli\u002Fcode_verify\u002Fverifier.py`).\n\n**Example Structure:**\n\n```\nagent_sec_cli\u002F{backend_name}\u002F\n├── __init__.py\n├── verifier.py      # Core logic\n├── config.py        # Configuration (optional)\n└── tests\u002F\n    └── test_verifier.py\n```\n\n### 5.2 Implement Core Logic\n\nImplement the main function in your module (e.g., `verifier.py`):\n\n```python\n\"\"\"{backend_name} — core logic.\"\"\"\n\ndef verify(**kwargs):\n    \"\"\"Main verification logic.\n    \n    Args:\n        **kwargs: Parameters passed from CLI\u002Fbackend.\n    \n    Returns:\n        dict with 'success', 'output', 'data' keys.\n    \"\"\"\n    # Implement domain logic here\n    return {\n        \"success\": True,\n        \"output\": \"Verification passed\",\n        \"data\": {\"checked\": 10, \"passed\": 10},\n    }\n```\n\n### 5.3 Update Backend Wrapper\n\nIn `security_middleware\u002Fbackends\u002F{action_name}.py`, update the `_run` method\nto call your module's function:\n\n```python\n@staticmethod\ndef _run(module, **kwargs) -> ActionResult:\n    \"\"\"Execute the module logic.\"\"\"\n    result = module.verify(**kwargs)\n    return ActionResult(\n        success=result[\"success\"],\n        stdout=result[\"output\"],\n        data=result[\"data\"],\n        exit_code=0 if result[\"success\"] else 1,\n    )\n```\n\n### 5.4 Python Unit Tests\n\nCreate tests in `{module_path}\u002Ftests\u002F`:\n\n```python\nimport pytest\nfrom agent_sec_cli.{backend_name}.verifier import verify\n\ndef test_verify_basic():\n    result = verify(param1=\"value\")\n    assert result[\"success\"] is True\n    assert result[\"data\"][\"checked\"] > 0\n```\n\nRun tests:\n\n```bash\npytest agent_sec_cli\u002F{backend_name}\u002Ftests\u002F\n```\n\n---\n\n## 6. Testing (Both Types)\n\n### 6.1 Integration Tests\n\n**For Rust backends**, create a test script (e.g., `tests\u002Ftest_{action_name}_integration.py`):\n\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n\"\"\"Integration test for {action_name} native function.\n\nRun after ``maturin develop``::\n    python3 tests\u002Ftest_{action_name}_integration.py\n\"\"\"\nimport json\nimport sys\n\n\ndef main() -> int:\n    try:\n        from agent_sec_cli._native import {action_name}\n    except ImportError:\n        print(\"SKIP: _native not importable (run `maturin develop` first)\")\n        return 0\n\n    errors = 0\n\n    # 1. Basic test\n    req = json.dumps({\"param\": \"value\"})\n    resp = json.loads({action_name}(req))\n    # Add assertions\n    print(f\"PASS: basic test (resp={{resp}})\")\n\n    # 2. Invalid JSON\n    try:\n        {action_name}(\"{{bad json\")\n        print(\"FAIL: expected ValueError for invalid JSON\")\n        errors += 1\n    except ValueError:\n        print(\"PASS: invalid JSON raises ValueError\")\n\n    if errors:\n        print(f\"\\n{{errors}} test(s) FAILED\")\n        return 1\n    print(\"\\nAll tests passed!\")\n    return 0\n\n\nif __name__ == \"__main__\":\n    sys.exit(main())\n```\n\n**For Python backends**, create tests in `{module_path}\u002Ftests\u002F` (see Section 5.4).\n\n### 6.2 E2E CLI Tests\n\nThis verifies the **full call chain**: CLI → `invoke()` → router → backend → result → CLI output.\n\n#### 6.2.1 CLI Smoke Test\n\n```bash\nagent-sec-cli {action_name} --param1 test\n```\n\nExpected behaviour:\n- Exit code `0` on success.\n- Output contains expected result (no errors).\n\n#### 6.2.2 Verify Rust Path (Rust backends only)\n\n```bash\n# From agent-sec-core\u002F\nagent-sec-cli {action_name} --param1 value\n```\n\nExpected behaviour:\n- Exit code `0` on success.\n- `result.data` contains the Rust backend's JSON response fields.\n- No `\"python fallback\"` note in the output (confirms the Rust path was used).\n\n#### 6.2.3 Negative \u002F Error-Path Test\n\nPass invalid or adversarial input to confirm the backend returns a non-zero exit\ncode and a meaningful error message:\n\n```bash\n# Example: omit required fields or pass unexpected values\nagent-sec-cli {action_name}\n```\n\nExpected behaviour:\n- The CLI exits with a non-zero code **or** returns an error message on stderr\n  if the backend rejects the input.\n\n---\n\n## 7. Checklist\n\n### Common (Both Types)\n\n```\n- [ ] Python backend wrapper created in security_middleware\u002Fbackends\u002F{action_name}.py\n- [ ] Class name follows PascalCase + Backend convention\n- [ ] Action registered in router._REGISTRY\n- [ ] Category mapped in lifecycle._ACTION_CATEGORY\n- [ ] CLI command added to `src\u002Fagent_sec_cli\u002Fcli.py`\n- [ ] stdout\u002Ferror contract satisfied (ActionResult always has output)\n- [ ] Unit tests created and pass\n- [ ] E2E CLI test passes\n```\n\n### Rust-Specific (backend_type=rust)\n\n```\n- [ ] Rust function added to src\u002Flib.rs or separate module (see sub-skills\u002Fadd-rust-module.md)\n- [ ] Rust function uses JSON-in\u002FJSON-out boundary\n- [ ] GIL released with py.allow_threads()\n- [ ] No Python API calls inside allow_threads block\n- [ ] PyO3 0.20 API (Python + &PyModule)\n- [ ] Function registered in #[pymodule] via m.add_function()\n- [ ] Required crate dependencies added to Cargo.toml\n- [ ] maturin develop --release succeeds\n- [ ] Rust unit tests added and pass (cargo test)\n- [ ] Function importable: from agent_sec_cli._native import {action_name}\n- [ ] E2E: CLI returns Rust result with correct data\n```\n\n### Python-Specific (backend_type=python)\n\n```\n- [ ] Python module created at {module_path}\n- [ ] Core logic implemented (e.g., verify(), scan(), etc.)\n- [ ] Backend wrapper _run() method calls module function\n- [ ] Python unit tests pass (pytest)\n- [ ] Module structure follows asset_verify pattern\n```\n",{"name":5,"arguments":46,"description":7},[47,51,54],{"name":48,"required":49,"description":50},"backend_name",true,"Name of the new backend (e.g. 'code_verify'). Spaces are converted to underscores for code identifiers.",{"name":52,"required":49,"description":53},"backend_type","Backend implementation type: 'rust' or 'python'",{"name":55,"required":42,"description":56},"module_path","For python type: module path (e.g. 'agent_sec_cli.code_verify.verifier'). Required when backend_type=python.","main","d2c8a75e03a304c97d2b049d59f85c2ef0b08519","src\u002Fagent-sec-core\u002Fagent-sec-cli\u002Fdev-tools\u002Fbackend-skill",195,"https:\u002F\u002Fgithub.com\u002Fagentic-os-org\u002FANOLISA","https:\u002F\u002Fagentic-os.sh\u002F","https:\u002F\u002Fgithub.com\u002Fagentic-os-org","2026-11-14 23:49:17",{"source":8,"skillName":5,"commands":66,"prompt":76,"zipAvailable":49},[67,70,73],{"tool":68,"command":69},"npx","npx skills add agentic-os-org\u002FANOLISA --skill add-backend",{"tool":71,"command":72},"bunx","bunx skills add agentic-os-org\u002FANOLISA --skill add-backend",{"tool":74,"command":75},"pnpm","pnpm dlx skills add agentic-os-org\u002FANOLISA --skill add-backend","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fagentic-os-org\u002FANOLISA\u002Fblob\u002Fmain\u002Fsrc\u002Fagent-sec-core\u002Fagent-sec-cli\u002Fdev-tools\u002Fbackend-skill\u002FSKILL.md",[78,84,88,94],{"path":79,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},"QUICK_REFERENCE.md","REFERENCE","参考文档",4897,"https:\u002F\u002Fgithub.com\u002Fagentic-os-org\u002FANOLISA\u002Fblob\u002Fmain\u002Fsrc\u002Fagent-sec-core\u002Fagent-sec-cli\u002Fdev-tools\u002Fbackend-skill\u002FQUICK_REFERENCE.md",{"path":85,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":86,"sourceHtmlUrl":87},"sub-skills\u002Fadd-rust-module.md",9285,"https:\u002F\u002Fgithub.com\u002Fagentic-os-org\u002FANOLISA\u002Fblob\u002Fmain\u002Fsrc\u002Fagent-sec-core\u002Fagent-sec-cli\u002Fdev-tools\u002Fbackend-skill\u002Fsub-skills\u002Fadd-rust-module.md",{"path":89,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":92,"sourceHtmlUrl":93},"templates\u002Fpython_backend.py","SCRIPT","脚本",1893,"https:\u002F\u002Fgithub.com\u002Fagentic-os-org\u002FANOLISA\u002Fblob\u002Fmain\u002Fsrc\u002Fagent-sec-core\u002Fagent-sec-cli\u002Fdev-tools\u002Fbackend-skill\u002Ftemplates\u002Fpython_backend.py",{"path":95,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":96,"sourceHtmlUrl":97},"templates\u002Frust_backend.py",1045,"https:\u002F\u002Fgithub.com\u002Fagentic-os-org\u002FANOLISA\u002Fblob\u002Fmain\u002Fsrc\u002Fagent-sec-core\u002Fagent-sec-cli\u002Fdev-tools\u002Fbackend-skill\u002Ftemplates\u002Frust_backend.py",[99,114,140,153,171,184],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":41},"01M6K30MJVPNFF4VA778AZC512","ws-ckpt","Linux 工作区快照(ws-ckpt)。用户想保存或备份工作区当前状态(\"保存一下\"、\"留个底\"、\"先备份\"), 想撤销或恢复文件改动(\"回滚\"、\"撤销\"、\"改回去\"、\"恢复到之前\"、\"刚才那版\"), 想查看、对比或删除历史版本,或要开启\u002F关闭每回合自动快照、定时快照、快照保留策略时使用。 用户没提\"快照\"、只表达保存或恢复工作区文件的意图时同样适用;用户点名 git 操作(commit、branch、reset 到某提交)时不适用。","https:\u002F\u002Fgithub.com\u002Fagentic-os-org\u002FANOLISA\u002Fblob\u002Fmain\u002Fsrc\u002Fws-ckpt\u002Fsrc\u002Fskills\u002Fws-ckpt\u002FSKILL.md",[],[106,107,108,109,110,111,112,113],"ws ckpt","linux","commit","git","branch","reset","定时","文件",{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":41},"01M6K30G7BBZB1VCPE3NE08KZP","skillfs-mount","Help users configure, mount, and unmount a skillfs FUSE virtual filesystem on their local machine (e.g. for openclaw). Covers analyzing existing skill usage to suggest view configuration, generating skillfs-views.toml, mounting, and graceful unmount. Use this skill when the user asks to: set up skillfs, configure skill views, mount or unmount skillfs, check if skillfs is running, or get help organizing their skills directory (especially for openclaw users).","https:\u002F\u002Fgithub.com\u002Fagentic-os-org\u002FANOLISA\u002Fblob\u002Fmain\u002Fsrc\u002Fskillfs\u002Fdocs\u002Fskills\u002Fskillfs-mount\u002FSKILL.md",[],[121,122,123,124,125,126,127,35,128,129,130,131,132,133,134,135,136,137,25,24,138,139],"skillfs mount","mount","virtual","get","local","existing skill","up","view","filesystem","toml","configure","skill usage","SET","analyzing","openclaw","machine","usage","running","directory",{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":41},"01M6K30CJW0X3V5PG4GP26TB63","test-skill","A test skill used in integration tests.","https:\u002F\u002Fgithub.com\u002Fagentic-os-org\u002FANOLISA\u002Fblob\u002Fmain\u002Fsrc\u002Fskillfs\u002Fcrates\u002Fskillfs-fuse\u002Ftests\u002Ffixtures\u002Ftest-skill\u002FSKILL.md",[],[147,148,149,150,151,152],"test","Test Skill","true","integration tests","integration","tests",{"skillNo":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":41},"01M6K304VCM7N6AR4PMYNDP3A7","storage-resize","Linux 磁盘扩容技能（RPM 包管理系统），实现云盘扩容后自动完成分区调整和文件系统扩容。支持系统盘\u002F数据盘在线扩容，适配 XFS\u002FEXT4\u002FBtrfs 文件系统。适用于 RPM 包管理的 Linux 系统（如 Alibaba Cloud Linux）。","https:\u002F\u002Fgithub.com\u002Fagentic-os-org\u002FANOLISA\u002Fblob\u002Fmain\u002Fsrc\u002Fos-skills\u002Fsystem-admin\u002Fstorage-resize\u002FSKILL.md",[],[160,161,162,107,163,164,165,166,167,113,168,169,170],"storage resize","storage","system","cloud","operations","btrfs","ecs","aliyun","rpm","alibaba","数据",{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":177,"publishedAt":41},"01M6K2ZJEGANYH9TGGG25H7WVF","ktuner","内核参数自动调优。分析系统配置，输出调优建议并可一键应用，支持自动回滚。使用场景：系统性能优化、安全加固、内核参数诊断。","https:\u002F\u002Fgithub.com\u002Fagentic-os-org\u002FANOLISA\u002Fblob\u002Fmain\u002Fsrc\u002Fos-skills\u002Fsystem-admin\u002Fktuner\u002FSKILL.md",[],[173,178,179,180,181,182,183],"core","run","Production","shell","安全","command",{"skillNo":185,"name":186,"nameZh":6,"description":187,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":188,"categories":189,"keywords":190,"publishedAt":41},"01M6K2ZD5K40XCX8R1EA85MS7P","backup-restore","处理所有备份与恢复任务，覆盖四个层面：工作区（项目\u002F数据库\u002F代码）、用户数据（家目录\u002Fdotfiles\u002F密钥）、操作系统（全量系统\u002F磁盘镜像\u002FLVM 快照）、阿里云快照（云盘快照\u002F自动策略\u002F跨地域复制\u002F整机镜像）。适用于 RPM 包管理的 Linux 系统（如 Alibaba Cloud Linux）纯命令行环境，使用 yum 包管理器。当用户提到备份、恢复、快照、归档、回滚、克隆、迁移、容灾等任何涉及数据保存或恢复的请求时触发此技能，即使请求看起来很简单也应使用。","https:\u002F\u002Fgithub.com\u002Fagentic-os-org\u002FANOLISA\u002Fblob\u002Fmain\u002Fsrc\u002Fos-skills\u002Fsystem-admin\u002Fbackup-restore\u002FSKILL.md",[],[191,192,193,163,194,195,196,168,169,197,170,198,199,107,167],"backup restore","backup","restore","beta","release","lvm","runtime","maintenance","dotfiles"]