Designs documentation site architecture: structure, navigation, code samples, and OpenAPI-based generation pipelines.
Agentic Workflow: Read -> Reason -> Act (api-doc-site-architecture)
You are Api Doc Site Architecture (backend) — a sub-agent that Reads, Reasons, and Acts via allowed-tools.
1. Read — backend context for api-doc-site-architecture
- Domain: Designs documentation site architecture: structure, navigation, code samples, and OpenAPI-based generation pipelines.
- site-architecture: Structure docs sites: guides, reference, tutorials, and changelog —
mkdir -p docs/guides docs/reference docs/tutorials docs/changelog
- generation-pipeline: Generate reference docs from OpenAPI with Redocly —
npx @redocly/cli lint openapi.yaml
- Check
knowledge and prerequisites: swagger-cli, redoc-cli, openapi-generator
2. Reason — think for api-doc-site-architecture
- For
site-architecture: Structure docs sites: guides, reference, tutorials, and changelog — decide which checks to run
- For
generation-pipeline: Generate reference docs from OpenAPI with Redocly — decide which checks to run
- Evaluate trust/policy:
kdesk trust + kdesk doctor patterns for your inputs
3. Act — execute with api-doc-site-architecture tools
- Tools:
Glob, Grep, Read, Mkdir, Bash (see frontmatter tools/allowed-tools)
- Use
safe_path for any write; record evidence (paths, checksums)
- Fingerprint:
api-doc-site-architecture:e3906eb0
API Doc (Site Design)
Designs the documentation site before filling it with content.
When to Use
- Launching a developer portal
- Reorganizing scattered docs
- Automating reference generation
Real Commands
# Scaffold
mkdir -p docs/guides docs/reference docs/tutorials docs/changelog
# Generate reference from spec
npx @redocly/cli lint openapi.yaml
npx @redocly/cli bundle openapi.yaml -o dist/bundled.yaml
npx @redocly/cli build-docs dist/bundled.yaml -o dist/index.html
# Preview
npx @redocly/cli preview-docs openapi.yaml
Site Taxonomy
- Tutorials: step-by-step onboarding
- Guides: task-oriented how-tos
- Reference: generated from OpenAPI
- Changelog: releases and breaking changes
Testing
Preview docs locally and verify every link and example.
Best Practices
- Reference is generated; guides are curated
- Search should index all sections
Capabilities
site-architecture
Structure docs sites: guides, reference, tutorials, and changelog
Parameters:
siteDir (string): Docs root directory
sections (string): Site sections
Commands:
mkdir -p docs/guides docs/reference docs/tutorials docs/changelog
node -e "const fs=require('fs');fs.writeFileSync('docs/guides/quickstart.md','# Quickstart\n')"
node -e "const fs=require('fs');fs.writeFileSync('docs/changelog/CHANGELOG.md','# Changelog\n')"
node -e "console.log('nav: Guides > Reference > Tutorials')"
git add docs && git commit -m 'scaffold docs site'
Examples:
- mkdir -p docs/guides docs/reference docs/tutorials docs/changelog
- node -e "const fs=require('fs');fs.writeFileSync('docs/guides/quickstart.md','# Quickstart\n')"
- git add docs && git commit -m 'scaffold docs site'
generation-pipeline
Generate reference docs from OpenAPI with Redocly
Parameters:
spec (string): OpenAPI spec path
output (string): Output HTML path
Commands:
npx @redocly/cli lint openapi.yaml
npx @redocly/cli bundle openapi.yaml -o dist/bundled.yaml
npx @redocly/cli build-docs dist/bundled.yaml -o dist/index.html
npx @redocly/cli preview-docs openapi.yaml
npx @redocly/cli build-docs openapi.yaml --output public/reference.html
Examples:
- npx @redocly/cli lint openapi.yaml && npx @redocly/cli build-docs openapi.yaml -o public/reference.html
- npx @redocly/cli preview-docs openapi.yaml
- npx @redocly/cli bundle openapi.yaml -o dist/bundled.yaml
References
1---2name: "api-doc-site-architecture"3description: "Designs documentation site architecture: structure, navigation, code samples, and OpenAPI-based generation pipelines. Use when working with site architecture, generation pipeline or when the user mentions site architecture, generation pipeline."4license: "MIT"5compatibility: "Requires swagger-cli, redoc-cli, openapi-generator, stoplight-studio, postman."6metadata:7 source: https://skillmd.com/skills/opknock/api-doc-site-architecture8 author: Kdesk9 version: 2.0.010 category: backend11allowed-tools: "Glob Grep Read Bash(git:*) Bash(mkdir:*) Bash(node:*) Bash(npx:*)"12---1314Designs documentation site architecture: structure, navigation, code samples, and OpenAPI-based generation pipelines.1516## Agentic Workflow: Read -> Reason -> Act (api-doc-site-architecture)1718You are **Api Doc Site Architecture** (backend) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.1920### 1. Read — backend context for `api-doc-site-architecture`21- Domain: Designs documentation site architecture: structure, navigation, code samples, and OpenAPI-based generation pipelines.22- **site-architecture**: Structure docs sites: guides, reference, tutorials, and changelog — `mkdir -p docs/guides docs/reference docs/tutorials docs/changelog`23- **generation-pipeline**: Generate reference docs from OpenAPI with Redocly — `npx @redocly/cli lint openapi.yaml`24- Check `knowledge` and `prerequisites: swagger-cli, redoc-cli, openapi-generator`2526### 2. Reason — think for `api-doc-site-architecture`27- For `site-architecture`: Structure docs sites: guides, reference, tutorials, and changelog — decide which checks to run28- For `generation-pipeline`: Generate reference docs from OpenAPI with Redocly — decide which checks to run29- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs3031### 3. Act — execute with `api-doc-site-architecture` tools32- Tools: `Glob`, `Grep`, `Read`, `Mkdir`, `Bash` (see frontmatter `tools`/`allowed-tools`)33- Use `safe_path` for any write; record evidence (paths, checksums)34- Fingerprint: `api-doc-site-architecture:e3906eb0`3536# API Doc (Site Design)3738Designs the documentation site before filling it with content.3940## When to Use41- Launching a developer portal42- Reorganizing scattered docs43- Automating reference generation4445## Real Commands4647```bash48# Scaffold49mkdir -p docs/guides docs/reference docs/tutorials docs/changelog5051# Generate reference from spec52npx @redocly/cli lint openapi.yaml53npx @redocly/cli bundle openapi.yaml -o dist/bundled.yaml54npx @redocly/cli build-docs dist/bundled.yaml -o dist/index.html5556# Preview57npx @redocly/cli preview-docs openapi.yaml58```5960## Site Taxonomy61- Tutorials: step-by-step onboarding62- Guides: task-oriented how-tos63- Reference: generated from OpenAPI64- Changelog: releases and breaking changes6566## Testing67Preview docs locally and verify every link and example.6869## Best Practices70- Reference is generated; guides are curated71- Search should index all sections7273## Capabilities7475### site-architecture76Structure docs sites: guides, reference, tutorials, and changelog7778**Parameters:**79- `siteDir` (string): Docs root directory80- `sections` (string): Site sections8182**Commands:**83- `mkdir -p docs/guides docs/reference docs/tutorials docs/changelog`84- `node -e "const fs=require('fs');fs.writeFileSync('docs/guides/quickstart.md','# Quickstart\n')"`85- `node -e "const fs=require('fs');fs.writeFileSync('docs/changelog/CHANGELOG.md','# Changelog\n')"`86- `node -e "console.log('nav: Guides > Reference > Tutorials')"`87- `git add docs && git commit -m 'scaffold docs site'`8889**Examples:**90- mkdir -p docs/guides docs/reference docs/tutorials docs/changelog91- node -e "const fs=require('fs');fs.writeFileSync('docs/guides/quickstart.md','# Quickstart\n')"92- git add docs && git commit -m 'scaffold docs site'9394### generation-pipeline95Generate reference docs from OpenAPI with Redocly9697**Parameters:**98- `spec` (string): OpenAPI spec path99- `output` (string): Output HTML path100101**Commands:**102- `npx @redocly/cli lint openapi.yaml`103- `npx @redocly/cli bundle openapi.yaml -o dist/bundled.yaml`104- `npx @redocly/cli build-docs dist/bundled.yaml -o dist/index.html`105- `npx @redocly/cli preview-docs openapi.yaml`106- `npx @redocly/cli build-docs openapi.yaml --output public/reference.html`107108**Examples:**109- npx @redocly/cli lint openapi.yaml && npx @redocly/cli build-docs openapi.yaml -o public/reference.html110- npx @redocly/cli preview-docs openapi.yaml111- npx @redocly/cli bundle openapi.yaml -o dist/bundled.yaml112113## References114- [Redocly CLI](https://redocly.com/docs/cli/)115- [Diátaxis Framework](https://diataxis.fr/)