wiki
Create and manage documentation pages on the Weslink KibiConnect Wiki. Use when asked to write wiki pages, update documentation, or manage the KibiConnect handbook.
What this skill does
# KibiConnect Wiki Documentation
Create, update, and manage wiki pages on the Weslink KibiConnect platform using the Wiki API.
## API Credentials
The API key is stored in the user's Claude memory directory. Read it from:
```
~/.claude/projects/*/memory/weslink-wiki-api.md
```
If not found, ask the user for the API key.
## Critical: Cloudflare Protection
**All API requests MUST include a browser-like User-Agent header.** Without it, Cloudflare returns a 403 error (Error 1010). Always use:
```
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
```
## Python Helper Pattern
For creating wiki content, generate a Python helper module in `/tmp/wiki_helpers.py`. This is the recommended approach for creating TipTap JSON content:
```python
import json
import urllib.request
API_KEY = "your-api-key-here"
BASE_URL = "https://weslink.kibi.de/api/v1"
UA = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
# Inline nodes
def text(t, marks=None):
node = {"type": "text", "text": t}
if marks:
node["marks"] = marks
return node
def bold(t):
return text(t, [{"type": "bold"}])
def italic(t):
return text(t, [{"type": "italic"}])
def code_mark(t):
return text(t, [{"type": "code"}])
def link(t, href):
return text(t, [{"type": "link", "attrs": {"href": href}}])
# Block nodes
def paragraph(*children):
node = {"type": "paragraph", "attrs": {"class": None, "style": None, "textAlign": "start"}}
if children:
node["content"] = list(children)
return node
def heading(level, *children):
return {
"type": "heading",
"attrs": {"class": None, "style": None, "textAlign": "start", "id": None, "level": level},
"content": list(children)
}
def bullet_list(*items):
"""Items can be strings, lists of text nodes, or tuples (title, description) for definition-style items"""
li_nodes = []
for item in items:
if isinstance(item, str):
li_nodes.append({"type": "listItem", "attrs": {"class": None, "style": None}, "content": [paragraph(text(item))]})
elif isinstance(item, tuple) and len(item) == 2:
# Definition-style: (title, description) -> bold title paragraph + description paragraph
title, desc = item
title_node = bold(title) if isinstance(title, str) else title
desc_node = text(desc) if isinstance(desc, str) else desc
li_nodes.append({"type": "listItem", "attrs": {"class": None, "style": None}, "content": [
paragraph(title_node),
paragraph(desc_node)
]})
elif isinstance(item, list):
li_nodes.append({"type": "listItem", "attrs": {"class": None, "style": None}, "content": [paragraph(*item)]})
else:
li_nodes.append({"type": "listItem", "attrs": {"class": None, "style": None}, "content": [paragraph(item)]})
return {"type": "bulletList", "attrs": {"class": None, "style": None}, "content": li_nodes}
def ordered_list(*items):
li_nodes = []
for item in items:
if isinstance(item, str):
li_nodes.append({"type": "listItem", "attrs": {"class": None, "style": None}, "content": [paragraph(text(item))]})
elif isinstance(item, list):
li_nodes.append({"type": "listItem", "attrs": {"class": None, "style": None}, "content": [paragraph(*item)]})
else:
li_nodes.append({"type": "listItem", "attrs": {"class": None, "style": None}, "content": [paragraph(item)]})
return {"type": "orderedList", "attrs": {"class": None, "style": None}, "content": li_nodes}
def callout(ctype, *content_nodes):
return {"type": "callout", "attrs": {"type": ctype}, "content": list(content_nodes)}
def table_row(*cells, header=False):
cell_type = "tableHeader" if header else "tableCell"
row_cells = []
for c in cells:
if isinstance(c, str):
row_cells.append({"type": cell_type, "attrs": {"colspan": 1, "rowspan": 1, "colwidth": None}, "content": [paragraph(text(c))]})
elif isinstance(c, list):
row_cells.append({"type": cell_type, "attrs": {"colspan": 1, "rowspan": 1, "colwidth": None}, "content": [paragraph(*c)]})
else:
row_cells.append({"type": cell_type, "attrs": {"colspan": 1, "rowspan": 1, "colwidth": None}, "content": [paragraph(c)]})
return {"type": "tableRow", "content": row_cells}
def table(*rows):
return {"type": "table", "content": list(rows)}
def details(summary_text, *content_nodes):
return {
"type": "details",
"content": [
{"type": "detailsSummary", "content": [paragraph(text(summary_text))]},
{"type": "detailsContent", "content": list(content_nodes)}
]
}
def see_also_item(page_id, label):
return {"type": "seeAlsoItem", "attrs": {"pageId": page_id}, "content": [paragraph(text(label))]}
def see_also(*items):
return {"type": "seeAlso", "content": list(items)}
def doc(*nodes):
return {"type": "doc", "content": list(nodes)}
# API functions
def create_page(title, content_doc, parent_id=None, status="published"):
payload = {"title": title, "content": json.dumps(content_doc), "status": status}
if parent_id:
payload["parent_id"] = parent_id
data = json.dumps(payload).encode("utf-8")
req = urllib.request.Request(
f"{BASE_URL}/wiki", data=data,
headers={"Authorization": f"Bearer {API_KEY}", "Content-Type": "application/json", "Accept": "application/json", "User-Agent": UA},
method="POST"
)
try:
with urllib.request.urlopen(req) as resp:
body = json.loads(resp.read().decode("utf-8"))
page_id = body["data"]["id"]
slug = body["data"]["slug"]
print(f"OK: {title}\n ID: {page_id}\n Slug: {slug}")
return page_id
except urllib.error.HTTPError as e:
print(f"ERROR {e.code}: {title}")
print(e.read().decode("utf-8")[:500])
return None
def update_page(page_id, title=None, content_doc=None, status=None):
payload = {}
if title: payload["title"] = title
if content_doc: payload["content"] = json.dumps(content_doc)
if status: payload["status"] = status
data = json.dumps(payload).encode("utf-8")
req = urllib.request.Request(
f"{BASE_URL}/wiki/{page_id}", data=data,
headers={"Authorization": f"Bearer {API_KEY}", "Content-Type": "application/json", "Accept": "application/json", "User-Agent": UA},
method="PUT"
)
try:
with urllib.request.urlopen(req) as resp:
json.loads(resp.read().decode("utf-8"))
print(f"OK: Updated {page_id}")
return True
except urllib.error.HTTPError as e:
print(f"ERROR {e.code}: {page_id}")
print(e.read().decode("utf-8")[:500])
return False
```
## Existing Handbooks
The wiki contains the following product handbooks:
| Produkt | URL | Beschreibung |
|---------|-----|--------------|
| **Kibi Connect** | `https://weslink.kibi.de/wiki/kibi-connect` | Kunden-Handbuch fuer die KibiConnect Plattform (Kommunikation, Gruppen, Posts, Aufgaben, Wiki, Chat) |
| **Kibi SCADA** | `https://weslink.kibi.de/wiki/kibi-scada` | Kunden-Handbuch fuer die Kibi SCADA Plattform (Geraeteueberwachung, Monitoring, Alarme) |
| **MenuMobil** | `https://weslink.kibi.de/wiki/menumobil-inductline` | ServicePartner/Hersteller-Handbuch fuer MenuMobil-Geraete (InductLine, ContactLine) |
These are nested under the parent page "Kunden Handbucher" (ID: `01hwq76hz1hrwf3z4wmj77mfh2`).
## Workflow
1. **Read API key** from memory directory
2. **Write helper module** to `/tmp/wiki_helpers.py` with the API key filled in
3. **Build content** using the helper functions
4. **Create/update pages** via the API functions
## Content Guidelines
- Use `hRelated in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.