scripts/templates/chatgpt-prompt.md
You are analyzing a documentation draft to generate an intelligent file structure proposal for the InfluxData documentation repository.
Context file: .tmp/scaffold-context.json
Read and analyze the context file, which contains:
Analyze the draft content to determine:
productHints.mentioned and productHints.suggested from contextversionInfo.version (3.x, 2.x, or 1.x)Decide on the optimal file structure:
content/shared/) when content applies broadly with minor variationsstructure.siblingWeights
For each file, create complete frontmatter with:
{namespace}_{product})structure.existingPathsBased on versionInfo:
conventions.testingFollow conventions from conventions.namingRules:
manage-databases.md)/content/shared/ subdirectoryGenerate a JSON proposal matching the schema in scripts/schemas/scaffold-proposal.schema.json.
Required structure:
{
"analysis": {
"topic": "Brief topic description",
"targetProducts": ["core", "enterprise", "cloud-dedicated"],
"section": "admin",
"isShared": true,
"reasoning": "Why this structure makes sense",
"styleReview": {
"issues": [],
"recommendations": []
},
"codeValidation": {
"tested": false,
"tools": ["influxdb3 CLI", "influxctl"]
}
},
"files": [
{
"path": "content/shared/influxdb3-admin/topic-name.md",
"type": "shared-content",
"content": "{{ACTUAL_DRAFT_CONTENT}}"
},
{
"path": "content/influxdb3/core/admin/topic-name.md",
"type": "frontmatter-only",
"frontmatter": {
"title": "Page Title",
"description": "Page description",
"menu": {
"influxdb3_core": {
"name": "Nav Label",
"parent": "Parent Item"
}
},
"weight": 205,
"source": "/shared/influxdb3-admin/topic-name.md",
"related": [
"/influxdb3/core/path/to/related/"
],
"alt_links": {
"enterprise": "/influxdb3/enterprise/admin/topic-name/"
}
}
}
],
"nextSteps": [
"Review generated frontmatter",
"Test with: npx hugo server",
"Add product-specific variations if needed"
]
}
.tmp/scaffold-context.json.tmp/scaffold-proposal.jsonThe following command validates and creates files from the proposal:
npx docs create --proposal .tmp/scaffold-proposal.json