prompt-designer

prompt-designer is a skill for Claude Code from AI-Shell-Team/aish. It costs 49 tokens per session (815 once invoked), scanned A, original, Apache-2.0.

A workflow for designing or changing the command prompt in aish shell, the text interface where users enter commands. It reads the existing prompt configuration and applies requested changes or creates a new design.

In plain words
What is it for?
Use it to inspect, modify, or regenerate an aish prompt and configure information such as the current directory, last command result, Git status, and branch name.
Why use it?
It gives the prompt a consistent way to show useful working information, such as the current folder, exit status, Git repository, or branch, without losing existing customizations.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/user/project.

Good fit Use it to inspect, modify, or regenerate an aish prompt and configure information such as the current directory, last command result, Git status, and branch name.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for prompt-designer

README.md
[![agentmods](https://agentmods.dev/badge/skills/ai-shell-team/aish/prompt-designer/github.svg)](https://agentmods.dev/skills/ai-shell-team/aish/prompt-designer)
Your own site
<a href="https://agentmods.dev/skills/ai-shell-team/aish/prompt-designer"><img src="https://agentmods.dev/badge/skills/ai-shell-team/aish/prompt-designer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for prompt-designer

Your own site · 80×15
<a href="https://agentmods.dev/skills/ai-shell-team/aish/prompt-designer"><img src="https://agentmods.dev/badge/skills/ai-shell-team/aish/prompt-designer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 815 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00049 $0.00815
Opus 5 $0.00024 $0.00407
Sonnet 5 $0.00010 $0.00163
Haiku 4.5 $0.00005 $0.00081

Measured 9d ago against content hash c08f78af83ac, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

prompt-designer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/prompt-designer/SKILL.md · 101 lines

How it starts

The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.aish

Step 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.aish

User Hook Location

~/.config/aish/scripts/hooks/aish_prompt.aish

Environment 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'     # Cyan

Default 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

Read the full file on GitHub · 101 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 101 lines · 49 tokens per session scan A c08f78af83ac

Subscribe to this mod's changes

prompt-designer is a skill published in the GitHub repository AI-Shell-Team/aish (532 stars, last pushed today), licensed Apache-2.0. It adds 49 tokens to every session and 815 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

completion-script-generator

Generates shell completion scripts for CLI tools. Parses command structure from help output, commander/yargs configs, or manual specification. Produces completions for bash, zsh, and fish that follow each shell's conventions.

curiositech/windags-skills · 50 tokens

taskgo

Maintains a private Git-backed personal project and task control repository using concise current Markdown, derived Git history, ADRs, and status synchronization. Use when tracking tasks, updating project status (STATUS.md), managing ADRs, synchronizing tracker state, delegating tasks to external agents, or generating…

ithinkihaveacat/dotfiles · 73 tokens

herdr

Use when the user mentions herdr or is working inside a herdr pane and wants to save/restore a pane layout, change herdr's theme, prefix or other preferences on this host only, start or check on an agent in another herdr pane, or asks why the herdr sidebar colors are unreadable. Requires HERDRENV=1.

sfc-gh-eraigosa/dotfiles · 74 tokens

conventional-commit

Workflow for generating conventional commit messages following the Conventional Commits specification. MUST be invoked every time a commit is created. Guides construction of standardized commit messages with correct type, scope, description, body, and footer.

JanDeDobbeleer/oh-my-posh · 47 tokens

segment-create

Full scaffolding workflow for creating a new Oh My Posh segment. Invoke when asked to add a new segment: generates the Go source, registers the type, creates documentation, updates the sidebar and JSON schema.

JanDeDobbeleer/oh-my-posh · 45 tokens

ccal

Chinese Calendar with Lunar-Solar Conversion.

x-cmd/x-cmd · 10 tokens