Skip to content

Decide Whether CODESTYLE.md's New PowerShell Section Is Packaged as a powershell-codestyle Skill #4403

Backlog

Description

@ptr727

Decision needed (away-mode backlog burndown, 2026-11-23)

Question: Should the PowerShell section #1748 adds to CODESTYLE.md also be packaged as a powershell-codestyle Skill, the way the .NET, Python, and Shell sections are packaged as dotnet-codestyle, python-codestyle, and shell-codestyle?

This is the one part of #1748 its recorded answer does not settle. The 2026-11-01 answer on #1748 chose option 1, a short CODESTYLE.md section covering when PowerShell is allowed, the PSScriptAnalyzer defaults plus the settings file's documented exclusions, and the local invocation, with one sentence on Windows batch. It names no Skill. The 2026-09-11 answer on #1153 item 1 had declined "a PowerShell section and Skill", and the later #1748 answer reversed only the section half. No committed rule requires every language section to have a Skill.

Options, recommended first:

  1. No Skill. The section stays self-contained in CODESTYLE.md (recommended). The section is short and holds its rules whole, so a Skill would only repeat it. Both recorded answers are honored as written. AGENTS.md names which language sections are packaged rather than implying all of them are. Effect on the work: none. The CODESTYLE.md Routes .NET, Python and Shell, and Not the PowerShell the Fleet's Own CI Gates #1748 group, branch burndown/codestyle-powershell-section, lands the section without a Skill, and this issue closes.
  2. Add a powershell-codestyle Skill under .agents/skills/, per skill-lifecycle, carrying the section as a generated include and routed from AGENTS.md. This matches the other three languages. It costs a new carried Skill, its generated copies, and its trigger text. Effect on the work: the CODESTYLE.md Routes .NET, Python and Shell, and Not the PowerShell the Fleet's Own CI Gates #1748 group still lands the section first, and a follow-up pull request adds the Skill and the AGENTS.md routing after it merges.

Blocks: none. The #1748 group proceeds on option 1's shape, which option 2 builds on rather than undoes.

Related: #1748, #1153.

Activity

  1. added
    decision
    on Nov 24, 2026
  2. ptr727 commented on Nov 24, 2026

    @ptr727
    OwnerAuthor

    An input to this decision, from the 2026-11-24 backlog-burndown run's PR-body sweep.

    PR #4409 listed one pre-existing gap under "Pre-existing findings, not filed" that bears on this question. Re-checked on origin/main:

    • CODESTYLE.md "Analyzer Diagnostics and Suppressions" prefers, first, "an in-code annotation on the specific symbol, with a justification, in the language's attribute/comment form". It then says the per-language mechanics "are in the Skill a language section names, where it names one".
    • The "PowerShell" section names no Skill and states no in-code form. It gives only the root PSScriptAnalyzerSettings.psd1 exclusions. So the preferred, narrowest suppression scope has no stated mechanics for PowerShell anywhere a carrier can read.

    Whichever option is chosen, it settles where that one rule goes:

    • Under option 1 (no Skill), the CODESTYLE.md "PowerShell" section itself names the in-code form, [Diagnostics.CodeAnalysis.SuppressMessageAttribute('<RuleName>', '<target>', Justification = '<reason>')] on the function or parameter.
    • Under option 2, the new powershell-codestyle Skill carries it, as the other language Skills carry theirs.

    Recorded here so the gap is not lost once this decision closes. The answer's implementation covers it.

  3. ptr727 commented on Nov 25, 2026

    @ptr727
    OwnerAuthor

    Answered by the maintainer (decision triage, 2026-11-25): no powershell-codestyle Skill, and the section states the in-code suppression form.

    CODESTYLE.md "PowerShell" stays self-contained. It gains one sentence naming the in-code suppression form, [Diagnostics.CodeAnalysis.SuppressMessageAttribute('<RuleName>', '<target>', Justification = '<reason>')] on the function or parameter, which the general suppression rule prefers over every other scope. AGENTS.md keeps listing PowerShell as not packaged. The issue stays open as work until that edit merges.

  4. removed
    decision
    on Nov 25, 2026
  5. ptr727 commented on Nov 25, 2026

    @ptr727
    OwnerAuthor

    Released (2026-11-25): this group merged into develop as #4457 and its branch and worktree were cleaned up, so the claim holds no files.

    Backlog burndown claim (away run 2026-11-25, round 1, refill group C, dispatched 2026-11-25 to the slot group D freed when #4449 merged): branch burndown/codestyle-ps-suppress-pycheck, issues #4403 and #4407.

    Predicted files:

    The generated copies scripts/build_dist.py writes from the Skill follow.

    Any other group needing one of these files waits for this branch to merge.

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