nuphus-modules

nuphus-modules is a skill for Claude Code, Codex from mrpulor-gh/nuphus. It costs 0 tokens per session (4,387 once invoked), scanned A, original, Apache-2.0.

A built-in knowledge guide for the Nuphus desktop AI assistant project. It summarizes the project's modules, structure, roles, and known rules so an agent can answer project questions quickly.

In plain words
What is it for?
It helps explain Nuphus modules, locate responsibilities across its React, Rust, and desktop layers, and answer questions about the project's code structure.
Why use it?
It avoids repeatedly searching the whole codebase for basic architecture information. It also points the agent to source code when the summary may be out of date or more detail is needed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps explain Nuphus modules, locate responsibilities across its React, Rust, and desktop layers, and answer questions about the project's code structure.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mrpulor-gh/nuphus/nuphus-modules
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mrpulor-gh/nuphus --skill nuphus-modules
Clone the repo
git clone --depth 1 https://github.com/mrpulor-gh/nuphus

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nuphus-modules

README.md
[![agentmods](https://agentmods.dev/badge/skills/mrpulor-gh/nuphus/nuphus-modules/github.svg)](https://agentmods.dev/skills/mrpulor-gh/nuphus/nuphus-modules)
Your own site
<a href="https://agentmods.dev/skills/mrpulor-gh/nuphus/nuphus-modules"><img src="https://agentmods.dev/badge/skills/mrpulor-gh/nuphus/nuphus-modules/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for nuphus-modules

Your own site · 80×15
<a href="https://agentmods.dev/skills/mrpulor-gh/nuphus/nuphus-modules"><img src="https://agentmods.dev/badge/skills/mrpulor-gh/nuphus/nuphus-modules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,387 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.04387
Opus 5.5 $0.00000 $0.01755
Sonnet 5.5 $0.00000 $0.00877
Haiku 4.5 $0.00000 $0.00439

Measured 8d ago against content hash 5f464766fc18, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

nuphus-modules scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugin/skills/builtin/nuphus-modules/SKILL.md · 173 lines

How it starts

The opening of the file, as written. The whole thing — 173 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Nuphus 项目模块知识

自包含的 Nuphus 项目模块摘要库:32 个模块的结构与作用,一问即答。 数据在本技能 data/ 目录(与技能同目录,自包含)——不引用仓库 docs/(该目录不被 git 跟踪、不在发布包内)。


0. 使用协议(给 AI 执行者)

  1. skill_query 命中本技能 → 命中条目即答案骨架(定位 / 结构 / 功能作用 / 规则与坑),先答再补;
  2. 需要行级细节或「现在怎样」→ 读源码(提示词「代码地图」已给目录:src/ src-tauri/ frontend/src/);摘要内已带的关键 文件:行号 可直接转引;
  3. 答案引用 源码路径:行号;摘要为 2026-11-04 提炼,可能与最新代码有漂移,行级断言以源码复核为准;
  4. 本技能随版本发布(plugin/skills/builtin/,编译期内嵌进二进制、首启落盘到用户数据目录),任何装机环境可用。

1. 项目骨架速答(高频问题的快速答案)

1.1 Nuphus 是什么

Tauri v2 + Rust + React 18 的桌面 AI Agent(协同共生桌面助手),「统一 Runtime + ReactAgent」架构。三层职责边界:

层 目录 职责
前端 frontend/ UI、交互、状态展示、i18n、主题
壳 src-tauri/ 窗口、IPC 命令注册、AppState、事件转发(无业务逻辑)
核心 src/ Runtime、Agent、LLM、Memory、Tools、Security(全部业务逻辑)

IPC 层约 177 个命令(实测 268 个命令属性 / 308 注册项);核心引擎 32+ 子模块。外部能力:LLM Provider 12+ 家多协议、桌面自动化(Win32/UIA/OCR)、浏览器 CDP(chromiumoxide)、外部 Agent(门铃 HTTP)。

1.2 Cargo workspace:5 个 crate

Crate 路径 角色
nuphus src/ 核心引擎(lib),32+ 模块
nuphus-desktop src-tauri/ Tauri 桌面壳(bin nuphus)
desktop-api src-tauri/crates/desktop-api/ 底层桌面 API(鼠标/键盘/窗口/截图/OCR/输入模拟)
nuphus-index crates/nuphus-index/ 知识库内存索引引擎(扫描/解析/检索)
nuphus-browser crates/nuphus-browser/ 浏览器自动化(Chrome DevTools Protocol)

前端是独立 npm 工程(frontend/,pnpm):React 18.3 + TypeScript 5.8 + Vite 6 + @xyflow/react 12(工作流画布)+ pdfjs-dist + Vitest 4。

1.3 一次用户请求的生命周期

用户输入(主窗口 ChatInputBar)
  → invoke("send_message_cmd")                       [src-tauri/commands/process.rs]
  → busy 并发锁 + 读取 soul/relation/known_paths
  → 注入记忆上下文(memory → store,FTS5 + 语义双通路)
  → run_leader_with_config(复用或新建 ReactAgent)   [process/leader.rs]
  → Runtime::react_loop() —— ReAct 主循环            [src/runtime/react_loop.rs]
        ├─ llm → transports → Provider(SSE 流式)
        ├─ agent::exec_tool —— 五层安全链
        │     ├─ permissions(ToolCategory 授权)
        │     ├─ security(SecurityGuard / 注入检测 / 审批)
        │     └─ tools(ToolRegistry 分发执行)
        ├─ session(上下文窗口管理)
        ├─ memory → store(双通路检索 + 沉淀)
        ├─ skill(按需知识检索,不占 prompt)
        ├─ workflow / browser / desktop / mcp / handoff
        └─ protection(ProtectionGuard 断路器)
  → 流式事件 → event_seq 推送前端(useEvents hook 消费)

Read the full file on GitHub · 173 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 173 lines · 0 tokens per session scan A 5f464766fc18

Subscribe to this mod's changes

nuphus-modules is a skill published in the GitHub repository mrpulor-gh/nuphus (103 stars, last pushed yesterday), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 4,387 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-05.

Related

nuphus-modules compared with skills from other repositories

nuphus-modules next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nuphus-modulesmrpulor-gh/nuphusSkill103yesterdayApache-2.0A0Claude Code, Codex
browserwing-executorMemTensor/MemOSSkill12k2d agoApache-2.0A42Claude Code, Codex
dev-browserMemTensor/MemOSSkill12k2d agoApache-2.0A84Claude Code, Codex
browserwing-adminMemTensor/MemOSSkill12k2d agoApache-2.0B47Claude Code, Codex
computer-useMemTensor/memmy-agentSkill2.2kyesterdayMITA37Claude Code, Codex
Web2SkillzhimaAi/chatwikiSkill2.1k7d agononeA67Codex
agent-browserEvovexAI/EvoFlowSkill631todaynoneA68Claude Code, Codex