npx skills add ...
npx skills add dboeckli/ai-agent-skills --skill project-references
Look up conventions, patterns, and concrete implementations from your own GitHub repositories checked out locally under ~/projects/referenzen/. Use this skill whenever there is uncertainty about how something is done in your codebase family — e.g. Helm chart structure, Kubernetes manifests, framework configuration patterns, Docker Compose conventions, CI/CD pipeline setup, or any other recurring architectural decision. Invoke it proactively before guessing at a convention; always cite the source project and path when a pattern is adopted. Also use when the user asks to check out, update, or search reference repositories.
npx skills add dboeckli/ai-agent-skills --skill project-references
This skill manages a local mirror of your own GitHub repositories under
~/projects/referenzen/ and lets you look up conventions and implementation
patterns without guessing or reading all repos blindly.
All operations are read-only on the reference projects themselves. Only
git clone and git pull write into that directory — never edits.
If the needed repo is missing, run scripts/clone-or-update.sh owner/repo to clone it first.
Do not scan all repos blindly — that fills context. Ask: "Which of your sibling projects uses this pattern?" or list the available repos and let the user pick.
Use find to locate a file by name, then cat or grep to read only the relevant section. For search commands and patterns, consult references/search-patterns.md.
Always state which project and file path a pattern came from before applying it:
Pattern adopted from
your-service→helm-charts/Chart.yamlline 4
Run scripts/sync-all.sh only when the user says "sync all" or "update all references". For a single repo, prefer scripts/clone-or-update.sh.
User says: "How should I structure the Helm chart for this project?"
Actions:
ls ~/projects/referenzen/ to see available reposyour-servicefind ~/projects/referenzen/your-service -name "Chart.yaml" to locate ityour-service/helm-charts/Chart.yaml"Result: Helm chart consistent with sibling projects, traceable source cited.
User says: "Clone my other-service project as a reference"
Actions:
bash scripts/clone-or-update.sh owner/other-servicels ~/projects/referenzen/other-service/Result: Repo available locally for pattern lookups; no edits made.
User says: "How do I configure the database pool like in the other projects?"
Actions:
ls ~/projects/referenzen/ — pick a relevant sibling projectgrep -rn "database.pool" ~/projects/referenzen/your-service/src/main/resources/your-service/src/main/resources/application.yaml line 42"Result: Exact config from a proven sibling project, not guessed.
Two sources are supported — prefer the manual list when it exists:
~/claude-shared/projekte.txt): one GitHub repo URL or
owner/name slug per line, blank lines and # comments ignored.gh repo list --limit 200 --json nameWithOwner
when the file is absent or the user explicitly asks for a full sync.Two ready-made scripts live in scripts/ — use them instead of writing
inline Bash. Both accept REFERENZEN_DIR as an env override (default:
~/projects/referenzen).
scripts/clone-or-update.sh <owner/repo>Clones a single repository or pulls if it already exists locally. Refuses to pull when local changes are present (exit code 2) — never stashes or resets.
Exit codes: 0 = ok, 2 = skipped (local changes), 3 = clone/pull failed.
scripts/sync-all.sh [--list <file>] [--limit <n>]Iterates over all repositories and calls the clone-or-update logic for each.
Prefers ~/claude-shared/projekte.txt as source; falls back to gh repo list
when the file is absent. Prints a summary line at the end.
Do not run sync-all blindly — use it only when the user explicitly says
"sync all" or "update all references". For a single repo prefer
clone-or-update.sh.
Run the appropriate script and stream output so the user sees every CLONE / PULL / SKIP action as it happens.
Scope the search to what the user actually needs. Prefer targeted lookups
over broad recursive greps. For ready-made search commands and citing patterns,
consult references/search-patterns.md.
If ~/claude-shared/projekte.txt exists, show its contents alongside to
explain which repos are tracked vs. which are locally present.
Suggest looking up a reference project when:
Ask the user which reference project is most relevant rather than scanning all of them — scanning is expensive in context.
~/projects/referenzen/.git pull would fail due to local changes, report the conflict clearly
and stop — do not stash, reset, or force..env, credential
files) in the response — read and cite structure only.