🚀 ai-md-scaffold
Turn AI-generated Markdown into real project files — instantly.
ai-md-scaffold is a lightweight CLI tool and Python library that converts AI-generated Markdown (from ChatGPT, DeepSeek, Claude, Gemini, etc.) into a real project directory structure with actual files.
No more manual copy-paste.
No cleanup.
No broken file paths.
✨ Why ai-md-scaffold?
AI tools are great at generating code — but terrible at delivering it in a usable format.
This tool bridges that gap.
You give Markdown.
It creates real files.
✨ Features
- ✅ Convert AI Markdown into real files & folders
- ✅ Multi-format Support: Works with Bold titles (
**file**) or Headers (### file) - ✅ Smart Cleanup: Automatically removes emojis (
📁,📄), numbering (1.), and comments - ✅ Auto-Deduplication: Handles duplicate filenames by renaming them (e.g.,
file_2.js) - ✅ Supports
.env,Dockerfile, config files - ✅ Safe overwrite handling
- ✅ Dry-run preview mode
- ✅ Works as CLI or Python library
- ✅ Zero dependencies
📦 Installation
pip install ai-md-scaffold
Verify installation:
ai-md-scaffold --version
🚀 Quick Start (CLI)
1. Default Format (Bold Titles)
Best for prompts like "Use path/to/file for filenames".
ai-md-scaffold project.md
2. Header Format (New!)
Best for prompts like "Use ### path/to/file for filenames". Handles emojis and comments automatically.
ai-md-scaffold project.md --format 2
Other Options
# Overwrite existing files
ai-md-scaffold project.md --overwrite
# Preview only (no files written)
ai-md-scaffold project.md --dry-run
🧠 Supported Markdown Formats
ai-md-scaffold supports two common AI output styles.
Format 1: Bold Titles (Default)
Matches files wrapped in bold asterisks **...**.
Input Example:
# 📁 Project Structure
Here is the **src/main.py** file:
```python
print("Hello")
```
And here is **README.md**:
...
✅ Robust: Handles prefixes like
1. **file.js**or# **file.js**
Format 2: Header Titles (--format 2)
Matches files in Markdown headers (#, ##, ###).
Input Example:
### 1. src/main.py
```python
print("Hello")
```
### 📄 package.json (Backend)
```json
{}
```
### 📁 src/components/App.jsx
...
✅ Smart Parser:
- Ignores numbering (
1.,2.)- Removes emojis (
📁,📄)- Removes comments in parentheses
(Backend)- Renames duplicates automatically (
App.jsx->App_2.jsx)
🤖 Recommended AI Prompt
To get perfect results, append one of these prompts to your AI request:
Option A (For Default Format)
Output code in Markdown.
IMPORTANT: Precede each code block with the filename in bold, like: **path/to/file.ext**
Option B (For Header Format)
Output code in Markdown.
IMPORTANT: Use headers for filenames, like: ### path/to/file.ext
🧩 Python Library Usage
You can use ai-md-scaffold as a Python module.
from ai_md_scaffold import parse_markdown, generate
# Read AI-generated markdown
with open("project.md") as f:
markdown_text = f.read()
# Parse markdown (fmt=1 for Bold, fmt=2 for Headers)
files = parse_markdown(markdown_text, fmt=2)
# Generate files
generate(files, root="my_project", overwrite=False, dry_run=False)
⚙️ CLI Options
| Option | Description |
|---|---|
--format |
1 = Bold **file** (default), 2 = Headers ### file |
--dry-run |
Preview files without writing |
--overwrite |
Overwrite existing files |
--no-interactive |
Disable prompts |
--version |
Show version |
🧪 Example Output
$ ai-md-scaffold project.md --format 2
Root folder detected: pdf-tools
Use this folder? [Y/n] y
[INFO] Created: pdf-tools/server/package.json
[INFO] Created: pdf-tools/server/app.js
[INFO] Created: pdf-tools/client/src/App.jsx
Project successfully generated
🛡️ Safety & Stability
- Does not execute code
- Does not guess file paths
- Does not hallucinate structure
- Only uses what exists in Markdown
📦 Package Details
- Name: ai-md-scaffold
- CLI: ai-md-scaffold
- Python import: ai_md_scaffold
- Python: >= 3.8
- License: MIT
🧭 Use Cases
- Generate full-stack projects from DeepSeek, ChatGPT, Claude, Gemini, etc
- Convert AI answers into real repos
- Automate scaffolding
- Developer productivity tooling
- AI-assisted coding workflows
📜 License
MIT License — free for personal & commercial use.
❤️ Author Note
This tool exists because AI should build projects, not just talk about them.
If you find this useful — ⭐ star the repo, share it, or build on top of it.
Happy scaffolding 🚀
Metadata
Release files for ai-md-scaffold 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ai_md_scaffold-1.2.0.tar.gz | 7.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ai_md_scaffold-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.8 kB
Release files / ai_md_scaffold-1.2.0.tar.gz
| Download URL | ai_md_scaffold-1.2.0.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3a98ebe550460b18bb26492fbbf42a0009395af3a77f2de250a039a66612cd07
|
|
BLAKE2b-256 checksum How to use checksums |
62bd04304870fe8a640cbf1747de198da08d3b3806bfd5b32e631545de739645
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / ai_md_scaffold-1.2.0-py3-none-any.whl
| Download URL | ai_md_scaffold-1.2.0-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ddd84cabe93e0d0701dbc75d05cbba5f7e45a47391bf9e46df629443b430961
|
|
BLAKE2b-256 checksum How to use checksums |
bdcae86169b389a9e36b3263415285bc0fb28654a88d62e3cca09bf470115f2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for ai-md-scaffold 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.