Skip to content

Commit 0d22db4

Browse files
committed
Add Claude instructions
1 parent 212bc42 commit 0d22db4

8 files changed

Lines changed: 274 additions & 13 deletions

File tree

.claude/skills/add/SKILL.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: add
3+
description: Adds new content to existing documentation pages while preserving the original structure and meaning. Integrates new sections, paragraphs, or information smoothly with appropriate transitions. Use when the user wants to add, insert, include, or append new content to existing pages without rewriting what's already there.
4+
user-invocable: true
5+
disable-model-invocation: true
6+
---
7+
8+
> **After adding content:** Consider running `/polish` to improve clarity or `/proofread` to check for errors in the final result.
9+
10+
Ask the user for the new content to add. Determine a suitable place to smoothly integrate the new content into the existing content, with appropriate transitions and formatting, while preserving the original meaning and structure of the page. Don't make changes to existing content unless necessary for clarity or coherence when adding the new content.
11+
12+
If the new content introduces redundancy or conflicts with existing content, flag these issues in the chat and suggest ways to resolve them without directly editing the existing content.

.claude/skills/enhance/SKILL.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: enhance
3+
description: Performs comprehensive editing including reorganization, restructuring, and rephrasing while preserving original meaning and intent. Improves flow, strengthens weak phrasing, and enhances overall quality. Use when documentation needs significant structural improvements, better organization, or when the user mentions reorganize, restructure, rewrite, or enhance.
4+
user-invocable: true
5+
disable-model-invocation: true
6+
---
7+
8+
> **Skill progression:** This is the most intensive editing. If restructuring isn't needed, use `/polish` for clarity improvements or `/proofread` for basic fixes.
9+
10+
Perform holistic improvements, including reorganization and stronger phrasing, while preserving original intent. This goes beyond basic proofreading and polishing to enhance the overall quality and impact of the text. Consider restructuring sentences, paragraphs, or sections for better flow, replacing weak words with stronger alternatives, and improving clarity and consistency while maintaining the original meaning. However, avoid making changes just for the sake of change; every edit should serve a clear purpose in enhancing the text.

.claude/skills/polish/SKILL.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: polish
3+
description: Proofreads documentation and improves clarity, readability, and word choice without changing meaning or reorganizing structure. Simplifies complex sentences, applies style guide standards, and converts passive voice to active voice. Use when the user wants to polish, improve clarity, make more readable, or clean up documentation while preserving its structure.
4+
user-invocable: true
5+
disable-model-invocation: false
6+
---
7+
8+
> **Skill progression:** This preserves structure. If only basic fixes are needed, use `/proofread`. For deeper reorganization, suggest `/enhance`.
9+
10+
First, use the Skill tool to invoke the `proofread` skill.
11+
12+
Then immediately continue: improve clarity and readability without changing meaning, structure, or paragraph order:
13+
14+
**Polish should**:
15+
* Break up long, complex sentences for better readability
16+
* Simplify wordy or awkward phrasing
17+
* Improve word choice (more precise or accessible terms)
18+
* Change passive voice to active voice where appropriate
19+
* Make front matter descriptions more concise and action-oriented
20+
* Apply all style standards from project instructions (tone, formatting, terminology)
21+
* Remove bold and italics used for emphasis (reword or use alerts if needed)
22+
* Ensure consistent application of Microsoft Writing Style Guide
23+
24+
**Polish should NOT**:
25+
* Move paragraphs or restructure sections (that's `/enhance`)
26+
* Change technical meaning or accuracy
27+
* Significantly increase document length
28+
* Modify code samples (flag issues instead)
29+
30+
Every edit should serve a clear purpose in making the text easier to read, scan, and understand.
31+
32+
Do not change any code samples directly, but flag any code issues or inconsistencies in the chat.

.claude/skills/proofread/SKILL.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: proofread
3+
description: Checks and fixes spelling, grammar, punctuation, basic Markdown formatting, alt text, and required front matter fields. Makes minimal technical corrections without rewording or restructuring. Use when the user asks to proofread, check for errors, fix typos, or perform a light technical review of documentation.
4+
user-invocable: true
5+
disable-model-invocation: false
6+
---
7+
8+
> **Skill progression:** This is the lightest touch. If more clarity work is needed, suggest `/polish`. For deeper restructuring, suggest `/enhance`.
9+
10+
Proofread the document for technical correctness only. Do NOT rewrite, rephrase, or improve clarity:
11+
12+
* **Spelling**: Fix typos and misspellings
13+
* **Grammar**: Fix grammatical errors (subject-verb agreement, tense consistency, etc.)
14+
* **Basic formatting checks**:
15+
* Add missing alt text to images (use simple, factual descriptions)
16+
* Ensure required front matter fields are present (title, url, description)
17+
* Fix broken Markdown syntax
18+
* Fix any capitalization and terminology inconsistencies
19+
20+
Do NOT:
21+
* Rewrite sentences for clarity or conciseness
22+
* Shorten or improve descriptions
23+
* Change passive voice to active voice
24+
* Simplify complex sentences
25+
* Reorganize content
26+
27+
If you notice style or clarity issues that need improvement, finish proofreading first, then suggest the user run `/polish` for those improvements.

.claude/skills/review/SKILL.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: review
3+
description: Analyzes documentation pages and generates suggestions for improvements, clarifications, inconsistencies, and structural changes without making any edits. Use when the user asks to review, analyze, audit, or provide feedback on documentation, or when they want suggestions before making changes.
4+
user-invocable: true
5+
disable-model-invocation: false
6+
---
7+
8+
Analyze the page and return a list of suggestions or questions about any points to clarify, potential inconsistencies, and sections to restructure, add, or remove. Make no edits.

.github/copilot-instructions.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ When instructions conflict, follow this order of precedence:
1515
5. Existing conventions in nearby pages within the same folder.
1616
6. Microsoft Writing Style Guide.
1717

18-
### Default Execution Mode
18+
### Critical Constraints
1919

2020
* MUST edit existing files in place unless the user explicitly asks to create new content.
2121
* MUST preserve meaning and intent.
@@ -48,7 +48,7 @@ content/en/docs/
4848
4949
```
5050

51-
* **Index files (`_index.md`)** define landing pages or categories. They often use `cascade` to pass metadata to children and may set `type`, `layout`, `no_list`, `description_list` etc.
51+
* **Index files (`_index.md`)** define landing pages or categories. They often use `cascade` to pass metadata to children and may set `type`, `layout`, `no_list`, `description_list`, etc.
5252
* Other `.md` files represent individual articles, how‑tos, reference topics, release notes, etc. File names must be simple, lowercase, and hyphen‑separated.
5353

5454
Search the tree to understand where your topic belongs before creating a new file.
@@ -61,7 +61,7 @@ Search the tree to understand where your topic belongs before creating a new fil
6161
* **Text formatting** – Reserve bold for UI labels, button names, menu items, or other interface text, or for introductions in list items. Don't use italics except to refer to titles and sections. Use wording or alert shortcodes for emphasis; don't use text formatting for emphasis. Use code font only to wrap literal code, filenames, paths, or command-line input. Use `<kbd>` for keyboard shortcuts.
6262
* **Headings** – H1 is generated from the front‑matter title. Subsequent headings increment by one level at a time. Don't use bold or italics as a replacement for headings. Use title case. Never start headings with numbers.
6363
* **Lists and tables** – Bullet lists use asterisks; ordered lists use numbers followed by a period. If there are more than three data points per item, use a table instead. Use the same syntax and structure for all list items in a given list. Use complete sentences to introduce lists and tables, not partial sentences completed with the list items.
64-
* **Indentation** – Use four spaces to indent content—for example, to create a sub-list or nest an image or code block in a list. Alerts are an exception: To indent an alert within a list, omit the blank line before the alert. Don't indent the lines of the alert.
64+
* **Indentation** – Use four spaces to indent content—for example, to create a sub-list or nest an image or code block in a list. Alerts are an exception: don't indent alert lines but do omit preceding blank line.
6565
* **Links** – Use absolute paths starting with a leading slash (`/deployment/`). Use descriptive link text such as the page title, not “click here”. To link to a heading, add an anchor ID (`{#anchor-id}`) next to the heading and use that ID in the URL (for example, `[Section title](/path/to/page#anchor-id)` to link to a heading in another page or `[Section title](#anchor-id)` to link to a heading in the same page).
6666
* **Images and alt text** – Always provide `alt` text describing the content; if the image is purely decorative, use `alt=""`. Use W3C guidelines to write alt text. Reference images with the `figure` shortcode (see below).
6767
* **Code** – Use fenced code blocks with language specifier.
@@ -87,9 +87,9 @@ All Markdown files begin with YAML metadata.
8787

8888
### Shortcodes
8989

90-
Hugo shortcodes start with `{{` and encapsulate reusable components. The ones you will encounter most frequently include:
90+
Hugo shortcodes start with `{{`. Some common ones:
9191

92-
* `figure` – Images and screenshots. Attributes: `src` (required), `alt` (required or `""`), `class`, `max-width`, `link`. Always store assets under `static/attachments/...` and reference with `/attachments/...`.
92+
* `figure` – Images. Attributes: `src` (required), `alt` (required), `class`, `max-width`, `link`. Always store assets under `static/attachments/...` and reference with `/attachments/...`.
9393

9494
```md
9595
{{< figure src="/attachments/quickstarts/part1/3.login.png" alt="Sign in to Studio Pro" max-width="80%" >}}
@@ -102,15 +102,15 @@ Hugo shortcodes start with `{{` and encapsulate reusable components. The ones yo
102102
{{% /alert %}}
103103
```
104104

105-
* `button` – Link buttons with `color`, `href`, `text`, and optional `title` attributes.
105+
* `button` – Link buttons with `color`, `href`, `text`, and optional `title`.
106106
* `icon` – Inline SVG icons stored in `static/mx-icons` (`name` required, optional `color`) for use in UI descriptions.
107107
* `youtube` / `vidyard` – Embed videos by ID.
108108
* `swaggerui` / `swaggerui-disable-try-it-out` – Render OpenAPI specs on pages with `type:swagger`.
109109
* `snippet` – Include external code or page content.
110110
* `tabpane` / `tab` – Create tabbed code examples.
111111
* `todo` – Internal draft notes; omitted in production.
112112

113-
The `community-tools/contribute-to-mendix-docs/markdown-shortcodes.md` page contains comprehensive examples. Review it when adding new types or debugging rendering.
113+
For comprehensive shortcode examples and edge cases, read `community-tools/contribute-to-mendix-docs/markdown-shortcodes.md`.
114114

115115
## Editorial Workflow
116116

@@ -123,11 +123,11 @@ The `community-tools/contribute-to-mendix-docs/markdown-shortcodes.md` page cont
123123

124124
## Standard Content Template
125125

126-
If asked to create new content, start from `templates/*.md` and then follow the same checks above. Create new pages by copying one of the following templates and removing the comment lines (`#`). :
126+
If asked to create new content:
127127

128-
* **How‑to**`templates/how-to-template.md`
129-
* **Reference**`templates/reference-template.md`
130-
* **Marketplace component**`templates/marketplace-component-page-template.md`
131-
* **Release notes**`templates/release-notes-template.md`
128+
1. Read the appropriate template from `templates/`: `how-to-template.md`, `reference-template.md`, `marketplace-component-page-template.md`, or `release-notes-template.md`
129+
2. Create the new file based on the template
130+
3. Remove comment lines (`#`) from the template
131+
4. Follow the editorial workflow above
132132

133133
For all pages, required sections are front matter and the introduction; other sections vary by content type.

.github/prompts/add.prompt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
description: Add new content to a page without rewriting existing content.
33
---
44

5-
Prompt the user for the new content to add. Determine a suitable place to smoothly integrate the new content into the existing content, with appropriate transitions and formatting, while preserving the original meaning and structure of the page. Don't make changes to existing content unless necessary for clarity or coherence when adding the new content.
5+
Ask the user for the new content to add. Determine a suitable place to smoothly integrate the new content into the existing content, with appropriate transitions and formatting, while preserving the original meaning and structure of the page. Don't make changes to existing content unless necessary for clarity or coherence when adding the new content.
66

77
If the new content introduces redundancy or conflicts with existing content, flag these issues in the chat and suggest ways to resolve them without directly editing the existing content.

0 commit comments

Comments
 (0)