Skip to main content

Turn AI-generated Markdown into real project files

Project description

🚀 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
  • ✅ Works with any AI model
  • ✅ Supports .env, Dockerfile, config files
  • ✅ Safe overwrite handling
  • ✅ Dry-run preview mode
  • ✅ Works as CLI or Python library
  • ✅ Zero dependencies
  • ✅ Stable parsing

📦 Installation

pip install ai-md-scaffold

Verify installation:

ai-md-scaffold --version

🚀 Quick Start (CLI)

ai-md-scaffold project.md

With overwrite

ai-md-scaffold project.md --overwrite

Preview only (no files written)

ai-md-scaffold project.md --dry-run

🧠 Supported Markdown Format

Each file must start with a bold title representing the file path.

Example:

**src/main.py**

```python
print("Hello, world!")
```

**.env**

```
PORT=3000
DEBUG=true
```

**Dockerfile**

```dockerfile
FROM python:3.11-slim
```

✅ Files without code blocks are still generated
✅ Trailing colons (:) are automatically cleaned
❌ Explanations outside file blocks are ignored


🤖 Recommended AI Prompt (IMPORTANT)

To get perfect results, use this prompt with your AI:

Generate project files using STRICT Markdown rules:

- Each file starts with **relative/path**
- Use fenced code blocks
- No explanations
- No emojis
- No bullet lists
- Markdown ONLY

Example Prompt:

Create a Node.js backend project.
Output Markdown only.
Use **path/file.ext** for each file.

🧩 Python Library Usage

You can also 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
files = parse_markdown(markdown_text)

# Generate files
generate(files, root="my_project", overwrite=False, dry_run=False)

⚙️ CLI Options

Option Description
--dry-run Preview files without writing
--overwrite Overwrite existing files
--no-interactive Disable prompts
--version Show version

🧪 Example Output

$ ai-md-scaffold project.md

[INFO] Created: src/main.py
[INFO] Created: .env
[INFO] Created: Dockerfile

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 🚀


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai_md_scaffold-1.0.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_md_scaffold-1.0.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file ai_md_scaffold-1.0.1.tar.gz.

File metadata

  • Download URL: ai_md_scaffold-1.0.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for ai_md_scaffold-1.0.1.tar.gz
Algorithm Hash digest
SHA256 edf1396c87af57b6f4665ca9f65cfa91a94fb9db1b42b98be8faac30b21a078b
MD5 9b0be05702dd9a2204e2770db1b12d65
BLAKE2b-256 a49159f29dc6b52924898d40fc8897699ed2dde3ead1da36d1939645d4e2ebfb

See more details on using hashes here.

File details

Details for the file ai_md_scaffold-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: ai_md_scaffold-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for ai_md_scaffold-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e5605ff7fbccad58594ff3fbf9d1f4309fff04d3dfb99f91096e463b5f5a612d
MD5 c38e99d5686dd4058a6d09738d9b2f5b
BLAKE2b-256 9c0e7735155e2cfad0613a2b0aa199b734ed159ff1d5ee21d991d886d2ddcc85

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page