Skip to content

docs(skill-quality): check-6 defers to repo markdownlint config; record injection-block decision - #1173

Merged
kyle-sexton merged 1 commit into
mainfrom
fix/1153-skill-gate-ci-injection-lint
Jul 23, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
fix/1153-skill-gate-ci-injection-lint

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Summary

Resolves the F3 finding from inbox item 20260723-090435-melodic-session-plugins-audit as a re-scope: the finding is a measurement artifact, verified three ways. Reviewers should read the re-scope before the diff.

F3's premise ("2 of 3 marketplace skills fail the marketplace's own gate → the gate isn't in CI") is false in this repo:

  1. The CI gate already exists. skill-quality-gate (.github/workflows/ci.yml) runs check-changed-skills.sh origin/$BASE_REF on every PR, invoking the skill-quality checker over each changed skill. The "run the gate in CI over changed skills" ask was already satisfied.
  2. Skill markdown IS gated in CI — by the hygiene lane, under repo config. check-changed-skills.sh deliberately skips markdownlint (CHECK_SKILL_SKIP_MARKDOWNLINT=1, documented division of labor); the hygiene lane lints all repo markdown incl. SKILL.md under .markdownlint-cli2.jsonc. (It caught a real MD012 on PR feat(skill-quality): actionable guidance for gating a marketplace-installed skill #1167 this session.)
  3. planning:interview passes under repo config — skill-quality:check interview with the repo's config → 0 errors, 2 warnings (264-line hub soft-cap; no Use when: phrasing). The producer's MD041/MD013/MD060 FAILs are exactly the rules .markdownlint-cli2.jsonc disables — i.e. from linting without repo config.

What ships (doc-only): a check SKILL.md gotcha that encodes the deliberate decision the report asked for and prevents the recurring false alarm:

  • Check 6 (markdownlint) defers to the consuming repo's markdownlint config, discovered from the cwd. Running from outside the repo, or against a plugin-cache install (no config), applies markdownlint DEFAULTS → spurious MD013/MD041/MD060 on skills that pass in-repo. This is the usual "shipped skill fails the gate" report.
  • Injection blocks are not special-cased: a declared shell: block with long lines is MD013-subject like any content; whether it fails is the consumer markdownlint config's call, never overridden by this gate.
  • Documents this marketplace's CI division of labor (skill-quality gate skips markdownlint; hygiene lane lints markdown under repo config).

Deferred (noted, not bundled): the two advisory WARNs on planning:interview (264-line hub → progressive-disclosure split; add Use when: phrasing) are real but optional, live in a different plugin, and a description edit risks trigger drift. Left for planning-plugin maintenance; happy to file if wanted.

skill-quality 0.10.1 (doc-only; no behavior change).

Test plan

  • Repro: CHECK_SKILL_SKILLS_ROOT=plugins/planning/skills check-skill.sh interview from repo root → PASS (0 errors, 2 warnings) — confirms the producer's FAILs were a wrong-config artifact.
  • Self-check: skill-quality:check check PASS (0 errors, 0 warnings); SKILL.md 141/500 lines.
  • markdownlint-cli2 (repo config) clean on both changed files.

Related

Closes #1153

🤖 Generated with Claude Code

…rd injection-block decision

Addresses #1153, which is a measurement artifact: the report's "2 of 3
marketplace skills fail the marketplace's own gate" came from running the
checker without the repo's .markdownlint-cli2.jsonc (which disables MD013/
MD041/MD060) — the exact rules it saw fail. Under repo config those skills
pass.

- SKILL.md gotcha: check 6 (markdownlint) defers to the consuming repo's
  markdownlint config, discovered from the cwd. Running from outside that
  repo, or against a plugin-cache install (no config), applies markdownlint
  DEFAULTS and produces spurious MD013/MD041/MD060 failures on skills that
  pass in-repo. This is the usual "shipped skill fails the gate" false alarm.
- Records the deliberate decision the report requested: injection blocks are
  NOT special-cased — a declared shell: block with long lines is MD013-subject
  like any content, and whether it fails is the consumer markdownlint config's
  call, never overridden by this gate.
- Documents this marketplace's CI division of labor: the skill-quality gate
  skips markdownlint (CHECK_SKILL_SKIP_MARKDOWNLINT=1), the hygiene lane lints
  all repo markdown incl. SKILL.md under repo config.

No behavior change. The CI gate over changed skills (skill-quality-gate job)
already exists — the report's "run the gate in CI" ask was already satisfied.

skill-quality 0.10.1.

Closes #1153

Co-Authored-By: Claude Fable 5 <[email protected]>
@claude

claude Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 1m 31s —— View job


PR Review

  • Gather context and understand the request
  • Read changed files
  • Review diff for correctness, security, and alignment
  • Post findings

Summary

Doc-only patch that encodes the deliberate markdownlint config-discovery behavior and injection-block decision into the check skill's Gotchas surface, bumps to 0.10.1, and adds a CHANGELOG entry. The re-scope argument in the PR body is well-documented and convincing — the "gate not in CI" claim is falsified three ways.

The changes are correct, safe, and aligned with the project's design rules. One minor non-conformance to flag.


Findings

CHANGELOG.md — non-standard Keep a Changelog section heading

CHANGELOG.md line 8: ### Documentation

The file declares conformance to Keep a Changelog, which defines exactly six section types: Added, Changed, Deprecated, Removed, Fixed, Security. Every existing entry in this file uses one of the standard headings (### Added, ### Changed, ### Fixed). The ### Documentation heading is non-standard and breaks that consistency.

This change adds new gotcha prose to an existing skill (SKILL.md). The closest standard fit is ### Changed — the documented behavior of check 6 and the CI division of labor are clarified/extended, not wholly new. ### Added is defensible if the framing is "new gotcha entry added."

Worth fixing before merge to keep the format conformant. Fix this →


What looks good

  • SKILL.md gotcha content — the new bullet at lines 107–119 is accurate, well-structured, and includes all three sub-points the PR promises: config-discovery behavior, injection-block non-special-casing, and CI division of labor. The "This is the usual cause of…" framing directly addresses the recurring false-alarm pattern.
  • Injection-block decision is correctly stated as the consumer config's call (not this gate's), with no override. Consistent with the declared non-behavior.
  • Version bump — 0.10.0 → 0.10.1 is correct SemVer for a doc-only change.
  • No behavior change — the script and all twenty checks are untouched. The CHANGELOG entry correctly labels this "No behavior change."
  • Plugin-form safety — no new file references, no hardcoded paths, no PII. The gotcha's shell examples use ${CLAUDE_PLUGIN_ROOT} correctly.
  • Self-check pass (skill-quality:check check, 0 errors, 0 warnings) reported in test plan — the added prose doesn't trip any of the gate's own rules.

@claude

claude Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 1m 0s —— View job


Security Review — PR #1173

  • Gather context and read PR diff
  • Review changed files for security issues
  • Post findings

No security issues found.

This is a documentation-only patch (version bump + prose additions). I reviewed all three changed files against the full threat model:

File Change Security assessment
plugin.json version string 0.10.0 → 0.10.1 No impact — metadata only, no executable surface
CHANGELOG.md +18 lines of prose documenting check-6 behavior Static Markdown text; no code, no secrets, no injection surface
SKILL.md (Gotchas) +13 lines documenting markdownlint config-discovery and the injection-block decision Documentary only; the CHECK_SKILL_SKIP_MARKDOWNLINT=1 mention describes an existing env var, does not set or introduce it

Checked specifically:

  • No shell scripts modified — no command injection, path traversal, or unsafe variable expansion introduced.
  • No GitHub Actions workflows modified — no pull_request_target/workflow_run patterns, no script injection via github context, no permission widening.
  • No credentials or secrets — none present in the diff.
  • No dependency pin changes — version field is plugin metadata, not a package pin.
  • No trust delegation — no new MCP servers, no remote endpoints, no third-party action references.
  • No access-control or permission changes — scope of the plugin's userConfig is unchanged.

The mention of shell: injection blocks in the SKILL.md addition is purely explanatory prose about how markdownlint rules apply to declared shell-injection blocks; it does not alter the gate's behavior or introduce any new execution path.

@kyle-sexton

Copy link
Copy Markdown
Member Author

Pre-merge CI classification — all required checks green, 0 failing / 0 pending.

Doc-only re-scope (F3 falsified — CI gate already exists, skill markdown gated by the hygiene lane, planning:interview passes in-repo). Merging per the standing drive-to-MERGED directive.

@kyle-sexton
kyle-sexton merged commit 9d2fa61 into main Jul 23, 2026
1 check passed
@kyle-sexton
kyle-sexton deleted the fix/1153-skill-gate-ci-injection-lint branch July 23, 2026 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

skill-quality + planning: run the skill gate in CI over changed skills; injection-block lint decision; interview lint fixes

1 participant