Unify the canonical golden snippet across README, AGENTS, llms.txt#37
Merged
Conversation
Same six lines, byte-identical, in every entrypoint that matters:
import YCFirstTime
YCFirstTime.shared.executeOnce({
// your one-time code, e.g. showOnboarding()
}, forKey: "onboarding.v1")
Three changes:
- README: hoist the snippet to right under the metadata block, before
the "Copy-paste integration" heading. It's now the first code a
reader (or LLM scraping the top of the README) sees.
- README: change the body comment in the in-flow occurrence from
"// Onboarding that runs exactly once per install." +
`showOnboarding()` to the generic "your one-time code" comment, so
both README occurrences match each other.
- AGENTS.md: same comment change in its "Run once per install" block.
llms.txt was already in this exact form. Total: four occurrences
across three files, all identical.
The snippet uses the actual public API. The earlier sketch
(`YCFirstTime.executeOnce(key:) { ... }`) wouldn't compile —
`shared` is required, and the trailing-block / `forKey:` shape
matches both Obj-C selector compatibility and the existing
documentation.
https://claude.ai/code/session_01TQi3WNVCqQ9QFufs5XogjK
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #37 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 2 2
Lines 83 83
=========================================
Hits 83 83 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Same six lines, byte-identical, in every entrypoint that matters:
Three changes:
the "Copy-paste integration" heading. It's now the first code a
reader (or LLM scraping the top of the README) sees.
"// Onboarding that runs exactly once per install." +
showOnboarding()to the generic "your one-time code" comment, soboth README occurrences match each other.
llms.txt was already in this exact form. Total: four occurrences
across three files, all identical.
The snippet uses the actual public API. The earlier sketch
(
YCFirstTime.executeOnce(key:) { ... }) wouldn't compile —sharedis required, and the trailing-block /forKey:shapematches both Obj-C selector compatibility and the existing
documentation.
https://claude.ai/code/session_01TQi3WNVCqQ9QFufs5XogjK