Advice for Refactoring and Publishing AI Prompts
To prepare your collection of AI prompts for a public site, I recommend focusing on categorization, standardized formatting, and descriptive naming. A public collection is most useful when users can quickly understand what a prompt does and why they should use it.
1. Recommended Directory Structure
Group your prompts by their primary function. This helps visitors navigate the collection based on their immediate needs.
/prompts
├── learning/ # Education & Study tools
│ ├── atomic-flashcards.md
│ ├── anki-tutor.md
│ └── video-transcript-analyst.md
├── engineering/ # Coding & Dev tools
│ ├── codebase-auditor.md
│ └── cli-project-scaffold.md
├── research/ # Information Extraction & Analysis
│ ├── deep-text-extractor.md
│ └── concise-fact-extractor.md
└── index.md # Main Table of Contents2. File Refactoring & Cleanup
I identified some overlap and duplication that should be resolved before publishing.
A. The project_initialization.md Issue
Current State: This file is a mix of three things:
- Links to other files (index-like behavior).
- Two specific Anki prompts (“Prompt A” and “Prompt B”).
- A full duplicate of the
code_audit.mdtext.
Recommendation:
- Extract the Anki Prompts: Move “Prompt A” and “Prompt B” into a new file named
anki-tutor.md(or merge them intoatomic-flashcards.mdas “Alternative Strategies”). - Remove the Duplicate: Delete the “Comprehensive Codebase Audit Request” section from this file, as it already exists in
code_audit.md. - Delete the File: Once extracted, delete
project_initialization.mdas it serves no distinct purpose.
B. Consolidating Extraction Prompts
Current State: You have extraction_prompt.md, extraction_prompt_2.md, and extraction_prompt_concise.md.
Recommendation:
- Keep
extraction_prompt_2.mdas your “Flagship” extraction prompt. It is the most robust and well-structured. Rename it todeep-text-extractor.md. - Keep
extraction_prompt_concise.mdfor users who want speed over depth. Rename it toconcise-fact-extractor.md. - Archive or delete
extraction_prompt.mdif it is just an older version of version 2. If it has unique value, merge it as a “Variant” into the main file.
3. Naming & Titles
Good titles are “Action-Oriented” + “Noun”. They should describe the persona the AI adopts or the product it produces.
| Current Filename | Recommended Filename | Recommended Public Title |
|---|---|---|
card_creation_prompt.md | atomic-flashcards.md | Atomic Flashcard Generator |
code_audit.md | codebase-auditor.md | Comprehensive Codebase Auditor |
extraction_prompt_2.md | deep-text-extractor.md | Deep Research Text Extractor |
extraction_prompt_concise.md | concise-fact-extractor.md | Concise Fact Miner |
project_setup.md | cli-project-scaffold.md | CLI Project Scaffolder (Nix/Claude) |
yt_transcript_analysis.md | video-transcript-analyst.md | YouTube Transcript Analyst |
| (From project_initialization) | anki-style-guide.md | Anki Card Style Guide |
4. Frontmatter & Metadata
For a public site (especially if using Jekyll, Hugo, Docusaurus, or Next.js), add YAML frontmatter to the top of every .md file.
Example Template:
---
title: "Deep Research Text Extractor"
slug: deep-text-extractor
description: "A rigorous protocol for extracting every claim, fact, and citation from dense source texts without summarization."
tags: [research, analysis, writing, productivity]
complexity: Advanced
author: "Nebu"
date: 2025-12-17
---
# Deep Research Text Extractor
... content ...5. Next Steps
- Split the content in
project_initialization.md. - Rename files to use
kebab-case(lowercase with hyphens) for better web URLs. - Add Headers (Frontmatter) to each file with a clear description.
- Create a central
README.mdorindex.mdthat links to these categorized sections.