Skip to content

Clarify Whether the Shell Codestyle Requires a Header Comment #3668

Closed

Description

@ptr727

Behavior

The shell-codestyle Skill bullet "set -Eeuo pipefail, before the first command the script runs" says "A header comment sits above it, as the hub's own repo-config/configure.sh and host-setup/ scripts do." Read alone, that sentence is ambiguous. It can mean a header comment is required above the set line, or it can mean that where a header exists, the set line may follow it.

A reviewer bot read it both ways on one downstream change:

  1. On the first round it reported a script opening #!/bin/bash, a blank line, then set -Eeuo pipefail as missing "the required why-comment".
  2. Once a one-line purpose comment was added, the next round reported that comment as a forbidden file summary under comment-and-doc-style "No file, class, or type header summary blocks", and asked for a strict-mode rationale instead.

The Skill's description also calls set -Eeuo pipefail "the mandatory ... header", using "header" for the set line itself, which adds to the ambiguity.

Fix direction

State the rule unambiguously in the carried text. For example: "No header comment is required. Where a script has one, set -Eeuo pipefail may follow it, as long as no command runs before the set line." Also say how this rule relates to the no-file-summary rule, so that a reviewer does not ask for a comment the other rule forbids.

Activity

  1. ptr727 commented on Nov 13, 2026

    @ptr727
    OwnerAuthor

    Backlog burndown claim, round 2 (2026-11-13), away run, scope develop. Branch burndown/codestyle-rule-fixes, group: #4015, #3668. Tier: frontier (carried CODESTYLE.md and codestyle skills).

    Predicted files:

    • CODESTYLE.md ("Command-Line Arguments")
    • .agents/skills/dotnet-codestyle/references/conventions.md
    • .agents/skills/dotnet-codestyle/SKILL.md
    • .agents/skills/shell-codestyle/SKILL.md
    • .agents/skills/python-codestyle/SKILL.md
    • .github/skills/dotnet-codestyle/references/conventions.md
    • .github/skills/dotnet-codestyle/SKILL.md
    • .github/skills/shell-codestyle/SKILL.md
    • .github/skills/python-codestyle/SKILL.md
    • .claude-plugin/fleet-skills/skills/dotnet-codestyle/references/conventions.md
    • .claude-plugin/fleet-skills/skills/dotnet-codestyle/SKILL.md
    • .claude-plugin/fleet-skills/skills/shell-codestyle/SKILL.md
    • .claude-plugin/fleet-skills/skills/python-codestyle/SKILL.md
    • .claude-plugin/fleet-skills/.source-digests/dotnet-codestyle
    • .claude-plugin/fleet-skills/.source-digests/shell-codestyle
    • .claude-plugin/fleet-skills/.source-digests/python-codestyle
    • catalog/snippets/configs/vscode-tasks-python.json (the same uv pip install venv pattern, item 4's class sibling)
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