跳到正文
TakoAPI
返回技能列表

intranet

由 odrobnik 提供

Web & Frontend Development
992下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Lightweight local HTTP file server with plugin support.

描述

该技能的功能

Runs a local HTTP file server without Apache, nginx, or root access. Serves static files from a webroot directory, mounts external plugin directories at URL prefixes, and optionally executes index.py scripts as CGI. All configuration and state stay inside the workspace.

Replaces Apache or nginx for local development and personal intranet use without requiring installation, root privileges, or system-level configuration.

何时使用

  • Serving a local HTML dashboard during development
  • Hosting internal tools over LAN with bearer token auth
  • Mounting multiple skill web directories at distinct URL paths
  • Testing CGI scripts without a full web server setup
  • Running a personal intranet for local file access

示例工作流

输入

User asks: Start a local server on port 9000 with the banker plugin mounted

智能体
  1. 1

    Write config.json with plugins entry mapping 'banker' to the banker/web directory

  2. 2

    Run python3 scripts/intranet.py start --port 9000

  3. 3

    Run python3 scripts/intranet.py status to confirm the server is running

  4. 4

    Access http://127.0.0.1:9000/banker/ in a browser to verify the plugin is served

输出

Server running at http://127.0.0.1:9000 with static files from www/ and banker plugin mounted at /banker/

安装

clawhub install odrobnik/intranet

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接