Skip to content

Cross-reference refactor, test, and document skills from implement; add refactor guidance to test and review#2978

Merged
afranken merged 4 commits intomainfrom
copilot/add-cross-references-instructions
Feb 26, 2026
Merged

Cross-reference refactor, test, and document skills from implement; add refactor guidance to test and review#2978
afranken merged 4 commits intomainfrom
copilot/add-cross-references-instructions

Conversation

Copy link
Contributor

Copilot AI commented Feb 25, 2026

Skills were siloed — implement ran in isolation without triggering test, document, or refactor, leading to incomplete feature work and agents piling on workarounds instead of cleaning up existing code.

Changes

implement/SKILL.md

  • Added explicit 4-step Skill Workflow: refactor (pre-flight cleanup) → implementtestdocument
  • Added blockquote: prefer invoking refactor over adding complexity to work around existing code
  • Replaced vague checklist items with explicit skill invocation instructions

test/SKILL.md

  • Added checklist item: invoke refactor when existing tests have structural problems rather than working around them

review/SKILL.md

  • Extended "Should fix" category to recommend the refactor skill for purely readability/style findings — reviewers should direct to refactor, not ask for more code

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: afranken <763000+afranken@users.noreply.github.com>
Copilot AI changed the title [WIP] Add cross-references and instructions for AGENTS.md enforce skill workflow: AGENTS.md + test + document in implement skill Feb 25, 2026
…ills

Co-authored-by: afranken <763000+afranken@users.noreply.github.com>
Copilot AI changed the title enforce skill workflow: AGENTS.md + test + document in implement skill Cross-reference refactor, test, and document skills from implement; add refactor guidance to test and review Feb 26, 2026
@afranken afranken marked this pull request as ready for review February 26, 2026 07:31
@afranken afranken self-requested a review as a code owner February 26, 2026 07:31
Copilot AI review requested due to automatic review settings February 26, 2026 07:31
Copy link
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 establishes cross-references between Claude skills to create a cohesive workflow where skills invoke each other rather than operating in isolation. The changes address the problem where the implement skill would run without triggering follow-up tasks like testing, documentation, or refactoring, leading to incomplete feature work.

Changes:

  • Added a 4-step workflow to implement skill: refactor → implement → test → document
  • Extended test and review skills with guidance to invoke refactor when encountering structural problems
  • Added blockquotes emphasizing preference for refactoring over workarounds

Reviewed changes

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

File Description
.claude/skills/implement/SKILL.md Added "Skill Workflow" section with 4-step sequence, converted checklist items to explicit skill invocations, added blockquote guidance to prefer refactoring over workarounds
.claude/skills/test/SKILL.md Added checklist item to invoke refactor skill when existing tests have structural problems
.claude/skills/review/SKILL.md Extended "Should fix" category to recommend refactor skill for readability/style improvements

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


A complete feature implementation requires these skills — run them in sequence:

1. **refactor** skill — if nearby existing code, tests, or configuration would benefit from cleanup *before* adding new code, do it first rather than working around it
Copy link

Copilot AI Feb 26, 2026

Choose a reason for hiding this comment

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

Inconsistent formatting: the skill name should be formatted as refactor (bold with backticks) to match the formatting used in lines 36-37 and in other skill files. Currently it's formatted as refactor (bold without backticks).

Suggested change
1. **refactor** skill — if nearby existing code, tests, or configuration would benefit from cleanup *before* adding new code, do it first rather than working around it
1. **`refactor`** skill — if nearby existing code, tests, or configuration would benefit from cleanup *before* adding new code, do it first rather than working around it

Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Member

@afranken afranken left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Member

@afranken afranken left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Member

@afranken afranken left a comment

Choose a reason for hiding this comment

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

👍

@afranken afranken merged commit 9d84898 into main Feb 26, 2026
7 checks passed
@afranken afranken deleted the copilot/add-cross-references-instructions branch February 26, 2026 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants