Repository navigation
feat(bid-leveling): run the leveling script on Python's standard library - #12
Merged
Merged
Conversation
Skills are uploaded as zips to ChatGPT, Claude/Cowork and Microsoft 365 Copilot; Python runs in all three and Copilot has no network or installs. level.py replaces level.mjs with byte-identical sheets, and SKILL.md falls back to any spreadsheet tool if the script can't run. Also caps every skill description at 200 characters, which Claude's custom-skill upload requires, and enforces it in the validator.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes the skills uploadable to ChatGPT (Work mode), Claude / Cowork and Microsoft 365 Copilot, where users install a skill as a zipped folder.
Bid Leveling 4.1.0: the script is now Python, standard library only
scripts/level.pyreplaceslevel.mjs. It useszipfileand XML strings, with no openpyxl, no network and no installs, and runs on Python 3.8+.--jsonis unchanged. Python 3.12 and 3.14 produce the same bytes.test_level.py, including the byte-for-byte check of the sample workbook. A new CI step runsevals/tasks/*/test_*.py.Descriptions capped at 200 characters
MAX_DESCRIPTION_LENGTHis 200 intools/skill_utils.py, with a validator test at 200 and 201 characters.name. This was already enforced.Note
Rewrite bid-leveling script in Python using only the standard library
level.mjsscript with level.py. The Python script needs only Python 3.8+ and no external packages. It validates bid-data JSON, levels bids in integer cents, suggests and applies plugs, and writes an XLSX workbook with formulas and cached values via a built-in zip/XML writer.evals/tasks/*/test_*.pyfile in the validate workflow.MAX_DESCRIPTION_LENGTHin skill_utils.py drops from 1024 to 200, so existing skill descriptions over 200 characters now fail validation.level.mjsis deleted; any caller referencing it must switch toscripts/level.py.Macroscope summarized acf99b2.