Skip to content

feat: rename style_guide_path to additional_instructions_path#5

Merged
alexanderlhicks merged 2 commits into
mainfrom
feat/rename-additional-instructions
May 19, 2026
Merged

feat: rename style_guide_path to additional_instructions_path#5
alexanderlhicks merged 2 commits into
mainfrom
feat/rename-additional-instructions

Conversation

@alexanderlhicks

Copy link
Copy Markdown
Owner

The input was always "a file the LLM should attend to alongside the diff", but its name and prompt template hard-wired it to style-violation framing. Generalizing the surface unlocks deployment-supplied progress trackers, framework cross-checks, doc/wiki references, etc., reusing the same single-agent slot.

Changes:

  • action.yml: rename input. INPUT_STYLE_GUIDE_PATH env var renamed to INPUT_ADDITIONAL_INSTRUCTIONS_PATH.
  • summary.py: rename internals (style_guide_* → instructions_*, check_style_adherence → apply_additional_instructions). Generalize the comment section label from "🎨 Style Guide Adherence" to "📋 Additional Analysis".
  • prompts/check_style.md → prompts/additional_instructions.md with generalized framing. The new template tells the LLM the deployment- supplied content may ask for style violations, progress assessment, doc cross-checks, or anything else; output shape is dictated by the instructions themselves, not by the template.
  • .github/workflows/ci.yml: update prompt-template existence checks.
  • tests: rename test_check_style_adherence_returns_none_without_style_guide.
  • README: update docs and the prompt-template inventory.

Style-guide use is unaffected for consumers who pass CONTRIBUTING.md (or any prose style guide): the file content is now interpreted by a more permissive prompt, but a clearly-framed style guide still yields a violation listing.

alexanderlhicks and others added 2 commits May 19, 2026 16:13
The input was always "a file the LLM should attend to alongside the diff",
but its name and prompt template hard-wired it to style-violation framing.
Generalizing the surface unlocks deployment-supplied progress trackers,
framework cross-checks, doc/wiki references, etc., reusing the same
single-agent slot.

Changes:
- action.yml: rename input. INPUT_STYLE_GUIDE_PATH env var renamed to
  INPUT_ADDITIONAL_INSTRUCTIONS_PATH.
- summary.py: rename internals (style_guide_* → instructions_*,
  check_style_adherence → apply_additional_instructions). Generalize the
  comment section label from "🎨 Style Guide Adherence" to
  "📋 Additional Analysis".
- prompts/check_style.md → prompts/additional_instructions.md with
  generalized framing. The new template tells the LLM the deployment-
  supplied content may ask for style violations, progress assessment,
  doc cross-checks, or anything else; output shape is dictated by the
  instructions themselves, not by the template.
- .github/workflows/ci.yml: update prompt-template existence checks.
- tests: rename test_check_style_adherence_returns_none_without_style_guide.
- README: update docs and the prompt-template inventory.

Style-guide use is unaffected for consumers who pass CONTRIBUTING.md (or
any prose style guide): the file content is now interpreted by a more
permissive prompt, but a clearly-framed style guide still yields a
violation listing.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Three pre-existing issues surfaced by CI on the rename PR; none are
caused by the rename but they block the lint step.

- summary.py:125 (E701): split `if not file_diff.strip(): continue`
  onto two lines.
- summary.py:823 (F541): drop the leading `f` from an f-string that
  has no placeholders.
- action.yml: declare `MERGE_BASE` in the summary.py step's env block.
  The variable is already exported by the preceding `Generate diff`
  step via `GITHUB_ENV`, so this is a runtime no-op; the explicit
  declaration is required by the CI env-var consistency check, which
  only inspects the step-local env map.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@alexanderlhicks alexanderlhicks merged commit fdcca38 into main May 19, 2026
3 checks passed
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.

1 participant