Langfuse Codebase Navigator
Use this as the first stop for Langfuse org navigation. Your job is to choose the right repository, code area, and more specific skill before doing deeper work.
Default Workflow
- Classify the request by domain:
- Product app, API, backend, ingestion, worker, ClickHouse, model pricing, evals, prompts, datasets, scores, traces:
langfuse/langfuse.
- Documentation, changelog, blog, marketing pages, cookbook, integrations docs:
langfuse/langfuse-docs.
- SDK or client library behavior:
langfuse/langfuse-js, langfuse/langfuse-python, langfuse/langfuse-java, or generated clients in langfuse/langfuse.
- Deployment or self-hosting:
langfuse/langfuse-k8s, langfuse/langfuse-terraform-*, langfuse/oss-llmops-stack, and docs self-hosting content.
- Langfuse Cloud infrastructure and ops:
langfuse/infrastructure, langfuse/analytics, langfuse/langfuse-ops, or langfuse/platform.
- Agent skills:
langfuse/skills, langfuse/langfuse-internal-skills, repo-local .agents/skills, or repo-local .claude/skills.
- GitHub Actions, CLI, MCP, n8n, examples, or experiments: route to the specialized repo in
references/repository-map.md.
- Read references/repository-map.md when the route is not obvious, the task spans repos, or the user asks for org-level orientation.
- Before editing, check for a more specific skill in the target repo or a sibling internal-skills checkout. If one matches, open it and follow it.
- Search locally first in sibling repos next to the current checkout. If a needed repo is absent, clone it into the same parent directory with
gh repo clone langfuse/<repo> "$LANGFUSE_PARENT/<repo>".
- Return or act on a route decision with: target repo(s), relevant folders/files, specific skills to load, and the next search command or implementation step.
Quick Skill Routing
- Product implementation in
langfuse/langfuse: choose the matching repo-local skill under .agents/skills, such as backend-dev-guidelines, frontend-browser-review, clickhouse-best-practices, add-model-price, turborepo, pnpm-upgrade-package, code-review, or production-debug skills as applicable.
- Cursor Cloud or Cursor desktop agents implementing a Linear issue, opening a PR, applying the
cursor GitHub label, asking a human to test, or handling Claude, Greptile, or Codex review comments: use cursor-agents-workflow.
- A change too large for one reviewable PR, splitting a long-lived branch into PRs, or propagating and retargeting a stack: use
pr-stack-workflow.
- Someone new, or you do not know whether you are talking to an outside contributor or a maintainer: use
langfuse-onboarding.
- "What should I do today", or preparing a weekly project update: use
linear-work-rhythm.
- Reconstructing why a surface is the way it is before changing it, or writing the reasoning behind finished work onto its Linear ticket: use
linear-context-handover.
- Turning a feature into Linear subtickets that map onto an intended PR stack: use
linear-planning.
- Before any agent write to Linear — a comment, a description edit, a ticket: use
linear-agent-writes, the write policy.
- Frontend work under
langfuse/langfuse/web: also check web/.agents/skills/vercel-react-best-practices and web/.agents/skills/vercel-composition-patterns.
- Infrastructure autoscaling or cloud capacity: use
infra-scaling.
- Public Langfuse usage, docs lookup, API access, instrumentation, prompt migration, SDK upgrade, trace analysis, or CLI work: use the public
langfuse skill from langfuse/skills.
- Support, support review, PR funnel, social copy, meeting notes, Plain search, blog writing, or unslop work: use the matching skill from
langfuse/langfuse-internal-skills when available.
Search Patterns
Use rg and file lists before broad reading.
# Resolve the parent directory that holds sibling Langfuse repos
LANGFUSE_REPO_ROOT="$(git rev-parse --show-toplevel)"
LANGFUSE_PARENT="$(dirname "$LANGFUSE_REPO_ROOT")"
# Find local Langfuse checkouts next to this repo
find "$LANGFUSE_PARENT" -mindepth 2 -maxdepth 2 -type d -name .git -print | sed 's#/.git$##'
# Search one repo
cd "$LANGFUSE_PARENT/langfuse"
rg --files -g '!node_modules' -g '!.git' | rg 'prompts|datasets|scores|traces'
rg -n "symbolOrRouteName" web/src packages/shared/src worker/src
# Refresh org repo inventory when freshness matters
gh repo list langfuse --limit 1000 --json name,description,isPrivate,isArchived,isFork,primaryLanguage,pushedAt,updatedAt,url
For cross-repo code search, prefer local clones if present. Fall back to GitHub search only for repos that are absent locally or when you need to confirm the current default branch.
Routing Output
When the user asks "where is this?" or "which skill/repo should I use?", answer in this shape:
Route: repo(s) and why.
Open first: exact skill path or code folder.
Search next: one or two concrete rg or gh commands.
Caveat: only include this if the route depends on sparse private-repo metadata or a recently changing repo list.
If multiple routes are plausible and acting in the wrong repo would be risky, ask one concise clarifying question. Otherwise choose the most likely route and keep moving.
1---2name: langfuse-codebase-navigator3description: Navigate Langfuse repositories, code areas, and agent skills. Use to locate code, choose the right repo or skill, search across the Langfuse organization, or orient before implementation, debugging, documentation, support, or operations.4---5
6# Langfuse Codebase Navigator
7
8Use this as the first stop for Langfuse org navigation. Your job is to choose the right repository, code area, and more specific skill before doing deeper work.
9
10## Default Workflow
11
121. Classify the request by domain:
13 - Product app, API, backend, ingestion, worker, ClickHouse, model pricing, evals, prompts, datasets, scores, traces: `langfuse/langfuse`.
14 - Documentation, changelog, blog, marketing pages, cookbook, integrations docs: `langfuse/langfuse-docs`.
15 - SDK or client library behavior: `langfuse/langfuse-js`, `langfuse/langfuse-python`, `langfuse/langfuse-java`, or generated clients in `langfuse/langfuse`.
16 - Deployment or self-hosting: `langfuse/langfuse-k8s`, `langfuse/langfuse-terraform-*`, `langfuse/oss-llmops-stack`, and docs self-hosting content.
17 - Langfuse Cloud infrastructure and ops: `langfuse/infrastructure`, `langfuse/analytics`, `langfuse/langfuse-ops`, or `langfuse/platform`.
18 - Agent skills: `langfuse/skills`, `langfuse/langfuse-internal-skills`, repo-local `.agents/skills`, or repo-local `.claude/skills`.
19 - GitHub Actions, CLI, MCP, n8n, examples, or experiments: route to the specialized repo in `references/repository-map.md`.
202. Read [references/repository-map.md](references/repository-map.md) when the route is not obvious, the task spans repos, or the user asks for org-level orientation.
213. Before editing, check for a more specific skill in the target repo or a sibling internal-skills checkout. If one matches, open it and follow it.
224. Search locally first in sibling repos next to the current checkout. If a needed repo is absent, clone it into the same parent directory with `gh repo clone langfuse/<repo> "$LANGFUSE_PARENT/<repo>"`.
235. Return or act on a route decision with: target repo(s), relevant folders/files, specific skills to load, and the next search command or implementation step.
24
25## Quick Skill Routing
26
27- Product implementation in `langfuse/langfuse`: choose the matching repo-local skill under `.agents/skills`, such as `backend-dev-guidelines`, `frontend-browser-review`, `clickhouse-best-practices`, `add-model-price`, `turborepo`, `pnpm-upgrade-package`, `code-review`, or production-debug skills as applicable.
28- Cursor Cloud or Cursor desktop agents implementing a Linear issue, opening a PR, applying the `cursor` GitHub label, asking a human to test, or handling Claude, Greptile, or Codex review comments: use `cursor-agents-workflow`.
29- A change too large for one reviewable PR, splitting a long-lived branch into PRs, or propagating and retargeting a stack: use `pr-stack-workflow`.
30- Someone new, or you do not know whether you are talking to an outside contributor or a maintainer: use `langfuse-onboarding`.
31- "What should I do today", or preparing a weekly project update: use `linear-work-rhythm`.
32- Reconstructing why a surface is the way it is before changing it, or writing the reasoning behind finished work onto its Linear ticket: use `linear-context-handover`.
33- Turning a feature into Linear subtickets that map onto an intended PR stack: use `linear-planning`.
34- Before any agent write to Linear — a comment, a description edit, a ticket: use `linear-agent-writes`, the write policy.
35- Frontend work under `langfuse/langfuse/web`: also check `web/.agents/skills/vercel-react-best-practices` and `web/.agents/skills/vercel-composition-patterns`.
36- Infrastructure autoscaling or cloud capacity: use `infra-scaling`.
37- Public Langfuse usage, docs lookup, API access, instrumentation, prompt migration, SDK upgrade, trace analysis, or CLI work: use the public `langfuse` skill from `langfuse/skills`.
38- Support, support review, PR funnel, social copy, meeting notes, Plain search, blog writing, or unslop work: use the matching skill from `langfuse/langfuse-internal-skills` when available.
39
40## Search Patterns
41
42Use `rg` and file lists before broad reading.
43
44```bash
45# Resolve the parent directory that holds sibling Langfuse repos
46LANGFUSE_REPO_ROOT="$(git rev-parse --show-toplevel)"
47LANGFUSE_PARENT="$(dirname "$LANGFUSE_REPO_ROOT")"
48
49# Find local Langfuse checkouts next to this repo
50find "$LANGFUSE_PARENT" -mindepth 2 -maxdepth 2 -type d -name .git -print | sed 's#/.git$##'
51
52# Search one repo
53cd "$LANGFUSE_PARENT/langfuse"
54rg --files -g '!node_modules' -g '!.git' | rg 'prompts|datasets|scores|traces'
55rg -n "symbolOrRouteName" web/src packages/shared/src worker/src
56
57# Refresh org repo inventory when freshness matters
58gh repo list langfuse --limit 1000 --json name,description,isPrivate,isArchived,isFork,primaryLanguage,pushedAt,updatedAt,url
59```
60
61For cross-repo code search, prefer local clones if present. Fall back to GitHub search only for repos that are absent locally or when you need to confirm the current default branch.
62
63## Routing Output
64
65When the user asks "where is this?" or "which skill/repo should I use?", answer in this shape:
66
67- `Route`: repo(s) and why.
68- `Open first`: exact skill path or code folder.
69- `Search next`: one or two concrete `rg` or `gh` commands.
70- `Caveat`: only include this if the route depends on sparse private-repo metadata or a recently changing repo list.
71
72If multiple routes are plausible and acting in the wrong repo would be risky, ask one concise clarifying question. Otherwise choose the most likely route and keep moving.