Logo Linux Ops

Linux Ops

Cộng đồng
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.

Tổng quan

Nhà phát hànhLynricsy
Kho mãHyperSkills
Tên kỹ nănglinux-ops
Sao
26
Bản fork
0
Tệp đi kèm
12
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 12 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được Lynricsy công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Linux Ops trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/Lynricsy/HyperSkills/tree/main/skills/linux-ops
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Linux Ops trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Linux Ops ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Linux Ops không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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.

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Linux Ops làm được gì?

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.

Vì sao nên dùng Linux Ops trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Linux Ops là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Linux Ops trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/Lynricsy/HyperSkills/tree/main/skills/linux-ops. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Linux Ops?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Linux Ops với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Linux Ops với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Linux Ops có miễn phí không?

Có. Kỹ năng này được Lynricsy phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇