Skip to content

πŸͺ’ Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

docs(agents): know who you are working for, and what to do today (#17036)

Nikita Kabardinae56ec8c0e67
diff --git a/.agents/AGENTS.md b/.agents/AGENTS.md
index 686cbcf196..d3b10110a0 100644
--- a/.agents/AGENTS.md
+++ b/.agents/AGENTS.md
@@ -5,6 +5,11 @@ evaluating, and debugging AI applications.
## How To Work
+- Know who you are working for before you assume what they may do. An outside
+ contributor and a Langfuse maintainer get different halves of this repo, and
+ the difference is derivable β€” `~/.config/langfuse/me.md` if it exists, else
+ `gh api repos/langfuse/langfuse --jq .permissions`. `langfuse-onboarding`
+ establishes it once and records it; never guess it silently.
- Read the minimal local context required for the task.
- Keep changes scoped and avoid unrelated refactors.
- Delegate exploratory or noisy work β€” broad code search, multi-file
diff --git a/.agents/skills/langfuse-codebase-navigator/SKILL.md b/.agents/skills/langfuse-codebase-navigator/SKILL.md
index 173b5e402c..1d286c9719 100644
--- a/.agents/skills/langfuse-codebase-navigator/SKILL.md
+++ b/.agents/skills/langfuse-codebase-navigator/SKILL.md
@@ -27,6 +27,8 @@ Use this as the first stop for Langfuse org navigation. Your job is to choose th
- 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, 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.
diff --git a/.agents/skills/langfuse-onboarding/SKILL.md b/.agents/skills/langfuse-onboarding/SKILL.md
new file mode 100644
index 0000000000..f476e73d41
--- /dev/null
+++ b/.agents/skills/langfuse-onboarding/SKILL.md
@@ -0,0 +1,180 @@
+---
+name: langfuse-onboarding
+description: |
+ Work out who the person in front of you is β€” outside contributor or Langfuse
+ maintainer, and which product areas they own β€” record it, and walk them
+ through onboarding. Use on "onboard me", "I'm new here", "what do I need to
+ set up", "am I set up correctly", and whenever you need to know someone's
+ role or focus and no identity file exists yet.
+---
+
+# Onboarding at Langfuse
+
+Two jobs. **Establish who you are talking to**, once, and record it so no later
+session has to ask again. Then **walk the onboarding path** for that person.
+
+Everything an agent needs to behave differently for a contributor than for a
+maintainer follows from the first job, so do it before anything else.
+
+## Step 1 β€” derive the role; do not ask what you can find out
+
+Two signals, in order. Both are read-only.
+
+```bash
+gh api repos/langfuse/langfuse --jq '.permissions | {push, maintain, admin}'
+```
+
+- **`push: true`** β†’ maintainer. They have write access to the app repo.
+- **`push: false`** or the call fails β†’ treat as an outside contributor until they
+ say otherwise.
+- Then check whether the tracker answers a real read. That is the second signal,
+ and the one that matters here: a maintainer with no tracker connection is a
+ *setup gap*, not a contributor, and step 4 is where you fix it.
+
+**Do not infer this from `git config user.email`.** That is a local setting, not
+an identity: roughly a third of recent commits here come from personal addresses,
+and both `@clickhouse.com` (the company domain β€” Langfuse is part of ClickHouse)
+and the older `@langfuse.com` are still in daily use. Write access answers the
+question directly, so ask that instead of guessing from a string.
+
+Say what you found and let them correct it. Never announce a role silently β€” a
+wrong guess sends someone down the wrong half of this file.
+
+## Step 2 β€” record it, so this happens once
+
+Write `~/.config/langfuse/me.md`. Machine-level on purpose: it has to answer the
+question in `langfuse`, in `langfuse-docs`, and in a scratch directory, so it
+cannot live in one repo. Create the directory if it does not exist.
+
+```markdown
+# Me, at Langfuse
+
+- **Name:** <name>
+- **Role:** maintainer | contributor
+- **GitHub:** <login> # from `gh api user --jq .login`
+- **Tracker identity:** <name / email as Linear knows it, or "none">
+- **Focus:** <the areas they own or are learning β€” their own words>
+- **Checkouts:** <path to langfuse> Β· <path to langfuse-docs> Β· <others>
+- **Connectors verified:** <the ones that answered a real read> Β· **missing:** <the rest>
+- *Recorded <date> by an agent. Edit freely; delete to be asked again.*
+```
+
+**Never commit this file, and never put a secret in it.** It is notes, not
+config: no tokens, no keys. A repo `.env` is the wrong home β€” those are
+app configuration and one careless `git add` publishes them.
+
+Ask for **Focus** rather than deriving it. What someone owns on paper and what
+they are actually responsible for this quarter are different things, and only
+they know the second. Keep their phrasing.
+
+Do **not** record what they own project by project β€” that is derivable and it
+goes stale within a week. `linear-work-rhythm` reads it live from the tracker
+instead.
+
+## Step 3a β€” the contributor path
+
+Read `CONTRIBUTING.md` and walk it: setup, the four gating checks before opening
+a PR, and `## Maintainers` for what is not theirs to do. `.agents/AGENTS.md` β†’
+*Verification* is the honest bar, including which checks pass without running.
+
+Stop there. Do not describe the issue tracker, the label policy, the weekly
+rhythm, or the internal handbook β€” a contributor cannot open any of it, and
+offering it reads as a door that is locked.
+
+## Step 3b β€” the maintainer path
+
+**The handbook owns the content; you drive it.** It is `content/handbook/` in
+`langfuse/langfuse-docs`, published at `langfuse.com/handbook`. Read the pages,
+work through them with the person, and answer from what they actually say today β€”
+do not paraphrase them here, because this file would then be a second, stale copy
+of a document that changes without it.
+
+**Read it from `origin/main`, not the working tree.** A docs checkout is usually
+parked on some branch from the last thing that person shipped, and a working-tree
+read then quotes a handbook from weeks ago without saying so. This is not
+hypothetical: the first run of this skill read a checkout **576 commits behind**.
+Fetch, then read the blob β€” it needs no checkout switch and cannot disturb work
+in progress:
+
+```bash
+cd <docs checkout> && git fetch -q origin main
+git show origin/main:content/handbook/product-engineering/how-we-work/onboarding.mdx
+```
+
+Start with:
+
+| Page | What it answers |
+| --- | --- |
+| `product-engineering/how-we-work/onboarding.mdx` | Day 1, Week 1, months 1–3, month 6 β€” the timeline and its outcomes |
+| `product-engineering/how-we-work/how-we-ship.mdx` | Prioritisation, specification, releases, issue states |
+| `tools-and-processes/using-linear.mdx` | How the tracker is used, and the working agreement |
+| `how-we-work/productivity-and-ai.mdx` | Agent tooling, and keeping `AGENTS.md` current |
+| `product-engineering/how-we-work/code-review.mdx` | What review is for here |
+
+Then, in the repos:
+
+- `.agents/AGENTS.md` β€” always loaded, and the two things it names that nothing
+ else does: what a green check really proves, and the context handover.
+- `linear-agent-writes` β€” read before the first agentic tracker write.
+- `pr-stack-workflow` β€” before the first change too large for one PR.
+
+**If a handbook page contradicts a skill or an `AGENTS.md`, say so.** That is a
+finding worth reporting, not something to smooth over: one of the two is wrong,
+and the person reading both will trust the wrong one.
+
+## Step 4 β€” the connectors, and what breaks without each
+
+Skills fail differently from code: an unauthorized connector does not error, the
+agent simply cannot answer, and neither of you finds out why. So walk this list
+and say which ones are missing rather than discovering it mid-task.
+
+| Connect | Needed by |
+| --- | --- |
+| **Linear** | 17 skills β€” the tracker practice in all of it |
+| **Datadog** | `debug-issue-with-datadog`, `datadog-query-recipes`, `incident-alert-tickets`, `weekly-production-review`, `infra-scaling`, `linear-bug-triage` |
+| **AWS** (SSO) | preview seeding and `kubectl` in `langfuse-previews`, plus `infra-scaling`, `security-review` |
+| **incident.io** | `incident-alert-tickets`, `weekly-production-review`, `debug-issue-with-datadog` |
+| **PostHog** | `posthog-instrumentation`, and the usage half of `debug-issue-with-datadog` |
+| **Sentry** | `sentry-instrumentation` |
+| **Pylon** | `housekeeping` |
+| **Hex** | `analyze-cloud-costs` |
+| **Slack** | `weekly-production-review` |
+
+**Datadog is the one that fails quietly**, and it takes four skills with it.
+Prove each connector with a real read rather than trusting a status indicator β€”
+a remote server can report itself connected before it holds a token.
+
+Two prerequisites on the same checklist that are not connectors: the
+`langfuse-docs` checkout below, which four skills read the handbook from, and a
+working local Docker, without which the seeder cannot make test data.
+
+## Step 5 β€” the checkouts, especially the docs one
+
+A maintainer needs the app repo *and* the docs repo. The docs repo is the one
+people skip, and then documentation quietly stops happening because the
+alternative is a clone in the middle of a task.
+
+```bash
+git rev-parse --show-toplevel # where am I
+ls -d ../langfuse-docs ~/code/langfuse-docs 2>/dev/null # is the docs repo here
+```
+
+If `langfuse-docs` is missing, say so plainly and give the command β€” do not
+carry on and hope:
+
+```bash
+git clone [email protected]:langfuse/langfuse-docs.git
+```
+
+It carries the handbook, the docs, and the changelog. Without it this skill
+cannot read step 3b, and no shipped change can get a docs page or a changelog
+entry without a separate detour.
+
+Record the paths you found in `me.md` so the next session does not search again.
+
+## What this skill does not do
+
+It does not decide what to work on β€” that is
+[`linear-work-rhythm`](../linear-work-rhythm/SKILL.md), which reads `me.md` and
+answers from the tracker. If someone asks "what should I do today" and no
+identity file exists, run step 1 and 2 first, then hand over.
diff --git a/.agents/skills/langfuse-onboarding/agents/openai.yaml b/.agents/skills/langfuse-onboarding/agents/openai.yaml
new file mode 100644
index 0000000000..3b39d7dfa6
--- /dev/null
+++ b/.agents/skills/langfuse-onboarding/agents/openai.yaml
@@ -0,0 +1,4 @@
+interface:
+ display_name: "Langfuse Onboarding"
+ short_description: "Establish who you are, then walk the onboarding path"
+ default_prompt: "Use $langfuse-onboarding to work out whether I am a contributor or a maintainer, record it, and walk me through setup."
diff --git a/.agents/skills/linear-work-rhythm/SKILL.md b/.agents/skills/linear-work-rhythm/SKILL.md
new file mode 100644
index 0000000000..5fc05a49fb
--- /dev/null
+++ b/.agents/skills/linear-work-rhythm/SKILL.md
@@ -0,0 +1,148 @@
+---
+name: linear-work-rhythm
+description: |
+ Answer "what should I do today" for a Langfuse maintainer, from the tracker
+ rather than from memory: which projects you lead, which owe an update before
+ Monday planning, what shipped but is not finished, what is waiting on your
+ decision. Use on "what should I do today", "what's on my plate", "what should
+ I work on next", "prep my Monday update", "what did I say last week".
+---
+
+# The working rhythm, read live
+
+**Answer from the tracker, never from recall.** Ownership, health and dates
+change daily, and a plausible answer assembled from memory is worse than no
+answer because nobody can tell it is stale.
+
+Who the person is comes from `~/.config/langfuse/me.md`. If that file does not
+exist, run [`langfuse-onboarding`](../langfuse-onboarding/SKILL.md) first β€” do
+not guess, and do not answer this question for an outside contributor, who owns
+none of it.
+
+**The rules behind every check below are the working agreement**, published in
+`content/handbook/tools-and-processes/using-linear.mdx` in
+`langfuse/langfuse-docs`. Read it rather than trusting this file for *what* is
+required; this file is only the set of queries that reveal where you stand
+against it. When the two disagree, the handbook wins and this file is the bug.
+
+Read it from `origin/main` β€” `git fetch -q origin main` then
+`git show origin/main:<path>` β€” because a docs checkout is usually parked on an
+old branch, and quoting a stale agreement is worse than not quoting one.
+
+## Do not hand-maintain the responsibility zone
+
+Derive it. What someone owns is exactly "the projects where they are lead", and
+that answer is one call old:
+
+```
+list_projects(member: "me", state: "started",
+ fields: [name, status, lead, targetDate, priority, labels, teams, url])
+```
+
+A local list of someone's projects is stale within a week β€” this repo has been
+burned by exactly that. `me.md` holds only the durable half: name, role, and the
+focus they described in their own words.
+
+## The five checks
+
+Run them, then report as **a short ranked list with the reason attached**, not a
+status dump. Ranking beats completeness: the point is what to do next, and a
+40-row table answers nothing.
+
+### 1. Updates owed before Monday planning
+
+The heaviest recurring obligation and the easiest to miss, because nothing
+notifies you.
+
+```
+get_status_updates(type: "project", user: "me")
+```
+
+**Do not put a lower bound on that window.** A cutoff drops exactly the projects
+that need reporting: one last updated five weeks ago returns nothing, so you can
+say only "older than the window" β€” not how stale it is, and not what its last
+"next step" was. Take the newest update per project from an unbounded query
+instead, and page if you have to.
+
+Compare against the in-progress projects from above. Any project with no update
+since the last Monday owes one, and a project with **no update at all** is the
+worst case, not an absent row. Say how stale each is in days β€” "last update 11
+days ago" lands, "stale" does not.
+
+An update carries health, progress since the last one, next step, blockers or
+decisions needed, and any target-date change. **The previous update's "next step"
+is where this week's goal already is** β€” read it before writing the new one, and
+say whether it happened. That is the whole value of the sequence.
+
+### 2. Shipped but not finished
+
+Issues sitting in **Merged** are the staging area between a merged PR and `Done`,
+and they exist so follow-ups get captured before the work leaves your view.
+
+```
+list_issues(assignee: "me", state: "Merged",
+ fields: [title, status, project, labels, updatedAt, url])
+```
+
+For each, ask the three questions the agreement puts at this step, and ask them
+out loud rather than assuming the answer is no:
+
+- **Does this need a docs page or an edit?** User-visible behaviour usually does.
+ The docs live in `langfuse/langfuse-docs` under `content/docs/`. If that repo is
+ not checked out, say so and give the clone command β€” a missing checkout is why
+ documentation silently stops happening.
+- **Does it need a changelog entry?** `changelog-writing` owns the shape.
+- **Did a customer ask for this?** If a customer request is linked, they get told.
+
+Then it can move to `Done` β€” by a human. Moving tracker state is not an agent's
+to do; propose it.
+
+An issue that has been in `Merged` for weeks is the signal this step is not
+running. Count them and lead with the number.
+
+### 3. Waiting on your decision
+
+Triage normally gets a decision within one working day. Check the triage state on
+your teams, and your own inbox-shaped work: things assigned to you that you have
+not moved, and requests routed to you as a feature owner.
+
+### 4. Your open bugs
+
+A weekly look at your own bugs, to catch what is slipping.
+
+```
+list_issues(assignee: "me", label: "bug", state: "started")
+```
+
+Also check unstarted bugs assigned to you β€” a bug nobody has begun is the one
+that slips.
+
+### 5. Lifecycle compliance, but only where it changes what you do
+
+Report a gap only when fixing it is the next action. In-progress projects need a
+*specific* target date; planned ones need owner, priority, a quarter-level target
+date, and a pod or function label. Missing labels across every project is one
+finding, not eight.
+
+Do not turn this into an audit. One line naming the pattern is more useful than
+a per-project table, and the agreement is explicit that this system stays
+lightweight.
+
+## Writing anything back
+
+Every write follows [`linear-agent-writes`](../linear-agent-writes/SKILL.md) β€”
+read it first. Two things specific to this skill:
+
+- **A project update is a status update, not a description edit or a comment.**
+ It is the owner's voice on their own project. Draft it, show it, and let them
+ post it or tell you to. Do not post one as if it were theirs.
+- **State changes are theirs**: moving `Merged` to `Done`, re-prioritising,
+ changing a target date, reassigning. Surface them as the recommendation they
+ are.
+
+## What this does not cover
+
+Clearing the notification inbox, support queues and pull-request review load are
+[`housekeeping`](../housekeeping/SKILL.md); this skill is the project-lead layer
+above it. For the reasoning behind a specific piece of work rather than its
+status, use [`linear-context-handover`](../linear-context-handover/SKILL.md).
diff --git a/.agents/skills/linear-work-rhythm/agents/openai.yaml b/.agents/skills/linear-work-rhythm/agents/openai.yaml
new file mode 100644
index 0000000000..fd626978ce
--- /dev/null
+++ b/.agents/skills/linear-work-rhythm/agents/openai.yaml
@@ -0,0 +1,4 @@
+interface:
+ display_name: "Linear Work Rhythm"
+ short_description: "What should I do today, answered from the tracker"
+ default_prompt: "Use $linear-work-rhythm to tell me what to do today: which of my projects owe an update, what shipped but is not finished, and what is waiting on my decision."