Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 3.01 KB

File metadata and controls

39 lines (24 loc) · 3.01 KB

Agent Instructions

Adding or Improving a Skill Use Case

  • Only add a use case if it beats the docs. If an agent can already serve the user by fetching the Langfuse docs, add nothing. Reserve new content for where docs fall short and the agent needs extra context. Every addition is maintenance surface and dilutes the skill.

  • You should almost never touch the top-level frontmatter description in SKILL.md. It only controls whether the skill is invoked, and a user asking about a use case already mentions Langfuse or evaluation — which triggers it. Keep it short; in-skill routing handles the rest.

  • Put "when to use" guidance in exactly two places: a one-line entry in the ## Use case specific references list in SKILL.md, and the description in the reference file's frontmatter. Nowhere else — no prose routing section, no "when to use" section in the reference body. A reference body is read only after the agent already chose to open it, so routing text there is dead weight.

  • In the reference file, less is more. Add only what's useful or what an agent couldn't infer on its own.

  • Never commit code. Link to the relevant Langfuse docs page so the agent fetches current code; use pseudo-code only for logic-specific bits. Committed code goes stale.

  • Be cautious with allowed-tools. A tool not in the list still works — the user just grants permission the first time. Only auto-allow commands users would find a no-brainer (today: read-only langfuse-specific commands only). A risky auto-allow can make people hesitate to install the skill at all.

Langfuse Skill Path Changes

When changing the path to any Langfuse skill in this repo, you must also update the corresponding path reference in the CLI repo so that it points to the new location. Failing to do so will break the CLI's ability to resolve the skill.

Plugin Version Bumps

The repo ships as a plugin to two marketplaces, each with its own manifest:

  • .claude-plugin/plugin.json (Claude Code)
  • .cursor-plugin/plugin.json (Cursor)

Both manifests have a version field and must stay in lockstep — always bump them together to the same value, in the same PR as the change.

When to bump (follow semver):

  • Patch (1.0.01.0.1): bug fixes in a skill, clarifications to skill instructions, small content corrections.
  • Minor (1.0.01.1.0): adding a new skill, adding meaningful new capability to an existing skill, non-breaking behavior changes.
  • Major (1.0.02.0.0): removing a skill, renaming a skill in a way that breaks /skill-name invocations, or any change that breaks how existing users interact with the plugin.

When not to bump:

  • Typo fixes, formatting, comment-only changes.
  • Changes to repo tooling, CI, or files outside the published skills (e.g. this agents.md, READMEs, GitHub workflows).
  • Internal refactors that don't change observable skill behavior.

If unsure whether a change warrants a bump, err on the side of bumping patch.