scripts/templates/copilot-prompt.md
Generate a documentation scaffolding proposal from the context file.
Read .tmp/scaffold-context.json which contains:
draft: Documentation draft content and frontmatterproducts: Available InfluxDB productsproductHints: Suggested products based on content analysisversionInfo: Detected version (3.x/2.x/1.x) and toolsstructure: Repository structure and sibling weightsconventions: Documentation standardsDetermine:
productHints and versionInfostructure.siblingWeights for the sectionGenerate files following these patterns:
content/shared/{namespace}-{section}/{topic-name}.md
├─ content/{namespace}/{product}/{section}/{topic-name}.md (frontmatter only)
├─ content/{namespace}/{product}/{section}/{topic-name}.md (frontmatter only)
└─ ...
content/{namespace}/{product}/{section}/{topic-name}.md (full content)
For frontmatter-only files:
---
title: Clear SEO title
description: 1-2 sentence description
menu:
{namespace}_{product}:
name: Nav label
parent: Parent item
weight: {calculated from siblings}
source: /shared/{namespace}-{section}/{topic-name}.md
related:
- /path/to/related1/
- /path/to/related2/
alt_links:
{product}: /path/to/equivalent/
---
Based on versionInfo:
influxdb3 CLI, influxctl, /api/v3influx CLI, /api/v2influx CLI (v1), influxd, InfluxQLGenerate JSON matching scripts/schemas/scaffold-proposal.schema.json:
{
"analysis": {
"topic": "...",
"targetProducts": ["..."],
"section": "...",
"isShared": true/false,
"reasoning": "...",
"styleReview": {
"issues": [],
"recommendations": []
},
"codeValidation": {
"tested": false,
"tools": []
}
},
"files": [
{
"path": "content/...",
"type": "shared-content" | "frontmatter-only",
"content": "..." OR "frontmatter": {...}
}
],
"nextSteps": ["..."]
}
Save to: .tmp/scaffold-proposal.json
{namespace}_{product} (e.g., influxdb3_core)content/shared/ subdirectoriesBegin analysis of .tmp/scaffold-context.json.