Initial release: Plenty Dojo Wissensbasis

Geteilte Plentymarkets API Learnings (DOJO.md, ANTI-PATTERNS.md),
Claude Code Skill (/plenty-dojo), und Install-Script für neue User.
This commit is contained in:
Sebastian Poll
2026-04-09 21:23:56 +00:00
commit 200d52f917
6 changed files with 1163 additions and 0 deletions

62
install.sh Normal file
View File

@@ -0,0 +1,62 @@
#!/usr/bin/env bash
set -euo pipefail
# Plenty Dojo — Install Script
# Symlinkt den Skill und richtet die lokale Instanz ein.
DOJO_DIR="$(cd "$(dirname "$0")" && pwd)"
COMMANDS_DIR="${HOME}/.claude/commands"
echo "Plenty Dojo installieren..."
echo " Dojo-Verzeichnis: ${DOJO_DIR}"
# 1. Commands-Verzeichnis sicherstellen
mkdir -p "${COMMANDS_DIR}"
# 2. Skill symlinken
if [ -L "${COMMANDS_DIR}/plenty-dojo.md" ]; then
echo " Symlink existiert bereits, wird aktualisiert..."
rm "${COMMANDS_DIR}/plenty-dojo.md"
elif [ -f "${COMMANDS_DIR}/plenty-dojo.md" ]; then
echo " Bestehende Skill-Datei wird gesichert nach plenty-dojo.md.bak"
mv "${COMMANDS_DIR}/plenty-dojo.md" "${COMMANDS_DIR}/plenty-dojo.md.bak"
fi
ln -s "${DOJO_DIR}/commands/plenty-dojo.md" "${COMMANDS_DIR}/plenty-dojo.md"
echo " Skill verlinkt: ${COMMANDS_DIR}/plenty-dojo.md -> commands/plenty-dojo.md"
# 3. Instances-Verzeichnis erstellen
mkdir -p "${DOJO_DIR}/instances"
# 4. PID abfragen und Vorlage erstellen
if [ -z "$(ls -A "${DOJO_DIR}/instances/" 2>/dev/null)" ]; then
echo ""
read -rp " Deine Plentymarkets-ID (PID), z.B. 7843: " PID
if [ -n "${PID}" ]; then
cat > "${DOJO_DIR}/instances/${PID}.md" << TEMPLATE
# Plenty Dojo — PID ${PID}
> Shop-spezifische Lektionen und Patterns für **Plenty-ID ${PID}**.
> Diese Datei enthält interne Workflows, eigene Statuswerte, Konfigurationen und Geschäftslogik.
>
> Allgemeingültige Plentymarkets-Lektionen stehen in \`DOJO.md\` (im Repo-Root).
---
<!-- Trage hier deine shop-spezifischen Learnings ein. -->
TEMPLATE
echo " Instanz erstellt: instances/${PID}.md"
else
echo " Übersprungen — du kannst später manuell eine instances/<PID>.md anlegen."
fi
else
echo " Instanzen bereits vorhanden: $(ls "${DOJO_DIR}/instances/")"
fi
echo ""
echo "Fertig! Nutze '/plenty-dojo' in Claude Code."
echo ""
echo "Vergiss nicht, in deiner CLAUDE.md auf das Dojo zu verweisen:"
echo " ~/.claude/plenty-dojo/DOJO.md"
echo " ~/.claude/plenty-dojo/ANTI-PATTERNS.md"
echo " ~/.claude/plenty-dojo/instances/<PID>.md"