skills/prompt-designer/SKILL.md
Design and customize prompts for aish shell. Use when user wants to modify their shell prompt, describe desired prompt style, or switch between prompt themes. Triggers on keywords like "prompt", "提示符", "主题".
npx skillsauth add ai-shell-team/aish prompt-designerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Help users design and customize prompts for aish shell.
# Check if user has a prompt file
if [[ ! -f ~/.config/aish/scripts/hooks/aish_prompt.aish ]]; then
# Create from template
mkdir -p ~/.config/aish/scripts/hooks
cp <aish-src>/src/aish/scripts/templates/aish_prompt.aish ~/.config/aish/scripts/hooks/
fi
# Read current content
cat ~/.config/aish/scripts/hooks/aish_prompt.aish
Modify existing:
Regenerate (when user asks):
<aish-src>/src/aish/scripts/templates/aish_prompt.aish
~/.config/aish/scripts/hooks/aish_prompt.aish
| Variable | Description | Example |
|----------|-------------|---------|
| AISH_CWD | Current working directory | /home/user/project |
| AISH_EXIT_CODE | Last command exit code | 0, 1, 127 |
| AISH_GIT_REPO | "1" if in git repository | 1 or unset |
| AISH_GIT_BRANCH | Current branch name | main, feature-x |
| AISH_GIT_STATUS | Repository status | clean, staged, dirty |
| AISH_GIT_STAGED | Number of staged files | 3 |
| AISH_GIT_MODIFIED | Number of modified files | 11 |
| AISH_GIT_UNTRACKED | Number of untracked files | 9 |
| AISH_GIT_AHEAD | Commits ahead of upstream | 2 |
| AISH_GIT_BEHIND | Commits behind upstream | 1 |
| AISH_VIRTUAL_ENV | Virtual environment name | .venv, myenv |
R=$'\033[0m' # Reset
B=$'\033[1m' # Bold
D=$'\033[2m' # Dim
RD=$'\033[31m' # Red
G=$'\033[32m' # Green
Y=$'\033[33m' # Yellow
BL=$'\033[34m' # Blue
M=$'\033[35m' # Magenta
C=$'\033[36m' # Cyan
:~/n/x/g/aish|main● +1 ↑2 ➜
| User Request | Action |
|--------------|--------|
| "修改 prompt" | Init from template if needed → Read → Modify |
| "把路径改成红色" | Read → Change BL to RD in path section |
| "添加时间显示" | Read → Add $(date +%H:%M) at start |
| "重写 prompt" | Generate fresh from scratch |
printf '%s' not echo$'...' for ANSI color variables${VAR:-default}data-ai
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
documentation
Create new skills from documents, tutorials, or examples. Use when user wants to create a skill from learning materials or existing content.
data-ai
Base directory for this skill: $base_dir $skill_content Skill arguments: $skill_args
data-ai
Base directory for this skill: $base_dir $skill_content Skill arguments: $skill_args