Skip to content

docs: refactor AGENTS.md using progressive disclosure principles#831

Open
Xe wants to merge 2 commits intomasterfrom
refactor/agents-md-progressive-disclosure
Open

docs: refactor AGENTS.md using progressive disclosure principles#831
Xe wants to merge 2 commits intomasterfrom
refactor/agents-md-progressive-disclosure

Conversation

@Xe
Copy link
Owner

@Xe Xe commented Jan 24, 2026

Summary

Split bloated AGENTS.md into root file with categorized linked files following progressive disclosure principles.

  • Keep only essentials in root (project description, commands, critical overrides)
  • Move Go style, testing, git workflow, security, and AI instructions to separate files
  • Remove duplicate JavaScript formatting entry
  • Reduce root file from 118 to 29 lines

Test plan

  • Review new file structure in .claude/
  • Verify links in AGENTS.md work correctly
  • Confirm all content from original file is preserved

@Xe
Copy link
Owner Author

Xe commented Jan 24, 2026

/reviewbot

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Review Summary

  • .claude/ai-instructions.md: Added AI assistant instructions covering task execution and technical guidelines.
  • .claude/git-workflow.md: Added detailed Git workflow guidelines, commit message conventions, AI attribution rules, and PR requirements.
  • .claude/go-style.md: Added Go style guidelines including formatting, naming, and code organization.
  • .claude/security.md: Added security best practices for secrets management and dependency auditing.
  • .claude/testing.md: Added testing guidelines for Go tests, running tests, coverage expectations, and test patterns.
  • AGENTS.md: Refactored to a concise root file with a quick‑reference command table and links to the newly added detailed documentation files, reducing line count from 118 to 24.

Suggestions

  • Ensure that the relative links (e.g., .claude/go-style.md) resolve correctly in the repository’s rendering environment; using ./.claude/... can be more explicit.
  • Consider adding a brief introductory sentence before the link list to guide readers on the purpose of the linked documents.

Overall, the restructuring follows progressive disclosure principles and improves maintainability. The PR can be approved.

Split bloated AGENTS.md into root file with categorized linked files.
- Keep only essentials in root (commands, critical overrides)
- Move Go style, testing, git workflow, security, and AI instructions to separate files
- Remove duplicate JavaScript formatting entry
- Reduce root file from 118 to 29 lines

Assisted-by: GLM 4.7 via Claude Code
Reviewbot-request: yes
Signed-off-by: Xe Iaso <me@xeiaso.net>
@Xe Xe force-pushed the refactor/agents-md-progressive-disclosure branch from eb0d0f0 to a188191 Compare January 24, 2026 21:44
@github-actions
Copy link
Contributor

github-actions bot commented Jan 24, 2026

The latest Buf updates on your PR. Results from workflow Go / build (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedFeb 5, 2026, 8:54 PM

@Xe Xe enabled auto-merge (squash) February 5, 2026 20:53
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.

1 participant