Skip to content

feat(prompts): add dt-method-next routing prompt#713

Merged
WilliamBerryiii merged 5 commits intomicrosoft:mainfrom
ofimbres:feat/dt-method-next-routing-572
Feb 23, 2026
Merged

feat(prompts): add dt-method-next routing prompt#713
WilliamBerryiii merged 5 commits intomicrosoft:mainfrom
ofimbres:feat/dt-method-next-routing-572

Conversation

@ofimbres
Copy link
Contributor

@ofimbres ofimbres commented Feb 20, 2026

Pull Request

Description

Implements DT method routing prompt that analyzes Design Thinking coaching state and routes to appropriate methods with transition validation.

This PR adds a new /dt-method-next prompt that:

  • Analyzes current DT project coaching state from .copilot-tracking/dt/{project-slug}/coaching-state.md
  • Recommends next method based on completion indicators and sequencing rules
  • Validates transitions at space boundaries (Problem→Solution, Solution→Implementation)
  • Handles edge cases: no project, all methods complete, iteration loops
  • Delegates to dt-coach agent with proper state updates

Related Issue(s)

Fixes #572

Type of Change

AI Artifacts:

  • Reviewed contribution with prompt-builder agent and addressed all feedback
  • Copilot prompt (.github/prompts/*.prompt.md)

Sample Prompts (for AI Artifact Contributions)

User Request:

/dt-method-next

or

/dt-method-next project-slug=my-dt-project

Execution Flow:

  1. Locate project directory by deriving project-slug from input, open files, or conversation context
  2. Read coaching state YAML frontmatter from .copilot-tracking/dt/{project-slug}/coaching-state.md
  3. Scan project directory for artifact subdirectories matching method-{NN}-*/ patterns
  4. Assess method completeness against exit signals from dt-method-sequencing.instructions.md
  5. Apply progression logic (forward, backward iteration, or lateral transitions)
  6. Present project status summary with suggested next method and rationale
  7. Wait for user confirmation
  8. Delegate to dt-coach agent to transition coaching into target method

Output Artifacts:

Console output showing:

  • Project name and slug
  • Current method number, name, and phase
  • Progress (N of 9 methods completed)
  • Recent work summary
  • Key artifacts from current method
  • Suggested next method with rationale
  • Readiness check for space boundary transitions
  • User choice prompt

Success Indicators:

  • ✅ Prompt correctly identifies project from context or input
  • ✅ Method recommendation aligns with completion indicators
  • ✅ Space boundary transitions validate readiness signals
  • ✅ Edge cases handled with appropriate user guidance
  • ✅ Coaching state updated after confirmation
  • ✅ dt-coach loads target method instructions

Testing

Validation Results

All automated checks pass:

  • ✅ Markdown linting: npm run lint:md (no errors for dt-method-next.prompt.md)
  • ✅ Frontmatter validation: npm run lint:frontmatter (valid schema)
  • ✅ Collection metadata: npm run plugin:validate (design-thinking: 35 items, 0 errors)
  • ✅ Plugin generation: Commands generated successfully

Manual Testing

Verified against implementation plan:

  • ✅ Frontmatter includes description, agent: 'dt-coach', and argument-hint
  • ✅ Input variable ${input:project-slug} documented with inference behavior
  • ✅ Method state assessment reads artifact directories and evaluates completeness
  • ✅ Progression logic covers all 9 methods with correct sequencing
  • ✅ Output format provides clear project status summary and recommendation
  • ✅ Edge cases handled: no project, all complete, iteration loops
  • ✅ Delegates to dt-coach after recommendation
  • ✅ Prompt-builder compliance verified

Checklist

Required Checks

  • Documentation is updated (if applicable)
  • Files follow existing naming conventions
  • Changes are backwards compatible (if applicable)
  • Tests added for new functionality (if applicable)

AI Artifact Contributions

  • Used /prompt-analyze to review contribution
  • Addressed all feedback from prompt-builder review
  • Verified contribution follows common standards and type-specific requirements

Required Automated Checks

The following validation commands must pass before merging:

  • Markdown linting: npm run lint:md
  • Spell checking: npm run spell-check
  • Frontmatter validation: npm run lint:frontmatter
  • Skill structure validation: npm run validate:skills
  • Link validation: npm run lint:md-links
  • PowerShell analysis: npm run lint:ps

Security Considerations

  • This PR does not contain any sensitive or NDA information
  • Any new dependencies have been reviewed for security issues
  • Security-related scripts follow the principle of least privilege

Additional Notes

Review Findings Summary

Implementation review completed with overall status: ⚠️ Needs Minor Rework (documentation gaps only)

Findings:

  • 0 Critical
  • 2 Major (documentation-related, not functional)
  • 1 Minor

Major Findings (Non-blocking):

  1. File naming deviation: Plan specified dt-route-method.prompt.md but implementation uses dt-method-next.prompt.md (better name, more user-friendly)
  2. Missing changes log: Expected at .copilot-tracking/changes/2026-02-20/dt-method-routing-changes.md

All functional requirements met. All validation passes. The implementation successfully delivers comprehensive DT method routing with state-aware validation, edge case handling, and proper integration.

Review Log: .copilot-tracking/reviews/2026-02-20/dt-method-routing-review.md

Files Changed

  • Added: .github/prompts/design-thinking/dt-method-next.prompt.md - Main routing prompt
  • Modified: .github/agents/design-thinking/dt-coach.agent.md - Added handoff entry
  • Modified: collections/design-thinking.collection.yml - Added prompt reference
  • Modified: collections/design-thinking.collection.md - Documented new prompt
  • Modified: collections/hve-core-all.collection.yml - Added to all-in-one collection
  • Generated: plugins/design-thinking/commands/dt-method-next.md - Plugin command output
  • Generated: plugins/hve-core-all/commands/dt-method-next.md - Plugin command output
  • Generated: Various plugin README.md files updated with new command

- create dt-method-next.prompt.md for DT method routing with state analysis
- update dt-coach.agent.md handoffs to reference new routing prompt
- update design-thinking and hve-core-all collection manifests
- generate plugin outputs for dt-method-next command

🎯 - Generated by Copilot
@ofimbres ofimbres requested a review from a team as a code owner February 20, 2026 23:14
ofimbres and others added 4 commits February 20, 2026 23:21
- resolve conflicts in plugin README files by regenerating
- integrate latest upstream changes (hve-guide docs, pull-request instructions, dt-method-09-deep)
- preserve dt-method-next implementation from feature branch

🔀 - Generated by Copilot
…outing-572

# Conflicts:
#	collections/design-thinking.collection.md
#	collections/design-thinking.collection.yml
#	collections/hve-core-all.collection.yml
#	plugins/design-thinking/README.md
#	plugins/hve-core-all/README.md
- reorder collection and plugin entries to match alphabetical generation

🔄 - Generated by Copilot
@WilliamBerryiii WilliamBerryiii merged commit 0c080d6 into microsoft:main Feb 23, 2026
19 checks passed
WilliamBerryiii pushed a commit that referenced this pull request Feb 28, 2026
## Pre-Release 3.1.44

### ✨ Features

- add Docusaurus 3 documentation site with GitHub Pages deployment
(#680)
- add workflow permissions validation for OpenSSF Scorecard compliance
(#759)
- add DT coach return path handoff to task-researcher (#591) (#758)
- add DT subagent handoff workflow instructions (#592) (#757)
- create dt-method-06-deep.instructions.md (#602) (#748)
- create dt-method-05-deep.instructions.md (#747)
- add DT-aware task-implementor context instructions (#755)
- extract embedded PowerShell from workflows into testable scripts
(#738)
- add gitleaks binary-based secret scanning as PR gate (#734)
- add SBOM generation, attestation, and diff tooling to release pipeline
(#730)
- add dt-learning-tutor agent for DT education (#662)
- add DT image prompt generation guidance for Method 5 (#726)
- add DT-aware task-reviewer review context (#714)
- add dt-method-next routing prompt (#713)
- create dt-method-04-deep.instructions.md (#709)
- add Implementation Space exit handoff prompt for DT workflows (#708)
- add Write-CIStepSummary markdown table to Test-SHAStaleness github
output (#660)
- add dt-handoff-solution-space prompt for Solution Spac… (#707)

### 🐛 Bug Fixes

- update sidebar link color to meet WCAG AA contrast requirements (#814)
- harden even/odd versioning against regression and syntax errors (#816)
- replace even/odd versioning with SemVer -rc.N suffixes (#811)
- ensure prerelease label exists before PR creation (#806)
- replace Docusaurus favicons with Microsoft logo (#808)
- add missing subagents and shared instructions to collection manifests
(#804)
- standardize file path conventions for copilot-tracking output (#784)
- enforce project-scoped artifact isolation across DT files (#766)
- add top-level permissions to copilot-setup-steps.yml (#760)
- update broken file directives and markdown links after collection
directory reorg (#743)
- add pre-release companion pipeline with even/odd versioning (#735)
- exclude auto-generated CHANGELOG.md from spell check (#756)
- add job-level permissions to extension-publish.yml (#729)
- resolve handoff dependencies using display names (#727)
- add job-level permissions to validate-version in
extension-publish-prerelease (#731)
- replace parent-directory VS Code settings paths with per-subdirectory
enumeration (#732)

### 📚 Documentation

- add Design Thinking documentation and DT-to-RPI handoff (#789)
- add customization guides for HVE Core artifacts (#772)
- reconcile documentation against implementation (#771)
- document accepted Token-Permissions risks and add
lint:dependency-pinning (#763)
- add Design Thinking section to hve-core-all collection description
(#762)

### ♻️ Refactoring

- move collection scripts from plugins to collections (#728)
- remove duplicate git diff logic in frontmatter validator (#473)

### 🔧 Maintenance

- bump basic-ftp from 5.0.5 to 5.2.0 (#780)
- standardize script path references in SKILL.md files (#768)
- bump the github-actions group across 1 directory with 2 updates (#752)

---
*Managed automatically by pre-release workflow.*

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
WilliamBerryiii pushed a commit that referenced this pull request Feb 28, 2026
## Pre-Release 3.1.46

### ✨ Features

- add Docusaurus 3 documentation site with GitHub Pages deployment
(#680)
- add workflow permissions validation for OpenSSF Scorecard compliance
(#759)
- add DT coach return path handoff to task-researcher (#591) (#758)
- add DT subagent handoff workflow instructions (#592) (#757)
- create dt-method-06-deep.instructions.md (#602) (#748)
- create dt-method-05-deep.instructions.md (#747)
- add DT-aware task-implementor context instructions (#755)
- extract embedded PowerShell from workflows into testable scripts
(#738)
- add gitleaks binary-based secret scanning as PR gate (#734)
- add SBOM generation, attestation, and diff tooling to release pipeline
(#730)
- add dt-learning-tutor agent for DT education (#662)
- add DT image prompt generation guidance for Method 5 (#726)
- add DT-aware task-reviewer review context (#714)
- add dt-method-next routing prompt (#713)
- create dt-method-04-deep.instructions.md (#709)
- add Implementation Space exit handoff prompt for DT workflows (#708)
- add Write-CIStepSummary markdown table to Test-SHAStaleness github
output (#660)
- add dt-handoff-solution-space prompt for Solution Spac… (#707)

### 🐛 Bug Fixes

- update prerelease publish to use even/odd convention (#822)
- update sidebar link color to meet WCAG AA contrast requirements (#814)
- harden even/odd versioning against regression and syntax errors (#816)
- replace even/odd versioning with SemVer -rc.N suffixes (#811)
- ensure prerelease label exists before PR creation (#806)
- replace Docusaurus favicons with Microsoft logo (#808)
- add missing subagents and shared instructions to collection manifests
(#804)
- standardize file path conventions for copilot-tracking output (#784)
- enforce project-scoped artifact isolation across DT files (#766)
- add top-level permissions to copilot-setup-steps.yml (#760)
- update broken file directives and markdown links after collection
directory reorg (#743)
- add pre-release companion pipeline with even/odd versioning (#735)
- exclude auto-generated CHANGELOG.md from spell check (#756)
- add job-level permissions to extension-publish.yml (#729)
- resolve handoff dependencies using display names (#727)
- add job-level permissions to validate-version in
extension-publish-prerelease (#731)
- replace parent-directory VS Code settings paths with per-subdirectory
enumeration (#732)

### 📚 Documentation

- add Design Thinking documentation and DT-to-RPI handoff (#789)
- add customization guides for HVE Core artifacts (#772)
- reconcile documentation against implementation (#771)
- document accepted Token-Permissions risks and add
lint:dependency-pinning (#763)
- add Design Thinking section to hve-core-all collection description
(#762)

### ♻️ Refactoring

- move collection scripts from plugins to collections (#728)
- remove duplicate git diff logic in frontmatter validator (#473)

### 🔧 Maintenance

- pre-release 3.1.44 (#819)
- bump basic-ftp from 5.0.5 to 5.2.0 (#780)
- standardize script path references in SKILL.md files (#768)
- bump the github-actions group across 1 directory with 2 updates (#752)

---
*Managed automatically by pre-release workflow.*

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

feat(prompts): Create dt-method-next.prompt.md

2 participants