Skip to content

Keep explicit-only pstack skills out of Codex startup context #26

Closed

Description

@SamuelZ12

pstack sets disable-model-invocation: true on its explicit-only skills. Codex 0.171.0 ignores that frontmatter flag, so it still includes those skills in the startup prompt.

I checked with codex debug prompt-input. Adding this file under a flagged skill removed its listing from the prompt:

# agents/openai.yaml
policy:
  allow_implicit_invocation: false

The skill still appeared enabled in skills/list, and a real Codex App Server turn with an explicit skill attachment loaded its instructions.

Could the mirror generate this metadata during sync for skills marked disable-model-invocation: true? That would give Codex the same explicit-only behavior while keeping the existing frontmatter for Pi and Claude Code.

Activity

  1. backnotprop commented on Nov 23, 2026

    @backnotprop
    Owner

    Thanks @SamuelZ12, good find. This is now on main in d164eec.

    All 57 skills marked disable-model-invocation: true now have an agents/openai.yaml with allow_implicit_invocation: false. The file comes from mirror-assets/codex-policy.py, which runs on every sync, so it follows the mark: a skill that loses the mark loses the file. I checked with codex debug prompt-input: a skill with the file leaves the startup prompt, and one without it stays.

    Run npx skills add backnotprop/pstack again to pick it up. Closing, but reopen if Codex still lists a skill it shouldn't.

  2. added a commit that references this issue on Nov 24, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions