Skip to content

docs(extensions): clarify agent-context README and add config examples#3389

Merged
mnriem merged 12 commits into
github:mainfrom
yanukadeneth99:docs/agent-context-readme
Jul 23, 2026
Merged

docs(extensions): clarify agent-context README and add config examples#3389
mnriem merged 12 commits into
github:mainfrom
yanukadeneth99:docs/agent-context-readme

Conversation

@yanukadeneth99

Copy link
Copy Markdown
Contributor

Description

Edited the agent-context README.md and agent-context-config.yml for clarity. Added the missing install command.

Testing

Ran the commands on a project to ensure it's correct. No other testing are required for this.

AI Disclosure

  • I did not use AI assistance for this contribution
  • I did use AI assistance

AI was used to check whether there were any active PRs/issues related to this, and then to create a suggested fix for the README. However, I only used that file as a reference and made the changes to the README.md myself.

Please do let me know if there are changes/suggestions to be done.

Rewrite the agent-context extension README to read as plain prose
instead of a bullet dump, and add the missing install/disable
commands (specify extension add/disable/enable agent-context).
Add inline example comments to agent-context-config.yml for
context_file/context_files.
@yanukadeneth99
yanukadeneth99 requested a review from mnriem as a code owner July 7, 2026 05:10
Comment thread extensions/agent-context/agent-context-config.yml
- Reformat comments to flow as single-line paragraphs instead of multi-line breaks
- Add "WHAT" sections describing each configuration option's purpose
- Add "REQUIREMENT" sections specifying if options are optional or required
- Add explicit EXAMPLE sections for context_markers configuration
- Improve clarity of context_file and context_files option descriptions

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates the bundled agent-context extension documentation to better explain its opt-in behavior and configuration, and adds an explicit install command to the README.

Changes:

  • Expanded extensions/agent-context/README.md with installation/disabling instructions and clearer “opt-in” explanation.
  • Added more descriptive inline documentation and examples to extensions/agent-context/agent-context-config.yml.
Show a summary per file
File Description
extensions/agent-context/README.md Clarifies extension behavior and adds install/disable instructions; includes an Issues section link.
extensions/agent-context/agent-context-config.yml Adds more explicit WHAT/REQUIREMENT/EXAMPLE guidance for config fields.

Review details

Tip

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

  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Low

Comment thread extensions/agent-context/README.md Outdated
Comment thread extensions/agent-context/agent-context-config.yml Outdated

@mnriem mnriem left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please address feedback

Comment thread extensions/agent-context/agent-context-config.yml Outdated
- Fix "Github" -> "GitHub" casing in README issues link
- Clarify agent-context-config.yml comments on context_file/context_files behavior and precedence

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review details

  • Files reviewed: 2/2 changed files
  • Comments generated: 4
  • Review effort level: Low

Comment thread extensions/agent-context/README.md Outdated
Comment thread extensions/agent-context/agent-context-config.yml Outdated
Comment thread extensions/agent-context/agent-context-config.yml Outdated
Comment thread extensions/agent-context/README.md Outdated
@mnriem

mnriem commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Please address Copilot feedback

yanukadeneth99 and others added 2 commits July 16, 2026 15:51
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
- Clarify config file path reference (.specify/extensions path vs repo path)
- Remove duplicated YAML example/field docs from README, point to config file directly
- Minor spacing fix in agent-context-config.yml comment
@yanukadeneth99

Copy link
Copy Markdown
Contributor Author

Apologies for the delay! Should be all good now

@yanukadeneth99
yanukadeneth99 requested a review from mnriem July 16, 2026 10:27
- Reference the installed .specify config path alongside the repo-relative link

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review details

  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Medium

Comment thread extensions/agent-context/README.md Outdated
Comment thread extensions/agent-context/agent-context-config.yml Outdated

@mnriem mnriem left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please address Copilot feedback

- README: clarify install command must be run from an initialized Spec Kit project root
- config: correct context_markers requirement from REQUIRED to OPTIONAL
@yanukadeneth99

Copy link
Copy Markdown
Contributor Author

Done

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review details

  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Medium

Comment thread extensions/agent-context/agent-context-config.yml Outdated
Comment thread extensions/agent-context/agent-context-config.yml Outdated

@mnriem mnriem left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please address Copilot feedback

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
- Document that context_file/context_files are relative to the project root (directory containing .specify/)
- State the rejected path forms (absolute paths, backslash separators, .. segments) directly in each field's WHAT comment
@yanukadeneth99

Copy link
Copy Markdown
Contributor Author

Done ser. Updated.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review details

  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Medium

Comment thread extensions/agent-context/README.md Outdated
@mnriem

mnriem commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

Please address Copilot feedback

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@yanukadeneth99

yanukadeneth99 commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

@mnriem done ser

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review details

Comments suppressed due to low confidence (1)

extensions/agent-context/README.md:35

  • The config can still be read and the block updated after disabling if the user manually invokes the generated command, because disabling leaves that command file installed. This paragraph should describe the automatic-hook behavior rather than promise that nothing can read or modify the file.
While this extension is disabled (or not installed), nothing in Spec Kit creates, updates, or removes the managed block - the `__CONTEXT_FILE__` placeholder in any template is left as-is, and the extension's own config is never read.
  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Medium

Comment thread extensions/agent-context/README.md Outdated
Comment thread extensions/agent-context/README.md Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review details

Comments suppressed due to low confidence (1)

extensions/agent-context/README.md:5

  • “Everything else is untouched” is not true for all supported context files. The update scripts normalize line endings across the file, and for .mdc targets they can add or repair alwaysApply: true frontmatter outside the managed markers (scripts/bash/update-agent-context.sh:357-430, with equivalent PowerShell behavior). Please qualify this guarantee so users know the extension may modify content outside the block.
It owns the lifecycle of the managed section delimited by the configurable start/end markers (defaults: `<!-- SPECKIT START -->` / `<!-- SPECKIT END -->`). Everything else is untouched.
  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new
  • Review effort level: Medium

- Clarify that .mdc files get alwaysApply: true set in frontmatter, outside the managed marker block
- Fix "Everything else is untouched" wording so it doesn't contradict the exception right above it
@yanukadeneth99

yanukadeneth99 commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Fixed the copilot feedback

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review details

  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new
  • Review effort level: Medium

@mnriem
mnriem merged commit a62fb1f into github:main Jul 23, 2026
14 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.

3 participants