Skip to content

Add guidance on keeping skill updates concise to AGENTS.md - #2523

Merged
cjluo-nv merged 2 commits into
mainfrom
chenjiel/agents-md-concise-skills
Sep 23, 2026
Merged

cjluo-nv merged 2 commits into
mainfrom
chenjiel/agents-md-concise-skills

Conversation

@cjluo-nv

@cjluo-nv cjluo-nv commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

What does this PR do?

Type of change: documentation

Adds an ## Updating skills section to AGENTS.md (symlinked as CLAUDE.md). Skills are loaded into agent context, so each extra line costs tokens every time the skill runs. The new guidance tells the agent to:

  • Keep skill edits concise: add only what changes agent behavior, and tighten existing text instead of appending more.
  • Do a final compression pass over the skill diff before opening a PR: drop unnecessary explanations and examples, cut redundancy, and merge overlapping guidance.

Usage

N/A — no API or flag change.

Testing

pre-commit run --files AGENTS.md (markdownlint and the other applicable hooks pass).

Before your PR is "Ready for review"

  • Is this change backward compatible?: ✅
  • If you copied code from any other sources or added a new PIP dependency, did you follow guidance in CONTRIBUTING.md: N/A
  • Did you write any new necessary tests?: N/A
  • Did you update Changelog?: N/A
  • Did you get Claude approval on this PR?: ❌

Additional Information

Follows #2494, which added the PR sizing guidance to the same file.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Added guidance for keeping skill updates focused on behavior changes and reviewing edits for unnecessary detail.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Signed-off-by: Chenjie Luo <[email protected]>
@cjluo-nv
cjluo-nv requested a review from a team as a code owner September 23, 2026 16:50
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Signed-off-by: Chenjie Luo <[email protected]>
@coderabbitai

coderabbitai Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: NVIDIA/Model-Optimizer/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: fd15250b-715b-4c3b-a9cb-2a1687627b41

📥 Commits

Reviewing files that changed from the base of the PR and between 87f7d14 and e54d9bb.

📒 Files selected for processing (1)
  • AGENTS.md

Included review availability: Your plan provides up to 12 included reviews per hour; 10 remain after this review.


📝 Walkthrough

Walkthrough

AGENTS.md adds guidance to keep skill edits concise and review the diff before opening a PR. It asks authors to remove unnecessary explanations, examples, redundancy, and overlapping content.

Changes

Skill editing guidance

Layer / File(s) Summary
Add skill-editing instructions
AGENTS.md
Adds guidance to keep skill edits concise and remove unnecessary or overlapping content before opening a PR.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Suggested reviewers: meenchen

Merge Risk: ⚪ Minimal · up to e54d9

This change only clarifies how permitted skill edits should be kept concise; it does not alter product behavior, and no merge-blocking issue remains.

🚥 Pre-merge checks | ✅ 6
✅ Passed checks (6 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Security Anti-Patterns ✅ Passed PASS: The review-scoped diff changes only AGENTS.md, adding documentation. It contains no modelopt or examples Python changes, no dependency-file changes, and no security-sensitive code patterns cover…
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main documentation change: adding guidance to keep skill updates concise in AGENTS.md.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Comment @coderabbitai help to get the list of available commands.

@meenchen meenchen 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.

Bot review (claude-opus-5) — DM the bot to share feedback.

Approve — a 9-line docs-only addition to AGENTS.md that matches the file's existing bold-lead bullet style and duplicates no existing section.

No action needed.

@codecov

codecov Bot commented Sep 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.82%. Comparing base (87f7d14) to head (e54d9bb).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2523   +/-   ##
=======================================
  Coverage   68.82%   68.82%           
=======================================
  Files         604      604           
  Lines       66858    66858           
=======================================
  Hits        46013    46013           
  Misses      20845    20845           
Flag Coverage Δ
unit 58.31% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cjluo-nv
cjluo-nv merged commit 25d8c91 into main Sep 23, 2026
34 checks passed
@cjluo-nv
cjluo-nv deleted the chenjiel/agents-md-concise-skills branch September 23, 2026 17:07
@github-actions

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-09-23 17:07 UTC

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