Linux

From intentic/intentic · View interactive version

Linux is an AI agent skill from the GitHub repository intentic/intentic. Operate "${id}", one of the user's own computers (Linux): run commands, read and write files, capture its screen. Use when a task names "${id}" or needs this Linux machine; for "my machine" or "my PC" with several connected, pick by what the task needs and ask if unclear.

How to use this skill

Skill file

${tools}

This machine runs Linux

run_command gives you the user's login shell through sh -lc, so their PATH, aliases from profile files, and

version managers (nvm, asdf, mise) are in scope, but this is a DESKTOP session, not a server: a graphical

session is usually alive, and that is what makes the GUI idioms below work.

Know which session you are in

echo $XDG_SESSION_TYPE: wayland and x11 differ for anything touching the screen, the clipboard or input.

Get this once from describe (it reports it) rather than assuming X11.

The idioms worth knowing

| Job | Command |

| --- | --- |

| Find files | find ~ -name '*.log' -type f 2>/dev/null (or fd when installed) |

| Search text | grep -rn 'needle' ~/dir (or rg) |

| Which package manager | command -v apt dnf pacman zypper apk: never assume apt |

| Install | sudo apt-get install -y <pkg>: sudo may prompt; see below |

| User services | systemctl --user status <unit>, journalctl --user -u <unit> -n 100 |

| System services | systemctl status <unit>, journalctl -u <unit> -n 100 |

| Open a file/URL | xdg-open <path-or-url> |

| Clipboard (Wayland) | wl-copy < file / wl-paste |

| Clipboard (X11) | xclip -selection clipboard -i / -o |

| Notify the user | notify-send 'title' 'body' |

| Disk / memory | df -h, free -h, lsblk |

| What's listening | ss -tlnp |

sudo

Assume there is no passwordless sudo. A sudo command that needs a password will hang until it times out:

there is no terminal for the user to type into. Run sudo -n true first: if it fails, ask the user to run the

privileged command themselves, and hand them the exact line to paste.

Driving the Linux GUI

Which tools are needed depends on the session describe reported:

needs /dev/uinput: sudo apt install ydotool then sudo usermod -aG input $USER, and a re-login), and

typing/keys prefer wtype (sudo apt install wtype), which needs no privileges.

When one is missing the tool says which and gives the exact install line: pass it on rather than concluding the

machine cannot be driven.

If this is a WSL distro

describe says so ("Environment: the WSL distro "Arch" on the Windows PC radarsu-rog"). Then this Linux is one

side of a Windows PC, not a machine of its own:

device are useless on this door. explorer.exe . opens a folder in Windows, clip.exe writes the Windows

clipboard, wslview <url-or-file> opens something with its Windows handler.

PC, started in the Windows profile, and no pwsh.exe -Command '…' quoting through sh. cwd is then a Windows

path (C:\Users\you) or its /mnt form.

\\wsl.localhost\<distro>\… from Windows. Work on files from the side they live on.

agrees on both sides.

that door for anything on screen and this one for Linux shell work.

Long-running things

run_command waits for the command to exit. For anything that should outlive the call, start it detached

(systemd-run --user --unit=<name> <cmd>, or nohup <cmd> >~/log 2>&1 &) and poll its log with a later call.

Two filesystems, and which tool for which job

(~/Documents/…) is on their device; a command or path you put in their clipboard or type into their app

must exist on their side. Move bytes explicitly (write_file, read_file), never assume.

is fastest and most precise; a web app goes through a browser (theirs via the chrome skill, or the sandbox's

own); this skill is for native desktop apps and cross-app work, which no connector reaches. A connector that

errors is debugged or reported, not silently retried through a slower tier.

screenshot or run the command and answer from what you saw, not from memory. Their setup and versions differ

from the ones you expect, and "that app can't do that" grounded in nothing is the wrong answer more often

than not. Do not describe the screen, or call the machine reachable, until a call has succeeded.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.