diff --git a/.github/skills/technical-writing/SKILL.md b/.github/skills/technical-writing/SKILL.md new file mode 100644 index 0000000..26c414c --- /dev/null +++ b/.github/skills/technical-writing/SKILL.md @@ -0,0 +1,191 @@ +--- +name: technical-writing +description: Write and edit technical blog posts in Erlend's practical Azure-focused voice for this Hugo blog. Use when creating, revising, or reviewing posts, tutorials, announcements, or walkthroughs for content/Blogposts/. +--- + +# Technical writing + +## Purpose + +Use this skill for technical writing for the Erlend Rushfeldt blog. Match the author's established voice while improving clarity, accuracy, structure, and usefulness. + +## Voice and style + +- Write in clear, conversational international English. +- Use first person for experience and intent: "I", "I've", "I use", "I will show". +- Address the reader directly with "you" and use "we" when walking through setup or implementation. +- Start by establishing the reader's practical problem, a real-world scenario, or the reason for the post. +- Favor direct explanations over formal or academic language. +- Be helpful and matter-of-fact. Add occasional warmth or light humor when it fits, especially in scenario-based posts. +- Prefer short to medium sentences, active voice, and paragraphs of roughly 2-5 sentences. +- Make abstractions concrete with Azure resources, costs, scripts, screenshots, and observable outcomes. +- State uncertainty and previews explicitly. Older posts may say preview or public preview; do not retroactively present preview behavior as generally available. +- Preserve important operational caveats, security implications, least-privilege guidance, and destructive-action warnings. +- Do not imitate spelling mistakes, repeated wording, or grammatical errors found in older posts. Use the established voice, not historical copy defects. + +## Article patterns + +Choose the pattern that fits the subject rather than forcing every post into a template. + +### Tutorial or walkthrough + +1. Introduce the service or scenario and the problem it solves. +2. Explain the relevant prerequisites or conceptual distinction. +3. Move from setup to implementation. +4. Include complete, runnable examples when useful. +5. Explain the important parameters and decisions. +6. Show how to verify the result. +7. Add follow-up considerations, limitations, or cleanup guidance. + +Useful transitions include: + +- "Let's look at..." +- "First, we need..." +- "Now that..." +- "On to..." +- "As you can see..." +- "The good news is..." +- "There is an exception..." +- "Before we get into..." +- "The script will..." + +### Comparison or feature overview + +- Define the problem or choice. +- Explain the feature, option, or difference in plain language. +- Use a table when comparing multiple fields or constraints. +- Use a practical example or workload to show why the difference matters. +- State cost, security, reliability, or lifecycle implications. + +### News or announcement + +- Lead with what changed and the release status. +- Give a concise explanation of the technical benefit. +- Include relevant SKU, API, region, preview, or availability context when authoritative. +- End with what readers may consider doing next. + +## Front matter + +Place new posts in `content/Blogposts/` and use the repository's existing Hugo front matter: + +```yaml +--- +title: "Descriptive title" +description: "One concise sentence describing what the reader will learn." +date: "YYYY-MM-DDTHH:mm:ss+02:00" +categories: + - "Azure" +tags: + - "Relevant Tag" +#menu: main +draft: false +type: "blog" +thumbnail: "/img/descriptive-thumbnail.png" +lead: "A short summary shown near the title." +comments: false +authorbox: false +pager: false +toc: false +sidebar: "right" +widgets: + - "recent" + - "taglist" + - "social" +--- +``` + +- Use an accurate, specific title. +- Keep `description` and `lead` distinct: `description` summarizes; `lead` is the hook or preview summary. +- Use kebab-case filenames, for example `deploy-bicep-with-run-command.md`. +- Preserve or add the existing `categories`, `tags`, and thumbnail conventions. +- Do not invent a publication date or thumbnail. + +## Technical content + +- Lead with the reader's goal and state prerequisites early. +- Explain a command or resource in context before or immediately after the code. +- Prefer complete examples with names and parameters readers can understand. +- Use the smallest example that demonstrates the feature, but include enough context to run it. +- Verify resource types, API versions, command names, and properties against current repository or authoritative source evidence. +- Do not present sample code as production-ready when it is an intentionally simplified or destructive demonstration. +- Call out false positives and cleanup trade-offs. The blog often demonstrates Azure cost optimization, so mention exclusions and least-privilege controls. +- Add a warning for scripts or deployments that delete or modify resources. +- Prefer official Microsoft Learn or Azure documentation for links. Community events and community-authored references are also appropriate where relevant. +- Keep code language identifiers accurate: `bicep`, `powershell`, `kql`, `sql`, `json`, `bash`, or `text`. +- Keep code snippets readable. Use indentation and descriptive names. +- Keep secrets, SAS URLs, subscription IDs, account IDs, names, and private endpoints out of examples. Replace real values with placeholders. + +## Formatting + +- Use `##` and `###` headings to organize sections. Avoid an article title as an H1 inside the post. +- Use tables for compact feature comparisons. +- Use numbered lists for ordered procedures and bullets for concepts or options. +- Use blockquotes sparingly for direct quotations. +- Use emphasized callouts: + - `**Note:**` + - `**Important:**` + - `**Tip:**` +- Keep callouts one to three sentences and place them before the relevant risk or step. +- Reference screenshots naturally: "Here is...", "The result looks like this:", or "You can find it under..." +- Use Hugo image syntax consistent with existing posts: + + ```markdown + ![Concise image description](/img/example.png) + ``` + +- Write descriptive alt text. Do not use generic text such as "image". +- Add source links inline near the claim or example instead of burying all links at the end. +- Do not add an unrelated conclusion. End with the result, practical next step, or a brief summary of trade-offs. + +## Language conventions + +- Prefer the person's established direct phrasing: + - "In this article, I will show you..." + - "You can now..." + - "It is possible to..." + - "This gives us..." +- Use "blog post" or "article" consistently in new prose unless the existing document deliberately uses "blogpost". +- Use "for example" instead of "e.g." in prose. +- Use "versus" or "than" instead of polished product-copy phrases. +- Use "cost" consistently rather than repeatedly saying "expense" or "spend". +- Clarify acronyms on first use. +- Avoid hype words such as "game-changing", "revolutionary", or "seamless" unless quoting them. +- Remove filler, repetition, and throat-clearing. +- Do not weaken safety guidance to improve the flow. + +## Editing workflow + +When asked to create or revise a post: + +1. Identify the reader and the practical outcome. +2. Read neighboring posts or existing material for relevant terminology and repository conventions. +3. Build a simple outline before drafting. +4. Draft the opening, required steps, and key caveats. +5. Verify commands and resource properties against source material. +6. Remove unsupported claims and duplicate explanation. +7. Keep code and prose aligned: every code block should support a specific step or outcome. +8. Check links, image references, front matter, headings, spelling, and Markdown rendering. + +Before returning a draft, verify: + +- The opening states why the reader should care. +- The article explains both what and how. +- The title and description match the content. +- Technical identifiers and sample values are accurate. +- Destructive, privileged, preview, and cost-related operations are clearly labeled. +- Code fences have language identifiers. +- External and local links are plausible and use descriptive link text. +- New images have descriptive alt text. +- Front matter uses the repository format. + +## Repository validation + +After changing a post, run the smallest relevant checks: + +```bash +hugo --minify --destination /tmp/blog-hugo +python3 scripts/check_site.py /tmp/blog-hugo +python3 scripts/check_links.py /tmp/blog-hugo +``` + +If the environment does not have Hugo or the dependencies, report that explicitly rather than claiming the post passed validation.