Add .github/sinclair-usage.md for Copilot context in dependent projects#118
Merged
Add .github/sinclair-usage.md for Copilot context in dependent projects#118
Conversation
Co-authored-by: darthjee <3843066+darthjee@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add sinclair usage instructions in README
Add .github/sinclair-usage.md for Copilot context in dependent projects
Mar 7, 2026
darthjee
approved these changes
Mar 7, 2026
darthjee
added a commit
that referenced
this pull request
Mar 8, 2026
…ts (#118) * Initial plan * Add .github/sinclair-usage.md usage guide for dependent projects Co-authored-by: darthjee <3843066+darthjee@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: darthjee <3843066+darthjee@users.noreply.github.com>
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.
Other projects that depend on sinclair need a reference file they can drop into their own
.github/folder so GitHub Copilot understands how to use the gem correctly.Changes
.github/sinclair-usage.md— a self-contained usage guide covering every public-facing feature of the gem with annotated code examples:Sinclairbuilder: stand-alone, block DSL, string/block/call method definitions, result caching, and subclassing for custom buildersSinclair::Configurable/Sinclair::Config: read-only config with defaults, reset,as_options, and custom config classesSinclair::Options: validated keyword-argument objects with defaults andInvalidOptionson unknown keysSinclair::EnvSettable: ENV vars as class methods with prefix and type castingSinclair::Comparable: attribute-based==viacomparable_bySinclair::Model: quick plain-Ruby models withinitialize_with,writter:, andcomparable:optionsSinclair::Caster: named and class-keyed type-casting registrySinclair::Matchers: RSpec matchers for testing builders (add_method,add_class_method,change_method,change_class_method)Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.