sentry-cocoa / scripts
AGENTS.md1.1k starsChanged 3 months agoMITView on GitHub
Scope: scripts/**. Also follow root instructions.
Trending
Quiet this year.thin dataabout the whole repository
Who's talking about getsentry/sentry-cocoa
- getsentry/sentry-react-native“(ios only) codepush.restartApp triggers invalid OutOfMemory errors”GitHub · Oct 13, 2021 · 15 reactions
- expo/expo“[SDK 51] Xcode 16 compilation fails on pegged Sentry version”GitHub · Jul 2, 2024 · 14 reactions
- getsentry/sentry-java“JVM Profiling”GitHub · Apr 1, 2023 · 14 reactions
- getsentry/sentry-react-native“missing ucontext64_t type Xcode Version 16.0 (16A242d)”GitHub · Sep 18, 2024 · 8 reactions
- getsentry/sentry-dotnet“Feature: Session Replay support for .NET MAUI”GitHub · Jan 30, 2023 · 8 reactions
The biggest 5 of 13 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 13
Talked about on GitHub (13 times).
On GitHub · 13
- Oct 13, 2021(ios only) codepush.restartApp triggers invalid OutOfMemory errors — getsentry/sentry-react-native15 reactions · 77 comments
- Jul 2, 2024[SDK 51] Xcode 16 compilation fails on pegged Sentry version — expo/expo14 reactions · 12 comments
- Apr 1, 2023JVM Profiling — getsentry/sentry-java14 reactions · 18 comments
- Sep 18, 2024missing ucontext64_t type Xcode Version 16.0 (16A242d) — getsentry/sentry-react-native8 reactions · 2 comments
- Jan 30, 2023Feature: Session Replay support for .NET MAUI — getsentry/sentry-dotnet8 reactions · 9 comments
8 more on GitHub
- Apr 16, 2025RCN Fetch failure: cannot parse response — firebase/firebase-ios-sdk6 reactions · 22 comments
- Nov 4, 2020Version 2.0.0 not building with use_frameworks — getsentry/sentry-react-native6 reactions · 4 comments
- Mar 25, 2024Apple privacy manifest requirements (File timestamp, System boot time & Disk space) — getsentry/sentry-react-native5 reactions · 8 comments
- Mar 25, 2024feat(replay): Add Mobile Replay Alpha — getsentry/sentry-react-native4 reactions · 8 comments
- Oct 22, 2025Session Replay for iOS — getsentry/sentry-dotnet3 reactions · 2 comments
- Sep 24, 2024Public API for manual replay control — getsentry/sentry3 reactions · 10 comments
- Feb 1, 2024[Epic] Mobile Session Replay — getsentry/sentry3 reactions · 2 comments
- Nov 20, 2023Tracing: W3C Trace Context Support — getsentry/team-sdks3 reactions · 9 comments
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- develop-docs/AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- Sources/AGENTS.mdAGENTS.md
- TestApps/AGENTS.mdAGENTS.md
- Tests/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- relay-conformance-auditSkill
The file
We split this AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Start scripts with set -euo pipefail
- Very specific: line 10
Document every parameter in usage()
- Very specific: line 13
Keep validate-xcframework.sh product-agnostic.
- Very specific: line 14
Use assemble-xcframework.sh for XCArchive, standalone-framework, and static-library assembly
- Distinctive: line 15
Avoid complex heredocs and move substantial logic into an appropriate standalone script
- Very specific: line 16
Follow scripts/sentry-xcodebuild.sh as the named-parameter reference
- Distinctive: line 54
Do not migrate unrelated positional arguments while making a focused change
- Very specific: line 56
Keep scripts/bump.sh positional: Craft requires its two positional version arguments
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Scripts
Scope:
scripts/**. Also follow root instructions.
Shell Scripts
- New scripts must use named
--kebab-caseparameters with short aliases, not positional parameters - Start scripts with
set -euo pipefail - Declare defaults before
usage()and validate required parameters after parsing - Document every parameter in
usage() - Source
ci-utils.shfor CI logging; uselog_infofor routine output and reservelog_noticefor intentional GitHub annotations - Extract repeated logic into local functions; source a shared library for logic used by multiple scripts
- Keep
validate-xcframework.shproduct-agnostic; invoke product-specific checks from the caller - Use
assemble-xcframework.shfor XCArchive, standalone-framework, and static-library assembly - Avoid complex heredocs and move substantial logic into an appropriate standalone script
- Follow
scripts/sentry-xcodebuild.shas the named-parameter reference
Template
#!/bin/bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# shellcheck source=./ci-utils.sh
source "$SCRIPT_DIR/ci-utils.sh"
PARAM_ONE=""
PARAM_TWO="default-value"
usage() {
log_info "Usage: $0"
log_info " -p, --param-one <value> Description of param one (required)"
log_info " -t, --param-two <value> Description of param two (default: default-value)"
exit 1
}
while [[ $# -gt 0 ]]; do
case $1 in
-p|--param-one) PARAM_ONE="$2"; shift 2 ;;
-t|--param-two) PARAM_TWO="$2"; shift 2 ;;
*) usage ;;
esac
done
if [ -z "$PARAM_ONE" ]; then
log_error "Error: --param-one is required"
usage
fiLegacy Scripts
- Do not migrate unrelated positional arguments while making a focused change
- Migrate a legacy script to named parameters only when required by the requested change
- Keep
scripts/bump.shpositional: Craft requires its two positional version arguments
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

