Skip to content

Reference STYLE.md instead of importing it, and fix two wrong claims - #587

Open
jeremy wants to merge 2 commits into
mainfrom
agents-md-fixes
Open

Reference STYLE.md instead of importing it, and fix two wrong claims#587
jeremy wants to merge 2 commits into
mainfrom
agents-md-fixes

Conversation

@jeremy

@jeremy jeremy commented Jul 29, 2026

Copy link
Copy Markdown
Member

@STYLE.md sat on line 1, so 2,369 bytes of Go conventions loaded into every
session regardless of what it was about -- a third of the always-on budget for
guidance most sessions never need. It is now a pointer. Because Codex reads
AGENTS.md without expanding imports, that cost fell on Claude Code alone.

Two corrections:

  • The completeness bar listed "Registration in root.go" directly under
    "Command file in internal/commands/", which reads as though root.go were in
    that directory. It is internal/cli/root.go.
  • Skill drift was described as checking skills/basecamp/SKILL.md. The Makefile
    target runs the script twice -- once on that default and once on
    skills/basecamp-doctor/SKILL.md -- so changing a command could leave the
    second skill stale while the doc said nothing about it.

Always-on drops from 7,285 to 5,150 bytes.


Checked against main at c863c3d.


Summary by cubic

Replaced the inline import of STYLE.md in AGENTS.md with a link, cutting always-on context by ~2.3 KB. Also corrected the completeness path and clarified that skill drift checks catch stale references, not missing coverage.

  • Refactors

    • Link to STYLE.md instead of importing it in AGENTS.md (always-on drops from 7,285 to 5,150 bytes).
  • Bug Fixes

    • Completeness bar: registration path is internal/cli/root.go (plus commands_test.go).
    • Skill drift: make check-skill-drift checks both skills/basecamp/SKILL.md and skills/basecamp-doctor/SKILL.md and catches stale references, not missing coverage.

Written for commit 4dc7fe4. Summary will update on new commits.

Review in cubic

@STYLE.md sat on line 1, so 2,369 bytes of Go conventions loaded into every
session regardless of what it was about -- a third of the always-on budget for
guidance most sessions never need. It is now a pointer. Because Codex reads
AGENTS.md without expanding imports, that cost fell on Claude Code alone.

Two corrections:

- The completeness bar listed "Registration in root.go" directly under
  "Command file in internal/commands/", which reads as though root.go were in
  that directory. It is internal/cli/root.go.
- Skill drift was described as checking skills/basecamp/SKILL.md. The Makefile
  target runs the script twice -- once on that default and once on
  skills/basecamp-doctor/SKILL.md -- so changing a command could leave the
  second skill stale while the doc said nothing about it.

Always-on drops from 7,285 to 5,150 bytes.
Copilot AI review requested due to automatic review settings July 29, 2026 14:33

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d42c16a1d2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread AGENTS.md Outdated
@github-actions github-actions Bot added docs bug Something isn't working labels Jul 29, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates the agent-facing development guidance to reduce always-on context by removing the inline STYLE.md import from AGENTS.md, while correcting two documentation inaccuracies so the guidance matches the repo’s actual paths and checks.

Changes:

  • Removed the @STYLE.md import and replaced it with a lightweight reference to STYLE.md.
  • Corrected the skill drift guidance to reflect that make check-skill-drift validates both skills/basecamp/SKILL.md and skills/basecamp-doctor/SKILL.md.
  • Corrected the “completeness bar” registration path to internal/cli/root.go.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.


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

Saying "update both skills to match" was too strong. check-skill-drift.sh
verifies that commands and flags a skill references still exist in .surface,
so adding a command breaks neither skill, while renaming or removing one
breaks whichever skill mentioned it. basecamp-doctor intentionally covers only
doctor, setup and auth remediation, and should not be edited for an unrelated
command. The Makefile does run the check over both files, which is what the
previous wording was reaching for; that part is kept.
Copilot AI review requested due to automatic review settings July 29, 2026 18:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants