CLI Prompt Management Tool - Guides and Documentation
| English | 日本語 |
Explains prompt file structure, manual creation methods, and template variable mechanisms.
.agent/climpt/prompts/{c1}/{c2}/{c3}/f_{edition}_{adaptation}.md
Examples:
.agent/climpt/prompts/git/decide-branch/working-branch/f_default.md
.agent/climpt/prompts/code/review/pull-request/f_detailed.md
.agent/climpt/prompts/meta/create/instruction/f_default_strict.md
Prompt files consist of two parts:
---
# Frontmatter (YAML format metadata)
c1: git
c2: decide-branch
c3: working-branch
title: Decide Working Branch
description: Decide branch strategy based on task content
---
---
# Prompt Body (Markdown)
Write instructions for AI here.
Template variables can be used: {input_text} {destination_path}
| Filename | Description | Selection Condition |
|---|---|---|
f_default.md |
Default | When no options specified |
f_{edition}.md |
Edition specified | When --edition={edition} |
f_{edition}_{adaptation}.md |
Both specified | When both options specified |
---
c1: code # Domain
c2: analyze # Action
c3: complexity # Target
title: Analyze Code Complexity # Title (English)
---
---
c1: code
c2: analyze
c3: complexity
title: Analyze Code Complexity
description: Calculate cyclomatic complexity and provide improvement suggestions
usage: climpt-code analyze complexity
c3l_version: "0.5"
options:
edition:
- default
- detailed
adaptation:
- default
- strict
file: true
stdin: true
destination: true
---
| Field | Type | Required | Description |
|---|---|---|---|
c1 |
string | Yes | Domain |
c2 |
string | Yes | Action |
c3 |
string | Yes | Target |
title |
string | Yes | Title (English) |
description |
string | No | Description (English) |
usage |
string | No | Usage example |
c3l_version |
string | No | C3L version |
options.edition |
string[] | No | Edition list |
options.adaptation |
string[] | No | Processing mode list |
options.file |
boolean | No | File input support |
options.stdin |
boolean | No | STDIN support |
options.destination |
boolean | No | Output destination support |
uv |
array | No | User variable definitions |
c3l_version in quotes: "0.5"c1, c2, c3 use lowercase and hyphens only| Variable | CLI Option | Description |
|---|---|---|
{input_text} |
STDIN | Text from standard input |
{input_text_file} |
-f, --from |
Input file path |
{destination_path} |
-o, --destination |
Output destination path |
{uv-*} |
--uv-* |
User-defined variables |
Prompt file:
# Code Analysis
## Target File
{input_text_file}
## Input Content
{input_text}
## Output Destination
{destination_path}
CLI execution:
echo "function test() { return 1; }" | \
climpt-code analyze complexity \
-f=./src/main.ts \
-o=./output/result.md
---
c1: code
c2: convert
c3: source-file
title: Convert Source File
options:
edition:
- default
file: true
stdin: true
destination: true
uv:
- target_language: Target programming language for conversion
- style_guide: Code style guide to follow (optional)
---
# Code Conversion
Convert the input code to **{uv-target_language}**.
## Style Guide
{uv-style_guide}
## Input Code
{input_text}
echo "def hello(): print('Hello')" | \
climpt-code convert source-file \
--uv-target_language=typescript \
--uv-style_guide=airbnb
uv:
- variable_name: Description of the variable
- another_var: Another description
target_language){uv-target_language}--uv-target_language=valueHow to create prompts manually without using meta create instruction.
mkdir -p .agent/climpt/prompts/code/analyze/complexity
touch .agent/climpt/prompts/code/analyze/complexity/f_default.md
Write frontmatter and prompt body into f_default.md (see sections 8.2 and 8.3
for format).
# Config file
cat > .agent/climpt/config/code-app.yml << 'EOF'
working_dir: ".agent/climpt"
app_prompt:
base_dir: "prompts/code"
app_schema:
base_dir: "schema/code"
EOF
# CLI executable
cat > .deno/bin/climpt-code << 'EOF'
#!/bin/sh
case "$1" in
-h|--help|-v|--version)
exec deno run --allow-read --allow-write --allow-env --allow-run --allow-net --no-config 'jsr:@aidevtool/climpt' "$@"
;;
*)
exec deno run --allow-read --allow-write --allow-env --allow-run --allow-net --no-config 'jsr:@aidevtool/climpt' --config=code "$@"
;;
esac
EOF
chmod +x .deno/bin/climpt-code
deno task generate-registry
climpt-code analyze complexity --help
echo "function test() { if(a) { if(b) { } } }" | climpt-code analyze complexity
| Concept | Description | Examples |
|---|---|---|
| edition | Input type/purpose | default, bug, feature, refactor |
| adaptation | Processing detail level | default, detailed, strict, minimal |
When --edition=bug --adaptation=detailed:
1. f_bug_detailed.md ← Highest priority
2. f_bug.md
3. f_default_detailed.md
4. f_default.md ← Last fallback
# Default
climpt-code review pull-request
# Bug fix edition
climpt-code review pull-request --edition=bug
# Detailed processing mode
climpt-code review pull-request --adaptation=detailed
# Both specified
climpt-code review pull-request --edition=bug --adaptation=detailed
prompts/code/review/pull-request/
├── f_default.md # Default
├── f_bug.md # For bug fixes
├── f_feature.md # For new features
├── f_default_detailed.md # Detailed mode
├── f_bug_detailed.md # Bug fix + detailed
└── f_feature_strict.md # New feature + strict