Skip to content

fix(skills): remove language-specific convention leakage#6

Merged
sourcehawk merged 1 commit into
mainfrom
fix/genericize-language-leakage
May 29, 2026
Merged

fix(skills): remove language-specific convention leakage#6
sourcehawk merged 1 commit into
mainfrom
fix/genericize-language-leakage

Conversation

@sourcehawk
Copy link
Copy Markdown
Owner

@sourcehawk sourcehawk commented May 29, 2026

Description

Two workflow skills illustrated stack-agnostic principles using Go-only conventions, which steer an agent wrong when the plugin runs in a non-Go repo. This rewords those illustrations to stack-neutral language so the skills read the same in a Go repo, a Next.js app, or a Python service — the test CLAUDE.md sets for every skill.

Changes

  • testing-a-feature: replace Go's Test-prefix PascalCase test names (TestStore_PersistsMultipleSessionsAcrossRestart) with plain intent phrases written in the project's own naming convention; generalize -race to "whatever race/thread detector the toolchain provides"; swap nil/slice for "absent"/"collection".
  • planning-a-feature: drop panic("unimplemented"), "Go signatures, TS types", and "unexported package" from the stub-realization examples in favor of stack-neutral phrasing.

Testing

No behavior or control flow changed — only illustrative prose. Verified by re-running the language-leakage grep across all skill bodies (now clean of Go-convention prescriptions; remaining hits are idioms like "slice of the problem" and generic unit terms like "package") and reading the diff cold to confirm each principle stayed intact.

The testing-a-feature and planning-a-feature skills illustrated
project-agnostic principles with Go-only conventions, which steer
agents wrong in non-Go repos:

- testing-a-feature prescribed Go's Test-prefix PascalCase test names,
  the `-race` flag, and `nil`/`slice` vocabulary.
- planning-a-feature hardcoded `panic("unimplemented")`, "Go signatures,
  TS types", and "unexported package" in its stub-realization examples.

Reword each to state the principle in stack-neutral terms so the skills
read the same in a Go repo, a Next.js app, or a Python service.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 29, 2026 20:19
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes language-specific (Go, TypeScript) examples and vocabulary from two skill files to comply with the project rule that skills must remain stack-agnostic. The edits only change illustrative wording; no behavior, control flow, or contract labels change.

Changes:

  • Replaces Go-flavored terms (nil, slice, -race) with neutral equivalents (absent, collection, "race/thread detector the toolchain provides") in testing-a-feature.
  • Replaces Go-style test name examples with quoted intent statements deferring to the project's naming convention.
  • Rewrites contract realization examples in planning-a-feature to drop panic("unimplemented"), Go signatures, TS types, and "unexported package" in favor of neutral phrasing.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
skills/testing-a-feature/SKILL.md Genericizes boundary/edge-case vocabulary, test-name examples, and race-detector guidance.
skills/planning-a-feature/SKILL.md Rewords the two stub-realization bullets to remove Go/TS-specific examples.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sourcehawk sourcehawk merged commit 6d4a1c5 into main May 29, 2026
1 check passed
@sourcehawk sourcehawk deleted the fix/genericize-language-leakage branch May 29, 2026 20:24
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.

2 participants