Skip to content

refactor: extract non-critical reference detail to create skill headroom#95

Draft
saurabhrb wants to merge 1 commit into
mainfrom
users/saurabhrb/erp-support-consolidated
Draft

refactor: extract non-critical reference detail to create skill headroom#95
saurabhrb wants to merge 1 commit into
mainfrom
users/saurabhrb/erp-support-consolidated

Conversation

@saurabhrb

Copy link
Copy Markdown
Contributor

What

Behavior-neutral refactor that frees token headroom in the three at-capacity skill bodies so that ERP (Finance & Operations) support can be added in a follow-up PR without breaching the 5000-token SKILL.md body cap enforced by EVAL-BUDGET-02.

No new capability, no routing change, no auth change — this is a pure Level-2 → Level-3 extraction following Anthropic's progressive-disclosure guidance and the repo's own CLAUDE.md token-budget rules.

Why

Measured body token counts (tiktoken cl100k_base, the counter the CI eval uses) on main left almost no room to add content:

Skill Before After
dv-connect 4996 (4 free) 4747 (253 free)
dv-admin 4961 (39 free) 4783 (217 free)
dv-overview 4864 (136 free) 4655 (345 free)

Extraction discipline

Only reference-lookup material was moved. All decision logic and safety rules stay inline in the body, because small-model agents sometimes read a reference link's filename and stop without opening it — so anything the agent needs to decide correctly or act safely must remain in Level 2.

  • dv-connect — moved the --validate two-endpoint output interpretation into references/mcp-configuration.md. The critical rule ("do NOT use --validate as a first-time success gate") stays inline.
  • dv-admin — moved the pac data retention command syntax + argument table into a new references/retention.md. The agentic flow and the retention-vs-bulk-delete decision table stay inline. No safety-callout content touched.
  • dv-overview — moved the Windows scripting rules (operational detail, not routing) into a new references/windows-scripting.md.

Validation

  • python .github/evals/static_checks.pyPASSED (8 skill files, 45 Python blocks, 10 categories)
  • python .github/evals/version_bump_check.pyPASSED (1.6.0 → 1.6.1, patch bump)
  • Version bumped in all 8 fields across 6 files (PATCH — no user-visible behavior change).

Follow-up

The ERP support content (from the earlier ERP PRs) will land in a separate PR on top of this base, using thin gated routers inline + the ERP how-to detail in references/erp-*.md.

Move lookup-only content out of three at-capacity skill bodies into references/ so ERP support can be added without breaching the 5000-token body cap. Behavior-neutral: only reference-lookup material moved; all decision logic and safety rules stay inline.

- dv-connect: --validate output interpretation -> mcp-configuration.md (keep the 'not a success gate' rule inline)

- dv-admin: pac data retention command syntax + arg table -> references/retention.md (keep agentic flow + retention-vs-bulk-delete decision inline)

- dv-overview: Windows scripting rules -> references/windows-scripting.md

Headroom: dv-connect 4->253, dv-admin 39->217, dv-overview 136->345. Static checks + version bump check pass. PATCH bump 1.6.0->1.6.1.
@saurabhrb
saurabhrb requested a review from a team July 13, 2026 21:13
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
Some pipeline(s) encountered errors during trigger evaluation.

@saurabhrb
saurabhrb marked this pull request as draft July 14, 2026 15:14
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