skill.detail
Back to Alex Morgan's profileTechnical writing for transforming API specs into scannable docs, auditing compliance, and modularizing content. Use when transforming dense Swagger YAML into endpoint guides, auditing legacy docs for GDPR/SOC 2 gaps, modularizing reusable snippets, simplifying schemas by complexity scores, prioritizing endpoints via logs/tickets, or chunking pages data-driven. Key capabilities: 9-step transformation workflow, schema scoring/prioritization matrices, six-section deliverable templates, confusion overrides. Not for UI/UX guides, marketing copy, or code implementation.
Drop this file into your favorite AI tool so it thinks like you every time.
Use numbered steps to produce structured deliverables for each task. Each step specifies input, action, output format, success criterion, and rationale.
Parse the input Swagger YAML file.
Calculate schema complexity score for each endpoint schema.
Conduct audience analysis.
Prioritize endpoints using composite metric.
Chunk endpoints into pages.
Bullet-point parameters with flags.
Generate live curl examples.
curl -X POST https://api.example.com/v1/charge -H "Authorization: Bearer ..." -d '{"amount":1000}'); validate against schema.Perform visual validation.
Assemble final deliverable.
Input: All prior outputs.
Action: Structure into rigid six-section Markdown template; prepare PR description template listing changes.
Output:
# Endpoint Guide: [Path/Method]
## Overview
Hero summary ≤200 words. Quickstart curl. Auth method. Path. Idempotency notes.
## Parameters
| Name | Type | Required | Description (≤1 sentence) | Validation | Default | Example |
|------|------|----------|---------------------------|------------|---------|---------|
| amount | integer | Yes | Charge amount in cents. | >0 | | 1000 |
*(≤15 rows; collapsible full schema toggle)*
## Response
Mirrors Parameters table for 200 OK/4xx/5xx.
## Examples
```bash
curl -X POST ...
SDK/JSON pairs.
Common codes from tickets + mitigations/trace IDs.
Upstream/downstream links + changelog.
Success criterion: Matches template; GitHub Actions CI would pass.
Rationale: Enforces scannability; yields 12-22% scroll-depth/support lifts.
Scan for regulated terms.
Cross-reference against standards.
Identify repeats.
Chunk into reusables.
Apply these conditionals at flagged workflow steps. Use tables for multi-factor checks.
| Step | Condition | Action | Rationale |
|---|---|---|---|
| 2 | Score >50 | Flatten to core fields (e.g., amount/currency/customer_id only). | Prevents overwhelm from 500+ line walls. |
| 2 | Score 20-50 | Markdown tables; prune descriptions; Spectral lint $refs. | Balances detail with readability. |
| 2 | Score <20 | Bullet-point polish only. | Simple schemas need minimal intervention. |
| 3-4 | Primary users=developers | Auth flows before CRUD. | Matches dev workflow. |
| 4 | Calls >1,000/week AND tickets >25/quarter | Prioritize as top 70%. | High-impact first. |
| 5 | ≥70% schema overlap AND ≥40% traces AND ≥20% Zendesk refs | Group page. | High relatedness justifies. |
| 5 | <500 calls/week OR <40% traces OR <20% Zendesk | Solo page. | Avoids bloat. |
| 5 Override | Zendesk clustering >25% errors AND schema diff <10% | Split to solo (Confusion Rule). | Prioritizes clarity over metrics. |
Example: For /v1/subscriptions/CANCEL (meets volume/traces/overlap but >25% Zendesk 'idempotency confusion'), override to solo page because reduces support by 22%.
Aim for 70/20/10 traffic coverage quarterly via simulated GA A/B.
Follow these always/never rules to avoid failures.
Emulate these for precision; produce compatible outputs.
When standard chunking breaks: Apply Confusion Override Rule if metrics suggest grouping but Zendesk theme clustering >25% on errors AND schema diff <10% (e.g., high-volume endpoint with idempotency confusion signals). Generate solo page instead, because qualitative confusion trumps quantitative overlap, yielding 22% support drops/12% scroll lifts. Signal: Provided tickets show error clustering despite strong metrics. Fall back to solo pages if no logs/tickets available.
For detailed examples, walkthroughs, and edge cases, consult 'references/REFERENCE.md'.