feat(skills): reworked skills and rules
CI / CI configuration security checks (push) Successful in 3s
CI / Capabilities and shell quality (push) Successful in 14s
CI / Python tests and compilation (push) Successful in 26s
CI / QMD unit tests (push) Successful in 5s
CI / Build and inspect generated packages (push) Successful in 14s
CI / PowerShell tests on Ubuntu (push) Successful in 1m4s
CI / Installed client configuration smoke tests (push) Successful in 33s
CI / Bash integration and installation guards (push) Successful in 1m1s

This commit is contained in:
Julian Lechner committed 2026-11-18 14:17:49 +01:00
1 parent 29632ff0ce
commit f5d8f6f11b
124 files changed
+1250 -8138

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
# Audio
## Formats
- Use Opus (in WebM or Ogg) for the best quality per byte, and AAC (in MP4/M4A) or MP3 where broad compatibility matters. Offer more than one `<source>` when the target clients differ. Keep lossless masters (such as FLAC or WAV) as originals, not as delivery files.
- Encode speech at a lower bitrate than music, and normalize loudness across clips so users do not need to change volume between them.
## Playback
- Never autoplay audio. Start playback only after a user action.
- Use native `<audio controls>` or an accessible custom player with keyboard support, visible focus, and labeled play, pause, and volume controls.
- Any audio that plays for more than 3 seconds needs a way to pause or stop it or to set its volume independently of the system volume (WCAG 1.4.2, level A).
- Use `preload="none"` or `metadata` for audio the user may not play.
## Accessibility
- Provide a transcript for prerecorded audio-only content, such as podcasts or recorded announcements (WCAG 1.2.1, level A), including relevant non-speech sounds.
- Never convey information through sound alone; pair notification sounds with a visible indicator.
## Desktop and mobile apps
- In WPF, play audio with `MediaElement` or the project's audio service; in .NET MAUI, use `MediaElement` from `CommunityToolkit.Maui.MediaElement` or the project's audio library. Respect the platform's mute switch, audio focus, and background audio permissions, and release players when pages close.
References: [MDN autoplay](https://developer.mozilla.org/en-US/docs/Web/Media/Guides/Autoplay), [WCAG 2.2](https://www.w3.org/TR/WCAG22/).
@@ -0,0 +1,15 @@
# Common Mistakes
Check only issues relevant to the change:
- Oversized downloads or incorrect responsive candidates: inspect the resource actually selected at each target viewport.
- Lazy-loaded LCP image, excessive high-priority images, or late discovery: inspect the loading waterfall.
- Missing dimensions or wrong aspect ratio: check layout shifts and cropping.
- Blurry screenshot text, compression artifacts, or lost transparency: compare at final display size.
- Missing or keyword-stuffed alternative text; essential information available only inside an image: check accessibility.
- Broken, authenticated, blocked, or expired preview URLs; duplicate metadata or stale cached previews: inspect responses and the target preview.
- Sensitive data in screenshots, untrusted SVG markup, or overwritten originals: use sanitized inputs and preserve editable sources.
- Autoplay with sound, missing `playsinline`, missing controls, or no way to pause moving or playing media: check playback in each target client.
- Missing captions, transcripts, or audio description; a single proprietary format without fallback; one huge video file instead of adaptive streaming: check the media references.
- Location or device metadata left in published photos and recordings: strip it before publishing.
- Stale platform dimensions, unreadable banner text, or stretched variants: verify current requirements and inspect each export.
@@ -0,0 +1,15 @@
# Design Tools
Prefer the team's existing tools and editable assets. Choose by task rather than introducing a new subscription or integration.
| Task | Practical route |
| --- | --- |
| Product UI or documentation screenshot | Browser screenshot tooling or the existing capture tool; show the real UI. |
| Screen recording or demo video | The existing recording tool, exported through the project's transcoding step. |
| Transcoding video or audio | The installed media pipeline or a tool such as ffmpeg; keep source files. |
| Asset tied to a design system | Existing Figma components and export workflow; use the applicable Figma skill when interacting with Figma. |
| Repeated banners or social graphics | Existing Canva or Figma template; verify current export and resize capabilities before relying on them. |
| Dynamic link-preview images | Existing framework or build-time template renderer. |
| Resize, crop, or compression | Installed image pipeline or utility; preserve source files. |
Keep editable originals, export only needed variants, and inspect font rendering, transparency, cropping, and file size. Use `technical-research` before depending on a tool API or version-specific feature.
@@ -0,0 +1,11 @@
# Image Optimization and SEO
- Start with measured transfer size, rendered dimensions, and the page's LCP element. Keep originals; compare optimized output at its actual display size.
- Use SVG for suitable vector assets, lossless formats for sharp UI text, and compare WebP/AVIF with existing raster formats for photographs. Choose against target-client support, transparency, quality, and measured size; avoid fixed quality or byte targets for every asset.
- Match `srcset` and `sizes` to the layout, or use the framework's existing image component. Set intrinsic `width` and `height` to reserve the correct aspect ratio.
- Lazy-load offscreen images. Keep the LCP image discoverable in initial HTML and eagerly loaded; consider `fetchpriority="high"` for that image, not every image.
- Use descriptive filenames, relevant surrounding text, and useful `alt` text without keyword stuffing. Decorative images need empty alternative text.
- For images intended for search, verify crawlable image URLs and standard image markup with a usable `src`. CSS backgrounds are not a substitute for indexable content images.
- Reuse existing transformation and caching infrastructure. Measure transferred bytes, rendering quality, LCP, and layout shifts after the change; distinguish lab results from real-user data.
References: [HTML images](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/img), [LCP optimization](https://web.dev/articles/optimize-lcp), [Google image SEO](https://developers.google.com/search/docs/appearance/google-images).
@@ -0,0 +1,21 @@
# Marketing Media Workflows
## Article Heroes and Landing Pages
Choose an existing, appropriately licensed visual or real product screenshot that supports the page's message. Compose around the actual layout, keep essential text in HTML, and export responsive variants. Apply [image optimization](image-optimization.md); an above-the-fold hero must not inherit blanket lazy loading.
## Product Screenshots and Mockups
Capture the real application with representative, non-sensitive data. Use sufficient resolution for the final pixel density, crop irrelevant chrome, and add only useful annotations. Device frames are optional. Check small-screen readability and preserve an unannotated original.
## Demo and Tutorial Videos
Record the real application with representative, non-sensitive data at the final resolution, hide notifications and personal details, keep clips short, and add captions. Export with the formats in [video](video.md) and a poster frame that works as a still.
## Social Graphics, Banners, and Listings
Reuse brand assets and one editable template. Verify the target platform's current dimensions and crop/overlay safe areas before export. Produce only requested variants; inspect each crop rather than stretching a single image to every ratio.
## Repeated Publishing
Keep titles, product shots, and layout separate so an existing template or build pipeline can produce variants consistently. Connect link-preview exports to [OG metadata](og-social-preview-images.md). Automate only repeated work, and validate fonts, long titles, missing images, and output caching.
@@ -0,0 +1,26 @@
# OG and Social Preview Images
## Required Meta Tags
Open Graph requires `og:title`, `og:type`, `og:url`, and `og:image`. Image dimensions and alternative text supplement those fields. Set the page type appropriately and keep the canonical page URL consistent.
```html
<meta property="og:title" content="Product guide" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://example.com/guides/product" />
<meta property="og:image" content="https://example.com/images/product-guide.jpg" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="Product dashboard showing the project overview" />
```
Dimensions above describe the example asset, not a universal platform requirement. Verify current format, crop, and size requirements for the intended consumer. Add platform-specific card metadata through the existing framework integration when needed; confirm its current contract with `technical-research`.
## Delivery and Validation
- Put metadata in the delivered document head using the existing metadata API; avoid duplicate or conflicting tags.
- Use stable absolute HTTPS image URLs. Public previews must load without authentication and return the correct image content type. Keep private assets private.
- For recurring pages, reuse a template populated with page metadata. Prefer existing build-time generation or cache generated outputs; avoid adding a rendering service for a few static images.
- Check the actual response, metadata, crop, text readability, and target preview tool. Allow for consumer caching when validating updates. Social-preview metadata does not itself guarantee search ranking improvements.
Source: [Open Graph protocol](https://ogp.me/).
+36
View File
@@ -0,0 +1,36 @@
# Video
## Formats
- Offer more than one source and let the browser pick: WebM with AV1 video and Opus audio first for the best compression, then MP4 with AVC (H.264) video and AAC audio as the broadly supported fallback. Check licensing for proprietary codecs, and check that the target clients decode AV1 before relying on it alone.
```html
<video controls width="1280" height="720" poster="demo-poster.jpg" preload="metadata">
<source type="video/webm; codecs=av01,opus" src="demo.webm" />
<source type="video/mp4" src="demo.mp4" />
<track kind="captions" src="demo.en.vtt" srclang="en" label="English" default />
</video>
```
- Replace animated GIFs with a short muted, looping video (`autoplay muted loop playsinline`); it is usually far smaller.
- For long or large videos, use adaptive streaming (HLS or DASH) through the project's existing player or video service instead of serving one large file.
## Playback and loading
- Autoplay only muted video or video without an audio track; browsers block autoplay with sound until the user interacts. Add `playsinline` for inline autoplay on iOS Safari. Never autoplay audio.
- Keep `controls` unless the design provides its own accessible controls, and give users a way to pause any moving content.
- Set `preload="none"` or `metadata` for videos the user may not play, and add `loading="lazy"` for offscreen videos where supported.
- Give every video a poster and intrinsic `width` and `height` to reserve space. When a video is the largest contentful element, preload its poster with high fetch priority and do not lazy-load it.
## Accessibility
- Provide captions (WebVTT `<track kind="captions">`) for prerecorded video with speech or meaningful sound (WCAG 1.2.2, level A).
- When the picture carries information the audio does not, provide audio description or a full text alternative (WCAG 1.2.3 level A; 1.2.5 level AA requires audio description).
- Live video with audio needs live captions (WCAG 1.2.4, level AA).
- Video-only content needs a text or audio alternative (WCAG 1.2.1, level A).
## Desktop and mobile apps
- In WPF, play media with `MediaElement`; in .NET MAUI, use `MediaElement` from `CommunityToolkit.Maui.MediaElement`, initialized with `UseMauiCommunityToolkitMediaElement` (enable the Android foreground service only when background playback or media notifications are required).
References: [MDN video codecs](https://developer.mozilla.org/en-US/docs/Web/Media/Guides/Formats/Video_codecs), [MDN autoplay](https://developer.mozilla.org/en-US/docs/Web/Media/Guides/Autoplay), [web.dev lazy-loading video](https://web.dev/articles/lazy-loading-video), [WCAG 2.2](https://www.w3.org/TR/WCAG22/).