Settings and Skills for Claude. Initial application#424
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
ArneBouillon
left a comment
There was a problem hiding this comment.
Some great improvements!
haakon-e
left a comment
There was a problem hiding this comment.
LGTM!
One small thought: I've found empirically that when showing the contents of somewhat large structs in REPL, printing itself takes some time and is done line-by-line due to the pattern print(io, "some text"). I wonder if it's faster to create the full string, then print, but I have no evidence for this.
Anyhow, good to merge!
|
@haakon-e interest point. I think where we are at, is that e.g. distributions and input-output pairs, or data samples needed for encoding were printed out in the past. I hope the show methods for EKP and CES help this 99% of the way from 1000+ line spams down to 5. If I notice downstream issues from this we can look into solution. |
Purpose
Content
settings.json- it encourages users to use skills and subagents. It prevents Claude using non-read-type git commands.base-showadds show and summary methods to structsdocstringsmanages the docstring formatting and managesdocs/src/APIerror-message-managermanages the error messaging format, to ensure actionable, context-laden messagesbase-showwas used to create show and summary methods for all structs. Includes both a compact and full show-type method (e.g. so that in arrays the compact 1-line show() method is used). unit tests are also written for this.docstringsmethods was used to overhaul the docstrings.error-message-managerwas used to remove@assertand update all error messages, it also addstest_throwerror messages tested in the unit tests. Any duplicate errors, or those longer>3 linemessage is now put into a helper function_throw_xyzthat are listed at the bottom of files. These have testsExamples
base-show
Neat base.show methods with some useful information and a compact 1-liner for vectors
docstrings
Struct and method definitions now more have structured formats. structs include recommended factories.
error-message-manager
Adds context to error messages, and helpers for longer/duplicated error messages
These come with tests that test some message items, and the suggestion if it is concrete and actionable