Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/konghayao/peri/langfusenpx skills add KonghaYao/peri --skill langfusegit clone --depth 1 https://github.com/KonghaYao/periWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/konghayao/peri/langfuse)<a href="https://agentmods.dev/skills/konghayao/peri/langfuse"><img src="https://agentmods.dev/badge/skills/konghayao/peri/langfuse.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00100 | $0.05031 |
| Opus 5 | $0.00050 | $0.02516 |
| Sonnet 5 | $0.00020 | $0.01006 |
| Haiku 4.5 | $0.00010 | $0.00503 |
Grade A, and why
langfuse scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- Bash(curl *langfuse.com/*) How it starts
The opening of the file, as written. The whole thing — 410 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Langfuse
1. Langfuse API via CLI
Use langfuse-cli to interact with the full Langfuse REST API. Run via bunx (auto-loads .env):
bunx langfuse-cli api --help # 列出所有 resources
bunx langfuse-cli api <resource> --help # List actions for a resource
bunx langfuse-cli api <resource> <action> --help # Show args for an action
bunx langfuse-cli api <resource> <action> [options] # Execute
Credentials
bunx automatically loads .env. Ensure it contains:
LANGFUSE_PUBLIC_KEY=pk-lf-...
LANGFUSE_SECRET_KEY=sk-lf-...
LANGFUSE_HOST=https://cloud.langfuse.com # Required
If credentials are missing, ask the user to add them to .env. Do not ask to paste keys in chat.
CLI Preflight and Query Integrity
Before attributing missing or malformed data to application behavior:
- Confirm
LANGFUSE_HOSTorLANGFUSE_BASE_URLis set, credentials are present, and the selected host returns JSON rather than an HTML fallback. Never print credentials or authorization headers. - Discover the installed CLI schema with
bunx langfuse-cli api --helpand resource/action--help; resource names vary by CLI version, so do not assumeobservations-v2sor another historical alias exists. - For list endpoints, inspect pagination metadata and fetch every required page. The public API page limit is 100; a single page is not proof of completeness.
- Record the requested field projection. If input/output fields were not requested or returned by the selected endpoint, report them as not inspected, not null or missing.
- Stop business-level diagnosis on host/auth/schema failure. A 401, unsupported resource, HTML response, or truncated page set is a query precondition failure, not evidence about the trace producer.
CLI Tips
- Use
--jsonfor machine-readable output - Use
--curlto preview HTTP request without executing - Discover resources/actions with
--help; do not hard-code version-specific v2 aliases - Prefer the bundled scripts for traces and observations because they implement the current public endpoints and pagination
What ships with it
19 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/cli.md 1.1 KB
- references/error-analysis.md 4.5 KB
- references/instrumentation.md 8.7 KB
- references/judge-calibration.md 11 KB
- references/prompt-migration.md 7.6 KB
- references/sdk-upgrade.md 7.7 KB
- references/skill-feedback.md 2.3 KB
- references/user-feedback.md 4.3 KB
- scripts/analyze.ts 20 KB runs code
- scripts/daily-report.ts 6.4 KB runs code
- scripts/lib.test.ts 7.2 KB runs code
- scripts/lib.ts 23 KB runs code
- scripts/prompt-breakdown.ts 4.3 KB runs code
- scripts/session-analyze.ts 5.8 KB runs code
- scripts/trace-messages.ts 5.5 KB runs code
- scripts/trace-search.ts 5.3 KB runs code
- scripts/trace-tokens.ts 5.4 KB runs code
- scripts/trace-tree.ts 2.7 KB runs code
- scripts/traces-list.ts 4.3 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 410 lines · 100 tokens per session scan A 9b26f3f64fe1
langfuse is a skill published in the GitHub repository KonghaYao/peri (160 stars, last pushed today), licensed Apache-2.0. It adds 100 tokens to every session and 5,031 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
qa-testing
Verify your work by actually operating the app or website you changed, instead of assuming it works. Strongly recommended whenever you build, modify, or debug a web app, website, or desktop GUI app. Drive real browsers with the agent-browser CLI and native desktop apps with the cua-driver CLI. These are installed on…
plugin-creator
Create and scaffold plugin directories for Codex with a required .codex-plugin/plugin.json, optional plugin folders/files, valid manifest defaults, and personal-marketplace entries by default. Use when Codex needs to create a new personal plugin, add optional plugin structure, generate or update marketplace entries…
imagegen
Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…
babysit-pr
Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…
skill-creator
Create or update a Codex skill with appropriately scoped instructions and any needed supporting resources.
codex-pr-body
Update the title and body of one or more pull requests.