Skip to content

Latest commit

 

History

History
268 lines (160 loc) · 12.3 KB

File metadata and controls

268 lines (160 loc) · 12.3 KB

Troubleshooting

General troubleshooting guide for agent skills in this repository. For skill-specific issues, see the Troubleshooting section in each skill's SKILL.md. Based on Anthropic's skill guide, Chapter 5.

Skill won't upload

"Could not find SKILL.md in uploaded folder"

Cause: File not named exactly SKILL.md (case-sensitive).

Solution: Rename the file to SKILL.md and verify with ls -la.

"Invalid frontmatter"

Cause: YAML formatting issue in the --- delimited block at the top of SKILL.md.

Common mistakes:

# Wrong - missing delimiters
name: my-skill
description: Does things

# Wrong - unclosed quotes
---
name: my-skill
description: "Does things
---

# Correct
---
name: my-skill
description: Does things
---

"Invalid skill name"

Cause: Name contains spaces or capitals.

# Wrong
name: My Cool Skill

# Correct
name: my-cool-skill

Skill doesn't trigger

Symptom: Skill never loads automatically when you ask a relevant question.

Quick checklist:

  • Is the description too generic? ("Helps with projects" won't trigger reliably)
  • Does it include trigger phrases users would actually say?
  • Does it mention relevant file types if applicable?

Debugging approach: Ask Claude "When would you use the [skill-name] skill?" - Claude will quote the description back. Adjust based on what's missing.

Solution: Revise the description field to include specific trigger phrases. See any of the skills in this repo for examples of good descriptions with explicit trigger phrases.

Skill triggers too often

Symptom: Skill loads for unrelated queries.

Solutions:

  1. Add negative triggers: Include "Do NOT use for X" in the description
  2. Be more specific: Replace generic descriptions ("Processes documents") with specific ones ("Processes PDF legal documents for contract review")
  3. Clarify scope: State what tool/service the skill targets

All skills in this repo already include negative triggers. See any SKILL.md for examples.

MCP connection issues

Symptom: Skill loads but Lenses MCP tool calls fail.

Checklist:

  1. Verify MCP server is connected

    • Cursor: Check MCP settings panel
    • Claude.ai: Settings > Extensions > Lenses
    • Claude Code: Check ~/.claude.json (user) or .claude/settings.json (project) for MCP server config
    • Should show "Connected" status
  2. Check authentication

    • Lenses API keys/tokens are valid and not expired
    • Proper permissions granted
    • Environment name matches what list_environments returns
  3. Test MCP independently (without the skill)

    • Ask Claude: "Use Lenses MCP to list environments"
    • If this fails, the issue is the MCP connection not the skill
  4. Verify tool names

    • Skill references the correct MCP tool names
    • Tool names are case-sensitive
    • Check the Lenses MCP documentation for the latest tool names

Instructions not followed

Symptom: Skill loads but Claude doesn't follow the workflow steps.

Common causes and fixes:

  1. Instructions too verbose - Keep instructions concise. Use bullet points and numbered lists. Move detailed reference material to references/ files (this repo already does this).

  2. Instructions buried - Put critical instructions at the top. Use ## Important or ## Critical headers. Repeat key points if needed.

  3. Ambiguous language - Be specific:

# Bad
Make sure to validate things properly

# Good
CRITICAL: Before calling create_project, verify:
- Project name is non-empty
- At least one team member assigned
- Start date is not in the past
  1. Model "laziness" - Add explicit encouragement in your prompt (not in SKILL.md):
Take your time to do this thoroughly.
Quality is more important than speed.
Do not skip validation steps.

Large context issues

Symptom: Skill seems slow or responses are degraded.

Causes:

  • Skill content too large (over 5,000 words)
  • Too many skills enabled simultaneously (more than 20-50)
  • All content loaded inline instead of using progressive disclosure

Solutions:

  1. Optimise SKILL.md size - Move detailed docs to references/. Link to references instead of inlining. Keep SKILL.md under 5,000 words. All skills in this repo are under 1,300 words.

  2. Reduce enabled skills - If you have many skills enabled, consider selective enablement. Only enable what you need for the current task.

Claude Code plugin install issues

/plugin install kafka-skills@lensesio fails with "marketplace not found"

Cause: The lensesio marketplace hasn't been added yet.

Solution: Run /plugin marketplace add lensesio/agentic-engineering-for-apache-kafka first, then retry the install. List configured marketplaces with /plugin marketplace list.

Skills not available after install

Cause: Plugin skills are namespaced under the plugin name. They auto-trigger from natural-language requests, but explicit slash invocation requires the namespace.

Solution: Use /kafka-skills:kafka-topic-audit (and similar for the other six). Confirm install succeeded with /plugin list - you should see kafka-skills@lensesio enabled.

claude plugin validate errors after editing the marketplace

Cause: Schema mismatch. As of Claude Code 2.1.x the validator rejects an unrecognised top-level description on the marketplace; it must live under metadata.

Solution: Move marketplace-level description (and version) under "metadata": { ... } per the official marketplace schema.

/plugin update kafka-skills fails with "Plugin not found"

Cause: When more than one marketplace is registered, the plain plugin name is ambiguous.

Solution: Use the namespaced form: /plugin update kafka-skills@lensesio.

Auto-update fails for the GitHub-hosted marketplace

Cause: Background updates run without your interactive git credential helper, so private repos and rate-limited GitHub access can fail.

Solution: Set GITHUB_TOKEN (or GH_TOKEN) in your shell profile. See Private repositories for the full list of supported providers.

For more, see Anthropic's Plugin marketplaces troubleshooting.

Cursor plugin install issues

/add-plugin cannot find the plugin

Cause: The plugin reference must point at the GitHub owner/repo, not at a .cursor-plugin/ subpath.

Solution: Use /add-plugin lensesio/agentic-engineering-for-apache-kafka. Cursor reads .cursor-plugin/marketplace.json at the repo root, so no subpath is needed.

Plugin installs but skills don't show up

Cause: The skill files are present but the agent has not reloaded them, or the per-skill folder layout is wrong.

Solution:

  1. Reload the Cursor window (Command Palette → Developer: Reload Window).
  2. Confirm each skill folder under your project's plugin install location contains an SKILL.md (not skill.md or README.md). The seven expected folders are kafka-topic-audit, kafka-consumer-lag, kafka-perf-review, kafka-schema-review, kafka-security-audit, kafka-connector-review, kafka-dlq-review.
  3. Confirm each SKILL.md has both name and description in YAML frontmatter - Cursor silently ignores any skill missing either field.

Skill loads but /<skill-name> slash command does nothing

Cause: Cursor exposes plugin skills as agent capabilities, not as standalone slash commands like Claude Code does.

Solution: Trigger the skill from a natural-language prompt ("Run a topic audit on staging") rather than typing /kafka-topic-audit directly. The plugin's logo and skill list appear in the Cursor Agent's plugin panel once the install succeeds.

Plugin doesn't pick up a new release

Cause: Cursor caches the marketplace catalog.

Solution: Remove and reinstall the plugin via the Cursor Marketplace UI, or run /add-plugin lensesio/agentic-engineering-for-apache-kafka again. A version bump in .cursor-plugin/plugin.json is required for Cursor to consider a new release distinct from the cached one.

For more, see Cursor plugin reference and Cursor Skills documentation.

Skills CLI install issues (npx skills)

npx skills add lensesio/agentic-engineering-for-apache-kafka reports "No skills found"

Cause: The CLI did not detect any SKILL.md in the discovery paths it knows about.

Solution: This repo declares its skills explicitly in the skills array in .claude-plugin/marketplace.json. Make sure your CLI version is recent enough to honour the plugin-manifest discovery format: npx skills@latest add lensesio/agentic-engineering-for-apache-kafka --list will force-fetch the latest CLI.

--skill <name> reports "skill not found"

Cause: The seven valid skill names are the kafka--prefixed forms in each SKILL.md frontmatter: kafka-topic-audit, kafka-consumer-lag, kafka-perf-review, kafka-schema-review, kafka-security-audit, kafka-connector-review, kafka-dlq-review.

Solution: Use one of the seven names above. The skills.sh listing may temporarily cache earlier unprefixed names - those names are stale.

Skill installs successfully but the agent doesn't load it

Cause: The CLI installs into the per-agent folder of whichever agents it auto-detected (for Cursor: .agents/skills/, for Claude Code: .claude/skills/, etc. - see the Supported Agents table). If the agent is configured to read from a different folder, it won't see the install.

Solution:

  1. Run npx skills list to see what was installed where.
  2. If the path is wrong, reinstall with an explicit -a <agent> flag, e.g. npx skills add lensesio/agentic-engineering-for-apache-kafka -a cursor -y.
  3. Confirm the target folder is on your agent's skill-discovery path. For Cursor, see Cursor Skills documentation.

Symlink errors on Windows or restricted filesystems

Cause: The CLI defaults to symlinking from each agent's skill folder to a canonical copy. Some Windows setups, WSL mounts and CI containers don't allow symlinks for the calling user.

Solution: Re-run with --copy to use independent file copies instead: npx skills add lensesio/agentic-engineering-for-apache-kafka --copy -y.

Permission denied writing to the install folder

Cause: The per-agent skill folder (e.g. ~/.cursor/skills/ for global, .agents/skills/ for project) is owned by another user or mounted read-only.

Solution: Check ownership with ls -la. For project-scoped installs, run npx skills add from a working tree you own. For global installs, ensure your shell user owns the per-agent global path (the Supported Agents table lists each path).

For more, see the Skills CLI README and the Agent Skills Specification.

Kafka-specific issues

Environment name not recognised

Cause: The environment name passed to the skill doesn't match any environment in Lenses.

Solution: Run list_environments via Lenses MCP to see available environment names. Environment names are case-sensitive.

No topics / consumer groups / connectors returned

Cause: The environment exists but has no resources or the Lenses agent has restricted permissions.

Solution: Verify via the Lenses UI that the expected resources exist. Check that the Lenses service account has read access to the relevant resources.

Schema Registry not available

Cause: Schema Registry is not configured in the Lenses environment.

Solution: This is a valid finding - skills like kafka-schema-review will report this as a governance gap rather than treating it as an error.