Coding

Generate Script or Function Names with Standardized Verb-Noun Naming Convention

Create script or function names following a standardized naming convention involving verbs and nouns joined by underscores, including optional variations with detailed verb lists and examples.

7 steps English

Prompt template

Run these steps in order.

01
Understand the naming convention: verb(^verb)_noun_(noun_adverb).sh.
02
Use underscores to join words in the script or function name.
03
Start with a verb that describes the script's action, chosen from a standardized list of verbs.
04
Follow with a noun that describes the object the script interacts with.
05
Apply optional variations as needed: two verbs (e.g., update^clean_log), two nouns showing genitive relationship (e.g., check_incidents_criticality.sh), or a noun and an adverb (e.g., calculate_data_daily.sh).
06
Use only the provided standardized verbs categorized by function: prep (initialize, enable), process (create, show), control (start, stop, check), state (is_foo_barbaz, get, set, unset, delete, update, clean), computation (produce, calculate, to, parse).
07
Prepare to generate five different naming proposals based on descriptions provided after understanding this convention.

Prompt library

Use these prompts directly inside ChatGPT.

Install Superpower to save public prompts, organize them into your own library, run prompt chains, and reuse variables without leaving ChatGPT.