Kde Plasmoid logo

Kde Plasmoid

Organization
CodeAtCode
kde-plasmoid

Use when building KDE Plasma 6 widgets with a Python backend - plasmoid structure, metadata.json, QML UI, configuration system, plasmapkg2 packaging, KDE Store submission, or plasmoid testing and debugging

Overview

PublisherCodeAtCode
Repositoryoss-ai-skills
Skill namekde-plasmoid
Stars
30
Forks
3
Bundled files
6
LicenseGPL-3.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 6 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by CodeAtCode on GitHub. Read the source before you install it.

Installation

Install the Kde Plasmoid AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/CodeAtCode/oss-ai-skills/tree/master/extend/kde-plasmoid
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/CodeAtCode/oss-ai-skills.git /tmp/oss-ai-skills
mkdir -p .claude/skills
cp -r /tmp/oss-ai-skills/extend/kde-plasmoid .claude/skills/kde-plasmoid
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Kde Plasmoid in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Kde Plasmoid on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Kde Plasmoid is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Objective: Use this skill to reduce plasmoid-load failures, metadata-schema rejections, QML-binding-loop freezes, and packaging errors by enforcing metadata-discipline, QML-lifecycle rules, and plasmapkg2-verification patterns below.

KDE Plasmoid Development with Python

Build Plasma 6 widgets with Python backend + QML UI.

Important: Native Python Plasmoids (PyKDE4/PyKDE5) are deprecated in Plasma 6. Use QML UI + Python backend via QObject.

See references/plasmoid-structure.md for complete structure, metadata.json schema, and dependency listings.

Python Backend Rules

Do subclass QObject because QML requires QObject-derived types for property/signal exposure.

Do emit signals after property changes because QML bindings only update on signal emission:

python
dataUpdated = Signal()

@Property(str, notify=dataUpdated)
def data(self):
    return self._data

@data.setter
def data(self, value):
    if self._data != value:
        self._data = value
        self.dataUpdated.emit()  # ← Required for QML update

Do use @Slot for QML-callable methods because unmarked methods may fail cross-language calls.

Do initialize all properties in init because QML accesses properties before any other initialization.

See references/python-backend.md for PySide6/PyQt6 registration syntax and signal/slot patterns.

QML UI Rules

Do use Kirigami units for all sizing because hardcoded values break HiDPI scaling:

qml
// ✅ GOOD
width: Kirigami.Units.gridUnit * 10
spacing: Kirigami.Units.smallSpacing

// ❌ BAD - Won't scale on HiDPI
width: 320

Do provide fallback values for configuration because missing config keys return undefined:

qml
text: plasmoid.configuration.customLabel || "Default"

Do use Plasmoid.fullRepresentation for expanded view because Plasma routes expanded clicks there.

Do use Plasmoid.compactRepresentation for panel mode because panel widgets need compact UI.

Do use Plasma 6 imports (no version for plasmoid/core) because versioned imports break on Plasma 6:

qml
import org.kde.plasma.plasmoid           // ✅ No version
import org.kde.plasma.components 3.0     // ✅ Components need version
import org.kde.plasma.core 2.0           // ✅ Core needs version
import org.kde.kirigami 2.0              // ✅ Kirigami needs version

See references/qml-ui.md for complete main.qml template and representation patterns.

Best Practices

Do use signal-based updates because polling wastes CPU cycles:

python
class Backend(QObject):
    dataChanged = Signal()
    
    def updateData(self):
        self._data = compute()
        self.dataChanged.emit()  # ← Notify QML only when changed

Do use lazy initialization for expensive data because repeated computation freezes the UI:

python
@Slot(result=str)
def expensiveData(self):
    if not hasattr(self, '_cached'):
        self._cached = self._computeExpensive()
    return self._cached

Do use QTimer for periodic updates because manual loops block the event loop:

python
self._timer = QTimer()
self._timer.timeout.connect(self.refresh)
self._timer.start(60000)  # 60 seconds

Do avoid blocking the main thread because QML waits for slot completion:

python
# ❌ BAD - Blocks UI for 5 seconds
@Slot(result=str)
def slowOperation(self):
    time.sleep(5)  # Freezes widget!

Do avoid implicit QML bindings on heavy properties because binding loops freeze the widget:

qml
// ❌ BAD - Re-evaluates on every frame
width: computeExpensiveWidth()  // Called constantly!

// ✅ GOOD - Evaluates once, updates on signal
width: backend.calculatedWidth

Deep Dives

Refer to these on-demand reference files for detailed topics:

  • Configuration System — references/configuration.md: metadata.json schema, KCFG main.xml, config.qml, configGeneral.qml, property aliases with cfg_ prefix
  • Packaging & Publishing — references/packaging-publishing.md: plasmapkg2 CLI, .plasmoid package creation, local/system deployment, KDE Store submission workflow
  • Testing & Debugging — references/testing-debugging.md: plasmoidtest tool, exit codes, troubleshooting guide, unit/integration tests, debug logging

References

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Kde Plasmoid AI skill do?

Use when building KDE Plasma 6 widgets with a Python backend - plasmoid structure, metadata.json, QML UI, configuration system, plasmapkg2 packaging, KDE Store submission, or plasmoid testing and debugging

Why use Kde Plasmoid on TypingMind?

Because you install it once and use it with any model. Kde Plasmoid is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Kde Plasmoid in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/CodeAtCode/oss-ai-skills/tree/master/extend/kde-plasmoid. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Kde Plasmoid?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Kde Plasmoid?

As many as you like. As long as a model supports skills, you can use Kde Plasmoid with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Kde Plasmoid AI skill free?

Yes. It is published on GitHub by CodeAtCode under the GPL-3.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇