keepass
KeePassXC cursor.kdbx — natywny keyring per OS, keepass-db.path bez fallbacków, agent instaluje brakujące narzędzia.
What this skill does
# Skill: keepass Wywołanie: **`/keepass`** Baza **`cursor.kdbx`** (sync: OneDrive / Google Drive) + **keyring = tylko hasło master**. Wszystkie sekrety w KeePass — nie w repo / `.env`. --- ## Zasady (agent) 1. **Natywny keyring danego OS** — nie mieszaj mechanizmów między systemami. 2. **Brakuje narzędzia → doinstaluj** (patrz tabela); przy `sudo` poproś użytkownika. 3. **Brak `~/.cursor/keepass-db.path`** → **poproś użytkownika o ścieżkę** (jedna linia absolutna). Nie zgaduj ścieżek. 4. **Nie loguj** wartości sekretów. --- ## Krok 1 — Ścieżka bazy ```bash test -f ~/.cursor/keepass-db.path && head -1 ~/.cursor/keepass-db.path test -f "$(grep -v '^#' ~/.cursor/keepass-db.path | head -1)" ``` Jeśli pliku brak lub pusty → **stop** i poproś: > Utwórz `~/.cursor/keepass-db.path` z jedną linią: absolutna ścieżka do `cursor.kdbx` (OneDrive lub Google Drive). Wzór: `keepass-db.path.example`. **WSL:** ten sam plik może być w `~/.cursor/` (Linux home) **albo** `/mnt/c/Users/<user>/.cursor/keepass-db.path` (Windows home) — skrypt sprawdza oba. **WSL + Cursor Remote:** agent często czyta **`/home/<user>/.cursor`**, nie `C:\Users\...\`. Po zmianach na Windows uruchom: `wsl bash /mnt/c/Users/janja/.cursor/scripts/sync-keepass-to-wsl-home.sh` Opcjonalnie na sesję: `export KEEPASS_DB_PATH="/pełna/ścieżka/cursor.kdbx"`. ### Przykłady ścieżek (użytkownik wybiera jedną) | Sync | Windows | WSL | Linux | |------|---------|-----|-------| | OneDrive | `C:\Users\<u>\OneDrive\...\cursor.kdbx` | `/mnt/c/Users/<u>/OneDrive/.../cursor.kdbx` | `~/OneDrive/.../cursor.kdbx` | | Google Drive | `...\Google Drive\My Drive\...\cursor.kdbx` | `/mnt/c/.../Google Drive/My Drive/...` | `~/Google Drive/My Drive/...` | --- ## Krok 2 — Platforma i natywny keyring | Gdzie agent pracuje | Natywny keyring | Skrypt odczytu | Setup (jednorazowo) | |---------------------|-----------------|----------------|---------------------| | **Windows** (PowerShell) | **SecretStore** `KeePassXC-Cursor-DB` | `get-keepass-secret.ps1` | `setup-keepass-keyring.ps1` | | **Linux / WSL** (bash) | **secret-tool** (`service=keepassxc`, `attribute=cursor-db`) | `get-keepass-secret.sh` | `setup-keepass-keyring-linux.sh` | **WSL = Linux** → używaj **bash + secret-tool**, nie `powershell.exe` / Windows SecretStore. ### Brak narzędzia — agent instaluje | OS | Pakiet / moduł | Komenda | |----|----------------|---------| | Linux / WSL | `libsecret-tools`, `gnome-keyring`, `dbus-x11` | `sudo apt install -y libsecret-tools gnome-keyring dbus-x11` | | Linux / WSL | `keepassxc-cli` | `sudo apt install -y keepassxc` | | Windows | `Microsoft.PowerShell.SecretManagement`, `.SecretStore` | `Install-Module -Name Microsoft.PowerShell.SecretManagement -Scope CurrentUser` (+ SecretStore) | Skrypt bash: `lib/keepass-platform.sh` → `keepass_ensure_secret_tool` (próbuje `sudo -n`, inaczej prośba do użytkownika). --- ## Krok 3 — Test | OS | Komenda | |----|---------| | Linux / WSL | `~/.cursor/scripts/test-keepass-read.sh` | | Windows | `.\get-keepass-secret.ps1 "hosts/euk-sl01/janja" "Password"` (bez echo hasła w logu) | Oczekiwane: odczyt bez promptu. Jeśli błąd keyringa → `KEEPASS_DB_PASSWORD='…'` + odpowiedni `setup-*`. --- ## Krok 4 — Sekrety ```bash # Linux / WSL ~/.cursor/scripts/get-keepass-secret.sh "EurekaCloud/poc/SL01/janja-sudo" "Password" ``` ```powershell # Windows .\get-keepass-secret.ps1 "EurekaCloud/poc/SL01/janja-sudo" "Password" ``` **Check-before-add:** `keepassxc-cli search "$KEEPASS_DB_PATH" "term"` → `mkdir` / `add` / `edit`. ### Struktura wpisów | Typ | Ścieżka | |-----|---------| | Host | `hosts/<hostname>/<username>` | | Projekt | `<project>/<env>/<title>` | | Eureka POC | `EurekaCloud/poc/SL01/janja-sudo`, `.../paperclip-ceo-api-key`, … | --- ## Skrypty | Skrypt | OS | |--------|-----| | `lib/keepass-db-path.sh` / `.ps1` | rozwiązywanie ścieżki (wymagany plik) | | `lib/keepass-db-password.sh` | Linux/WSL → secret-tool | | `lib/keepass-secretstore.ps1` | Windows → SecretStore | | `get-keepass-secret.sh` | Linux / WSL | | `get-keepass-secret.ps1` | Windows | | `save-keepass-password-to-keyring.sh` | Linux / WSL | | `save-keepass-password-to-keyring.ps1` | Windows | | `setup-keepass-keyring-linux.sh` | Linux / WSL | | `setup-keepass-keyring.ps1` | Windows | | `add-host-entry.sh` | nowy host (bash) | | `keepass_ops.py` | get/add/update | Runbook: `~/.cursor/doc/keepass.md` --- ## Architektura - Keyring = **tylko** hasło master `cursor.kdbx` - KeePass = **wszystkie** sekrety aplikacji - **Brak** fallbacków ścieżki i **brak** plikowych kopii haseł w `~/.cursor`
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.