Nas Setup logo

Nas Setup

Community
coracoo
nas-setup

Use when 用户说"连不上 NAS"、"检查 NAS 连接状态"、"NAS 环境有问题"、任何 MCP tool 返回 N001208/N001414 等鉴权错误、skill 跑之前先确认环境。所有其他 NAS skill 的第一步都应该先调此 skill。 触发词:检查 NAS、NAS 环境、连不上 NAS、NAS 连接状态、setup nas、NAS 配置检查、check nas。 不适用:不是解决具体业务问题的 skill — 只做环境校验;具体功能用对应的 skill。

Overview

Publishercoracoo
Repositoryzspace_skill
Skill namenas-setup
Stars
39
Forks
13
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by coracoo on GitHub. Read the source before you install it.

Installation

Install the Nas Setup AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/coracoo/zspace_skill/tree/master/skills/nas-setup
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/coracoo/zspace_skill.git /tmp/zspace_skill
mkdir -p .claude/skills
cp -r /tmp/zspace_skill/skills/nas-setup .claude/skills/nas-setup
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Nas Setup in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Nas Setup on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Nas Setup is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

NAS Setup — 环境检查 & 登录验证

概述

在任何 NAS 操作之前,必须先跑这个前置检查。它验证:

  1. .env 是否配置完整
  2. NAS 能否登录(鉴权链是否通)
  3. device_id 是否有效(N001414 短信验证绕过了吗)
  4. RAG daemon 是否在线(需要 RAG 的 skill 才检查)

工作流

前置检查(每次被触发时执行)

方式 1(推荐): exec 自动化脚本,一次性输出全部结果

python skills/nas-setup/scripts/check.py

方式 2: Agent 手动逐项检查(脚本无法运行时备用)

  1. 检查 .env 配置 — Agent 读 .env,检查 NAS_HOST/NAS_USER/NAS_PASSWORD 非空
  2. 验证 NAS 登录 — 调 list_files MCP tool
  3. 验证 RAG daemon — 调 index_status() MCP tool

如果 .env 缺变量(Agent 交互修复)

check.py 返回 ❌ .env 配置: 不完整 时,Agent 主动逐条问用户,不要等用户去编辑:

Agent: "NAS 连接信息缺 2 项:
  1. NAS_HOST — 极空间的 IP 地址是什么?
  2. NAS_PASSWORD — 登录密码是什么?
  请依次告诉我。"
用户: "192.168.1.100"
Agent: "收到 NAS_HOST=192.168.1.100。密码呢?"
用户: "mypassword"
Agent: [编辑 .env 文件,写入 NAS_HOST 和 NAS_PASSWORD]
Agent: [重跑 check.py]
"✅ .env 配置: 完整。剩下 NAS 登录... [继续验证]"

关键规则:

  • 不要只打印"请编辑 .env"就完事 — 必须逐条交互问用户
  • 密码类变量(NAS_PASSWORD/KEY_SSH)不回显
  • 写入 .env 后立即重跑 check.py 验证

检查结果解读

✅ NAS 登录:通(用户 xxx)
✅ device_id:有效
✅ RAG daemon:在线(391 chunks, last_reindex xxx)

或:
❌ NAS 登录: N001414 短信验证 — 把真实 device_id 填入 .env
⚠️ RAG daemon:未运行 — label-manager scan 按文件名匹配

跟其他 skill 的关系

所有其他 skill(SKILL.md)的第一步应引用:

**前置**:先调 nas-setup 检查环境。REQUIRED: 调 whoami() 验证登录,调 index_status() 验证 RAG。

故障排查

现象处理
.env 找不到cp .env.example .env
NAS_USER/NAS_PASSWORD 为空编辑 .env 填入
whoami() 返回 N001414把已登记的真实 device_id 填入 .env 的 NAS_DEVICE_ID(32 字符 hex)
whoami() 超时检查 NAS_HOST 是否正确,ping <nas_ip>
index_status() 超时nas-rag docker 没跑: cd rag-server && docker compose up -d

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Nas Setup AI skill do?

Use when 用户说"连不上 NAS"、"检查 NAS 连接状态"、"NAS 环境有问题"、任何 MCP tool 返回 N001208/N001414 等鉴权错误、skill 跑之前先确认环境。所有其他 NAS skill 的第一步都应该先调此 skill。 触发词:检查 NAS、NAS 环境、连不上 NAS、NAS 连接状态、setup nas、NAS 配置检查、check nas。 不适用:不是解决具体业务问题的 skill — 只做环境校验;具体功能用对应的 skill。

Why use Nas Setup on TypingMind?

Because you install it once and use it with any model. Nas Setup is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Nas Setup in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/coracoo/zspace_skill/tree/master/skills/nas-setup. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Nas Setup?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Nas Setup?

As many as you like. As long as a model supports skills, you can use Nas Setup with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Nas Setup AI skill free?

Yes. It is published on GitHub by coracoo under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇