跳到正文
cccskills
免费在 GitHub 公开

atuin

Atuin replaces your shell history file with a searchable SQLite database that records directory, exit code, duration and host for every command, and can sync it end-to-end encrypted between machines. Use when a user asks to "search shell history", "replace Ctrl+R", "sync history across machines", "find the command I ran in this directory", "import bash/zsh history", "see my most used commands" or "self-host Atuin".

中文简介正在准备中。当前显示原文说明。

集成工具PostgreSQL
查看安装方法

包含的文件(2)

  • SKILL.md6.5 KB
  • _scores.json2.8 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Atuin

Overview

Atuin hooks into your shell, stores each command with its working directory, exit code, duration, session and host in a local database, and replaces Ctrl+R (and optionally the Up arrow) with an interactive search over it. Optional sync copies history between machines, encrypted client-side so the server only sees ciphertext; you can use the hosted server at api.atuin.sh or run your own. Your original shell history file keeps being written, so installing Atuin loses nothing.

Instructions

1. Install

brew install atuin            # macOS / Linuxbrew
pacman -S atuin               # Arch
cargo install atuin --locked  # from source (needs a current Rust toolchain)
winget install -e Atuinsh.Atuin   # Windows

The project also documents an installer script at setup.atuin.sh; if you use a script, download and read it first rather than piping it into a shell.

2. Enable the shell integration

Add one line to the shell's startup file, then open a new terminal:

eval "$(atuin init zsh)"            # ~/.zshrc
eval "$(atuin init bash)"           # ~/.bashrc (requires ble.sh or bash-preexec loaded BEFORE this line)
atuin init fish | source            # ~/.config/fish/config.fish

Useful options: atuin init zsh --disable-up-arrow keeps Up as the shell default; --disable-ctrl-r keeps the default Ctrl+R.

3. Import existing history

atuin import auto        # detects the current shell; or: atuin import zsh | bash | fish

4. Search

Ctrl+R opens the interactive UI; Tab/Enter behaviour follows enter_accept. From scripts or an agent use the non-interactive command (a prefix search by default; * and % are wildcards):

atuin search docker
atuin search --cwd ~/code/billing-api --exit 0 "make"      # only successes in one directory
atuin search --after "2026-09-01" --before "2026-09-30" deploy
atuin search --exclude-exit 0 --limit 10 "npm test"        # recent failures
atuin search --format "{time} {exit} {command}" --limit 20 kubectl
atuin search --delete "AWS_SECRET"                         # remove matching entries

Other flags: --exclude-cwd, --human, --reverse, --offset, --interactive. In the UI, Ctrl+R again cycles the filter (global, host, session, directory, workspace).

5. Stats

atuin stats              # all time: most used commands, totals, unique count
atuin stats week         # also: today, month, year, or a date like 2026-09-01 or "last friday"

6. Sync

atuin register -u mira.kowalski -e mira@kowalski.dev   # prompts for a password
atuin key                                              # shows the encryption key: store it in a password manager
atuin sync                                             # manual sync; auto_sync runs it in the background

# on a second machine
atuin login -u mira.kowalski                           # prompts for password and the key
atuin sync -f                                          # full re-sync if entries look missing

7. Configure

~/.config/atuin/config.toml (created on first run; keys are top-level, no [settings] table):

dialect = "us"
auto_sync = true
sync_frequency = "5m"
search_mode = "fuzzy"             # prefix | fulltext | fuzzy | daemon-fuzzy
filter_mode = "global"            # global | host | session | session-preload | directory | workspace
filter_mode_shell_up_key_binding = "directory"   # Up arrow stays project-local
style = "compact"                 # auto | full | compact
inline_height = 20
enter_accept = false              # Enter edits the command instead of running it
history_filter = ["^export .*TOKEN", "^psql .*password"]
secrets_filter = true             # on by default: skips commands containing known secret patterns

8. Self-host

Run the server image ghcr.io/atuinsh/atuin at the current release tag (for example 18.23.0) with command start, backed by PostgreSQL, port 8888. Required environment: ATUIN_DB_URI, ATUIN_HOST=0.0.0.0, and ATUIN_OPEN_REGISTRATION=true only until accounts exist. Then set sync_address = "https://atuin.northwind-labs.net" in each client's config before registering. Put it behind TLS.

Examples

Example 1: Find last week's command in one project

User prompt: "What was the docker compose command I used in the billing-api folder that worked?"

cd ~/code/billing-api
atuin search --cwd "$PWD" --exit 0 --after "last week" --format "{time}  {command}" "docker compose"

Result: a list such as 2026-09-28 14:02:11 docker compose -f compose.prod.yml up -d --build, newest matches included, failed runs excluded.

Example 2: Move history to a new laptop

User prompt: "I got a new MacBook, I want my shell history there."

On the old machine: atuin sync then atuin key (copy the key). On the new one: brew install atuin, add eval "$(atuin init zsh)" to ~/.zshrc, open a new shell, atuin login -u mira.kowalski, paste the password and key, atuin sync. atuin stats then shows the full history count from both machines.

Guidelines

  • The encryption key cannot be recovered; losing it means losing synced history. Never paste it into chats or commit it.
  • Atuin records every command, including inline secrets. Add history_filter patterns for your own token formats, keep secrets_filter on, and use atuin search --delete to purge a leaked entry; rotate the secret anyway.
  • On bash, load ble.sh or bash-preexec first; without them history capture is incomplete.
  • Set sync_address before register when self-hosting, or you create an account on the hosted server.
  • filter_mode = "directory" suits project work; keep global for general recall.
  • Not for hiding commands from other users or auditing: it is a convenience history, not a tamper-proof log.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Scripts and configures production rendering in Autodesk 3ds Max with the V-Ray and Corona renderers: output size and files, render elements, denoising, light mix, batch and command-line rendering, and network rendering. Use when a user asks to set up a production render, render several cameras in one batch, render from the command line or on a render farm, add render passes for compositing, or cut render time for archviz and product shots.

中文简介正在准备中。当前显示原文说明。

TerminalSkills/skills1722026年10月14日 更新

Covers scripting Autodesk 3ds Max, the 3D modeling and rendering application, with MAXScript and Python (pymxs): scene manipulation, object creation, material assignment, camera and light setup, batch operations, and file I/O. Use when tasks involve automating repetitive 3ds Max workflows, batch processing scenes, running scripts headless with 3dsmaxbatch, creating custom tools, or scripting scene setup for archviz, product visualization, or VFX.

中文简介正在准备中。当前显示原文说明。

TerminalSkills/skills1722026年10月14日 更新

3proxy

免费

3proxy is a small open-source proxy server that runs HTTP/HTTPS, SOCKS4/5, SNI and TCP/UDP port-mapping proxies from one config file. Use when a user asks to set up an HTTP or SOCKS5 proxy, add proxy users and passwords, write 3proxy access rules, chain or rotate upstream (parent) proxies, limit bandwidth, connections or monthly traffic per user, run 3proxy in Docker, or fix a 3proxy.cfg that will not start.

中文简介正在准备中。当前显示原文说明。

TerminalSkills/skills1722026年10月14日 更新

Builds Agent2Agent (A2A) servers and clients, the open protocol (originally from Google, now under the Linux Foundation) that lets AI agents from different frameworks call each other. Use when the user wants to create an A2A-compliant agent, build an Agent Card, implement task management, connect agents across frameworks, set up agent discovery, handle streaming responses, implement push notifications, or orchestrate multi-agent workflows. Trigger words: a2a, agent to agent, agent2agent, a2a protocol, a2a server, a2a client, agent card, agent interoperability, agent collaboration, multi-agent, agent discovery, a2a sdk, a2a task.

中文简介正在准备中。当前显示原文说明。

TerminalSkills/skills1722026年10月14日 更新

Plans a controlled experiment (A/B test) so its result can be trusted: writes the hypothesis, picks one primary metric and the guardrails, computes sample size and run time, specifies how visitors are assigned and when exposure is logged, and reads out the result with a confidence interval. Use when someone says "set up an A/B test", "split test this page", "how many visitors do I need", "how long should the experiment run", "is this result significant", "can I stop the test early", or wants to test a headline, price, layout or onboarding change against the current version.

中文简介正在准备中。当前显示原文说明。

TerminalSkills/skills1722026年10月14日 更新

ably

免费

Ably is a hosted realtime messaging service: clients publish and subscribe to named channels over WebSockets, see who is present, replay message history, and resume after a dropped connection. Use when a user asks to "add realtime updates", "push live notifications to the browser", "show who is online", "add a chat room with typing indicators", "publish from a serverless function", or "authenticate Ably clients without exposing the API key". Covers the ably 2.x JavaScript SDK (Realtime and REST), JWT token authentication, presence, history and rewind, batch publishing, and the @ably/chat 1.x SDK.

中文简介正在准备中。当前显示原文说明。

TerminalSkills/skills1722026年10月14日 更新

查看 TerminalSkills 的全部技能

报告此技能的问题