prompt-designer
Skill578 starsChanged 6 months agoApache-2.0View on GitHub
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", "提示符", "主题".
1 other project uses a version of this.
Adopted by
Most recently taken up by
- zieang88888/zhskillstheir own version, first seen Oct 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- zieang88888/zhskills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- aish-add-skillsSkill
- deepin-sysassistSkill
- devops-docker-patternsSkill
- devops-platform-engineeringSkill
- diagnose_system_lagSkill
- dns-diagnoseSkill
- find-skillsSkill
- network-path-diagnoseSkill
- nfs-cifs-mount-diagnoseSkill
- sosreport-analyzerSkill
- ssl-cert-toolkitSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 97
Always use printf '%s' not echo
- Very specific: line 98
Use $'...' for ANSI color variables
- Distinctive: line 100
Keep execution under 100ms
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Prompt Designer
Help users design and customize prompts for aish shell.
Workflow
Step 1: Check or Initialize
# 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.aishStep 2: Modify or Regenerate
Modify existing:
- Read current file
- Apply only requested changes
- Preserve existing customizations
Regenerate (when user asks):
- "重写", "重新生成", "create new"
- Generate completely new prompt
Template Location
<aish-src>/src/aish/scripts/templates/aish_prompt.aishUser Hook Location
~/.config/aish/scripts/hooks/aish_prompt.aishEnvironment Variables
| 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 |
ANSI Colors
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' # CyanDefault Output
:~/n/x/g/aish|main● +1 ↑2 ➜Example Interactions
| 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 |
Tips
- Always use
printf '%s'notecho - Use
$'...'for ANSI color variables - Handle missing variables:
${VAR:-default} - Keep execution under 100ms
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

