executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
lov-zsh-aliasAdd a zsh alias / function to the user's ~/.zshrc, idempotently and safely. Supports both ASCII names (e.g. `gs`, `zxsd`) and 中文 function names (e.g. `中信书店`) — zsh fully supports CJK function identifiers. Trigger when the user says: "加个 alias", "加一个别名", "做个快捷命令", "我想输入 X 就执行 Y", "alias for X", "shortcut for X", "shell alias", or asks to wrap a command behin…
Independent GitHub snapshot · Automated classification · Original documentation governs
gs, zxsd) and 中文 function names
(e.g. 中信书店) — zsh fully supports CJK function identifiers.
Trigger when the user says: "加个 alias", "加一个别名", "做个快捷命令",
"我想输入 X 就执行 Y", "alias for X", "shortcut for X", "shell alias",
or asks to wrap a command behind a single trigger word.
license: MIT
compatibility: >
Requires Python 3.8+ (stdlib only). zsh on macOS / Linux.
Uses SKILL_ZSH_ALIAS_RCFILE or ~/.zshrc by default; pass --rcfile for
other shells' rc.
metadata:
author: contributors
version: "0.2.1"
tags: [zsh, alias, shell, productivity]Append a zsh alias or function to ~/.zshrc behind sentinel markers, so
re-running updates the entry in place instead of duplicating it. Works for
both English (zxsd) and 中文 (中信书店) trigger names.
Do NOT use for:
--rcfile.Use AskUserQuestion to collect anything not already obvious from context.
Typical fields:
function (default) — supports CJK names, supports passing args via "$@"simple alias — only for ASCII names; uses alias name='cmd' formIf the user already gave the trigger + command in plain language ("中信书店 → 启动 claude 说一句开心话"), skip the question and proceed.
python3 scripts/add_alias.py \
--name <trigger> \
--cmd '<shell command>' \
--comment '<one-line explanation>' \
[--also-as <other-trigger>] \
--dry-run
Show the rendered block to the user.
Re-run without --dry-run. The script writes a sentinel-wrapped block to
~/.zshrc. Re-running with the same --name updates in place.
source ~/.zshrc
Then they can type the trigger + Enter.
python3 scripts/add_alias.py \
--name <trigger> --cmd unused --remove
| Argument | Default | Description |
|---|---|---|
--name | (required) | Trigger word; ASCII or 中文 |
--cmd | (required) | Shell command to run |
--also-as | none | Extra alias name(s); repeatable |
--comment | empty | Comment line above the block |
--simple | off | Use alias= form (ASCII names only) |
--rcfile | ~/.zshrc | Target rc file |
--dry-run | off | Print, don't write |
--remove | off | Remove the entry for --name |
Each entry is wrapped in sentinel markers so the script can find and update it on re-run:
# >>> lov-zsh-alias >>> <name>
# <comment>
<name>() { <cmd> }
<also-as>() { <name> "$@" }
# <<< lov-zsh-alias <<< <name>
--simple for CJK names; the script will reject it.source ~/.zshrc (or open a new terminal) to pick up the
new alias. Always say so after writing.Set SKILL_ZSH_ALIAS_RCFILE to change the default rc file. --rcfile
still takes precedence.
运行前读取本 Skill 包的 skill.yaml,由宿主提供 skill-runtime/v1 上下文。字段解析顺序为:当前请求、项目上下文、个人 Preferences、品牌 Profile、通用默认值。
required: true 字段缺失时,按 Manifest 的问题配置向用户提出一个聚焦问题;用户明确同意后再保存回答。context_id、字段路径与来源,诊断内容避开秘密、完整私人路径和原始配置。