Linux Ops 标志

Linux Ops

社区
Lynricsy
linux-ops

Operates Linux servers: systemd services, permissions, disks, networking, firewalls and restores. Use when a service works in a shell but fails under systemd, a disk stays full after deleting files, DNS, TLS or firewall rules misbehave on a VPS or bare-metal host, SSH access is at risk during a network change, or a backup restore must be proven.

概览

发布者Lynricsy
代码仓库HyperSkills
技能名称linux-ops
星标数
26
复刻数
0
附带文件
12
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 12 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 Lynricsy 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Linux Ops AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/Lynricsy/HyperSkills/tree/main/skills/linux-ops
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Lynricsy/HyperSkills.git /tmp/HyperSkills
mkdir -p .claude/skills
cp -r /tmp/HyperSkills/skills/linux-ops .claude/skills/linux-ops
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Linux Ops,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Linux Ops。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Linux Ops 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

linux-ops

Paths below are relative to this skill's directory.

Scope

Operate at the Linux host boundary: identify which process, mount, listener, manager or persistence layer owns the failure; change that layer without losing management access, evidence or recoverable data. Cover systemd-based bare-metal and VPS hosts, including distribution differences in service names and managers.

Keep these boundaries:

  • Cloud IAM, provider networking and VM control planes belong to aws, azure or gcp. A provider console may be a recovery prerequisite, not a deployment task.
  • Container images and Kubernetes resources belong to containers. Do not apply host firewall or namespace recipes inside a container as though it were a host.
  • Application logic belongs to its language/framework skill; Linux merely being the runtime is not a reason to diagnose it here.
  • Database-consistent capture and replay require the database's supported procedure. Own the host cutover, not an invented database backup protocol.
  • Production telemetry pipelines belong to observability; shell program design is not this skill's purpose.

A request to analyze supplied evidence authorizes analysis, not connecting to machines or applying repairs. Write an executable plan only after its target values and access boundary are known; do not silently execute that plan.

Core rules

  1. Bind every observation to host identity, time, boot, process and namespace where relevant; identical paths can name different objects.
  2. Separate observation, proposed mutation and authorized execution; a diagnostic request does not authorize a restart or remote login.
  3. Record the owner of runtime and persistent configuration before editing; two independent managers can immediately undo each other.
  4. Require an external recovery path for changes that can remove access or destroy data, plus a tested rollback independent of the connection being changed; a second shell alone is not recovery.
  5. Preserve volatile evidence before restarting, rotating, deleting or resetting failure state; the repair may erase the only explanation.
  6. Distinguish disk configuration, manager-loaded configuration and live process state; daemon-reload does not retrofit namespaces, credentials or resource limits into MainPID.
  7. Match readiness and reload claims to the daemon's actual protocol; active state and a successful signal helper are not proof that clients see the new configuration.
  8. Keep non-root identity and isolation while fixing the specific denied operation; chmod 777, broad capabilities and disabling MAC or sandboxing are not diagnostic fixes.
  9. Treat capability bounding as a ceiling, not a grant; inspect effective and ambient sets and exec-time privilege restrictions before changing them.
  10. Count storage by filesystem and object identity, not path strings or FD rows; blocks, inodes and per-process descriptors exhaust independently.
  11. Recheck PID identity and device/inode immediately before a signal or file action; process and descriptor numbers can be reused.
  12. Verify new connections on every relevant address family after an access change; established sessions and IPv4 success can conceal a broken IPv6 or new-SSH path.
  13. Validate TLS with the intended hostname, SNI, trust chain and endpoint; bypassing verification proves connectivity, not certificate correctness.
  14. Select a recoverable point by explicit identity and consistency evidence, not unqualified latest; mirrors and successful backup jobs do not establish RPO or RTO.
  15. Restore into an isolated target before cutover and coordinate all writers; an intact repository can still restore an unusable application state.
  16. State exactly what each check proves and leaves untested; do not promote syntax checks, samples or repository checks into end-to-end recovery evidence.

Workflows

Diagnose a host incident

  • Confirm the supplied or authorized host identity, boot/time interval, distribution, kernel, relevant tool version and impact. Record whether the evidence is live, a snapshot, or a synthetic incident.
  • Choose the reference matching the observed boundary in the topic router; do not run a full-host inventory to answer a single-service question.
  • Collect the smallest discriminating evidence: effective unit and journal for service failure; mount plus block/inode figures for storage; listener, route, resolver and endpoint identity for network failure.
  • Mark access-denied or unavailable observations as unknown, not empty. Begin unprivileged; request only the privilege necessary to read the missing evidence, excluding private keys and secret environment values.
  • Write a causal hypothesis and the observation that would falsify it. Compare the actual daemon context with a successful shell context rather than treating a root-shell success as an application health test.
  • Before an action that loses evidence, identify its owner, retention duty and a protected off-host or unaffected-volume evidence destination.
  • Gate — localized cause: cite evidence for the failing layer and one discriminating check. If the check cannot be performed, label the proposed cause as a hypothesis and provide the exact missing observation.

Change a service or its execution environment

  • Identify the exact unit instance, drop-ins, activation sockets/timers, MainPID and worker processes. Read references/service-privileges-and-limits.md.
  • Capture the current effective settings and rollback copies with ownership, permissions and secrets protected. Specify availability budget, drain method, health probe and external recovery access before disruption.
  • Determine whether the change is daemon configuration, unit configuration, socket configuration or live cgroup state. Specify the activation required for each; do not use reload-or-restart to conceal that decision.
  • Check syntax with the installed daemon's validator and, for unit changes, systemd-analyze verify against the candidate unit. Treat unknown settings as a compatibility problem, not a harmless warning.
  • For denied access, resolve identity, ancestor traversal, ACL/MAC, capability, filesystem and namespace evidence before changing one policy.
  • For a namespace or execution-context change, drain and replace the affected process under an approved window; retain the non-root and read-only design.
  • Activate only the authorized change, then read the live process state. Watch readiness, worker turnover and restart counters over a meaningful interval, not only the instant after the command returns.
  • Gate — live activation: the intended process observes the new object or setting, a fresh client exercises it, isolation remains effective, and the documented rollback remains available until acceptance.

Recover capacity without erasing the incident

  • Identify the filesystem behind the failing path and classify the failure as blocks, inodes, quota, read-only/I/O, or descriptors. Read references/storage-and-processes.md.
  • Compare like-for-like df and scoped du observations; retain collection times, traversal errors and mount boundaries.
  • For deleted-open files, group holders by device/inode, estimate allocated space once per object, and preserve required evidence before the last close.
  • Identify the producer responsible for continuing growth. Propose its supported reopen, retention or bounded shutdown mechanism rather than a generic truncate, kill or package-cache cleanup.
  • State exact targets, authorization, recovery copies and capacity required for evidence preservation. If preservation is impossible, escalate the loss tradeoff explicitly rather than silently deleting.
  • Gate — sustainable headroom: remeasure blocks and inodes separately, confirm the intended holders released the object, and demonstrate that a representative write works without a continuing exhaustion trend.

Change remote access, routing or filtering

  • Read references/network-and-remote-changes.md; identify the real SSH port, source network, destination addresses, jump path, firewall manager, routing manager and persistence loader for both IP families.
  • Record current runtime and persistent state, and test the independent console/rescue path before touching the management path.
  • Prepare the complete candidate and rollback transaction. Arm rollback outside the SSH process tree and prove its status, deadline and privileges. If reboot is in scope, account for how recovery survives reboot too.
  • Validate configuration without activation; preserve management access and required network control traffic in the candidate before restrictive policy.
  • Apply one boundary at a time under explicit authorization; keep the old session and do not remove the previous access path yet.
  • Gate — fresh remote access: establish a non-multiplexed new SSH session from the expected client path, exercise required IPv4/IPv6 business traffic and TLS, inspect persistence, then cancel rollback and retire old access.

Prove a backup and perform a recovery

  • Read references/backup-and-restore.md; state the recovery point objective (maximum data loss) and recovery time objective (maximum service outage).
  • Select repository and snapshot ID by host, paths, time and application consistency evidence. Compute recoverable age at the incident time; do not substitute backup schedule frequency for observed recovery-point age.
  • Establish isolated target identity, free blocks/inodes, metadata support, restricted access and network containment before restoring untrusted data.
  • Restore the selected scope, check content and metadata, then exercise the recovered service without contacting production dependencies or writers.
  • Time retrieval, provisioning, restore, replay, validation and switch-over. Mark RTO unproven if only download speed or a small sample was timed.
  • For cutover, stop or fence every writer, complete the approved final delta or replay, retain the pre-cutover state, and allow one authoritative writer.
  • Gate — usable recovery: the recovered application passes its own integrity and client checks at the selected point, measured outage meets RTO, observed data loss meets RPO, and rollback handles post-cutover writes.

Topic router

TopicRead whenFile
Service lifecycle, permissions, capabilities, namespaces and limitsA unit fails only under systemd, a reload does not activate data, or execution policy changesreferences/service-privileges-and-limits.md
Storage and process ownershipA write fails, df and du disagree, deleted files retain space, or a process exhausts FDsreferences/storage-and-processes.md
DNS, TLS, routes, SSH and host firewallReachability differs by client/address family, or a change may disrupt remote managementreferences/network-and-remote-changes.md
Consistent backup and controlled restorationEvaluating recoverability, copying metadata-sensitive data, or planning a restore/cutoverreferences/backup-and-restore.md

Output format

Use this template for an incident or change review; omit inapplicable rows rather than claiming they passed.

text
Target: host / unit or filesystem / relevant version / observation time
Authority: analysis only | authorized observations | authorized mutation scope
Impact and invariants: availability, evidence retention, identity and isolation
Evidence: observed facts with source; hypotheses and missing observations separate
Cause: mechanism and falsifying check
Change: exact target, current -> proposed state, owner, activation and disruption
Recovery: external access, saved state, executor/deadline, rollback trigger
Verification: check -> expected result -> observed result -> limitation
Status: proposed | applied and verified | rolled back | blocked

For configuration findings, add path:line - finding and a minimal before/after fragment. Separate a suggested command from one actually run. Never include private keys, passwords or raw secret-bearing environment dumps in the report.

Environment

Use the target's existing tools and managers. Common observations use systemd, procfs, util-linux, coreutils, iproute2 and the installed OpenSSH; storage details may require lsof, ACL/xattr tooling or the filesystem's native utilities.

Do not install diagnostic packages during an incident without approval: package installation changes disk pressure and state. Request existing evidence instead. Consult installed manuals (man systemd.exec, man sshd, man rsync) and restic help restore/restic help check before using version-sensitive flags.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Linux Ops AI 技能有什么作用?

Operates Linux servers: systemd services, permissions, disks, networking, firewalls and restores. Use when a service works in a shell but fails under systemd, a disk stays full after deleting files, DNS, TLS or firewall rules misbehave on a VPS or bare-metal host, SSH access is at risk during a network change, or a backup restore must be proven.

为什么在 TypingMind 中使用 Linux Ops?

因为您只需安装一次,就能搭配任何模型使用。Linux Ops 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Linux Ops?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/Lynricsy/HyperSkills/tree/main/skills/linux-ops。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Linux Ops?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Linux Ops 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Linux Ops 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Linux Ops AI 技能免费吗?

是的。Lynricsy 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇