Skip to content

docs(customization): update stale ms.date in instructions.md - #3261

Merged
Chris Montazer (rezatnoMsirhC) merged 7 commits into
microsoft:mainfrom
Anshuman-Prakash:docs/stale-ms-date-3250
Oct 27, 2026
Merged

Chris Montazer (rezatnoMsirhC) merged 7 commits into
microsoft:mainfrom
Anshuman-Prakash:docs/stale-ms-date-3250

Conversation

@Anshuman-Prakash

Copy link
Copy Markdown
Contributor

Pull Request

Description

Updates the ms.date frontmatter in docs/customization/instructions.md from 2026-07-15 to 2026-10-20, clearing the 96-day staleness flag.

Before refreshing the date I reviewed the page against the current repository state:

  • Instruction files still live under .github/instructions/ with the documented collection-subdirectory convention.
  • description is still the mandatory frontmatter field, and applyTo is still required for auto-applied instructions, matching docs/contributing/instructions.md.
  • The hve-builder modes the page shows (create, review, refactor) are still part of the skill's mode set in .github/skills/hve-core/hve-builder/SKILL.md.
  • The "Contributing: Instructions" relative link resolves to docs/contributing/instructions.md.

No technical content needed changing, so this PR is limited to the date metadata.

Related Issue(s)

Fixes #3250

Type of Change

Code & Documentation:

  • Bug fix (non-breaking change fixing an issue)
  • New feature (non-breaking change adding functionality)
  • Breaking change (fix or feature causing existing functionality to change)
  • Documentation update

Infrastructure & Configuration:

  • GitHub Actions workflow
  • Linting configuration (markdown, PowerShell, etc.)
  • Security configuration
  • DevContainer configuration
  • Dependency update

AI Artifacts:

  • Reviewed contribution with hve-builder and addressed all actionable findings
  • Copilot instructions (.github/instructions/*.instructions.md)
  • Copilot prompt (.github/prompts/*.prompt.md)
  • Copilot agent (.github/agents/*.agent.md)
  • Copilot skill (.github/skills/*/SKILL.md)
  • Copilot hook (.github/hooks/*/*.json)
  • Eval spec added/updated for changed AI artifacts (evals/)

Other:

  • Script/automation (.ps1, .sh, .py)
  • Other (please describe):

Testing

Reviewed the diff and confirmed the only change is the ms.date value; the page body is untouched. The accuracy checks listed above were done by reading the referenced files in this checkout. The repository's PowerShell validators (npm run lint:frontmatter, npm run lint:adr-consistency) need pwsh, which is not available on this machine, so they were left to CI.

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)

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

This change does not claim the page's guidance was re-validated beyond the specific checks listed above.

🤖 Generated with Claude Code

The stale-docs check flagged docs/customization/instructions.md at 96
days past its ms.date of 2026-07-15.

Reviewed the page against the current repository before refreshing the
date: instruction files still live under .github/instructions/ with
collection subdirectories, `description` remains the mandatory
frontmatter field with `applyTo` required for auto-applied instructions,
the documented hve-builder modes (create, review, refactor) are still
part of the skill's mode set, and the Contributing: Instructions link
resolves. No content change was needed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Comment thread docs/customization/instructions.md Resolved
Comment thread docs/customization/instructions.md Resolved
…tacking

Address review feedback on microsoft#3261.

Example paths: the tree diagram mixed real files with two that do not
exist. `coding-standards/typescript.instructions.md` is really
`coding-standards/typescript/typescript-doc-comments.instructions.md`,
and there is no `shared/cross-package.instructions.md`. Pointed both at
real files (`hve-core/markdown` and `hve-core/writing-style` already
existed, so only these two were wrong). Showing the nested
`typescript/` directory also illustrates the collection convention
better than a flat file did. The hve-builder `mode=create` example
still names a new file, but now inside the real directory convention.

Instruction Stacking: the section claimed a specificity-based
precedence ("the stacking order follows specificity", "the more
specific file takes precedence", "the more specific pattern prevails")
while also calling stacking additive. VS Code's custom-instructions
documentation states that applicable instruction sources are additive,
that you should not depend on a file order or precedence rule to
resolve conflicts, and that contradictions should be resolved at their
source. Reworded so matching files are described as combined, dropped
the "the Python rule wins" example, and pointed readers at the
References section to see what actually applied.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@Anshuman-Prakash

Copy link
Copy Markdown
Contributor Author

Thanks Chris Montazer (@rezatnoMsirhC) — both points confirmed and applied in ede85d5.

1. Example paths. I listed the real .github/instructions tree and you were right on both counts, so rather than labelling them placeholders I pointed them at real files:

Diagram path Status
coding-standards/python-script.instructions.md exists
coding-standards/typescript.instructions.md does not exist → now coding-standards/typescript/typescript-doc-comments.instructions.md
hve-core/markdown.instructions.md exists
hve-core/writing-style.instructions.md exists
shared/cross-package.instructions.md does not exist → now shared/untrusted-content-boundary.instructions.md

Worth noting shared/ itself is real (it holds coaching-patterns, content-policy-citation, disclaimer-language, planner-identity-base, telemetry-overlay, untrusted-content-boundary) — only cross-package was invented. Showing the nested typescript/ directory has a side benefit: it illustrates the collection subdirectory convention better than a flat file did.

For the hve-builder example at line 103 I kept it a new file, since mode=create should target something that doesn't exist yet, but moved it to coding-standards/typescript/typescript.instructions.md so it follows the convention that typescript/ is now a directory.

2. Instruction Stacking. Agreed, and the contradiction you spotted was load-bearing. The section asserted a precedence rule in three places while also calling stacking additive. I checked the VS Code page you linked; it says plainly that "Applicable instruction sources are additive", "Do not depend on a file order or precedence rule to resolve conflicts", "Don't add a new instruction or assume that one source overrides the others", and that duplicates and contradictions should be removed and "resolve[d] at their source". The AGENTS.md section adds that for Copilot "there is no general precedence order between these files."

So I reworded the numbered list from load order to what applies (specific patterns apply alongside broad ones, not instead of them), dropped the "use tabs" vs "4-space indentation" example since that conflict is precisely what is not resolved for you, and replaced "the more specific pattern prevails" in the NOTE with the point that overlapping patterns create ambiguity no precedence rule will settle. I also added the practical tip from that page — check the References section of a response to see which instructions were actually included — since the page previously gave readers no way to verify.

ms.date is now 2026-10-23.

Comment thread docs/customization/instructions.md Resolved
@codecov-commenter

Codecov Comments Bot (codecov-commenter) commented Oct 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.74%. Comparing base (9b178da) to head (1e34c99).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3261      +/-   ##
==========================================
+ Coverage   85.25%   87.74%   +2.49%     
==========================================
  Files         198      132      -66     
  Lines       40629    18086   -22543     
  Branches      201       63     -138     
==========================================
- Hits        34637    15870   -18767     
+ Misses       5921     2205    -3716     
+ Partials       71       11      -60     
Flag Coverage Δ
docusaurus 90.58% <ø> (?)
pester 86.86% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 99 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Jamie Kim (jkim323) and others added 2 commits October 26, 2026 22:10
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

Generated-by: 📝 - Generated by Copilot
Merged via the queue into microsoft:main with commit 5d5e092 Oct 27, 2026
152 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.

docs: Update stale documentation - docs/customization/instructions.md

5 participants