Updates an existing article (.mdx) to match product, feature, or portal UI changes the user describes. Use when the user reports that something changed and the docs are outdated, for example "the button was renamed", "a new field was added", "this limit changed to X", "the setup flow has a new step", or "this article is out of date". Finds the affected articles, edits the relevant sections, optionally captures fresh screenshots with Playwright, and validates MDX, frontmatter, style, and links...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Update Page?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/g-core-update-page)
---
name: update-page
description: >-
Updates an existing article (.mdx) to match product, feature, or portal UI
changes the user describes. Use when the user reports that something changed
and the docs are outdated, for example "the button was renamed", "a new field
was added", "this limit changed to X", "the setup flow has a new step", or
"this article is out of date". Finds the affected articles, edits the relevant
sections, optionally captures fresh screenshots with Playwright, and validates
MDX, frontmatter, style, and links. Not for new articles (use write-from-scratch) or full portal audits (use full-audit).
---
Update existing articles based on provided context about product or UI changes.
## Scope — read exactly these files
1. This SKILL.md
2. The article file(s) identified during Phase 1
3. `.agents/references/style-guide.md` — when rewriting prose or restructuring
4. `.agents/references/procedures.md` — when the article tells the reader to open the portal, a section, or a control. A sequence of those actions is a numbered list, never one sentence.
5. `.agents/references/mdx-rules.md` — when editing MethodSwitch structure or frontmatter
6. `.agents/references/sdk-best-practices.md` — SDK usage patterns (use `*_and_poll()`, no manual polling)
7. `.agents/references/mcp-tools/playwright.md` — only if user agrees to Playwright testing
8. `.agents/references/mcp-tools/edge-network-context.md` — only when a CDN or edge behavior claim is still open after the portal or API check
Do not read other articles for context unless they are directly linked from the
article being updated.
---
## Inputs
| Input | Required | Notes |
|-------|----------|-------|
| Description of what changed | Yes | Product change, UI rename, new option, changed flow |
| Article path | No | If not provided, agent searches for it |
| Screenshots | No | If provided, use them directly — no Playwright needed |
| Jira ticket / Confluence link | No | Additional context if available |
---
## Phase 0 — Relevance gate
**Run this before touching any file.** Decide whether an MDX update is actually warranted.
### The two conditions that justify an update
Update documentation only when **at least one** of these is true:
1. **Existing MDX content is factually wrong** — a UI label was renamed, a command no longer works, a field was removed, a limit changed, a step was reordered, a response example shows a value that is no longer returned.
2. **A customer following the article would fail or be blocked** — a new mandatory field was added, authentication changed, a required step is missing, a new required configuration must be set before the feature works.
### Signals that do NOT justify an update
Stop and cancel if the change is only one of the following:
- **New optional/diagnostic field or header** that we do not currently document — goes in the API Reference, not our narrative MDX. We do not mirror every response header or parameter from OpenAPI specs.
- **Backend or API-spec fix** where the dev ticket is Done and the fix was applied by backend developers to YAML/code, not to our MDX — the work is already complete without us.
- **Informational addition** (new metric, new response header, new log field) that customers can discover in the API Reference or portal UI — we do not duplicate the API Reference.
- **Internal-only change** — admin API, internal billing, backend refactoring, library update.
- **We never documented this thing** and it is not blocking any task described in our articles — silence is fine; adding it would be noise.
### Scope of change — match the size of the fix
A bug fix or a behavior change to an existing feature does **not** justify a new section,
a new heading, or a new table. It justifies the **minimum change** that makes the article accurate:
- A previously undocumented parameter → add one row to the existing table, plus a note if behavior is non-obvious.
- A previously broken behavior that now works → update the existing description in place.
- A new option on an existing flow → one sentence or one row, in the existing structure.
Never create a new `###` heading for a fix. Never add a dedicated curl example block for a
parameter that can be described in a table cell. The article already has structure — fit
the change into it.
A developer ticket is a point fix, not an epic. Edit only the sentence that states the outdated fact. Do not copy the correction into other articles, tabs, or examples that never stated it. A second place is in scope only when it states the same outdated fact.
### Ticket is a signal, not a blueprint
A Jira ticket tells you **what content is missing** — not how to structure the article or
how much space the change deserves. The tech writer decides structure.
- An "optional" feature mentioned in a ticket → one sentence where it naturally fits, not a new section.
- A minor behavior fix → fit it into the existing paragraph where that behavior is described.
- The ticket's wording is a starting point, not copy-paste material.
- Do not inflate small changes. A ticket about a validation rule does not justify
rewriting the surrounding flow or adding callout boxes. Find where the behavior
is already described and add the minimum accurate statement there.
### DOC tickets auto-generated by agents may be wrong
DOC tickets with the label `docops-auto` are created automatically by a doc-ops agent, not
by a human reporter. The agent reads a dev ticket and infers what documentation changes are
needed — it can be wrong, incomplete, or overeager.
**Before making any change, apply your own judgment:**
1. Read the source dev ticket (linked in the DOC ticket description).
2. Ask: does this change produce information a customer actually needs while following the article?
3. Ask: is this already communicated by the product UI, portal form, or existing documentation?
4. Ask: would the customer notice or be blocked if we said nothing?
If the answer to 2–4 is "no" — do not make the change. Report it as not needed and explain why.
Self-explanatory UI behavior (form auto-correction, inline validation messages, labels shown
next to fields) does not require documentation. The portal already communicates it.
A dev ticket marked Done and fixing a backend bug does not require documentation.
Do not document what the UI already says.
### Decision checklist
Go through these in order. Stop at the first YES or NO that resolves the question.
| Question | YES → | NO → |
|----------|-------|------|
| Does the change make existing MDX text **factually wrong**? | Proceed | Next |
| Is this a **UI change** (renamed button, new portal field, changed navigation path)? | Proceed | Next |
| Would a customer following our article **fail to complete the task** without this info? | Proceed | Next |
| Do we **already document** this specific element (field, header, option) and it changed? | Proceed | Next |
| Was the fix applied by a **backend developer** to YAML/code, and is the dev ticket Done? | Cancel | Next |
| Would this update **duplicate content already in API Reference or portal UI**? | Cancel | Next |
| Is the new information **optional, diagnostic, or monitoring-only**? | Cancel | Proceed |
### If the answer is Cancel
Report exactly this and stop:
```
Change: [description]
Decision: CANCEL — no MDX update needed
Reason: [one sentence from the checklist above]
```
Do not search for articles. Do not open any files. Do not propose alternative updates.
---
## Phase 1 — Find affected articles
If the article path is given — skip to Phase 2.
If not, search the repository:
```powershell
# Search by product or feature name
Get-ChildItem -Recurse -Filter *.mdx | Select-String -Pattern "keyword" -List | Select-Object -ExpandProperty Path
# Search by UI element name that changed
Get-ChildItem -Recurse -Filter *.mdx | Select-String -Pattern "old button name" -List | Select-Object -ExpandProperty Path
```
Read the first sentence of each match to confirm it is relevant before proceeding.
Multiple articles may be affected — process each one separately.
**Do not update articles you are not sure are affected.** If unsure, list them
and ask the user which ones to update.
---
## Phase 2 — Understand the article
Before making any change, read the full article:
- What is the article's goal? What task does it walk the reader through?
- How is it structured? (Tabbed / portal-only / API-only)
- Where exactly do the provided changes fit?
- What surrounding content might need adjustment for the change to read naturally?
Do not start editing until you can answer these questions.
---
## Phase 3 — Playwright decision
**If screenshots were provided** → skip this phase, use the provided screenshots.
**If the changes involve UI elements** (button names, navigation paths, form fields,
new UI screens) **and no screenshots were provided** → ask the user:
> The changes you described affect the portal UI.
> Should I open the portal and capture updated screenshots?
>
> - **Yes** — I will navigate to the relevant section, verify the current UI,
> and take new screenshots.
> - **No** — I will update the text only. You can add screenshots separately.
Wait for the answer before proceeding.
- If **yes** → follow the protocol in `.agents/references/mcp-tools/playwright.md` and take each screenshot with the `article-screenshot` skill
- If **no** → continue to Phase 4 with text-only changes
When adding or replacing screenshots, always use the single-line Frame format:
```mdx
<Frame></Frame>
```
Never use `<img>` tags with JSX `style={{...}}` inside `<Frame>`. Never multi-line Frame with indented image content.
**If the changes are text-only** (new limits, new field descriptions, changed behavior,
new API parameters) → skip this phase entirely.
---
## Phase 3b — Verify behavioral claims via live API test
**If the change describes a behavioral restriction or capability** (e.g. "feature X is not
supported", "operation Y is blocked", "field Z is required") — verify it with a live API
test before writing it into the article. Do not trust Jira ticket descriptions alone.
**Steps:**
1. Identify the resource type involved (volume, instance, load balancer, etc.)
2. If no such resource exists in the account — **create one**. Use the smallest/cheapest
configuration. Delete it after the test.
3. Attempt the operation described in the change (resize, attach, delete, etc.)
4. Record the actual API response — success, error code, error message.
5. Base the documentation on the observed behavior, not on the ticket description.
**If creation is not possible** (no quota, region unavailable, feature gated):
- State the blocker explicitly and ask the user how to proceed.
- Do not write documentation based on an untested claim.
**Never write a restriction or limitation into documentation without a live test.**
Jira tickets describe intent and bugs — not necessarily the current production behavior.
When the open claim is customer-visible CDN or edge behavior (what an option does, a limit, an error the customer sees, or how CDN relates to WAAP, DNS, FastEdge, or Streaming) and the portal or this test has not already shown it, read `.agents/references/mcp-tools/edge-network-context.md` and ask before writing the sentence. This does not replace the live test above.
---
## Phase 4 — Apply changes
### What to change
Apply only what was described in the input. Do not fix unrelated issues you notice
along the way — note them separately at the end.
**If updating SDK code examples:**
Read `.agents/references/sdk-best-practices.md` BEFORE making changes.
- Replace manual polling with `*_and_poll()` / `*AndPoll()` methods
- Remove `import time` when using `*_and_poll()`
- Remove `os.environ["GCORE_API_KEY"]` - SDK reads it automatically
For each change:
1. Find the exact location in the article
2. Read the surrounding paragraph or section — understand the tone and structure
3. Write the change so it fits naturally into that context
### How to make changes organically
Mechanical replacement ("find X, replace with Y") is rarely enough. The goal is
that the reader cannot tell which sentences were changed.
**If renaming a UI element:**
- Replace in all occurrences throughout the article
- Check if any surrounding sentences now read awkwardly — rewrite if needed
- Check alt text on screenshots that show the renamed element
**If adding a new option or field:**
- Find where similar options are described
- Add the new one in the same style and structure
- If it changes the step count — renumber steps
**If a flow changed (steps reordered, step added, step removed):**
- Rewrite the affected section — do not patch individual sentences
- Ensure the intro sentence for the section still matches what follows
- Check if `description` still summarizes the article. If the subject changed, rewrite it: one sentence, 140 characters maximum, no Portal, API, or Terraform.
**If the text tells the reader where to go in the portal:**
A chain of actions such as log in, open a product, open a project, select a sidebar item, and click a page is a numbered list. It is not a paragraph and not one sentence joined by "then" or "and". Read `.agents/references/procedures.md` and follow it. Two or more ordered actions are at least two numbered items. Login and the first open may share item 1. Each later open, select, or click is its own item. A blank line separates items. One action only stays a sentence. Do not invent a list for a single click.
```mdx
Wrong: Log in to the Gcore Customer Portal, open **Cloud**, open a project, then select **Cloud Management** and click **Cost Report**.
Right:
1. Log in to the [Gcore Customer Portal](https://portal.gcore.com) and open **Cloud**.
2. Open a project.
3. In the left sidebar, select **Cloud Management**.
4. Click **Cost Report**.
```
When the article already states this path as prose, rewrite that prose into the list. Do this even when the labels themselves did not change. Inside `<MethodSection>`, wrap each numbered item in `<p>`, as `mdx-rules.md` requires.
**If a sentence lists several items of the same kind:**
Field names, models, options, or other peers do not stay in one comma-separated sentence. One lead sentence states the grouping. Then one bullet per item. A bullet that names the item and then explains it uses a colon after the name. Do not keep adding names to the sentence when a new item appears. Inside `<MethodSection>`, put the lead sentence in `<p>` and leave the bullets unwrapped.
```mdx
Wrong: `baremetal_gpu_h100_count_*`, `baremetal_gpu_a100_count_*`, and `baremetal_gpu_b200_count_*` track GPU bare metal servers by GPU model.
Right:
<p>GPU fields track servers by GPU model.</p>
- `baremetal_gpu_h100_count_*`: H100
- `baremetal_gpu_a100_count_*`: A100
- `baremetal_gpu_b200_count_*`: B200
```
**If restructuring a section:**
- Read the full section before and after in your head — does it flow?
- Verify headings are still in logical order
- Check all internal anchor links — renaming a heading breaks them
### Structural elements — text only, never remove tags
Inside `<MethodSection>`, `<Info>`, `<Warning>`, and `<p>` tags between numbered list
items are structural separators for the MDX parser. Removing one — even if its text
is outdated — can blank the entire page with no build error.
**If the content inside a structural element must be removed:**
- Replace the text with neutral, accurate content
- Never delete the tag itself
- Never convert a separate `<p>Click ...` into inline text appended to the step header
This rule applies even when the element contains information you want to fully remove
(e.g. a deprecated restriction, an old warning). Keep the tag; change what it says.
### Do not touch without explicit instruction
- `<MethodSection id="api">` — API tab content is updated only when the user explicitly asks to update the API section or when a curl example, endpoint, or parameter in that section is factually wrong. Do not add new API parameters or response fields just because they appeared in an OpenAPI spec update.
- Article filename and slug — broken URLs are worse than outdated content.
- `docs.json` navigation — only if a new top-level section is added, and only after confirming with the user.
---
## Phase 5 — Validate
After making changes, run the tools from `.agents/references/review-process.md`, Step 1, and fix every real violation. Then check:
**MDX:**
- [ ] No unescaped `{identifier}` in inline code spans (use `<code>` with ` `)
- [ ] If MethodSwitch was touched: closing tags at column 0 after lists
- [ ] If MethodSwitch was touched: prose and every numbered step inside `<MethodSection>` wrapped in `<p>` tags; bullet lists not wrapped
- [ ] No `####` headings inside `<MethodSection>`
**Frontmatter:**
- [ ] `description` still summarizes what the article is about
(update it only if the article's subject changed)
- [ ] One sentence, 140 characters maximum. Use the feature name and the words
a person would type into search. Do not write Portal, API, or Terraform.
- [ ] Do not list parameters, filter syntax, field names, or implementation details.
Example of wrong: "filter by tag key and value using tags[key]=value (supports OR logic)"
Example of right: "Filter CDN resources by tag key and value."
**Style:**
- [ ] New prose follows sentence case headings
- [ ] No forbidden sections added (`## Next steps`, `## Prerequisites`, etc.)
- [ ] Bold used only for UI element names
- [ ] No forbidden words: just, simply, ensure, platform, obviously
**Links:**
- [ ] Any renamed heading has no broken anchor links pointing to it
- [ ] Internal links still root-relative
---
## Output
After completing all phases, report:
```
Article: [path]
Changes made:
- [description of change 1]
- [description of change 2]
Screenshots: [replaced N / text-only update / N new screenshots added]
Unrelated issues noticed (not changed):
- [issue] at [location] — recommend fixing separately
```
If multiple articles were updated — one report block per article.
When the user confirms the result looks good — load `.claude/skills/pr/SKILL.md`
to commit and open a draft PR on the task branch. Do not create a second branch when the task already has one.