Skip to content

compress: convert python-dev-instructions to on-demand skill - #9

Open
Michael J. Jabbour (michaeljabbour) wants to merge 1 commit into
microsoft:mainfrom
michaeljabbour:feat/context-compression
Open

compress: convert python-dev-instructions to on-demand skill#9
Michael J. Jabbour (michaeljabbour) wants to merge 1 commit into
microsoft:mainfrom
michaeljabbour:feat/context-compression

Conversation

@michaeljabbour

Copy link
Copy Markdown

Summary

Converts python-dev-instructions.md from always-on context (~1,035 tokens) to an on-demand skill. Expert-validated: the python_check tool is self-describing, the auto-checking hook fires mechanically, and the python-dev agent already carries full knowledge as a context sink.

Changes

  • Created skills/python-dev-reference/SKILL.md with full tool reference
  • Trimmed context/python-dev-instructions.md to ~185 tokens (tool awareness + hook summary + skill pointer)
  • Added tool-skills registration in behaviors/python-dev.yaml

Not touched

python-lsp.md — lives in a separate bundle (amplifier-bundle-lsp-python) and stays always-on per expert recommendation.

Token Impact

~850 tokens saved per session.

Submitted by Joi from ChibaTech.

- Created skills/python-dev-reference/SKILL.md with full python_check tool
  reference (7 mentions), pyproject.toml configuration details (3 mentions),
  and CLI Usage section documenting all invocation patterns.

- Registered skill via Option B (tool-skills module) in behaviors/python-dev.yaml,
  adding the tool-skills module with source pointing to amplifier-module-tool-skills
  and config referencing '@python-dev:skills' directory.

- Trimmed context/python-dev-instructions.md to ~185 tokens (from ~1035 tokens),
  retaining python_check tool awareness, Auto-checking Hook section explaining
  post-edit auto-run behaviour, and a load_skill() pointer to the full reference.

- Net savings: ~850 tokens per session that do not need the full reference,
  with full detail available on demand via load_skill('python-dev-reference').
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