Skip to content

skill-quality: enforce shell declaration (or portability) for skills with dynamic-context injections #865

Closed

Description

@kyle-sexton

Context

A fleet census (2026-07-21) found 64 skills across 26 plugins using ! injections with bash-only constructs and no shell: frontmatter declaration — silently broken on a Windows host without Git Bash, where injections fall through to the PowerShell tool. The sweep fix is PR #860; nothing prevents regression.

Task

Add a check to check-skill.sh: when a SKILL.md contains !`command` or ```! blocks, require either a shell: frontmatter declaration or (harder to detect — may warrant WARN-only) shell-portable commands. Also consider checking the pinned defensive-fallback convention (|| echo on every injected command) from plugins/playbooks/skills/skill-authoring/reference/precompute-context.md.

Acceptance

  • New check with self-test coverage in check-skill.test.sh (matching existing check style), FAIL for missing shell: with non-portable syntax or WARN per maintainer judgment; documented in the check skill's reported checks.

Activity

  1. kyle-sexton commented on Jul 21, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI during triage.

    Triage → briefed, NOT status: ready (ready-gate — hold). Regression-prevention check for a real consequence class (fleet census 2026-07-21: 64 skills across 26 plugins with bash-only ! injections and no shell: → silently broken on a Windows host without Git Bash, injections falling through to the PowerShell tool).

    Decision defaulted: FAIL for the deterministic case — a SKILL.md containing !`cmd` / ```! blocks and NO shell: frontmatter — and WARN for the harder command-portability detection (and for the || echo defensive-fallback convention) — veto before merge. The missing-shell: signal is cheap and deterministic (hard FAIL warranted); statically proving command portability is not, so WARN-only there, matching the reporter's own note.

    READY-GATE — blocked by PR #860 merging. PR #860 (open) is the sweep that adds shell: to the 64 existing offenders; if this FAIL check lands first, CI goes red on those unfixed skills (and on this issue's own PR). Do NOT route ready until #860 merges — promote then. No native blocked-by edge recorded: #860 is a PR closing no issue, so the dependency is tracked here.

    Acceptance: new check in check-skill.sh with self-test coverage in check-skill.test.sh matching existing check style; documented in the check skill's reported checks. Priority medium (skill-quality outside the priority set; pipeline-machinery ordering; consequence noted for sub-sorting). Type Task.

  2. added theissue type on Jul 21, 2026
  3. kyle-sexton commented on Jul 21, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI during triage.

    Unblocked → promoted to status: ready. Ready-gate cleared: PR #860 merged 2026-07-21T16:57:41Z (the sweep adding shell: to the 64 offending skills), so this issue's new FAIL check no longer red-CIs unfixed skills. The decision-defaulted recommendation stands (FAIL for the deterministic missing-shell: case; WARN for command-portability detection) — veto before merge.

  4. added
    status: ready
    on Jul 21, 2026
  5. added a commit that references this issue on Jul 21, 2026
    26d0db7
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

    status: ready

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions