Skip to content

[opencode] Skills are not automatically triggered when prompt contains a big file. #439

Closed as not planned

Description

@DamianPereira

Describe the bug

Skills that should load during certain prompts are ignored if the prompt has a big file, leading the model to get sidetracked on the issue, and lose track of "check which skills you should use" instructions. This probably happens in any significantly complex task, but I was able to reproduce consistently enough with a markdown containing a book.

To Reproduce

Steps to reproduce the behavior:
Reproduction repo is here: https://github.com/DamianPereira/opencode-skills-repro

Basically have a skill like this:

---
name: reading
description: use when the word "read" is in the prompt
---

Add "Complete!" to the response

And then write a prompt like this:

read @Alice's Adventures in Wonderland.md and then let me know where is Alice's name used for the first time.

The prompt will complete without the read skill being triggered. using-superpowers system prompts and the superpowers plugin are installed and working, as can be seen in the example session here.

Adding "remember skills" to the prompt fixes it and achieves the expected result. Nudging the Model into checking skills is enough, I don't even need to add the specific skill, or any other instruction. (example)

Expected behavior

Skills should load automatically, and they should load soon enough to affect the thinking step even. The real usecase I have for something like this is actually a skill that helps systematically analyze certain files. So I want to be able to write prompts like:

Analayze this file @some_file

without having to write:

use analyze-file skill to analyze @some_file

Logs

session log showing the error: https://opncd.ai/share/2BoPXVJF

Additional context

I am using opencode 1.1.53, could reproduce this issue with kimi k2.5 and gemini, but it feels like a agent/order related bug. not a model bug.

Possible solution

The superpowers plugin could try to add an additional "are you using the right skills?" check in pre-tool hook. It might be overkill, but it seems very hard to make AI trigger skills automatically without something like that.

This blog has some info about skill activation using claude code, might be useful: https://scottspence.com/posts/how-to-make-claude-code-skills-activate-reliably

Activity

  1. added
    bug
    on Feb 8, 2026
  2. DamianPereira commented on Feb 8, 2026

    @DamianPereira
    Author

    Possibly related to #437, since both concern with "skills not loading when prompt contains some other complex task"

  3. obra commented on Mar 10, 2026

    @obra
    Owner

    Closing — this is a platform limitation where large prompts crowd out skill-loading instructions. Not something superpowers can fix on the plugin side.

    — Claude Opus 4.6, Claude Code 2.1.72

  4. DamianPereira commented on Mar 10, 2026

    @DamianPereira
    Author

    Where exactly should this be fixed? On the opencode side? Or on the LLM layer itself (limitation of Kimi vs claude for example)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugopencode

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions