You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project provides two scripts to **generate**, **run**, and **parse**[Ailly](https://www.npmjs.com/package/@ailly/cli)prompts based on your AWS DocGen snippets.
3
+
This project automates the process of generating, running, parsing, and applying[Ailly](https://www.npmjs.com/package/@ailly/cli)prompt outputs to an AWS DocGen project. It combines all steps into one streamlined command using a single Python script.
4
4
5
-
## Overview
5
+
---
6
+
7
+
## 📦 Overview
6
8
7
-
1.**Generate** Ailly prompts from DocGen snippets (`make_prompts.py`).
8
-
2.**Run** the Ailly CLI on the generated prompts (`npx @ailly/cli`).
9
-
3.**Parse** the Ailly outputs back into structured JSON (`parse_json_files.py`).
9
+
This tool:
10
+
1.**Generates** Ailly prompts from DocGen snippets.
11
+
2.**Runs** Ailly CLI to get enhanced metadata.
12
+
3.**Parses** Ailly responses into structured JSON.
13
+
4.**Updates** your DocGen examples with the new metadata.
14
+
15
+
All of this is done with one command.
10
16
11
17
---
12
18
13
-
## Prerequisites
19
+
## ✅ Prerequisites
14
20
15
21
- Python 3.8+
16
-
- Node.js & npm (for `npx`)
22
+
- Node.js and npm (for `npx`)
23
+
- A DocGen project directory
17
24
18
25
---
19
26
20
-
## Step 1: Generate Ailly prompts
27
+
## 🚀 Usage
21
28
22
-
Use `make_prompts.py` to create a directory of Markdown files and a `.aillyrc` configuration file.
29
+
From your project root, run:
23
30
24
31
```bash
25
-
python make_prompts.py \
26
-
--doc-gen-root /path/to/your/docgen/project \
27
-
--system-prompts "You are a helpful assistant..." \
0 commit comments