File System Indexer CLI Prompt
Asks the AI to build a high-performance file system indexer and search tool in Go. It's for developers. Use it at the start of a task, before you write the code by hand.
Build a high-performance file system indexer and search tool in Go. Implement recursive directory traversal with configurable depth. Add file metadata extraction including size, dates, and permissions. Include content indexing with optional full-text search. Implement advanced query syntax with boolean operators and wildcards. Add incremental indexing for performance. Include export functionality in JSON and CSV formats. Implement search result highlighting. Add duplicate file detection using checksums. Include performance statistics and progress reporting. Implement concurrent processing for multi-core utilization.
Source: awesome-chatgpt-prompts (CC0).
How to use this prompt
- 1
Copy the prompt
Use the copy button, or type its Retext trigger in any app to paste it.
- 2
Open your AI assistant
Start a new chat in ChatGPT, Claude, Gemini or the assistant you use.
- 3
Fill in the details
Replace any [bracketed] parts with your own details.
- 4
Check and refine
Read the answer, then reply with one change at a time.
Tips for better results
- •Expect a JSON. Name the exact columns, fields or sections you want so you can paste the result straight into your own document.
- •Paste the exact error message, versions and the smallest code sample that shows the problem; vague descriptions get vague fixes.
- •Ask for one revision at a time and quote the part you want changed; broad "make it better" requests tend to rewrite everything.
Get the free prompt pack
Our best coding prompts in one Markdown file, delivered by email. The templates here stay free either way — the pack just saves you the copying.
Variations
Context first
Add this line at the end: Before you start, ask me up to three questions about my File System Indexer CLI task and wait for my answers.
Structured answer
Add this line: Start with a numbered list of the changes, then give the full code, then one line on how to test it.
Save it as a Retext snippet
Retext is a free text expander for Mac. Save this prompt once, then type ;file-system in any app (ChatGPT, Claude, your editor, a browser tab) and the full prompt is pasted in.
- Click Add to Retext. The prompt installs as a snippet with the trigger ;file-system.
- Change the trigger in Retext if you prefer a different one.
- Type the trigger wherever you want the prompt, then fill in the brackets.
Frequently asked questions
What does the File System Indexer CLI prompt do?
Asks the AI to build a high-performance file system indexer and search tool in Go. It's written for developers.
Which AI tools does it work with?
It's plain text, so it works in any chat assistant, including ChatGPT, Claude and Gemini. Paste it as the first message of a new chat.
Can I save this prompt as a snippet?
Yes. Click Add to Retext and it installs as a snippet with the trigger ;file-system. Type that in any Mac app to paste the full prompt.
Related Templates
Get the free prompt pack
Our best coding prompts in one Markdown file, delivered by email. The templates here stay free either way — the pack just saves you the copying.